eTabulatedThermo< EquationOfState > Class Template Reference

Internal energy based thermodynamics package using uniform tabulated data for internal energy and heat capacity vs pressure and temperature. More...

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

Public Member Functions

 eTabulatedThermo (const dictionary &dict)
 Construct from dictionary. More...
 
 eTabulatedThermo (const word &, const eTabulatedThermo &)
 Construct as a named copy. More...
 
scalar limit (const scalar) const
 Limit the temperature to be in the range Tlow_ to Thigh_. More...
 
scalar Cp (const scalar p, const scalar T) const
 Heat capacity at constant pressure [J/kg/K]. More...
 
scalar Cv (const scalar p, const scalar T) const
 Heat capacity at constant pressure [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 Hs (const scalar p, const scalar T) const
 Sensible enthalpy [J/kg]. More...
 
scalar Ha (const scalar p, const scalar T) const
 Absolute enthalpy [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...
 

Static Public Member Functions

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

Friends

Ostreamoperator (Ostream &, const eTabulatedThermo &)
 

Detailed Description

template<class EquationOfState>
class Foam::eTabulatedThermo< EquationOfState >

Internal energy based thermodynamics package using uniform tabulated data for internal energy and heat capacity vs pressure and temperature.

Usage
Property Description
Hf Heat of formation
Sf Standard entropy
Es Sensible internal energy vs pressure and temperature table
Cv Specific heat capacity vs pressure and temperature table

Example of the specification of the thermodynamic properties:

    thermodynamics
    {
        Hf              0;
        Sf              0;

        Es
        {
            pLow    1e4;
            pHigh   5e5;

            Tlow    200;
            Thigh   1500;

            values
            <m> <n>
            (
                (..........)
                .
                .
                .
                (..........)
            );
        }

        Cv
        {
            pLow    1e3;
            pHigh   1e6;

            Tlow    200;
            Thigh   1500;

            values
            <m> <n>
            (
                (..........)
                .
                .
                .
                (..........)
            );
        }
    }
Source files
See also
Foam::Function2s::uniformTable

Definition at line 124 of file eTabulatedThermo.H.

Constructor & Destructor Documentation

◆ eTabulatedThermo() [1/2]

eTabulatedThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 33 of file eTabulatedThermo.C.

References eTabulatedThermo< EquationOfState >::write().

Here is the call graph for this function:

◆ eTabulatedThermo() [2/2]

eTabulatedThermo ( const word name,
const eTabulatedThermo< EquationOfState > &  pt 
)
inline

Construct as a named copy.

Definition at line 32 of file eTabulatedThermoI.H.

References eTabulatedThermo< EquationOfState >::limit().

Here is the call graph for this function:

Member Function Documentation

◆ typeName()

◆ limit()

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

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

Definition at line 50 of file eTabulatedThermoI.H.

References eTabulatedThermo< EquationOfState >::Cp(), and T.

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

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

◆ Cp()

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

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

Definition at line 60 of file eTabulatedThermoI.H.

References eTabulatedThermo< EquationOfState >::Cv().

Referenced by eTabulatedThermo< EquationOfState >::limit(), and eTabulatedThermo< 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 pressure [J/kg/K].

Definition at line 71 of file eTabulatedThermoI.H.

References eTabulatedThermo< EquationOfState >::Es().

Referenced by eTabulatedThermo< EquationOfState >::Cp(), and eTabulatedThermo< 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 82 of file eTabulatedThermoI.H.

References eTabulatedThermo< EquationOfState >::Ea().

Referenced by eTabulatedThermo< EquationOfState >::Cv(), and eTabulatedThermo< 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 93 of file eTabulatedThermoI.H.

References Es(), and eTabulatedThermo< EquationOfState >::Hs().

Referenced by eTabulatedThermo< EquationOfState >::Es(), and eTabulatedThermo< EquationOfState >::typeName().

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

◆ Hs()

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

Sensible enthalpy [J/kg].

Definition at line 104 of file eTabulatedThermoI.H.

References Es(), eTabulatedThermo< EquationOfState >::Ha(), and rho.

Referenced by eTabulatedThermo< EquationOfState >::Ea(), and eTabulatedThermo< EquationOfState >::typeName().

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

◆ Ha()

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

Absolute enthalpy [J/kg].

Definition at line 115 of file eTabulatedThermoI.H.

References Ea(), and rho.

Referenced by eTabulatedThermo< EquationOfState >::Hs(), and eTabulatedThermo< 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 125 of file eTabulatedThermoI.H.

References eTabulatedThermo< EquationOfState >::S().

Referenced by eTabulatedThermo< 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 134 of file eTabulatedThermoI.H.

References eTabulatedThermo< EquationOfState >::Gstd(), and NotImplemented.

Referenced by eTabulatedThermo< EquationOfState >::Hf(), and eTabulatedThermo< 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 146 of file eTabulatedThermoI.H.

References eTabulatedThermo< EquationOfState >::dCpdT(), and NotImplemented.

Referenced by eTabulatedThermo< EquationOfState >::S(), and eTabulatedThermo< 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 157 of file eTabulatedThermoI.H.

References NotImplemented.

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

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 50 of file eTabulatedThermo.C.

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

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

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

Friends And Related Function Documentation

◆ operator

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

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