Public Member Functions | Static Public Member Functions | Friends | List of all members
eConstThermo< EquationOfState > Class Template Reference

Constant properties thermodynamics package templated on an equation of state. More...

Inheritance diagram for eConstThermo< EquationOfState >:
Inheritance graph
[legend]
Collaboration diagram for eConstThermo< EquationOfState >:
Collaboration graph
[legend]

Public Member Functions

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

Static Public Member Functions

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

Friends

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

Detailed Description

template<class EquationOfState>
class Foam::eConstThermo< EquationOfState >

Constant properties thermodynamics package templated on an equation of state.

Source files

Definition at line 48 of file eConstThermo.H.

Constructor & Destructor Documentation

◆ eConstThermo() [1/2]

eConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 32 of file eConstThermo.C.

◆ eConstThermo() [2/2]

eConstThermo ( const word ,
const eConstThermo< EquationOfState > &   
)
inline

Construct as named copy.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 59 of file eConstThermoI.H.

◆ New()

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

Definition at line 70 of file eConstThermoI.H.

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

Here is the call graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

◆ limit()

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

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

Definition at line 83 of file eConstThermoI.H.

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

Referenced by eConstThermo< EquationOfState >::New(), and eConstThermo< 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 93 of file eConstThermoI.H.

References eConstThermo< EquationOfState >::Ha().

Referenced by eConstThermo< EquationOfState >::Ha(), eConstThermo< EquationOfState >::Hs(), eConstThermo< EquationOfState >::limit(), eConstThermo< EquationOfState >::S(), and eConstThermo< 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 104 of file eConstThermoI.H.

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

Referenced by eConstThermo< EquationOfState >::Cp(), and eConstThermo< 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 115 of file eConstThermoI.H.

References eConstThermo< EquationOfState >::Cp().

Referenced by eConstThermo< EquationOfState >::Ha(), and eConstThermo< 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 125 of file eConstThermoI.H.

References eConstThermo< EquationOfState >::S().

Referenced by eConstThermo< 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 133 of file eConstThermoI.H.

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

Referenced by eConstThermo< EquationOfState >::Hc(), and eConstThermo< 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 144 of file eConstThermoI.H.

References eConstThermo< EquationOfState >::dCpdT().

Referenced by eConstThermo< EquationOfState >::S(), and eConstThermo< 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 155 of file eConstThermoI.H.

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

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 43 of file eConstThermo.C.

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

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

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

◆ operator+=()

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

Definition at line 168 of file eConstThermoI.H.

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

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

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

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator

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

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