eRefConstThermo< EquationOfState > Class Template Reference

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

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

Public Member Functions

 eRefConstThermo (const dictionary &dict)
 Construct from dictionary. More...
 
 eRefConstThermo (const word &, const eRefConstThermo &)
 Construct as named copy. More...
 
autoPtr< eRefConstThermoclone () 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 Cv (const scalar p, const scalar T) const
 Heat capacity at constant volume [J/kg/K]. More...
 
scalar Es (const scalar p, const scalar T) const
 Sensible internal energy [J/kg]. More...
 
scalar Ea (const scalar p, const scalar T) const
 Absolute internal energy [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 eRefConstThermo &)
 

Static Public Member Functions

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

Friends

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

Detailed Description

template<class EquationOfState>
class Foam::eRefConstThermo< EquationOfState >

Constant properties thermodynamics package templated into the EquationOfState.

Source files

Definition at line 46 of file eRefConstThermo.H.

Constructor & Destructor Documentation

◆ eRefConstThermo() [1/2]

eRefConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 32 of file eRefConstThermo.C.

◆ eRefConstThermo() [2/2]

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

Construct as named copy.

Definition at line 50 of file eRefConstThermoI.H.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 65 of file eRefConstThermoI.H.

◆ New()

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

Selector from dictionary.

Definition at line 76 of file eRefConstThermoI.H.

References dict, and eRefConstThermo< 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 eRefConstThermoI.H.

References eRefConstThermo< EquationOfState >::Cv(), and Foam::T().

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

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

◆ Cv()

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

Heat capacity at constant volume [J/kg/K].

Definition at line 99 of file eRefConstThermoI.H.

References Cv(), and eRefConstThermo< EquationOfState >::Es().

Referenced by eRefConstThermo< EquationOfState >::limit(), and eRefConstThermo< EquationOfState >::typeName().

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

◆ Es()

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

Sensible internal energy [J/kg].

Definition at line 110 of file eRefConstThermoI.H.

Referenced by eRefConstThermo< EquationOfState >::Cv(), eRefConstThermo< EquationOfState >::Ea(), and eRefConstThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

◆ Ea()

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

Absolute internal energy [J/kg].

Definition at line 127 of file eRefConstThermoI.H.

References eRefConstThermo< EquationOfState >::Es(), eRefConstThermo< EquationOfState >::Hc(), and eRefConstThermo< EquationOfState >::S().

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

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

◆ Hc()

Foam::scalar Hc ( ) const
inline

Chemical enthalpy [J/kg].

Definition at line 119 of file eRefConstThermoI.H.

References eRefConstThermo< EquationOfState >::Ea().

Referenced by eRefConstThermo< EquationOfState >::Ea(), and eRefConstThermo< 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 eRefConstThermoI.H.

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

Referenced by eRefConstThermo< EquationOfState >::Ea(), and eRefConstThermo< 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 eRefConstThermoI.H.

References eRefConstThermo< EquationOfState >::dCpdT().

Referenced by eRefConstThermo< EquationOfState >::S(), and eRefConstThermo< 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 eRefConstThermoI.H.

Referenced by eRefConstThermo< EquationOfState >::dGdT(), and eRefConstThermo< 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 eRefConstThermo.C.

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

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

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

◆ operator+=()

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

Definition at line 169 of file eRefConstThermoI.H.

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

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

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

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator

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

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