Loading...
Searching...
No Matches
icoPolynomial< Specie, PolySize > Class Template Reference

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

#include <icoPolynomial.H>

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.
 icoPolynomial (const dictionary &dict)
 Construct from dictionary.
 icoPolynomial (const word &name, const icoPolynomial &)
 Construct as named copy.
autoPtr< icoPolynomialclone () const
 Construct and return a clone.
scalar rho (scalar p, scalar T) const
 Return density [kg/m^3].
scalar H (const scalar p, const scalar T) const
 Return enthalpy departure [J/kg].
scalar Cp (scalar p, scalar T) const
 Return Cp departure [J/(kg K].
scalar E (const scalar p, const scalar T) const
 Return internal energy departure [J/kg].
scalar Cv (scalar p, scalar T) const
 Return Cv departure [J/(kg K].
scalar S (const scalar p, const scalar T) const
 Return entropy [J/(kg K)].
scalar psi (scalar p, scalar T) const
 Return compressibility rho/p [s^2/m^2].
scalar Z (scalar p, scalar T) const
 Return compression factor [].
scalar CpMCv (scalar p, scalar T) const
 Return (Cp - Cv) [J/(kg K].
void write (Ostream &os) const
 Write to Ostream.
void operator+= (const icoPolynomial &)
void operator*= (const scalar)

Static Public Member Functions

static autoPtr< icoPolynomialNew (const dictionary &dict)
static word typeName ()
 Return the instantiated type name.

Static Public Attributes

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

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.

Usage
Property Description
rhoCoeffs<8> Density polynomial coefficients

Example of the specification of the equation of state:

    equationOfState
    {
        rhoCoeffs<8>    ( 1000 -0.05 0.003 0 0 0 0 0 );
    }

The polynomial expression is evaluated as so:

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

Note
Input in [kg/m3], but internally uses [kg/m3/kmol].
Source files
See also
Foam::Polynomial

Definition at line 120 of file icoPolynomial.H.

Constructor & Destructor Documentation

◆ icoPolynomial() [1/3]

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

Construct from components.

Definition at line 26 of file icoPolynomialI.H.

Referenced by icoPolynomial(), operator, operator*, operator+, operator+=(), and operator==.

Here is the caller graph for this function:

◆ icoPolynomial() [2/3]

template<class Specie, int PolySize>
icoPolynomial ( const dictionary & dict)
explicit

Construct from dictionary.

Definition at line 32 of file icoPolynomial.C.

References dict.

◆ icoPolynomial() [3/3]

template<class Specie, int PolySize = 8>
icoPolynomial ( const word & name,
const icoPolynomial< Specie, PolySize > &  )
inline

Construct as named copy.

References dict, icoPolynomial(), and Foam::name().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

template<class Specie, int PolySize>
Foam::autoPtr< Foam::icoPolynomial< Specie, PolySize > > clone ( ) const
inline

Construct and return a clone.

Definition at line 53 of file icoPolynomialI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

template<class Specie, int PolySize>
Foam::autoPtr< Foam::icoPolynomial< Specie, PolySize > > New ( const dictionary & dict)
inlinestatic

Definition at line 61 of file icoPolynomialI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

template<class Specie, int PolySize = 8>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 182 of file icoPolynomial.H.

◆ rho()

template<class Specie, int PolySize>
Foam::scalar rho ( scalar p,
scalar T ) const
inline

Return density [kg/m^3].

Definition at line 70 of file icoPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ H()

template<class Specie, int PolySize>
Foam::scalar H ( const scalar p,
const scalar T ) const
inline

Return enthalpy departure [J/kg].

Definition at line 81 of file icoPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Cp()

template<class Specie, int PolySize>
Foam::scalar Cp ( scalar p,
scalar T ) const
inline

Return Cp departure [J/(kg K].

Definition at line 92 of file icoPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ E()

template<class Specie, int PolySize>
Foam::scalar E ( const scalar p,
const scalar T ) const
inline

Return internal energy departure [J/kg].

Definition at line 103 of file icoPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Cv()

template<class Specie, int PolySize>
Foam::scalar Cv ( scalar p,
scalar T ) const
inline

Return Cv departure [J/(kg K].

Definition at line 114 of file icoPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ S()

template<class Specie, int PolySize>
Foam::scalar S ( const scalar p,
const scalar T ) const
inline

Return entropy [J/(kg K)].

Definition at line 125 of file icoPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ psi()

template<class Specie, int PolySize>
Foam::scalar psi ( scalar p,
scalar T ) const
inline

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

Definition at line 136 of file icoPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Z()

template<class Specie, int PolySize>
Foam::scalar Z ( scalar p,
scalar T ) const
inline

Return compression factor [].

Definition at line 147 of file icoPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ CpMCv()

template<class Specie, int PolySize>
Foam::scalar CpMCv ( scalar p,
scalar T ) const
inline

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

Definition at line 158 of file icoPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ write()

template<class Specie, int PolySize>
void write ( Ostream & os) const

Write to Ostream.

Definition at line 42 of file icoPolynomial.C.

References os().

Referenced by Foam::operator<<().

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

◆ operator+=()

template<class Specie, int PolySize = 8>
void operator+= ( const icoPolynomial< Specie, PolySize > & )
inline

Definition at line 171 of file icoPolynomialI.H.

References icoPolynomial(), Foam::mag(), operator, and Y.

Here is the call graph for this function:

◆ operator*=()

template<class Specie, int PolySize>
void operator*= ( const scalar s)
inline

Definition at line 190 of file icoPolynomialI.H.

References s().

Here is the call graph for this function:

◆ operator+

template<class Specie, int PolySize = 8>
icoPolynomial operator+ ( const icoPolynomial< Specie, PolySize > & ,
const icoPolynomial< Specie, PolySize > &  )
friend

References icoPolynomial().

◆ operator*

template<class Specie, int PolySize = 8>
icoPolynomial operator* ( const scalar s,
const icoPolynomial< Specie, PolySize > &  )
friend

References icoPolynomial(), and s().

◆ operator==

template<class Specie, int PolySize = 8>
icoPolynomial operator== ( const icoPolynomial< Specie, PolySize > & ,
const icoPolynomial< Specie, PolySize > &  )
friend

References icoPolynomial().

◆ operator

template<class Specie, int PolySize = 8>
Ostream & operator ( Ostream & ,
const icoPolynomial< Specie, PolySize > &  )
friend

References icoPolynomial().

Referenced by operator+=().

Member Data Documentation

◆ incompressible

template<class Specie, int PolySize = 8>
const bool incompressible = true
static

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

Definition at line 193 of file icoPolynomial.H.

◆ isochoric

template<class Specie, int PolySize = 8>
const bool isochoric = false
static

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

Definition at line 198 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