hConstThermo< EquationOfState > Class Template Reference

Enthalpy based thermodynamics package using a constant heat capacity at constant pressure. More...

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

Public Member Functions

 hConstThermo (const EquationOfState &st, const scalar Cp, const scalar hf, const scalar Tref, const scalar hsRef)
 Construct from components. More...
 
 hConstThermo (const word &name, const dictionary &dict)
 Construct from name and 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 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 >

Enthalpy based thermodynamics package using a constant heat capacity at constant pressure.

The sensible enthalpy is evaluated as:

    hs = Cp*(T - Tref) + hsRef
Usage
Property Description
Cp Constant Heat capacity at constant pressure [J/kg/K]
Tref Reference temperature [K] (defaults to Tstd)
hsRef Reference sensible enthalpy [J/kg] (defaults to 0)
hf Heat of formation [J/kg]

Example specification of hConstThermo for air:

    thermodynamics
    {
        Cp          1007;
        hf          0;
    }
Source files

Definition at line 120 of file hConstThermo.H.

Constructor & Destructor Documentation

◆ hConstThermo() [1/3]

hConstThermo ( const EquationOfState &  st,
const scalar  Cp,
const scalar  hf,
const scalar  Tref,
const scalar  hsRef 
)
inline

Construct from components.

Definition at line 29 of file hConstThermoI.H.

◆ hConstThermo() [2/3]

hConstThermo ( const word name,
const dictionary dict 
)

Construct from name and dictionary.

Definition at line 32 of file hConstThermo.C.

◆ hConstThermo() [3/3]

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

Construct as named copy.

Definition at line 47 of file hConstThermoI.H.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::hConstThermo< EquationOfState > > clone
inline

Construct and return a clone.

Definition at line 63 of file hConstThermoI.H.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 166 of file hConstThermo.H.

◆ limit()

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

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

Definition at line 75 of file hConstThermoI.H.

References Foam::T().

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

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

Here is the call graph for this function:

◆ ha()

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

Absolute enthalpy [J/kg].

Definition at line 107 of file hConstThermoI.H.

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

Here is the call graph for this function:

◆ hs()

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

Sensible enthalpy [J/kg].

Definition at line 96 of file hConstThermoI.H.

References Foam::constant::universal::h, p, and Foam::T().

Here is the call graph for this function:

◆ hf()

Foam::scalar hf
inline

Enthalpy of formation [J/kg].

Definition at line 118 of file hConstThermoI.H.

◆ s()

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

Entropy [J/kg/K].

Definition at line 125 of file hConstThermoI.H.

References Foam::log(), p, Foam::T(), and Foam::constant::standard::Tstd.

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

References Foam::log(), Foam::T(), and Foam::constant::standard::Tstd.

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

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 59 of file hConstThermo.C.

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

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 159 of file hConstThermoI.H.

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

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