janafThermo< EquationOfState > Class Template Reference

JANAF tables based thermodynamics package templated into the equation of state. More...

Inheritance diagram for janafThermo< EquationOfState >:
Collaboration diagram for janafThermo< EquationOfState >:

Public Types

typedef FixedList< scalar, nCoeffs_coeffArray
 

Public Member Functions

 janafThermo (const EquationOfState &st, const scalar Tlow, const scalar Thigh, const scalar Tcommon, const coeffArray &highCpCoeffs, const coeffArray &lowCpCoeffs, const bool convertCoeffs=false)
 Construct from components. More...
 
 janafThermo (const dictionary &dict)
 Construct from dictionary. More...
 
 janafThermo (const word &, const janafThermo &)
 Construct as a named copy. More...
 
scalar limit (const scalar T) const
 Limit the temperature to be in the range Tlow_ to Thigh_. More...
 
scalar Tlow () const
 Return const access to the low temperature limit. More...
 
scalar Thigh () const
 Return const access to the high temperature limit. More...
 
scalar Tcommon () const
 Return const access to the common temperature. More...
 
const coeffArrayhighCpCoeffs () const
 Return const access to the high temperature poly coefficients. More...
 
const coeffArraylowCpCoeffs () const
 Return const access to the low temperature poly coefficients. More...
 
scalar Cp (const scalar p, const scalar T) const
 Heat capacity at constant pressure [J/kg/K]. More...
 
scalar Ha (const scalar p, const scalar T) const
 Absolute enthalpy [J/kg]. More...
 
scalar Hs (const scalar p, const scalar T) const
 Sensible enthalpy [J/kg]. More...
 
scalar Hf () const
 Enthalpy of formation [J/kg]. More...
 
scalar S (const scalar p, const scalar T) const
 Entropy [J/kg/K]. More...
 
scalar Gstd (const scalar T) const
 Gibbs free energy of the mixture in the standard state [J/kg]. More...
 
scalar dCpdT (const scalar p, const scalar T) const
 Temperature derivative of heat capacity at constant pressure. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 
void operator+= (const janafThermo &)
 

Static Public Member Functions

static word typeName ()
 Return the instantiated type name. More...
 

Static Public Attributes

static const int nCoeffs_ = 7
 

Friends

janafThermo operator+ (const janafThermo &, const janafThermo &)
 
janafThermo operator* (const scalar, const janafThermo &)
 
janafThermo operator== (const janafThermo &, const janafThermo &)
 
Ostreamoperator (Ostream &, const janafThermo &)
 

Detailed Description

template<class EquationOfState>
class Foam::janafThermo< EquationOfState >

JANAF tables based thermodynamics package templated into the equation of state.

Source files

Definition at line 49 of file janafThermo.H.

Member Typedef Documentation

◆ coeffArray

typedef FixedList<scalar, nCoeffs_> coeffArray

Definition at line 95 of file janafThermo.H.

Constructor & Destructor Documentation

◆ janafThermo() [1/3]

janafThermo ( const EquationOfState &  st,
const scalar  Tlow,
const scalar  Thigh,
const scalar  Tcommon,
const coeffArray highCpCoeffs,
const coeffArray lowCpCoeffs,
const bool  convertCoeffs = false 
)
inline

Construct from components.

◆ janafThermo() [2/3]

janafThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 60 of file janafThermo.C.

References janafThermo< EquationOfState >::nCoeffs_, and R.

◆ janafThermo() [3/3]

janafThermo ( const word name,
const janafThermo< EquationOfState > &  jt 
)
inline

Construct as a named copy.

Definition at line 89 of file janafThermoI.H.

References janafThermo< EquationOfState >::limit(), and janafThermo< EquationOfState >::nCoeffs_.

Here is the call graph for this function:

Member Function Documentation

◆ typeName()

◆ limit()

Foam::scalar limit ( const scalar  T) const
inline

Limit the temperature to be in the range Tlow_ to Thigh_.

Definition at line 111 of file janafThermoI.H.

References Foam::endl(), Foam::max(), Foam::min(), Foam::T(), and WarningInFunction.

Referenced by janafThermo< EquationOfState >::janafThermo(), and janafThermo< EquationOfState >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Tlow()

Foam::scalar Tlow ( ) const
inline

Return const access to the low temperature limit.

Definition at line 133 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

◆ Thigh()

Foam::scalar Thigh ( ) const
inline

Return const access to the high temperature limit.

Definition at line 140 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

◆ Tcommon()

Foam::scalar Tcommon ( ) const
inline

Return const access to the common temperature.

Definition at line 147 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

◆ highCpCoeffs()

const Foam::janafThermo< EquationOfState >::coeffArray & highCpCoeffs ( ) const
inline

Return const access to the high temperature poly coefficients.

Definition at line 155 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::operator+=(), janafThermo< EquationOfState >::typeName(), and janafThermo< EquationOfState >::write().

Here is the caller graph for this function:

◆ lowCpCoeffs()

const Foam::janafThermo< EquationOfState >::coeffArray & lowCpCoeffs ( ) const
inline

Return const access to the low temperature poly coefficients.

Definition at line 163 of file janafThermoI.H.

References janafThermo< EquationOfState >::Cp().

Referenced by janafThermo< EquationOfState >::operator+=(), janafThermo< EquationOfState >::typeName(), and janafThermo< EquationOfState >::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Cp()

Foam::scalar Cp ( const scalar  p,
const scalar  T 
) const
inline

Heat capacity at constant pressure [J/kg/K].

Definition at line 171 of file janafThermoI.H.

References Cp(), and janafThermo< EquationOfState >::Hs().

Referenced by janafThermo< EquationOfState >::lowCpCoeffs(), and janafThermo< EquationOfState >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Ha()

Foam::scalar Ha ( const scalar  p,
const scalar  T 
) const
inline

Absolute enthalpy [J/kg].

Definition at line 196 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::Hs(), and janafThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

◆ Hs()

Foam::scalar Hs ( const scalar  p,
const scalar  T 
) const
inline

Sensible enthalpy [J/kg].

Definition at line 185 of file janafThermoI.H.

References janafThermo< EquationOfState >::Ha(), and janafThermo< EquationOfState >::Hf().

Referenced by janafThermo< EquationOfState >::Cp(), and janafThermo< EquationOfState >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Hf()

Foam::scalar Hf ( ) const
inline

Enthalpy of formation [J/kg].

Definition at line 211 of file janafThermoI.H.

References janafThermo< EquationOfState >::S(), and Foam::constant::standard::Tstd.

Referenced by janafThermo< EquationOfState >::Hs(), and janafThermo< EquationOfState >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ S()

Foam::scalar S ( const scalar  p,
const scalar  T 
) const
inline

Entropy [J/kg/K].

Definition at line 226 of file janafThermoI.H.

References janafThermo< EquationOfState >::Gstd(), Foam::log(), and Sp.

Referenced by janafThermo< EquationOfState >::Hf(), and janafThermo< EquationOfState >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Gstd()

Foam::scalar Gstd ( const scalar  T) const
inline

Gibbs free energy of the mixture in the standard state [J/kg].

Definition at line 242 of file janafThermoI.H.

References janafThermo< EquationOfState >::dCpdT(), and Foam::log().

Referenced by janafThermo< EquationOfState >::S(), and janafThermo< EquationOfState >::typeName().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dCpdT()

Foam::scalar dCpdT ( const scalar  p,
const scalar  T 
) const
inline

Temperature derivative of heat capacity at constant pressure.

Definition at line 261 of file janafThermoI.H.

Referenced by janafThermo< EquationOfState >::Gstd(), and janafThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

◆ operator+=()

void operator+= ( const janafThermo< EquationOfState > &  )
inline

Friends And Related Function Documentation

◆ operator+

janafThermo operator+ ( const janafThermo< EquationOfState > &  ,
const janafThermo< EquationOfState > &   
)
friend

◆ operator*

janafThermo operator* ( const scalar  ,
const janafThermo< EquationOfState > &   
)
friend

◆ operator==

janafThermo operator== ( const janafThermo< EquationOfState > &  ,
const janafThermo< EquationOfState > &   
)
friend

◆ operator

Ostream& operator ( Ostream ,
const janafThermo< EquationOfState > &   
)
friend

Member Data Documentation

◆ nCoeffs_

const int nCoeffs_ = 7
static

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