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

#include <CPA.hpp>

Public Member Functions

 CPACubic (cubic_flag flag, const std::valarray< double > &a0, const std::valarray< double > &bi, const std::valarray< double > &c1, const std::valarray< double > &Tc, const double R_gas, const std::optional< std::vector< std::vector< double > > > &kmat=std::nullopt)
 
std::size_t size () const
 
template<typename VecType >
auto R (const VecType &) const
 
template<typename TType >
auto get_ai (TType T, int i) const
 
template<typename TType , typename VecType >
auto get_ab (const TType T, const VecType &molefrac) const
 
template<typename TType , typename RhoType , typename VecType >
auto alphar (const TType T, const RhoType rhomolar, const VecType &molefrac) const
 

Detailed Description

Definition at line 124 of file CPA.hpp.

Constructor & Destructor Documentation

◆ CPACubic()

teqp::CPA::CPACubic::CPACubic ( cubic_flag flag,
const std::valarray< double > & a0,
const std::valarray< double > & bi,
const std::valarray< double > & c1,
const std::valarray< double > & Tc,
const double R_gas,
const std::optional< std::vector< std::vector< double > > > & kmat = std::nullopt )
inline

Definition at line 131 of file CPA.hpp.

Member Function Documentation

◆ alphar()

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

Definition at line 170 of file CPA.hpp.

◆ get_ab()

template<typename TType , typename VecType >
auto teqp::CPA::CPACubic::get_ab ( const TType T,
const VecType & molefrac ) const
inline

Definition at line 153 of file CPA.hpp.

◆ get_ai()

template<typename TType >
auto teqp::CPA::CPACubic::get_ai ( TType T,
int i ) const
inline

Definition at line 148 of file CPA.hpp.

◆ R()

template<typename VecType >
auto teqp::CPA::CPACubic::R ( const VecType & ) const
inline

Definition at line 145 of file CPA.hpp.

◆ size()

std::size_t teqp::CPA::CPACubic::size ( ) const
inline

Definition at line 142 of file CPA.hpp.


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