Public Member Functions | Static Public Member Functions | Friends | List of all members
hPolynomialThermo Class Reference

Thermodynamics package templated on the equation of state, using polynomial functions for cp, h and s. More...

Public Member Functions

 hPolynomialThermo (const dictionary &dict)
 
 hPolynomialThermo (const word &, const hPolynomialThermo &)
 
scalar limit (const scalar) const
 
scalar Cp (const scalar p, const scalar T) const
 
scalar Ha (const scalar p, const scalar T) const
 
scalar Hs (const scalar p, const scalar T) const
 
scalar Hc () const
 
scalar S (const scalar p, const scalar T) const
 
scalar Gstd (const scalar T) const
 
scalar dCpdT (const scalar p, const scalar T) const
 
void write (Ostream &os) const
 
void operator+= (const hPolynomialThermo &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static word typeName ()
 

Friends

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

Detailed Description

Thermodynamics package templated on the equation of state, using polynomial functions for cp, h and s.

Polynomials for h and s derived from cp.

Usage
Property Description
Hf Heat of formation
Sf Standard entropy
CpCoeffs<8> Specific heat at constant pressure polynomial coeffs

Example of the specification of the thermodynamic properties:

    thermodynamics
    {
        Hf              0;
        Sf              0;
        CpCoeffs<8>     ( 1000 -0.05 0.003 0 0 0 0 0 );
    }

The polynomial expression is evaluated as so:

\[ Cp = 1000 - 0.05 T + 0.003 T^2 \]

Note
  • Heat of formation is inputted in [J/kg], but internally uses [J/kmol]
  • Standard entropy is inputted in [J/kg/K], but internally uses [J/kmol/K]
  • Specific heat at constant pressure polynomial coefficients evaluate to an expression in [J/(kg.K)].
Source files
See also
Foam::Polynomial

Definition at line 100 of file hPolynomialThermo.H.

Constructor & Destructor Documentation

◆ hPolynomialThermo() [1/2]

hPolynomialThermo ( const dictionary dict)

Definition at line 29 of file hPolynomialThermo.C.

References H(), and Foam::constant::standard::Pstd.

Here is the call graph for this function:

◆ hPolynomialThermo() [2/2]

hPolynomialThermo ( const word ,
const hPolynomialThermo  
)
inline

Member Function Documentation

◆ typeName()

static word typeName ( )
inlinestatic

Definition at line 208 of file hPolynomialThermo.H.

◆ limit()

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

Definition at line 68 of file hPolynomialThermoI.H.

References Foam::T().

Here is the call graph for this function:

◆ Cp()

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

Definition at line 78 of file hPolynomialThermoI.H.

References Cp, p, and Foam::T().

Here is the call graph for this function:

◆ Ha()

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

Definition at line 88 of file hPolynomialThermoI.H.

References H(), p, and Foam::T().

Here is the call graph for this function:

◆ Hs()

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

Definition at line 98 of file hPolynomialThermoI.H.

References Ha(), p, and Foam::T().

Here is the call graph for this function:

◆ Hc()

Foam::scalar Hc ( ) const
inline

Definition at line 107 of file hPolynomialThermoI.H.

◆ S()

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

Definition at line 116 of file hPolynomialThermoI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Gstd()

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

Definition at line 127 of file hPolynomialThermoI.H.

References Foam::T().

Here is the call graph for this function:

◆ dCpdT()

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

Definition at line 137 of file hPolynomialThermoI.H.

References Foam::T().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const

Definition at line 60 of file hPolynomialThermo.C.

References os(), and Foam::vtk::write().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const hPolynomialThermo )
inline

Definition at line 152 of file hPolynomialThermoI.H.

References Foam::mag(), and Y.

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 176 of file hPolynomialThermoI.H.

References s.

Friends And Related Function Documentation

◆ operator+

hPolynomialThermo operator+ ( const hPolynomialThermo ,
const hPolynomialThermo  
)
friend

◆ operator*

hPolynomialThermo operator* ( const  scalar,
const hPolynomialThermo  
)
friend

◆ operator==

hPolynomialThermo operator== ( const hPolynomialThermo ,
const hPolynomialThermo  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const hPolynomialThermo  
)
friend

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