teqp 0.22.0
|
#include <cubics.hpp>
Public Member Functions | |
GenericCubic (NumType Delta1, NumType Delta2, NumType OmegaA, NumType OmegaB, int superanc_index, const std::valarray< NumType > &Tc_K, const std::valarray< NumType > &pc_Pa, const AlphaFunctions &alphas, const Eigen::ArrayXXd &kmat, const double R_JmolK) | |
void | set_meta (const nlohmann::json &j) |
auto | get_meta () const |
auto | get_kmat () 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_b (TType, const CompType &molefracs) const |
template<typename TType , typename RhoType , typename MoleFracType > | |
auto | alphar (const TType &T, const RhoType &rho, const MoleFracType &molefrac) const |
Protected Member Functions | |
template<typename TType , typename IndexType > | |
auto | get_ai (TType, IndexType i) const |
template<typename TType , typename IndexType > | |
auto | get_bi (TType, IndexType i) const |
template<typename IndexType > | |
void | check_kmat (IndexType N) |
Protected Attributes | |
std::valarray< NumType > | ai |
std::valarray< NumType > | bi |
const NumType | Delta1 |
const NumType | Delta2 |
const NumType | OmegaA |
const NumType | OmegaB |
int | superanc_index |
const AlphaFunctions | alphas |
Eigen::ArrayXXd | kmat |
nlohmann::json | meta |
const double | m_R_JmolK |
Definition at line 138 of file cubics.hpp.
|
inline |
Definition at line 169 of file cubics.hpp.
|
inline |
Definition at line 245 of file cubics.hpp.
|
inlineprotected |
Definition at line 156 of file cubics.hpp.
|
inline |
Definition at line 220 of file cubics.hpp.
|
inlineprotected |
Definition at line 150 of file cubics.hpp.
|
inline |
Definition at line 236 of file cubics.hpp.
|
inlineprotected |
Definition at line 153 of file cubics.hpp.
|
inline |
Definition at line 183 of file cubics.hpp.
|
inline |
Definition at line 182 of file cubics.hpp.
|
inline |
Definition at line 215 of file cubics.hpp.
|
inline |
Definition at line 181 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 189 of file cubics.hpp.
|
protected |
Definition at line 140 of file cubics.hpp.
|
protected |
Definition at line 143 of file cubics.hpp.
|
protected |
Definition at line 140 of file cubics.hpp.
|
protected |
Definition at line 141 of file cubics.hpp.
|
protected |
Definition at line 141 of file cubics.hpp.
|
protected |
Definition at line 144 of file cubics.hpp.
|
protected |
Definition at line 147 of file cubics.hpp.
|
protected |
Definition at line 146 of file cubics.hpp.
|
protected |
Definition at line 141 of file cubics.hpp.
|
protected |
Definition at line 141 of file cubics.hpp.
|
protected |
Definition at line 142 of file cubics.hpp.