Loading...
Searching...
No Matches
janafThermo< EquationOfState > Class Template Reference

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

#include <janafThermo.H>

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.
 janafThermo (const dictionary &dict)
 Construct from dictionary.
 janafThermo (const word &, const janafThermo &)
 Construct as a named copy.
scalar limit (const scalar T) const
 Limit the temperature to be in the range Tlow_ to Thigh_.
scalar Tlow () const
 Return const access to the low temperature limit.
scalar Thigh () const
 Return const access to the high temperature limit.
scalar Tcommon () const
 Return const access to the common temperature.
const coeffArrayhighCpCoeffs () const
 Return const access to the high temperature poly coefficients.
const coeffArraylowCpCoeffs () const
 Return const access to the low temperature poly coefficients.
scalar Cp (const scalar p, const scalar T) const
 Heat capacity at constant pressure [J/(kg K)].
scalar Ha (const scalar p, const scalar T) const
 Absolute Enthalpy [J/kg].
scalar Hs (const scalar p, const scalar T) const
 Sensible enthalpy [J/kg].
scalar Hc () const
 Chemical enthalpy [J/kg].
scalar S (const scalar p, const scalar T) const
 Entropy [J/(kg K)].
scalar Gstd (const scalar T) const
 Gibbs free energy of the mixture in the standard state [J/kg].
scalar Cv (const scalar p, const scalar T) const
scalar Es (const scalar p, const scalar T) const
scalar Ea (const scalar p, const scalar T) const
scalar dCpdT (const scalar p, const scalar T) const
 Temperature derivative of heat capacity at constant pressure.
void write (Ostream &os) const
 Write to Ostream.
void operator+= (const janafThermo &)

Static Public Member Functions

static word typeName ()
 Return the instantiated type name.

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 87 of file janafThermo.H.

Member Typedef Documentation

◆ coeffArray

template<class EquationOfState>
typedef FixedList<scalar, nCoeffs_> coeffArray

Definition at line 96 of file janafThermo.H.

Constructor & Destructor Documentation

◆ janafThermo() [1/3]

template<class EquationOfState>
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.

References dict, highCpCoeffs(), janafThermo(), lowCpCoeffs(), Tcommon(), Thigh(), and Tlow().

Referenced by Ea(), janafThermo(), janafThermo(), operator*, operator+, operator+=(), operator<<, and operator==.

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

◆ janafThermo() [2/3]

template<class EquationOfState>
janafThermo ( const dictionary & dict)

Construct from dictionary.

Definition at line 55 of file janafThermo.C.

References dict, nCoeffs_, and R.

◆ janafThermo() [3/3]

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

Construct as a named copy.

Definition at line 84 of file janafThermoI.H.

References janafThermo(), Foam::name(), and nCoeffs_.

Here is the call graph for this function:

Member Function Documentation

◆ typeName()

template<class EquationOfState>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 157 of file janafThermo.H.

◆ limit()

template<class EquationOfState>
Foam::scalar limit ( const scalar T) const
inline

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

Definition at line 106 of file janafThermoI.H.

References Foam::clamp(), Foam::endl(), Foam::T(), T, and WarningInFunction.

Here is the call graph for this function:

◆ Tlow()

template<class EquationOfState>
Foam::scalar Tlow ( ) const
inline

Return const access to the low temperature limit.

Definition at line 127 of file janafThermoI.H.

Referenced by janafThermo().

Here is the caller graph for this function:

◆ Thigh()

template<class EquationOfState>
Foam::scalar Thigh ( ) const
inline

Return const access to the high temperature limit.

Definition at line 134 of file janafThermoI.H.

Referenced by janafThermo().

Here is the caller graph for this function:

◆ Tcommon()

template<class EquationOfState>
Foam::scalar Tcommon ( ) const
inline

Return const access to the common temperature.

Definition at line 141 of file janafThermoI.H.

Referenced by janafThermo().

Here is the caller graph for this function:

◆ highCpCoeffs()

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

Return const access to the high temperature poly coefficients.

Definition at line 149 of file janafThermoI.H.

Referenced by janafThermo(), and write().

Here is the caller graph for this function:

◆ lowCpCoeffs()

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

Return const access to the low temperature poly coefficients.

Definition at line 157 of file janafThermoI.H.

Referenced by janafThermo(), and write().

Here is the caller graph for this function:

◆ Cp()

template<class EquationOfState>
Foam::scalar Cp ( const scalar p,
const scalar T ) const
inline

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

Definition at line 164 of file janafThermoI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Ha()

template<class EquationOfState>
Foam::scalar Ha ( const scalar p,
const scalar T ) const
inline

Absolute Enthalpy [J/kg].

Definition at line 178 of file janafThermoI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Hs()

template<class EquationOfState>
Foam::scalar Hs ( const scalar p,
const scalar T ) const
inline

Sensible enthalpy [J/kg].

Definition at line 194 of file janafThermoI.H.

References Ha(), Hc(), p, and Foam::T().

Here is the call graph for this function:

◆ Hc()

template<class EquationOfState>
Foam::scalar Hc ( ) const
inline

Chemical enthalpy [J/kg].

Definition at line 205 of file janafThermoI.H.

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

Referenced by Hs().

Here is the caller graph for this function:

◆ S()

template<class EquationOfState>
Foam::scalar S ( const scalar p,
const scalar T ) const
inline

Entropy [J/(kg K)].

Definition at line 219 of file janafThermoI.H.

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

Here is the call graph for this function:

◆ Gstd()

template<class EquationOfState>
Foam::scalar Gstd ( const scalar T) const
inline

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

Definition at line 235 of file janafThermoI.H.

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

Here is the call graph for this function:

◆ Cv()

template<class EquationOfState>
scalar Cv ( const scalar p,
const scalar T ) const
inline

Definition at line 2 of file janafThermo.H.

◆ Es()

template<class EquationOfState>
scalar Es ( const scalar p,
const scalar T ) const
inline

Definition at line 17 of file janafThermo.H.

◆ Ea()

template<class EquationOfState>
scalar Ea ( const scalar p,
const scalar T ) const
inline

Definition at line 32 of file janafThermo.H.

References janafThermo().

Here is the call graph for this function:

◆ dCpdT()

template<class EquationOfState>
Foam::scalar dCpdT ( const scalar p,
const scalar T ) const
inline

Temperature derivative of heat capacity at constant pressure.

Definition at line 254 of file janafThermoI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ write()

template<class EquationOfState>
void write ( Ostream & os) const

Write to Ostream.

Definition at line 78 of file janafThermo.C.

References Ostream::beginBlock(), highCpCoeffs(), lowCpCoeffs(), nCoeffs_, os(), and R.

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 268 of file janafThermoI.H.

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

Here is the call graph for this function:

◆ operator+

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

References janafThermo().

◆ operator*

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

References janafThermo().

◆ operator==

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

References janafThermo().

◆ operator<<

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

References janafThermo().

Member Data Documentation

◆ nCoeffs_

template<class EquationOfState>
int nCoeffs_ = 7
staticconstexpr

Definition at line 95 of file janafThermo.H.

Referenced by janafThermo(), janafThermo(), and write().


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