ePowerThermo< EquationOfState > Class Template Reference

Internal energy based thermodynamics package using a power function of temperature for the constant heat capacity at constant volume which is particularly suitable for solids at low temperatures: More...

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

Public Member Functions

 ePowerThermo (const EquationOfState &st, const scalar c0, const scalar n0, const scalar Tref, const scalar hf)
 Construct from components. More...
 
 ePowerThermo (const word &name, const dictionary &dict)
 Construct from name and dictionary. More...
 
 ePowerThermo (const word &, const ePowerThermo &)
 Construct as a named copy. More...
 
autoPtr< ePowerThermoclone () 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 Cv (const scalar p, const scalar T) const
 Heat capacity at constant volume [J/kg/K]. More...
 
scalar es (const scalar p, const scalar T) const
 Sensible internal energy [J/kg]. More...
 
scalar ea (const scalar p, const scalar T) const
 Absolute internal energy [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 ePowerThermo &)
 

Static Public Member Functions

static word typeName ()
 Return the instantiated type name. More...
 

Friends

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

Detailed Description

template<class EquationOfState>
class Foam::ePowerThermo< EquationOfState >

Internal energy based thermodynamics package using a power function of temperature for the constant heat capacity at constant volume which is particularly suitable for solids at low temperatures:

    Cv = c0*pow(T/Tref, n0)
Usage
Property Description
c0 Reference heat capacity at constant volume [J/kg/K]
n0 Exponent of the power function
Tref Reference temperature [K]
hf Heat of formation [J/kg]

Example specification of ePowerThermo:

    thermodynamics
    {
        c0          230;
        Tref        470;
        n0          3;
        hf          0;
    }
Source files

Definition at line 126 of file ePowerThermo.H.

Constructor & Destructor Documentation

◆ ePowerThermo() [1/3]

ePowerThermo ( const EquationOfState &  st,
const scalar  c0,
const scalar  n0,
const scalar  Tref,
const scalar  hf 
)
inline

Construct from components.

Definition at line 50 of file ePowerThermoI.H.

◆ ePowerThermo() [2/3]

ePowerThermo ( const word name,
const dictionary dict 
)

Construct from name and dictionary.

Definition at line 32 of file ePowerThermo.C.

◆ ePowerThermo() [3/3]

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

Construct as a named copy.

Definition at line 68 of file ePowerThermoI.H.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 84 of file ePowerThermoI.H.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 175 of file ePowerThermo.H.

◆ limit()

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

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

Definition at line 96 of file ePowerThermoI.H.

References Foam::T().

Here is the call graph for this function:

◆ Cv()

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

Heat capacity at constant volume [J/kg/K].

Definition at line 106 of file ePowerThermoI.H.

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

Here is the call graph for this function:

◆ es()

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

Sensible internal energy [J/kg].

Definition at line 117 of file ePowerThermoI.H.

References Foam::constant::electromagnetic::e, p, Foam::pow(), Foam::T(), and Foam::constant::standard::Tstd.

Here is the call graph for this function:

◆ ea()

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

Absolute internal energy [J/kg].

Definition at line 130 of file ePowerThermoI.H.

References es(), 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 141 of file ePowerThermoI.H.

◆ s()

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

Entropy [J/kg/K].

Definition at line 148 of file ePowerThermoI.H.

References p, Foam::pow(), 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 161 of file ePowerThermoI.H.

References Foam::pow(), Foam::constant::standard::Pstd, rho, s(), 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 174 of file ePowerThermoI.H.

References NotImplemented.

◆ operator+=()

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

Definition at line 188 of file ePowerThermoI.H.

References Foam::mag(), and Y.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator

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

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