Loading...
Searching...
No Matches
hPowerThermo< EquationOfState > Class Template Reference

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

#include <hPowerThermo.H>

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

Public Member Functions

 hPowerThermo (const dictionary &)
 Construct from dictionary.
 hPowerThermo (const word &, const hPowerThermo &)
 Construct as a named copy.
autoPtr< hPowerThermoclone () const
 Construct and return a clone.
scalar limit (const scalar T) const
 Limit temperature to be within the range.
scalar Cp (const scalar p, const scalar T) const
 Heat capacity at constant pressure [J/(kg K)].
scalar Ha (const scalar p, const scalar T) const
 Absolute Enthalpy [J/kg].
scalar Hs (const scalar p, const scalar T) const
 Sensible enthalpy [J/kg].
scalar Hc () const
 Chemical enthalpy [J/kg].
scalar S (const scalar p, const scalar T) const
 Entropy [J/(kg K)].
scalar Gstd (const scalar T) const
 Gibbs free energy of the mixture in the standard state [J/kg].
scalar Cv (const scalar p, const scalar T) const
scalar Es (const scalar p, const scalar T) const
scalar Ea (const scalar p, const scalar T) const
scalar dCpdT (const scalar p, const scalar T) const
 Temperature derivative of heat capacity at constant pressure.
void operator+= (const hPowerThermo &)

Static Public Member Functions

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

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 94 of file hPowerThermo.H.

Constructor & Destructor Documentation

◆ hPowerThermo() [1/2]

template<class EquationOfState>
hPowerThermo ( const dictionary & dict)

Construct from dictionary.

Definition at line 27 of file hPowerThermo.C.

References dict.

◆ hPowerThermo() [2/2]

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

Construct as a named copy.

Definition at line 44 of file hPowerThermoI.H.

References Foam::name().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 80 of file hPowerThermoI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

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

Selector from dictionary.

Definition at line 88 of file hPowerThermoI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

template<class EquationOfState>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 160 of file hPowerThermo.H.

◆ limit()

template<class EquationOfState>
Foam::scalar limit ( const scalar T) const
inline

Limit temperature to be within the range.

Definition at line 97 of file hPowerThermoI.H.

References Foam::T().

Here is the call graph for this function:

◆ Cp()

template<class EquationOfState>
Foam::scalar Cp ( const scalar p,
const scalar T ) const
inline

Heat capacity at constant pressure [J/(kg K)].

Definition at line 107 of file hPowerThermoI.H.

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

Here is the call graph for this function:

◆ Ha()

template<class EquationOfState>
Foam::scalar Ha ( const scalar p,
const scalar T ) const
inline

Absolute Enthalpy [J/kg].

Definition at line 117 of file hPowerThermoI.H.

References Hc(), Hs(), p, and Foam::T().

Here is the call graph for this function:

◆ Hs()

template<class EquationOfState>
Foam::scalar Hs ( const scalar p,
const scalar T ) const
inline

Sensible enthalpy [J/kg].

Definition at line 127 of file hPowerThermoI.H.

References p, Foam::pow(), Foam::T(), and Foam::constant::thermodynamic::Tstd.

Here is the call graph for this function:

◆ Hc()

template<class EquationOfState>
Foam::scalar Hc ( ) const
inline

Chemical enthalpy [J/kg].

Definition at line 139 of file hPowerThermoI.H.

Referenced by Gstd(), and Ha().

Here is the caller graph for this function:

◆ S()

template<class EquationOfState>
Foam::scalar S ( const scalar p,
const scalar T ) const
inline

Entropy [J/(kg K)].

Definition at line 146 of file hPowerThermoI.H.

References p, Foam::pow(), Foam::T(), and Foam::constant::thermodynamic::Tstd.

Here is the call graph for this function:

◆ Gstd()

template<class EquationOfState>
Foam::scalar Gstd ( const scalar T) const
inline

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

Definition at line 158 of file hPowerThermoI.H.

References Hc(), Foam::pow(), Foam::T(), and Foam::constant::thermodynamic::Tstd.

Here is the call graph for this function:

◆ Cv()

template<class EquationOfState>
scalar Cv ( const scalar p,
const scalar T ) const
inline

Definition at line 2 of file hPowerThermo.H.

◆ Es()

template<class EquationOfState>
scalar Es ( const scalar p,
const scalar T ) const
inline

Definition at line 17 of file hPowerThermo.H.

◆ Ea()

template<class EquationOfState>
scalar Ea ( const scalar p,
const scalar T ) const
inline

Definition at line 32 of file hPowerThermo.H.

◆ dCpdT()

template<class EquationOfState>
Foam::scalar dCpdT ( const scalar p,
const scalar T ) const
inline

Temperature derivative of heat capacity at constant pressure.

Definition at line 171 of file hPowerThermoI.H.

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

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 185 of file hPowerThermoI.H.

References Foam::mag(), and Y.

Here is the call graph for this function:

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator<<

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

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