teqp 0.19.1
|
#include <association.hpp>
Classes | |
struct | IndexMapper |
Public Types | |
using | CompSite = std::tuple<std::size_t, std::string> |
using | CompCIndex = std::tuple<std::size_t, std::size_t> |
Public Member Functions | |
Association (const Eigen::ArrayXd &b_m3mol, const Eigen::ArrayXd &beta, const Eigen::ArrayXd &epsilon_Jmol, const std::vector< std::vector< std::string > > &molecule_sites, const AssociationOptions &options) | |
template<typename TType , typename RhoType , typename MoleFracsType > | |
auto | get_Delta (const TType &T, const RhoType &rhomolar, const MoleFracsType &molefracs) const |
template<typename TType , typename RhoType , typename MoleFracsType , typename XType > | |
auto | successive_substitution (const TType &T, const RhoType &rhomolar, const MoleFracsType &molefracs, const XType &X_init) const |
template<typename TType , typename RhoType , typename MoleFracsType > | |
auto | alphar (const TType &T, const RhoType &rhomolar, const MoleFracsType &molefracs) const |
Calculate the contribution \(\alpha = a/(RT)\), where the Helmholtz energy \(a\) is on a molar basis, making \(\alpha\) dimensionless. | |
nlohmann::json | get_assoc_calcs (double T, double rhomolar, const Eigen::ArrayXd &mole_fractions) const |
Get things from the association calculations for debug purposes. | |
Public Attributes | |
const Eigen::ArrayXd | b_m3mol |
The covolume b, in m^3/mol. | |
const Eigen::ArrayXd | beta |
The volume factor, dimensionless. | |
const Eigen::ArrayXd | epsilon_Jmol |
The association energy of each molecule, in J/mol. | |
const AssociationOptions | options |
const IndexMapper | mapper |
const Eigen::ArrayXXi | D |
const radial_dist | m_radial_dist |
Definition at line 49 of file association.hpp.
using teqp::association::Association::CompCIndex = std::tuple<std::size_t, std::size_t> |
Definition at line 52 of file association.hpp.
using teqp::association::Association::CompSite = std::tuple<std::size_t, std::string> |
Definition at line 51 of file association.hpp.
|
inline |
Definition at line 147 of file association.hpp.
|
inline |
Calculate the contribution \(\alpha = a/(RT)\), where the Helmholtz energy \(a\) is on a molar basis, making \(\alpha\) dimensionless.
Definition at line 237 of file association.hpp.
|
inline |
Get things from the association calculations for debug purposes.
Definition at line 269 of file association.hpp.
|
inline |
Build the Delta matrix, where entries are given by
\[ \Delta_{IJ} = ... \]
Definition at line 157 of file association.hpp.
|
inline |
Definition at line 195 of file association.hpp.
const Eigen::ArrayXd teqp::association::Association::b_m3mol |
The covolume b, in m^3/mol.
Definition at line 139 of file association.hpp.
const Eigen::ArrayXd teqp::association::Association::beta |
The volume factor, dimensionless.
Definition at line 140 of file association.hpp.
const Eigen::ArrayXXi teqp::association::Association::D |
Definition at line 144 of file association.hpp.
const Eigen::ArrayXd teqp::association::Association::epsilon_Jmol |
The association energy of each molecule, in J/mol.
Definition at line 141 of file association.hpp.
const radial_dist teqp::association::Association::m_radial_dist |
Definition at line 145 of file association.hpp.
const IndexMapper teqp::association::Association::mapper |
Definition at line 143 of file association.hpp.
const AssociationOptions teqp::association::Association::options |
Definition at line 142 of file association.hpp.