teqp 0.19.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
teqp::GenericCubic< NumType, AlphaFunctions > Class Template Reference

#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)
 
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
 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_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
 

Public Attributes

const NumType Ru = get_R_gas<double>()
 

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
 

Detailed Description

template<typename NumType, typename AlphaFunctions>
class teqp::GenericCubic< NumType, AlphaFunctions >

Definition at line 136 of file cubics.hpp.

Constructor & Destructor Documentation

◆ GenericCubic()

template<typename NumType , typename AlphaFunctions >
teqp::GenericCubic< NumType, AlphaFunctions >::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 )
inline

Definition at line 166 of file cubics.hpp.

Member Function Documentation

◆ alphar()

template<typename NumType , typename AlphaFunctions >
template<typename TType , typename RhoType , typename MoleFracType >
auto teqp::GenericCubic< NumType, AlphaFunctions >::alphar ( const TType & T,
const RhoType & rho,
const MoleFracType & molefrac ) const
inline

Definition at line 244 of file cubics.hpp.

◆ check_kmat()

template<typename NumType , typename AlphaFunctions >
template<typename IndexType >
void teqp::GenericCubic< NumType, AlphaFunctions >::check_kmat ( IndexType N)
inlineprotected

Definition at line 153 of file cubics.hpp.

◆ get_a()

template<typename NumType , typename AlphaFunctions >
template<typename TType , typename CompType >
auto teqp::GenericCubic< NumType, AlphaFunctions >::get_a ( TType T,
const CompType & molefracs ) const
inline

Definition at line 219 of file cubics.hpp.

◆ get_ai()

template<typename NumType , typename AlphaFunctions >
template<typename TType , typename IndexType >
auto teqp::GenericCubic< NumType, AlphaFunctions >::get_ai ( TType ,
IndexType i ) const
inlineprotected

Definition at line 147 of file cubics.hpp.

◆ get_b()

template<typename NumType , typename AlphaFunctions >
template<typename TType , typename CompType >
auto teqp::GenericCubic< NumType, AlphaFunctions >::get_b ( TType ,
const CompType & molefracs ) const
inline

Definition at line 235 of file cubics.hpp.

◆ get_bi()

template<typename NumType , typename AlphaFunctions >
template<typename TType , typename IndexType >
auto teqp::GenericCubic< NumType, AlphaFunctions >::get_bi ( TType ,
IndexType i ) const
inlineprotected

Definition at line 150 of file cubics.hpp.

◆ get_kmat()

template<typename NumType , typename AlphaFunctions >
auto teqp::GenericCubic< NumType, AlphaFunctions >::get_kmat ( ) const
inline

Definition at line 180 of file cubics.hpp.

◆ get_meta()

template<typename NumType , typename AlphaFunctions >
auto teqp::GenericCubic< NumType, AlphaFunctions >::get_meta ( ) const
inline

Definition at line 179 of file cubics.hpp.

◆ R()

template<typename NumType , typename AlphaFunctions >
template<class VecType >
auto teqp::GenericCubic< NumType, AlphaFunctions >::R ( const VecType & ) const
inline

Universal gas constant, exact number.

Definition at line 214 of file cubics.hpp.

◆ set_meta()

template<typename NumType , typename AlphaFunctions >
void teqp::GenericCubic< NumType, AlphaFunctions >::set_meta ( const nlohmann::json & j)
inline

Definition at line 178 of file cubics.hpp.

◆ superanc_rhoLV()

template<typename NumType , typename AlphaFunctions >
auto teqp::GenericCubic< NumType, AlphaFunctions >::superanc_rhoLV ( double T,
std::optional< std::size_t > ifluid = std::nullopt ) const
inline

Return a tuple of saturated liquid and vapor densities for the EOS given the temperature Uses the superancillary equations from Bell and Deiters:

Parameters
TTemperature
ifluidMust be provided in the case of mixtures

Definition at line 186 of file cubics.hpp.

Member Data Documentation

◆ ai

template<typename NumType , typename AlphaFunctions >
std::valarray<NumType> teqp::GenericCubic< NumType, AlphaFunctions >::ai
protected

Definition at line 138 of file cubics.hpp.

◆ alphas

template<typename NumType , typename AlphaFunctions >
const AlphaFunctions teqp::GenericCubic< NumType, AlphaFunctions >::alphas
protected

Definition at line 141 of file cubics.hpp.

◆ bi

template<typename NumType , typename AlphaFunctions >
std::valarray<NumType> teqp::GenericCubic< NumType, AlphaFunctions >::bi
protected

Definition at line 138 of file cubics.hpp.

◆ Delta1

template<typename NumType , typename AlphaFunctions >
const NumType teqp::GenericCubic< NumType, AlphaFunctions >::Delta1
protected

Definition at line 139 of file cubics.hpp.

◆ Delta2

template<typename NumType , typename AlphaFunctions >
const NumType teqp::GenericCubic< NumType, AlphaFunctions >::Delta2
protected

Definition at line 139 of file cubics.hpp.

◆ kmat

template<typename NumType , typename AlphaFunctions >
Eigen::ArrayXXd teqp::GenericCubic< NumType, AlphaFunctions >::kmat
protected

Definition at line 142 of file cubics.hpp.

◆ meta

template<typename NumType , typename AlphaFunctions >
nlohmann::json teqp::GenericCubic< NumType, AlphaFunctions >::meta
protected

Definition at line 144 of file cubics.hpp.

◆ OmegaA

template<typename NumType , typename AlphaFunctions >
const NumType teqp::GenericCubic< NumType, AlphaFunctions >::OmegaA
protected

Definition at line 139 of file cubics.hpp.

◆ OmegaB

template<typename NumType , typename AlphaFunctions >
const NumType teqp::GenericCubic< NumType, AlphaFunctions >::OmegaB
protected

Definition at line 139 of file cubics.hpp.

◆ Ru

template<typename NumType , typename AlphaFunctions >
const NumType teqp::GenericCubic< NumType, AlphaFunctions >::Ru = get_R_gas<double>()

Definition at line 211 of file cubics.hpp.

◆ superanc_index

template<typename NumType , typename AlphaFunctions >
int teqp::GenericCubic< NumType, AlphaFunctions >::superanc_index
protected

Definition at line 140 of file cubics.hpp.


The documentation for this class was generated from the following file: