hRefConstThermo< EquationOfState > Class Template Reference

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

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

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 46 of file hRefConstThermo.H.

Constructor & Destructor Documentation

◆ hRefConstThermo() [1/2]

hRefConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 32 of file hRefConstThermo.C.

◆ hRefConstThermo() [2/2]

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

Construct as named copy.

Definition at line 50 of file hRefConstThermoI.H.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 65 of file hRefConstThermoI.H.

◆ New()

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

Selector from dictionary.

Definition at line 76 of file hRefConstThermoI.H.

References dict, and hRefConstThermo< EquationOfState >::limit().

Here is the call graph for this function:

◆ typeName()

◆ limit()

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

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

Definition at line 89 of file hRefConstThermoI.H.

References hRefConstThermo< EquationOfState >::Cp(), and Foam::T().

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

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 99 of file hRefConstThermoI.H.

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

Referenced by hRefConstThermo< EquationOfState >::limit(), and hRefConstThermo< 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 127 of file hRefConstThermoI.H.

References hRefConstThermo< EquationOfState >::Hc(), hRefConstThermo< EquationOfState >::Hs(), and hRefConstThermo< EquationOfState >::S().

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

Here is the call graph for this function:
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 110 of file hRefConstThermoI.H.

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

Here is the caller graph for this function:

◆ Hc()

Foam::scalar Hc ( ) const
inline

Chemical enthalpy [J/kg].

Definition at line 119 of file hRefConstThermoI.H.

References hRefConstThermo< EquationOfState >::Ha().

Referenced by hRefConstThermo< EquationOfState >::Ha(), and hRefConstThermo< 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 137 of file hRefConstThermoI.H.

References hRefConstThermo< EquationOfState >::dGdT(), Foam::log(), and Foam::constant::standard::Tstd.

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

Here is the call graph for this function:
Here is the caller 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 147 of file hRefConstThermoI.H.

References hRefConstThermo< EquationOfState >::dCpdT().

Referenced by hRefConstThermo< EquationOfState >::S(), and hRefConstThermo< 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 157 of file hRefConstThermoI.H.

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

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 45 of file hRefConstThermo.C.

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::blockMeshTools::write(), and Ostream::write().

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

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

◆ operator+=()

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

Definition at line 169 of file hRefConstThermoI.H.

References Foam::mag(), s(), and Y.

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

Here is the call graph for this function:
Here is the caller 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: