teqp 0.19.1
|
#include <cubics.hpp>
Public Member Functions | |
AdvancedPRaEres (const std::valarray< NumType > &Tc_K, const std::valarray< NumType > &pc_Pa, const AlphaFunctions &alphas, const ResidualHelmholtzOverRTVariant &ares, const Eigen::ArrayXXd &lmat, const AdvancedPRaEOptions &options={}) | |
void | set_meta (const nlohmann::json &j) |
auto | get_meta () const |
auto | get_lmat () const |
auto | get_Tc_K () const |
auto | get_pc_Pa () const |
auto | superanc_rhoLV (double T, std::optional< std::size_t > ifluid=std::nullopt) const |
template<class VecType > | |
auto | R (const VecType &) const |
Universal gas constant, exact number. | |
template<typename TType , typename CompType > | |
auto | get_a (TType T, const CompType &molefracs) const |
template<typename TType , typename CompType > | |
auto | get_am_over_bm (TType T, const CompType &molefracs) const |
template<typename TType , typename CompType > | |
auto | get_b (TType T, const CompType &molefracs) const |
template<typename TType , typename RhoType , typename MoleFracType > | |
auto | alphar (const TType &T, const RhoType &rho, const MoleFracType &molefrac) const |
Static Public Member Functions | |
static double | get_bi (double Tc_K, double pc_Pa) |
Public Attributes | |
const NumType | Delta1 = 1+sqrt(2.0) |
const NumType | Delta2 = 1-sqrt(2.0) |
const NumType | OmegaA = 0.45723552892138218938 |
const NumType | OmegaB = 0.077796073903888455972 |
const int | superanc_code = CubicSuperAncillary::PR_CODE |
const NumType | Ru = get_R_gas<double>() |
Protected Member Functions | |
template<typename TType , typename IndexType > | |
auto | get_ai (TType &T, IndexType i) const |
template<typename TType , typename IndexType > | |
auto | get_bi (TType &, IndexType i) const |
template<typename IndexType > | |
void | check_lmat (IndexType N) |
Protected Attributes | |
std::valarray< NumType > | Tc_K |
std::valarray< NumType > | pc_Pa |
std::valarray< NumType > | ai |
std::valarray< NumType > | bi |
const AlphaFunctions | alphas |
const ResidualHelmholtzOverRTVariant | ares |
Eigen::ArrayXXd | lmat |
const AdvancedPRaEMixingRules | brule |
const double | s |
const double | CEoS |
nlohmann::json | meta |
Cubic EOS with advanced mixing rules, the EoS/aE method of Jaubert and co-workers
Definition at line 559 of file cubics.hpp.
|
inline |
Definition at line 609 of file cubics.hpp.
|
inline |
Definition at line 712 of file cubics.hpp.
|
inlineprotected |
Definition at line 596 of file cubics.hpp.
|
inline |
Definition at line 670 of file cubics.hpp.
|
inlineprotected |
Definition at line 587 of file cubics.hpp.
|
inline |
Definition at line 675 of file cubics.hpp.
|
inline |
Definition at line 685 of file cubics.hpp.
|
inlinestatic |
Definition at line 627 of file cubics.hpp.
|
inlineprotected |
Definition at line 593 of file cubics.hpp.
|
inline |
Definition at line 623 of file cubics.hpp.
|
inline |
Definition at line 622 of file cubics.hpp.
|
inline |
Definition at line 625 of file cubics.hpp.
|
inline |
Definition at line 624 of file cubics.hpp.
|
inline |
Universal gas constant, exact number.
Definition at line 665 of file cubics.hpp.
|
inline |
Definition at line 621 of file cubics.hpp.
|
inline |
Return a tuple of saturated liquid and vapor densities for the EOS given the temperature Uses the superancillary equations from Bell and Deiters:
T | Temperature |
ifluid | Must be provided in the case of mixtures |
Definition at line 637 of file cubics.hpp.
|
protected |
Definition at line 574 of file cubics.hpp.
|
protected |
Definition at line 576 of file cubics.hpp.
|
protected |
Definition at line 577 of file cubics.hpp.
|
protected |
Definition at line 574 of file cubics.hpp.
|
protected |
Definition at line 580 of file cubics.hpp.
|
protected |
Definition at line 582 of file cubics.hpp.
const NumType teqp::AdvancedPRaEres< NumType, AlphaFunctions >::Delta1 = 1+sqrt(2.0) |
Definition at line 562 of file cubics.hpp.
const NumType teqp::AdvancedPRaEres< NumType, AlphaFunctions >::Delta2 = 1-sqrt(2.0) |
Definition at line 563 of file cubics.hpp.
|
protected |
Definition at line 578 of file cubics.hpp.
|
protected |
Definition at line 584 of file cubics.hpp.
const NumType teqp::AdvancedPRaEres< NumType, AlphaFunctions >::OmegaA = 0.45723552892138218938 |
Definition at line 565 of file cubics.hpp.
const NumType teqp::AdvancedPRaEres< NumType, AlphaFunctions >::OmegaB = 0.077796073903888455972 |
Definition at line 566 of file cubics.hpp.
|
protected |
Definition at line 572 of file cubics.hpp.
const NumType teqp::AdvancedPRaEres< NumType, AlphaFunctions >::Ru = get_R_gas<double>() |
Definition at line 662 of file cubics.hpp.
|
protected |
Definition at line 581 of file cubics.hpp.
const int teqp::AdvancedPRaEres< NumType, AlphaFunctions >::superanc_code = CubicSuperAncillary::PR_CODE |
Definition at line 567 of file cubics.hpp.
|
protected |
Definition at line 572 of file cubics.hpp.