eConstThermo< EquationOfState > Class Template Reference

Internal energy based thermodynamics package using a constant heat capacity at constant volume. More...

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

Public Member Functions

 eConstThermo (const EquationOfState &st, const scalar Cv, const scalar hf, const scalar Tref, const scalar esRef)
 Construct from components. More...
 
 eConstThermo (const word &name, const dictionary &dict)
 Construct from name and dictionary. More...
 
 eConstThermo (const word &, const eConstThermo &)
 Construct as named copy. More...
 
autoPtr< eConstThermoclone () 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 write (Ostream &os) const
 Write to Ostream. More...
 
void operator+= (const eConstThermo &)
 

Static Public Member Functions

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

Friends

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

Detailed Description

template<class EquationOfState>
class Foam::eConstThermo< EquationOfState >

Internal energy based thermodynamics package using a constant heat capacity at constant volume.

The sensible internal energy is evaluated as:

    es = Cv*(T - Tref) + esRef
Usage
Property Description
Cv Constant Heat capacity at constant volume [J/kg/K]
Tref Reference temperature [K] (defaults to Tstd)
esRef Reference sensible internal energy [J/kg] (defaults to 0)
hf Heat of formation [J/kg]

Example specification of eConstThermo for air:

    thermodynamics
    {
        Cv          724;
        hf          0;
    }
Source files

Definition at line 120 of file eConstThermo.H.

Constructor & Destructor Documentation

◆ eConstThermo() [1/3]

eConstThermo ( const EquationOfState &  st,
const scalar  Cv,
const scalar  hf,
const scalar  Tref,
const scalar  esRef 
)
inline

Construct from components.

Definition at line 29 of file eConstThermoI.H.

◆ eConstThermo() [2/3]

eConstThermo ( const word name,
const dictionary dict 
)

Construct from name and dictionary.

Definition at line 32 of file eConstThermo.C.

◆ eConstThermo() [3/3]

eConstThermo ( const word name,
const eConstThermo< EquationOfState > &  ct 
)
inline

Construct as named copy.

Definition at line 47 of file eConstThermoI.H.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 63 of file eConstThermoI.H.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 166 of file eConstThermo.H.

◆ limit()

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

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

Definition at line 75 of file eConstThermoI.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 85 of file eConstThermoI.H.

References Cv(), p, 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 96 of file eConstThermoI.H.

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

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 107 of file eConstThermoI.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 118 of file eConstThermoI.H.

◆ s()

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

Entropy [J/kg/K].

Definition at line 125 of file eConstThermoI.H.

References Cp(), Foam::log(), p, 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 136 of file eConstThermoI.H.

References Foam::constant::standard::Pstd, rho, s(), and Foam::T().

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 148 of file eConstThermoI.H.

References NotImplemented.

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 59 of file eConstThermo.C.

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::constant::standard::Tstd, and Foam::vtkWriteOps::write().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 162 of file eConstThermoI.H.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::mag(), Foam::name(), Foam::notEqual(), and Y.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator

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

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