BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
belfem::gastables::HeatPoly Class Reference

One temperature interval of the caloric description of a species. More...

#include <cl_GT_HeatPoly.hpp>

Inheritance diagram for belfem::gastables::HeatPoly:
[legend]
Collaboration diagram for belfem::gastables::HeatPoly:
[legend]

Public Member Functions

 HeatPoly (const real aTmin, const real aTmax, const real aEnthalpyConstant, const real aEntropyConstant, const Vector< real > &aCoefficients)
virtual ~HeatPoly ()=default
virtual real Cp (const real T) const
virtual real H (const real T) const
virtual real S (const real T) const
virtual real dSdT (const real T) const
virtual real dCpdT (const real T) const
virtual real d2CpdT2 (const real T) const
const realT_min () const
const realT_max () const
void set_T_min (const real aTmin)
void set_T_max (const real aTmax)
void set_enthalpy_constant (const real &aEnthalpyConstant)
void set_entropy_constant (const real &aEntropyConstant)
real enthalpy_constant () const
real entropy_constant () const

Protected Attributes

real mTmin
real mTmax
real mEnthalpyConstant
real mEntropyConstant
const Vector< realmCoefficients

Detailed Description

One temperature interval of the caloric description of a species.

Evaluates the NASA-9 form of NASA RP-1311 Eqs. ( 4.9 ) to ( 4.11 ),

cp/R  =  a1 T^-2 + a2 T^-1 + a3 + a4 T + a5 T^2 + a6 T^3 + a7 T^4

with H and S following by integration, which is where the two constants come in: mEnthalpyConstant is b1 of the record and mEntropyConstant is b2. They are not properties of the polynomial but of the reference state, and RefGas rewrites both when it stitches the intervals together, so an interval taken out of its parent is not self contained.

Returns molar quantities: Cp and S in J/(mol K), H in J/mol.

The subclasses cover what the tables do not: HeatPolyGlue smooths a junction between two tabulated intervals, HeatPolyCustom carries a fitted interval such as the cryogenic extrapolation, and HeatPolyEmpty stands in for a species with no caloric data at all.

See also
Gas Tables Usage Guide

Constructor & Destructor Documentation

◆ HeatPoly()

belfem::gastables::HeatPoly::HeatPoly ( const real aTmin,
const real aTmax,
const real aEnthalpyConstant,
const real aEntropyConstant,
const Vector< real > & aCoefficients )

◆ ~HeatPoly()

virtual belfem::gastables::HeatPoly::~HeatPoly ( )
virtualdefault

Member Function Documentation

◆ Cp()

real belfem::gastables::HeatPoly::Cp ( const real T) const
virtual

◆ d2CpdT2()

real belfem::gastables::HeatPoly::d2CpdT2 ( const real T) const
virtual

◆ dCpdT()

real belfem::gastables::HeatPoly::dCpdT ( const real T) const
virtual

◆ dSdT()

real belfem::gastables::HeatPoly::dSdT ( const real T) const
virtual

◆ enthalpy_constant()

real belfem::gastables::HeatPoly::enthalpy_constant ( ) const

◆ entropy_constant()

real belfem::gastables::HeatPoly::entropy_constant ( ) const

◆ H()

real belfem::gastables::HeatPoly::H ( const real T) const
virtual

◆ S()

real belfem::gastables::HeatPoly::S ( const real T) const
virtual

◆ set_enthalpy_constant()

void belfem::gastables::HeatPoly::set_enthalpy_constant ( const real & aEnthalpyConstant)

◆ set_entropy_constant()

void belfem::gastables::HeatPoly::set_entropy_constant ( const real & aEntropyConstant)

◆ set_T_max()

void belfem::gastables::HeatPoly::set_T_max ( const real aTmax)

◆ set_T_min()

void belfem::gastables::HeatPoly::set_T_min ( const real aTmin)

◆ T_max()

const real & belfem::gastables::HeatPoly::T_max ( ) const
inline

◆ T_min()

const real & belfem::gastables::HeatPoly::T_min ( ) const
inline

Member Data Documentation

◆ mCoefficients

const Vector<real> belfem::gastables::HeatPoly::mCoefficients
protected

◆ mEnthalpyConstant

real belfem::gastables::HeatPoly::mEnthalpyConstant
protected

◆ mEntropyConstant

real belfem::gastables::HeatPoly::mEntropyConstant
protected

◆ mTmax

real belfem::gastables::HeatPoly::mTmax
protected

◆ mTmin

real belfem::gastables::HeatPoly::mTmin
protected

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