eIcoTabulatedThermo< EquationOfState > Class Template Reference

Internal energy based thermodynamics package using non-uniform tabulated data for heat capacity vs temperature. More...

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

Public Member Functions

 eIcoTabulatedThermo (const dictionary &dict)
 Construct from dictionary. More...
 
 eIcoTabulatedThermo (const word &, const eIcoTabulatedThermo &)
 Construct as a named copy. More...
 
scalar limit (const scalar) 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...
 

Static Public Member Functions

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

Friends

Ostreamoperator (Ostream &, const eIcoTabulatedThermo &)
 

Detailed Description

template<class EquationOfState>
class Foam::eIcoTabulatedThermo< EquationOfState >

Internal energy based thermodynamics package using non-uniform tabulated data for heat capacity vs temperature.

Usage
Property Description
Hf Heat of formation
Sf Standard entropy
Cv Specific heat at constant volume vs temperature table

Example of the specification of the thermodynamic properties:

    thermodynamics
    {
        Hf              0;
        Sf              0;
        Cv
        {
            values
            (
                (200     1005)
                (350     1010)
                (400     1020)
            );
        }
    }
Source files
See also
Foam::Function1s::UniformTable

Definition at line 90 of file eIcoTabulatedThermo.H.

Constructor & Destructor Documentation

◆ eIcoTabulatedThermo() [1/2]

eIcoTabulatedThermo ( const dictionary dict)

Construct from dictionary.

Definition at line 33 of file eIcoTabulatedThermo.C.

References eIcoTabulatedThermo< EquationOfState >::write().

Here is the call graph for this function:

◆ eIcoTabulatedThermo() [2/2]

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

Construct as a named copy.

Definition at line 32 of file eIcoTabulatedThermoI.H.

References eIcoTabulatedThermo< 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 48 of file eIcoTabulatedThermoI.H.

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

Referenced by eIcoTabulatedThermo< EquationOfState >::eIcoTabulatedThermo(), and eIcoTabulatedThermo< 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 58 of file eIcoTabulatedThermoI.H.

References Cv(), and eIcoTabulatedThermo< EquationOfState >::Es().

Referenced by eIcoTabulatedThermo< EquationOfState >::limit(), and eIcoTabulatedThermo< 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 69 of file eIcoTabulatedThermoI.H.

References eIcoTabulatedThermo< EquationOfState >::Ea().

Referenced by eIcoTabulatedThermo< EquationOfState >::Cv(), and eIcoTabulatedThermo< 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 80 of file eIcoTabulatedThermoI.H.

References Es().

Referenced by eIcoTabulatedThermo< EquationOfState >::Es(), and eIcoTabulatedThermo< 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 90 of file eIcoTabulatedThermoI.H.

References eIcoTabulatedThermo< EquationOfState >::S().

Referenced by eIcoTabulatedThermo< 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 99 of file eIcoTabulatedThermoI.H.

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

Referenced by eIcoTabulatedThermo< EquationOfState >::Hf(), and eIcoTabulatedThermo< 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 111 of file eIcoTabulatedThermoI.H.

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

Referenced by eIcoTabulatedThermo< EquationOfState >::S(), and eIcoTabulatedThermo< 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 122 of file eIcoTabulatedThermoI.H.

References NotImplemented.

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

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 48 of file eIcoTabulatedThermo.C.

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

Referenced by eIcoTabulatedThermo< EquationOfState >::eIcoTabulatedThermo(), and eIcoTabulatedThermo< 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 eIcoTabulatedThermo< EquationOfState > &   
)
friend

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