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 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, Foam::fvm::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: