17 m_association(association::Association::factory(spec.at(
"association").at(
"model"))){}
21 template<
class VecType>
22 auto R(
const VecType& molefrac)
const {
26 template <
typename TType,
typename RhoType,
typename MoleFractions>
27 auto alphar(
const TType& T,
const RhoType& rho,
const MoleFractions& molefrac)
const {
29 m_multifluid.alphar(T, rho, molefrac)
30 + m_association.
alphar(T, rho, molefrac)
auto R(const VecType &molefrac) const
MultifluidPlusAssociation(const nlohmann::json &spec)
auto alphar(const TType &T, const RhoType &rho, const MoleFractions &molefrac) const
const auto & get_association() const
auto alphar(const TType &T, const RhoType &rhomolar, const MoleFracsType &molefracs) const
Calculate the contribution , where the Helmholtz energy is on a molar basis, making dimensionless.
auto multifluidfactory(const nlohmann::json &spec)
Load a model from a JSON data structure.
auto get_R_gas()
< Gas constant, according to CODATA 2019, in the given number type