hConstThermo< EquationOfState > Class Template Reference

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

Public Member Functions

 hConstThermo (const dictionary &dict)
 Construct from dictionary. More...
 
 hConstThermo (const word &, const hConstThermo &)
 Construct as named copy. More...
 
autoPtr< hConstThermoclone () 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 hConstThermo &)
 

Static Public Member Functions

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

Friends

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

Detailed Description

template<class EquationOfState>
class Foam::hConstThermo< EquationOfState >

Constant properties thermodynamics package templated into the EquationOfState.

Source files

Definition at line 51 of file hConstThermo.H.

Constructor & Destructor Documentation

◆ hConstThermo() [1/2]

hConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 34 of file hConstThermo.C.

◆ hConstThermo() [2/2]

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

Construct as named copy.

Definition at line 48 of file hConstThermoI.H.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 61 of file hConstThermoI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

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

Selector from dictionary.

Definition at line 69 of file hConstThermoI.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 128 of file hConstThermo.H.

◆ limit()

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

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

Definition at line 79 of file hConstThermoI.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 89 of file hConstThermoI.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 100 of file hConstThermoI.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 110 of file hConstThermoI.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 119 of file hConstThermoI.H.

◆ S()

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

Entropy [J/(kg K)].

Definition at line 127 of file hConstThermoI.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 137 of file hConstThermoI.H.

◆ dCpdT()

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

Temperature derivative of heat capacity at constant pressure.

Definition at line 147 of file hConstThermoI.H.

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 45 of file hConstThermo.C.

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

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 158 of file hConstThermoI.H.

References Foam::mag(), and Y.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator

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

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