hPowerThermo< EquationOfState > Class Template Reference

Power-function based thermodynamics package templated on EquationOfState. More...

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

Public Member Functions

 hPowerThermo (const dictionary &)
 Construct from dictionary. More...
 
 hPowerThermo (const word &, const hPowerThermo &)
 Construct as a named copy. More...
 
autoPtr< hPowerThermoclone () 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 operator+= (const hPowerThermo &)
 

Static Public Member Functions

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

Friends

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

Detailed Description

template<class EquationOfState>
class Foam::hPowerThermo< EquationOfState >

Power-function based thermodynamics package templated on EquationOfState.

In this thermodynamics package the heat capacity is a simple power of temperature:

Cp(T) = c0*(T/Tref)^n0;

which is particularly suitable for solids.

Source files

Definition at line 54 of file hPowerThermo.H.

Constructor & Destructor Documentation

◆ hPowerThermo() [1/2]

hPowerThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 33 of file hPowerThermo.C.

References Ostream::write().

Here is the call graph for this function:

◆ hPowerThermo() [2/2]

hPowerThermo ( const word name,
const hPowerThermo< EquationOfState > &  jt 
)
inline

Construct as a named copy.

Definition at line 49 of file hPowerThermoI.H.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 84 of file hPowerThermoI.H.

◆ New()

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

Selector from dictionary.

Definition at line 95 of file hPowerThermoI.H.

References dict, and hPowerThermo< 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 108 of file hPowerThermoI.H.

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

Referenced by hPowerThermo< EquationOfState >::New(), and hPowerThermo< 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 118 of file hPowerThermoI.H.

References Cp(), hPowerThermo< EquationOfState >::Hs(), and Foam::pow().

Referenced by hPowerThermo< EquationOfState >::limit(), and hPowerThermo< 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 142 of file hPowerThermoI.H.

References Hs().

Referenced by hPowerThermo< EquationOfState >::Hs(), and hPowerThermo< 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 129 of file hPowerThermoI.H.

References hPowerThermo< EquationOfState >::Ha(), Foam::pow(), and Foam::constant::standard::Tstd.

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

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

◆ Hf()

Foam::scalar Hf ( ) const
inline

Enthalpy of formation [J/kg].

Definition at line 152 of file hPowerThermoI.H.

References hPowerThermo< EquationOfState >::S().

Referenced by hPowerThermo< 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 160 of file hPowerThermoI.H.

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

Referenced by hPowerThermo< EquationOfState >::Hf(), and hPowerThermo< 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 173 of file hPowerThermoI.H.

References hPowerThermo< EquationOfState >::dCpdT(), Foam::pow(), and Foam::constant::standard::Tstd.

Referenced by hPowerThermo< EquationOfState >::S(), and hPowerThermo< 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 186 of file hPowerThermoI.H.

References NotImplemented.

Referenced by hPowerThermo< EquationOfState >::Gstd(), and hPowerThermo< EquationOfState >::typeName().

Here is the caller graph for this function:

◆ operator+=()

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

Definition at line 201 of file hPowerThermoI.H.

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

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

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

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator

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

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