CoolProp 7.0.0
An open-source fluid property and humid air property database
Public Types | Public Member Functions | Public Attributes | List of all members
CoolProp::EquationOfState Class Reference

Detailed Description

The core class for an equation of state.

This class holds the absolute minimum information to evaluate the equation of state. This includes the reducing state, limits on the equation of state, the coefficients for the Helmholtz derivative terms.

It does NOT include derived parameters like specific heat, enthalpy, etc.

Definition at line 400 of file CoolPropFluid.h.

#include <CoolPropFluid.h>

Public Types

using SuperAncillary_t = superancillary::SuperAncillary< std::vector< double > >
 

Public Member Functions

std::optional< SuperAncillary_t > & get_superanc_optional ()
 Get the optional of the populated superancillary. More...
 
void set_superancillaries_str (const std::string &s)
 Set the placeholder string for the superancillaries to allow for lazy construction, particularly important in debug builds. More...
 
void validate ()
 Validate the EOS that was just constructed. More...
 
CoolPropDbl baser (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl dalphar_dDelta (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl dalphar_dTau (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d2alphar_dDelta2 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d2alphar_dDelta_dTau (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d2alphar_dTau2 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d3alphar_dDelta3 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d3alphar_dDelta2_dTau (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d3alphar_dDelta_dTau2 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d3alphar_dTau3 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl base0 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl dalpha0_dDelta (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl dalpha0_dTau (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d2alpha0_dDelta2 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d2alpha0_dDelta_dTau (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d2alpha0_dTau2 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d3alpha0_dDelta3 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d3alpha0_dDelta2_dTau (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d3alpha0_dDelta_dTau2 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 
CoolPropDbl d3alpha0_dTau3 (const CoolPropDbl &tau, const CoolPropDbl &delta)
 

Public Attributes

SimpleState reduce
 Reducing state used for the EOS (usually, but not always, the critical point) More...
 
SimpleState sat_min_liquid
 The saturated liquid state at the minimum saturation temperature. More...
 
SimpleState sat_min_vapor
 The saturated vapor state at the minimum saturation temperature. More...
 
SimpleState hs_anchor
 A fixed anchor state at Tc*1.1 and rhoc*0.9 used as a reference state for enthalpy and entropy ancillary curves. More...
 
SimpleState max_sat_T
 The state at the maximum saturation temperature for pseudo-pure. More...
 
SimpleState max_sat_p
 The state at the maximum saturation pressure for pseudo-pure. More...
 
EOSLimits limits
 Limits on the EOS. More...
 
double R_u
 The universal gas constant used for this EOS (usually, but not always, 8.314472 J/mol/K) More...
 
double molar_mass
 The molar mass in kg/mol (note NOT kg/kmol) More...
 
double acentric
 The acentric factor \( \omega = -log_{10}\left(\frac{p_s(T/T_c=0.7)}{p_c}\right)-1\). More...
 
double Ttriple
 Triple point temperature (K) More...
 
double ptriple
 Triple point pressure (Pa) More...
 
bool pseudo_pure
 Is a pseudo-pure fluid (true) or pure fluid (false) More...
 
ResidualHelmholtzContainer alphar
 The residual Helmholtz energy. More...
 
IdealHelmholtzContainer alpha0
 The ideal Helmholtz energy. More...
 
std::string BibTeX_EOS
 The bibtex key for the equation of state. More...
 
std::string BibTeX_CP0
 The bibtex key for the ideal gas specific heat correlation. More...
 
CriticalRegionSplines critical_region_splines
 A cubic spline in the form T = f(rho) for saturated liquid and saturated vapor curves in the near-critical region. More...
 

Member Typedef Documentation

◆ SuperAncillary_t

Definition at line 403 of file CoolPropFluid.h.

Member Function Documentation

◆ base0()

CoolPropDbl CoolProp::EquationOfState::base0 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 496 of file CoolPropFluid.h.

◆ baser()

CoolPropDbl CoolProp::EquationOfState::baser ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 462 of file CoolPropFluid.h.

◆ d2alpha0_dDelta2()

CoolPropDbl CoolProp::EquationOfState::d2alpha0_dDelta2 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 507 of file CoolPropFluid.h.

◆ d2alpha0_dDelta_dTau()

CoolPropDbl CoolProp::EquationOfState::d2alpha0_dDelta_dTau ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 510 of file CoolPropFluid.h.

◆ d2alpha0_dTau2()

CoolPropDbl CoolProp::EquationOfState::d2alpha0_dTau2 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 513 of file CoolPropFluid.h.

◆ d2alphar_dDelta2()

CoolPropDbl CoolProp::EquationOfState::d2alphar_dDelta2 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 473 of file CoolPropFluid.h.

◆ d2alphar_dDelta_dTau()

CoolPropDbl CoolProp::EquationOfState::d2alphar_dDelta_dTau ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 476 of file CoolPropFluid.h.

◆ d2alphar_dTau2()

CoolPropDbl CoolProp::EquationOfState::d2alphar_dTau2 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 479 of file CoolPropFluid.h.

◆ d3alpha0_dDelta2_dTau()

CoolPropDbl CoolProp::EquationOfState::d3alpha0_dDelta2_dTau ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 520 of file CoolPropFluid.h.

◆ d3alpha0_dDelta3()

CoolPropDbl CoolProp::EquationOfState::d3alpha0_dDelta3 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 517 of file CoolPropFluid.h.

◆ d3alpha0_dDelta_dTau2()

CoolPropDbl CoolProp::EquationOfState::d3alpha0_dDelta_dTau2 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 523 of file CoolPropFluid.h.

◆ d3alpha0_dTau3()

CoolPropDbl CoolProp::EquationOfState::d3alpha0_dTau3 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 526 of file CoolPropFluid.h.

◆ d3alphar_dDelta2_dTau()

CoolPropDbl CoolProp::EquationOfState::d3alphar_dDelta2_dTau ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 486 of file CoolPropFluid.h.

◆ d3alphar_dDelta3()

CoolPropDbl CoolProp::EquationOfState::d3alphar_dDelta3 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 483 of file CoolPropFluid.h.

◆ d3alphar_dDelta_dTau2()

CoolPropDbl CoolProp::EquationOfState::d3alphar_dDelta_dTau2 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 489 of file CoolPropFluid.h.

◆ d3alphar_dTau3()

CoolPropDbl CoolProp::EquationOfState::d3alphar_dTau3 ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 492 of file CoolPropFluid.h.

◆ dalpha0_dDelta()

CoolPropDbl CoolProp::EquationOfState::dalpha0_dDelta ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 500 of file CoolPropFluid.h.

◆ dalpha0_dTau()

CoolPropDbl CoolProp::EquationOfState::dalpha0_dTau ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 503 of file CoolPropFluid.h.

◆ dalphar_dDelta()

CoolPropDbl CoolProp::EquationOfState::dalphar_dDelta ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 466 of file CoolPropFluid.h.

◆ dalphar_dTau()

CoolPropDbl CoolProp::EquationOfState::dalphar_dTau ( const CoolPropDbl tau,
const CoolPropDbl delta 
)
inline

Definition at line 469 of file CoolPropFluid.h.

◆ get_superanc_optional()

std::optional< SuperAncillary_t > & CoolProp::EquationOfState::get_superanc_optional ( )
inline

Get the optional of the populated superancillary.

Definition at line 431 of file CoolPropFluid.h.

◆ set_superancillaries_str()

void CoolProp::EquationOfState::set_superancillaries_str ( const std::string &  s)
inline

Set the placeholder string for the superancillaries to allow for lazy construction, particularly important in debug builds.

Definition at line 447 of file CoolPropFluid.h.

◆ validate()

void CoolProp::EquationOfState::validate ( )
inline

Validate the EOS that was just constructed.

Definition at line 458 of file CoolPropFluid.h.

Member Data Documentation

◆ acentric

double CoolProp::EquationOfState::acentric

The acentric factor \( \omega = -log_{10}\left(\frac{p_s(T/T_c=0.7)}{p_c}\right)-1\).

Definition at line 419 of file CoolPropFluid.h.

◆ alpha0

IdealHelmholtzContainer CoolProp::EquationOfState::alpha0

The ideal Helmholtz energy.

Definition at line 424 of file CoolPropFluid.h.

◆ alphar

ResidualHelmholtzContainer CoolProp::EquationOfState::alphar

The residual Helmholtz energy.

Definition at line 423 of file CoolPropFluid.h.

◆ BibTeX_CP0

std::string CoolProp::EquationOfState::BibTeX_CP0

The bibtex key for the ideal gas specific heat correlation.

Definition at line 426 of file CoolPropFluid.h.

◆ BibTeX_EOS

std::string CoolProp::EquationOfState::BibTeX_EOS

The bibtex key for the equation of state.

Definition at line 425 of file CoolPropFluid.h.

◆ critical_region_splines

CriticalRegionSplines CoolProp::EquationOfState::critical_region_splines

A cubic spline in the form T = f(rho) for saturated liquid and saturated vapor curves in the near-critical region.

Definition at line 428 of file CoolPropFluid.h.

◆ hs_anchor

SimpleState CoolProp::EquationOfState::hs_anchor

A fixed anchor state at Tc*1.1 and rhoc*0.9 used as a reference state for enthalpy and entropy ancillary curves.

Definition at line 413 of file CoolPropFluid.h.

◆ limits

EOSLimits CoolProp::EquationOfState::limits

Limits on the EOS.

Definition at line 416 of file CoolPropFluid.h.

◆ max_sat_p

SimpleState CoolProp::EquationOfState::max_sat_p

The state at the maximum saturation pressure for pseudo-pure.

Definition at line 415 of file CoolPropFluid.h.

◆ max_sat_T

SimpleState CoolProp::EquationOfState::max_sat_T

The state at the maximum saturation temperature for pseudo-pure.

Definition at line 414 of file CoolPropFluid.h.

◆ molar_mass

double CoolProp::EquationOfState::molar_mass

The molar mass in kg/mol (note NOT kg/kmol)

Definition at line 418 of file CoolPropFluid.h.

◆ pseudo_pure

bool CoolProp::EquationOfState::pseudo_pure

Is a pseudo-pure fluid (true) or pure fluid (false)

Definition at line 422 of file CoolPropFluid.h.

◆ ptriple

double CoolProp::EquationOfState::ptriple

Triple point pressure (Pa)

Definition at line 421 of file CoolPropFluid.h.

◆ R_u

double CoolProp::EquationOfState::R_u

The universal gas constant used for this EOS (usually, but not always, 8.314472 J/mol/K)

Definition at line 417 of file CoolPropFluid.h.

◆ reduce

SimpleState CoolProp::EquationOfState::reduce

Reducing state used for the EOS (usually, but not always, the critical point)

Definition at line 410 of file CoolPropFluid.h.

◆ sat_min_liquid

SimpleState CoolProp::EquationOfState::sat_min_liquid

The saturated liquid state at the minimum saturation temperature.

Definition at line 411 of file CoolPropFluid.h.

◆ sat_min_vapor

SimpleState CoolProp::EquationOfState::sat_min_vapor

The saturated vapor state at the minimum saturation temperature.

Definition at line 412 of file CoolPropFluid.h.

◆ Ttriple

double CoolProp::EquationOfState::Ttriple

Triple point temperature (K)

Definition at line 420 of file CoolPropFluid.h.


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