|
teqp 0.23.1
|
#include <advancedmixing_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 |
| 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 |
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 |
| const double | R_JmolK |
| nlohmann::json | meta |
Cubic EOS with advanced mixing rules, the EoS/aE method of Jaubert and co-workers
Definition at line 54 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 105 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 206 of file advancedmixing_cubics.hpp.
|
inlineprotected |
Definition at line 92 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 164 of file advancedmixing_cubics.hpp.
|
inlineprotected |
Definition at line 83 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 169 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 179 of file advancedmixing_cubics.hpp.
|
inlinestatic |
Definition at line 123 of file advancedmixing_cubics.hpp.
|
inlineprotected |
Definition at line 89 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 119 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 118 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 121 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 120 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 159 of file advancedmixing_cubics.hpp.
|
inline |
Definition at line 117 of file advancedmixing_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 133 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 69 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 71 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 72 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 69 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 75 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 77 of file advancedmixing_cubics.hpp.
| const NumType teqp::AdvancedPRaEres< NumType, AlphaFunctions >::Delta1 = 1+sqrt(2.0) |
Definition at line 57 of file advancedmixing_cubics.hpp.
| const NumType teqp::AdvancedPRaEres< NumType, AlphaFunctions >::Delta2 = 1-sqrt(2.0) |
Definition at line 58 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 73 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 80 of file advancedmixing_cubics.hpp.
| const NumType teqp::AdvancedPRaEres< NumType, AlphaFunctions >::OmegaA = 0.45723552892138218938 |
Definition at line 60 of file advancedmixing_cubics.hpp.
| const NumType teqp::AdvancedPRaEres< NumType, AlphaFunctions >::OmegaB = 0.077796073903888455972 |
Definition at line 61 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 67 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 78 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 76 of file advancedmixing_cubics.hpp.
| const int teqp::AdvancedPRaEres< NumType, AlphaFunctions >::superanc_code = CubicSuperAncillary::PR_CODE |
Definition at line 62 of file advancedmixing_cubics.hpp.
|
protected |
Definition at line 67 of file advancedmixing_cubics.hpp.