hRefConstThermo< EquationOfState > Class Template Reference

Constant properties thermodynamics package templated into the EquationOfState. More...

Public Member Functions

 hRefConstThermo (const dictionary &dict)
 Construct from dictionary. More...
 
 hRefConstThermo (const word &, const hRefConstThermo &)
 Construct as named copy. More...
 
autoPtr< hRefConstThermoclone () const
 Construct and return a clone. More...
 
scalar limit (const scalar T) const
 Limit the temperature to be in the range Tlow_ to Thigh_. 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 dGdT (const scalar p, const scalar T) const
 Derivative of Gibbs free energy w.r.t. temperature. 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 hRefConstThermo &)
 

Static Public Member Functions

static autoPtr< hRefConstThermoNew (const dictionary &dict)
 Selector from dictionary. More...
 
static word typeName ()
 Return the instantiated type name. More...
 

Friends

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

Detailed Description

template<class EquationOfState>
class Foam::hRefConstThermo< EquationOfState >

Constant properties thermodynamics package templated into the EquationOfState.

Source files

Definition at line 51 of file hRefConstThermo.H.

Constructor & Destructor Documentation

◆ hRefConstThermo() [1/2]

hRefConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 34 of file hRefConstThermo.C.

◆ hRefConstThermo() [2/2]

hRefConstThermo ( const word name,
const hRefConstThermo< EquationOfState > &  ct 
)
inline

Construct as named copy.

Definition at line 52 of file hRefConstThermoI.H.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::hRefConstThermo< EquationOfState > > clone ( ) const
inline

Construct and return a clone.

Definition at line 67 of file hRefConstThermoI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

Foam::autoPtr< Foam::hRefConstThermo< EquationOfState > > New ( const dictionary dict)
inlinestatic

Selector from dictionary.

Definition at line 75 of file hRefConstThermoI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 132 of file hRefConstThermo.H.

◆ limit()

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

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

Definition at line 85 of file hRefConstThermoI.H.

References Foam::T().

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

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

Here is the call graph for this function:

◆ Ha()

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

Absolute Enthalpy [J/kg].

Definition at line 106 of file hRefConstThermoI.H.

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

Here is the call graph for this function:

◆ Hs()

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

Sensible enthalpy [J/kg].

Definition at line 116 of file hRefConstThermoI.H.

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

Here is the call graph for this function:

◆ Hc()

Foam::scalar Hc ( ) const
inline

Chemical enthalpy [J/kg].

Definition at line 125 of file hRefConstThermoI.H.

◆ S()

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

Entropy [J/(kg K)].

Definition at line 133 of file hRefConstThermoI.H.

References Foam::log(), p, Foam::T(), and Foam::constant::standard::Tstd.

Here is the call graph for this function:

◆ dGdT()

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

Derivative of Gibbs free energy w.r.t. temperature.

Definition at line 143 of file hRefConstThermoI.H.

◆ dCpdT()

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

Temperature derivative of heat capacity at constant pressure.

Definition at line 153 of file hRefConstThermoI.H.

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 47 of file hRefConstThermo.C.

References Ostream::beginBlock(), Ostream::endBlock(), Foam::vtk::write(), and Ostream::writeEntry().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 165 of file hRefConstThermoI.H.

References Foam::mag(), and Y.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator

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

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