All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hConstThermo< EquationOfState > Class Template Reference

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

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

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 Hf () const
 Enthalpy of formation [J/kg]. More...
 
scalar S (const scalar p, const scalar T) const
 Entropy [J/kg/K]. More...
 
scalar Gstd (const scalar T) const
 Gibbs free energy of the mixture in the standard state [J/kg]. 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 46 of file hConstThermo.H.

Constructor & Destructor Documentation

◆ hConstThermo() [1/2]

hConstThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 32 of file hConstThermo.C.

◆ hConstThermo() [2/2]

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

Construct as named copy.

Definition at line 50 of file hConstThermoI.H.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 65 of file hConstThermoI.H.

◆ New()

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

Selector from dictionary.

Definition at line 76 of file hConstThermoI.H.

References dict, and hConstThermo< 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 hConstThermoI.H.

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

Referenced by hConstThermo< EquationOfState >::New(), and hConstThermo< 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 hConstThermoI.H.

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

Referenced by hConstThermo< EquationOfState >::limit(), and hConstThermo< 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 128 of file hConstThermoI.H.

References hConstThermo< EquationOfState >::Hf(), hConstThermo< EquationOfState >::Hs(), and hConstThermo< EquationOfState >::S().

Referenced by hConstThermo< EquationOfState >::Hf(), and hConstThermo< 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 hConstThermoI.H.

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

Here is the caller graph for this function:

◆ Hf()

Foam::scalar Hf ( ) const
inline

Enthalpy of formation [J/kg].

Definition at line 120 of file hConstThermoI.H.

References hConstThermo< EquationOfState >::Ha().

Referenced by hConstThermo< EquationOfState >::Gstd(), hConstThermo< EquationOfState >::Ha(), and hConstThermo< 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 139 of file hConstThermoI.H.

References hConstThermo< EquationOfState >::Gstd(), Foam::log(), Sp, and Foam::constant::standard::Tstd.

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

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

◆ Gstd()

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

Gibbs free energy of the mixture in the standard state [J/kg].

Definition at line 150 of file hConstThermoI.H.

References hConstThermo< EquationOfState >::dCpdT(), hConstThermo< EquationOfState >::Hf(), Foam::log(), and Foam::constant::standard::Tstd.

Referenced by hConstThermo< EquationOfState >::S(), and hConstThermo< 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 160 of file hConstThermoI.H.

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

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::constant::standard::Tstd, Foam::vtkWriteOps::write(), and Ostream::write().

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

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

◆ operator+=()

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

Definition at line 173 of file hConstThermoI.H.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), Foam::name(), Foam::notEqual(), s(), and Y.

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

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