teqp 0.22.0
Loading...
Searching...
No Matches
teqp::IdealHelmholtz Class Reference

Ideal-gas Helmholtz energy container. More...

#include <ideal_eosterms.hpp>

Public Member Functions

 IdealHelmholtz (const nlohmann::json &jpures)
 
template<typename TType , typename RhoType , typename MoleFrac >
auto alphaig (const TType &T, const RhoType &rho, const MoleFrac &molefrac) const
 
template<typename TType , typename RhoType , typename MoleFrac >
auto alphar (const TType &T, const RhoType &rho, const MoleFrac &molefrac) const
 
template<typename MoleFrac >
auto R (const MoleFrac &) const
 

Public Attributes

std::vector< PureIdealHelmholtzpures
 

Detailed Description

Ideal-gas Helmholtz energy container.

\[ \alpha^{\rm ig} = \sum_i x_i[\alpha^{\rm ig}_{oi}(T,\rho) + x_i] \]

where \(x_i\) are mole fractions

Definition at line 310 of file ideal_eosterms.hpp.

Constructor & Destructor Documentation

◆ IdealHelmholtz()

teqp::IdealHelmholtz::IdealHelmholtz ( const nlohmann::json & jpures)
inline

Definition at line 316 of file ideal_eosterms.hpp.

Member Function Documentation

◆ alphaig()

template<typename TType , typename RhoType , typename MoleFrac >
auto teqp::IdealHelmholtz::alphaig ( const TType & T,
const RhoType & rho,
const MoleFrac & molefrac ) const
inline

Definition at line 326 of file ideal_eosterms.hpp.

◆ alphar()

template<typename TType , typename RhoType , typename MoleFrac >
auto teqp::IdealHelmholtz::alphar ( const TType & T,
const RhoType & rho,
const MoleFrac & molefrac ) const
inline

This pass-through function is required to allow this model to sit in the AllowedModels variant which allows the ideal-gas Helmholtz terms to be treated just the same as the residual terms

Definition at line 347 of file ideal_eosterms.hpp.

◆ R()

template<typename MoleFrac >
auto teqp::IdealHelmholtz::R ( const MoleFrac & ) const
inline

For now this is a placeholder, but it should be the "correct" R, however that is ultimately decided upon

Definition at line 353 of file ideal_eosterms.hpp.

Member Data Documentation

◆ pures

std::vector<PureIdealHelmholtz> teqp::IdealHelmholtz::pures

Definition at line 314 of file ideal_eosterms.hpp.


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