ePowerThermo< EquationOfState > Class Template Reference

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

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

Public Member Functions

 ePowerThermo (const dictionary &)
 Construct from 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 autoPtr< ePowerThermoNew (const dictionary &dict)
 Selector from dictionary. More...
 
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 >

Power-function based thermodynamics package templated on EquationOfState.

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

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

which is particularly suitable for solids.

Source files

Definition at line 54 of file ePowerThermo.H.

Constructor & Destructor Documentation

◆ ePowerThermo() [1/2]

ePowerThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 33 of file ePowerThermo.C.

References Ostream::write().

Here is the call graph for this function:

◆ ePowerThermo() [2/2]

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

Construct as a named copy.

Definition at line 49 of file ePowerThermoI.H.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 84 of file ePowerThermoI.H.

◆ New()

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

Selector from dictionary.

Definition at line 95 of file ePowerThermoI.H.

References dict, and ePowerThermo< 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 ePowerThermoI.H.

References ePowerThermo< EquationOfState >::Cv(), and T.

Referenced by ePowerThermo< EquationOfState >::New(), and ePowerThermo< EquationOfState >::typeName().

Here is the call graph for this function:
Here is the caller 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 118 of file ePowerThermoI.H.

References Cv(), ePowerThermo< EquationOfState >::Es(), and Foam::pow().

Referenced by ePowerThermo< EquationOfState >::limit(), and ePowerThermo< EquationOfState >::typeName().

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

◆ Es()

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

Sensible internal energy [J/kg].

Definition at line 129 of file ePowerThermoI.H.

References ePowerThermo< EquationOfState >::Ea(), Foam::pow(), and Foam::constant::standard::Tstd.

Referenced by ePowerThermo< EquationOfState >::Cv(), and ePowerThermo< EquationOfState >::typeName().

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

◆ Ea()

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

Absolute internal energy [J/kg].

Definition at line 142 of file ePowerThermoI.H.

References Es().

Referenced by ePowerThermo< EquationOfState >::Es(), and ePowerThermo< 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 ePowerThermoI.H.

References ePowerThermo< EquationOfState >::S().

Referenced by ePowerThermo< 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 ePowerThermoI.H.

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

Referenced by ePowerThermo< EquationOfState >::Hf(), and ePowerThermo< 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 ePowerThermoI.H.

References ePowerThermo< EquationOfState >::dCpdT(), Foam::pow(), Foam::constant::standard::Pstd, rho, Foam::fvm::S(), T, and Foam::constant::standard::Tstd.

Referenced by ePowerThermo< EquationOfState >::S(), and ePowerThermo< 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 ePowerThermoI.H.

References NotImplemented.

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

Here is the caller graph for this function:

◆ operator+=()

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

Definition at line 200 of file ePowerThermoI.H.

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

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

Here is the call graph for this function:
Here is the caller 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: