The OpenFOAM Foundation
icoPolynomial< Specie, PolySize > Class Template Reference

Incompressible, polynomial form of equation of state, using a polynomial function for density. More...

Inheritance diagram for icoPolynomial< Specie, PolySize >:
Collaboration diagram for icoPolynomial< Specie, PolySize >:

Public Member Functions

icoPolynomial (const Specie &sp, const Polynomial< PolySize > &rhoPoly)
Construct from components. More...

icoPolynomial (const word &name, const dictionary &dict)
Construct from name and dictionary. More...

icoPolynomial (const word &name, const icoPolynomial &)
Construct as named copy. More...

autoPtr< icoPolynomialclone () const
Construct and return a clone. More...

scalar rho (scalar p, scalar T) const
Return density [kg/m^3]. More...

scalar H (const scalar p, const scalar T) const
Return enthalpy contribution [J/kg]. More...

scalar Cp (scalar p, scalar T) const
Return Cp contribution [J/(kg K]. More...

scalar E (const scalar p, const scalar T) const
Return internal energy contribution [J/kg]. More...

scalar Cv (scalar p, scalar T) const
Return Cv contribution [J/(kg K]. More...

scalar Sp (const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K]. More...

scalar Sv (const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K]. More...

scalar psi (scalar p, scalar T) const
Return compressibility [s^2/m^2]. More...

scalar Z (scalar p, scalar T) const
Return compression factor []. More...

scalar CpMCv (scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K]. More...

scalar alphav (const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T]. More...

void write (Ostream &os) const
Write to Ostream. More...

void operator+= (const icoPolynomial &)

void operator*= (const scalar)

Static Public Member Functions

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

Static Public Attributes

static const bool incompressible = true
Is the equation of state is incompressible i.e. rho != f(p) More...

static const bool isochoric = false
Is the equation of state is isochoric i.e. rho = const. More...

Friends

icoPolynomial operator+ (const icoPolynomial &, const icoPolynomial &)

icoPolynomial operator* (const scalar s, const icoPolynomial &)

icoPolynomial operator== (const icoPolynomial &, const icoPolynomial &)

Ostreamoperator (Ostream &, const icoPolynomial &)

Detailed Description

template<class Specie, int PolySize = 8> class Foam::icoPolynomial< Specie, PolySize >

Incompressible, polynomial form of equation of state, using a polynomial function for density.

Coefficient mixing is very inaccurate and not supported, so this equation of state is not applicable to mixtures.

The polynomial expression is evaluated from:

```        rho = 1000 - 0.05*T + 0.003*sqr(T)
```
Usage
Property Description
`rhoCoeffs<8>` Density polynomial coefficients

Example specification of the icoPolynomial equation of state:

```    equationOfState
{
rhoCoeffs<8>    ( 1000 -0.05 0.003 0 0 0 0 0 );
}```
Source files
Foam::Polynomial

Definition at line 118 of file icoPolynomial.H.

◆ icoPolynomial() [1/3]

 icoPolynomial ( const Specie & sp, const Polynomial< PolySize > & rhoPoly )
inline

Construct from components.

Definition at line 31 of file icoPolynomialI.H.

◆ icoPolynomial() [2/3]

 icoPolynomial ( const word & name, const dictionary & dict )

Construct from name and dictionary.

Definition at line 32 of file icoPolynomial.C.

◆ icoPolynomial() [3/3]

 icoPolynomial ( const word & name, const icoPolynomial< Specie, PolySize > & )
inline

Construct as named copy.

◆ clone()

 Foam::autoPtr< Foam::icoPolynomial< Specie, PolySize > > clone
inline

Construct and return a clone.

Definition at line 56 of file icoPolynomialI.H.

◆ typeName()

 static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 152 of file icoPolynomial.H.

◆ rho()

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

Return density [kg/m^3].

Definition at line 68 of file icoPolynomialI.H.

References Foam::T().

Here is the call graph for this function:

◆ H()

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

Return enthalpy contribution [J/kg].

Definition at line 79 of file icoPolynomialI.H.

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

Here is the call graph for this function:

◆ Cp()

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

Return Cp contribution [J/(kg K].

Definition at line 90 of file icoPolynomialI.H.

◆ E()

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

Return internal energy contribution [J/kg].

Definition at line 101 of file icoPolynomialI.H.

◆ Cv()

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

Return Cv contribution [J/(kg K].

Definition at line 112 of file icoPolynomialI.H.

◆ Sp()

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

Return entropy contribution to the integral of Cp/T [J/kg/K].

Definition at line 123 of file icoPolynomialI.H.

◆ Sv()

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

Return entropy contribution to the integral of Cv/T [J/kg/K].

Definition at line 134 of file icoPolynomialI.H.

◆ psi()

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

Return compressibility [s^2/m^2].

Definition at line 145 of file icoPolynomialI.H.

◆ Z()

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

Return compression factor [].

Definition at line 156 of file icoPolynomialI.H.

References p, Foam::R(), rho, and Foam::T().

Here is the call graph for this function:

◆ CpMCv()

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

Return (Cp - Cv) [J/(kg K].

Definition at line 167 of file icoPolynomialI.H.

◆ alphav()

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

Return volumetric coefficient of thermal expansion [1/T].

Definition at line 178 of file icoPolynomialI.H.

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

Here is the call graph for this function:

◆ write()

 void write ( Ostream & os ) const

Write to Ostream.

Definition at line 52 of file icoPolynomial.C.

Here is the call graph for this function:

◆ operator+=()

 void operator+= ( const icoPolynomial< Specie, PolySize > & )
inline

Definition at line 191 of file icoPolynomialI.H.

References noCoefficientMixing.

◆ operator*=()

 void operator*= ( const scalar s )
inline

Definition at line 201 of file icoPolynomialI.H.

References s().

Here is the call graph for this function:

◆ operator+

 icoPolynomial operator+ ( const icoPolynomial< Specie, PolySize > & , const icoPolynomial< Specie, PolySize > & )
friend

◆ operator*

 icoPolynomial operator* ( const scalar s, const icoPolynomial< Specie, PolySize > & )
friend

◆ operator==

 icoPolynomial operator== ( const icoPolynomial< Specie, PolySize > & , const icoPolynomial< Specie, PolySize > & )
friend

◆ operator

 Ostream& operator ( Ostream & , const icoPolynomial< Specie, PolySize > & )
friend

◆ incompressible

 const bool incompressible = true
static

Is the equation of state is incompressible i.e. rho != f(p)

Definition at line 161 of file icoPolynomial.H.

◆ isochoric

 const bool isochoric = false
static

Is the equation of state is isochoric i.e. rho = const.

Definition at line 164 of file icoPolynomial.H.

The documentation for this class was generated from the following files:
• src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.H
• src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomial.C
• src/thermophysicalModels/specie/equationOfState/icoPolynomial/icoPolynomialI.H