eRefConstThermo< EquationOfState > Class Template Reference

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

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 48 of file eRefConstThermo.H.

Constructor & Destructor Documentation

◆ eRefConstThermo() [1/2]

eRefConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 34 of file eRefConstThermo.C.

◆ eRefConstThermo() [2/2]

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

Construct as named copy.

Definition at line 52 of file eRefConstThermoI.H.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 67 of file eRefConstThermoI.H.

◆ New()

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

Selector from dictionary.

Definition at line 78 of file eRefConstThermoI.H.

References dict.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 129 of file eRefConstThermo.H.

◆ limit()

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

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

Definition at line 91 of file eRefConstThermoI.H.

References Foam::T().

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

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

Here is the call graph for this function:

◆ Es()

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

Sensible internal energy [J/kg].

Definition at line 112 of file eRefConstThermoI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Ea()

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

Absolute internal energy [J/kg].

Definition at line 129 of file eRefConstThermoI.H.

References Es(), 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 121 of file eRefConstThermoI.H.

◆ S()

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

Entropy [J/(kg K)].

Definition at line 139 of file eRefConstThermoI.H.

References Cp, 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 149 of file eRefConstThermoI.H.

◆ dCpdT()

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

Temperature derivative of heat capacity at constant pressure.

Definition at line 159 of file eRefConstThermoI.H.

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 47 of file eRefConstThermo.C.

References dictionary::add(), dict, dictionary::dictName(), Foam::indent(), and Foam::vtk::write().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 171 of file eRefConstThermoI.H.

References Foam::mag(), and Y.

Here is the call 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: