janafThermo< EquationOfState > Class Template Reference

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

Inheritance diagram for janafThermo< EquationOfState >:
[legend]
Collaboration diagram for janafThermo< EquationOfState >:
[legend]

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 Hc () const
 Chemical enthalpy [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 constexpr 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 91 of file janafThermo.H.

Member Typedef Documentation

◆ coeffArray

typedef FixedList<scalar, nCoeffs_> coeffArray

Definition at line 100 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 62 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 91 of file janafThermoI.H.

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

Here is the call graph for this function:

Member Function Documentation

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 149 of file janafThermo.H.

◆ limit()

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

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

Definition at line 113 of file janafThermoI.H.

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

Here is the call graph for this function:

◆ Tlow()

Foam::scalar Tlow
inline

Return const access to the low temperature limit.

Definition at line 136 of file janafThermoI.H.

◆ Thigh()

Foam::scalar Thigh
inline

Return const access to the high temperature limit.

Definition at line 143 of file janafThermoI.H.

◆ Tcommon()

Foam::scalar Tcommon
inline

Return const access to the common temperature.

Definition at line 150 of file janafThermoI.H.

◆ highCpCoeffs()

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

Return const access to the high temperature poly coefficients.

Definition at line 158 of file janafThermoI.H.

◆ lowCpCoeffs()

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

Return const access to the low temperature poly coefficients.

Definition at line 166 of file janafThermoI.H.

◆ Cp()

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

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

Definition at line 173 of file janafThermoI.H.

References p, and T.

◆ Ha()

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

Absolute Enthalpy [J/kg].

Definition at line 187 of file janafThermoI.H.

References p, and T.

◆ Hs()

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

Sensible enthalpy [J/kg].

Definition at line 203 of file janafThermoI.H.

References Ha(), p, and T.

Here is the call graph for this function:

◆ Hc()

Foam::scalar Hc
inline

Chemical enthalpy [J/kg].

Definition at line 214 of file janafThermoI.H.

References Foam::constant::thermodynamic::Tstd.

◆ S()

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

Entropy [J/(kg K)].

Definition at line 228 of file janafThermoI.H.

References Foam::log(), p, and T.

Here is the call 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 244 of file janafThermoI.H.

References Foam::log(), and T.

Here is the call 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 263 of file janafThermoI.H.

References T.

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 85 of file janafThermo.C.

References Ostream::beginBlock(), Ostream::endBlock(), os(), R, and Ostream::writeEntry().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 277 of file janafThermoI.H.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), Foam::max(), Foam::min(), Foam::name(), Foam::notEqual(), and Y.

Here is the call graph for this function:

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_

constexpr int nCoeffs_ = 7
staticconstexpr

Definition at line 99 of file janafThermo.H.

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


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