Classes | Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
rPolynomial Class Reference

Reciprocal polynomial equation of state for liquids and solids. More...

Public Member Functions

 rPolynomial (const Specie &sp, const coeffList &coeffs)
 
 rPolynomial (const dictionary &dict)
 
 rPolynomial (const word &name, const rPolynomial &)
 
autoPtr< rPolynomialclone () const
 
scalar rho (scalar p, scalar T) const
 
scalar H (const scalar p, const scalar T) const
 
scalar Cp (scalar p, scalar T) const
 
scalar E (const scalar p, const scalar T) const
 
scalar Cv (scalar p, scalar T) const
 
scalar S (const scalar p, const scalar T) const
 
scalar psi (scalar p, scalar T) const
 
scalar Z (scalar p, scalar T) const
 
scalar CpMCv (scalar p, scalar T) const
 
void write (Ostream &os) const
 
void operator+= (const rPolynomial &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< rPolynomialNew (const dictionary &dict)
 
static word typeName ()
 

Static Public Attributes

static const bool incompressible = false
 
static const bool isochoric = false
 

Friends

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

Detailed Description

Reciprocal polynomial equation of state for liquids and solids.

\[ 1/\rho = C_0 + C_1 T + C_2 T^2 - C_3 p - C_4 p T \]

This polynomial for the reciprocal of the density provides a much better fit than the equivalent polynomial for the density and has the advantage that it support coefficient mixing to support liquid and solid mixtures in an efficient manner.

Usage
Property Description
C Density polynomial coefficients

Example of the specification of the equation of state for pure water:

    equationOfState
    {
        C (0.001278 -2.1055e-06 3.9689e-09 4.3772e-13 -2.0225e-16);
    }

Note: This fit is based on the small amount of data which is freely available for the range 20-65degC and 1-100bar.

Source files

Definition at line 77 of file rPolynomial.H.

Constructor & Destructor Documentation

◆ rPolynomial() [1/3]

rPolynomial ( const Specie &  sp,
const coeffList &  coeffs 
)
inline

Definition at line 27 of file rPolynomialI.H.

◆ rPolynomial() [2/3]

rPolynomial ( const dictionary dict)

Definition at line 28 of file rPolynomial.C.

◆ rPolynomial() [3/3]

rPolynomial ( const word name,
const rPolynomial  
)
inline

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::rPolynomial< Specie > > clone ( ) const
inline

Definition at line 53 of file rPolynomialI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

Foam::autoPtr< Foam::rPolynomial< Specie > > New ( const dictionary dict)
inlinestatic

Definition at line 62 of file rPolynomialI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Definition at line 170 of file rPolynomial.H.

◆ rho()

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

Definition at line 73 of file rPolynomialI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ H()

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

Definition at line 80 of file rPolynomialI.H.

◆ Cp()

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

Definition at line 87 of file rPolynomialI.H.

◆ E()

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

Definition at line 94 of file rPolynomialI.H.

◆ Cv()

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

Definition at line 101 of file rPolynomialI.H.

◆ S()

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

Definition at line 108 of file rPolynomialI.H.

◆ psi()

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

Definition at line 115 of file rPolynomialI.H.

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

Here is the call graph for this function:

◆ Z()

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

Definition at line 122 of file rPolynomialI.H.

◆ CpMCv()

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

Definition at line 129 of file rPolynomialI.H.

◆ write()

void write ( Ostream os) const

Definition at line 38 of file rPolynomial.C.

References Ostream::beginBlock(), Ostream::endBlock(), os(), Foam::vtk::write(), and Ostream::writeEntry().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const rPolynomial )
inline

Definition at line 139 of file rPolynomialI.H.

References Foam::mag(), rp(), and Y.

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 154 of file rPolynomialI.H.

References s.

Friends And Related Function Documentation

◆ operator+

rPolynomial operator+ ( const rPolynomial ,
const rPolynomial  
)
friend

◆ operator*

rPolynomial operator* ( const scalar  s,
const rPolynomial  
)
friend

◆ operator==

rPolynomial operator== ( const rPolynomial ,
const rPolynomial  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const rPolynomial  
)
friend

Member Data Documentation

◆ incompressible

const bool incompressible = false
static

Definition at line 179 of file rPolynomial.H.

◆ isochoric

const bool isochoric = false
static

Definition at line 182 of file rPolynomial.H.


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