teqp 0.19.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
teqp::CPA::CPAAssociation Class Reference

#include <CPA.hpp>

Public Member Functions

 CPAAssociation (const std::vector< association_classes > &classes, const radial_dist dist, const std::valarray< double > &epsABi, const std::valarray< double > &betaABi, const std::valarray< double > &bi, double R_gas)
 
nlohmann::json get_assoc_calcs (double T, double rhomolar, const Eigen::ArrayXd &mole_fractions) const
 
template<typename TType , typename RhoType , typename VecType >
auto alphar (const TType &T, const RhoType &rhomolar, const VecType &molefrac) const
 

Detailed Description

Implement the association approach of Huang & Radosz for pure fluids

Definition at line 181 of file CPA.hpp.

Constructor & Destructor Documentation

◆ CPAAssociation()

teqp::CPA::CPAAssociation::CPAAssociation ( const std::vector< association_classes > & classes,
const radial_dist dist,
const std::valarray< double > & epsABi,
const std::valarray< double > & betaABi,
const std::valarray< double > & bi,
double R_gas )
inline

Definition at line 207 of file CPA.hpp.

Member Function Documentation

◆ alphar()

template<typename TType , typename RhoType , typename VecType >
auto teqp::CPA::CPAAssociation::alphar ( const TType & T,
const RhoType & rhomolar,
const VecType & molefrac ) const
inline

Definition at line 229 of file CPA.hpp.

◆ get_assoc_calcs()

nlohmann::json teqp::CPA::CPAAssociation::get_assoc_calcs ( double T,
double rhomolar,
const Eigen::ArrayXd & mole_fractions ) const
inline

Definition at line 210 of file CPA.hpp.


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