teqp 0.22.0
Loading...
Searching...
No Matches
teqp::LKP::LKPMix Class Reference

#include <LKP.hpp>

Public Member Functions

 LKPMix (const std::vector< double > &Tcrit, const std::vector< double > &pcrit, const std::vector< double > &acentric, double R, const std::vector< std::vector< double > > &kmat)
 
template<class VecType >
auto R (const VecType &) const
 
template<typename TTYPE , typename RhoType , typename ZcType >
auto alphar_func (const TTYPE &tau, const RhoType &delta, const ZcType &Zc, const LKPFluidParameters &params) const
 Calculate the contribution for one of the fluids, depending on the parameter set passed in.
 
template<typename TTYPE , typename RhoType , typename VecType >
auto alphar (const TTYPE &T, const RhoType &rhomolar, const VecType &mole_fractions) const
 

Public Attributes

const LKPFluidParameters simple
 
const LKPFluidParameters ref
 
const std::vector< double > Tcrit
 
const std::vector< double > pcrit
 
const std::vector< double > acentric
 
const double m_R
 molar gas constant to be used in this model, in J/mol/K
 
const std::vector< std::vector< double > > kmat
 

Detailed Description

Definition at line 19 of file LKP.hpp.

Constructor & Destructor Documentation

◆ LKPMix()

teqp::LKP::LKPMix::LKPMix ( const std::vector< double > & Tcrit,
const std::vector< double > & pcrit,
const std::vector< double > & acentric,
double R,
const std::vector< std::vector< double > > & kmat )
inline

Definition at line 33 of file LKP.hpp.

Member Function Documentation

◆ alphar()

template<typename TTYPE , typename RhoType , typename VecType >
auto teqp::LKP::LKPMix::alphar ( const TTYPE & T,
const RhoType & rhomolar,
const VecType & mole_fractions ) const
inline

Definition at line 65 of file LKP.hpp.

◆ alphar_func()

template<typename TTYPE , typename RhoType , typename ZcType >
auto teqp::LKP::LKPMix::alphar_func ( const TTYPE & tau,
const RhoType & delta,
const ZcType & Zc,
const LKPFluidParameters & params ) const
inline

Calculate the contribution for one of the fluids, depending on the parameter set passed in.

Definition at line 56 of file LKP.hpp.

◆ R()

template<class VecType >
auto teqp::LKP::LKPMix::R ( const VecType & ) const
inline

Definition at line 52 of file LKP.hpp.

Member Data Documentation

◆ acentric

const std::vector<double> teqp::LKP::LKPMix::acentric

Definition at line 29 of file LKP.hpp.

◆ kmat

const std::vector<std::vector<double> > teqp::LKP::LKPMix::kmat

Definition at line 31 of file LKP.hpp.

◆ m_R

const double teqp::LKP::LKPMix::m_R

molar gas constant to be used in this model, in J/mol/K

Definition at line 30 of file LKP.hpp.

◆ pcrit

const std::vector<double> teqp::LKP::LKPMix::pcrit

Definition at line 29 of file LKP.hpp.

◆ ref

const LKPFluidParameters teqp::LKP::LKPMix::ref
Initial value:
{{0, 0.2026579, 0.331511, 0.276550e-1, 0.203488},
{0, 0.313385e-1, 0.503618e-1, 0.169010e-1,0.41577e-1},
{0, 0.487360e-4, 0.740336e-5},
1.226, 0.03754, 0.3978}

Definition at line 25 of file LKP.hpp.

◆ simple

const LKPFluidParameters teqp::LKP::LKPMix::simple
Initial value:
{{0.0, 0.1181193, 0.265728, 0.154790, 0.303230e-1},
{0.0, 0.236744e-1, 0.186984e-1, 0, 0.427240e-1},
{0, 0.155428e-4, 0.623689e-4},
0.653920, 0.601670e-1, 0.0}

Definition at line 21 of file LKP.hpp.

◆ Tcrit

const std::vector<double> teqp::LKP::LKPMix::Tcrit

Definition at line 29 of file LKP.hpp.


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