rhoTabulated< Specie > Class Template Reference

Incompressible of equation of state using uniform tabulated density vs pressure and temperature. More...

Inheritance diagram for rhoTabulated< Specie >:
Collaboration diagram for rhoTabulated< Specie >:

Public Member Functions

 rhoTabulated (const Specie &sp, const table2D &rho)
 Construct from components. More...
 
 rhoTabulated (const word &name, const dictionary &dict)
 Construct from name and dictionary. More...
 
 rhoTabulated (const word &name, const rhoTabulated &)
 Construct as named copy. More...
 
autoPtr< rhoTabulatedclone () 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 rhoTabulated &)
 
void operator*= (const scalar)
 

Static Public Member Functions

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

Static Public Attributes

static const bool incompressible = false
 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

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

Detailed Description

template<class Specie>
class Foam::rhoTabulated< Specie >

Incompressible of equation of state using uniform tabulated density vs pressure and temperature.

Thermodynamic contributions derived from tabulated density data are not sufficiently accurate and hence the H, Cp, E, Cv, Sp, Sv and CpMCv are not implemented. Thus this equation of state should be used in conjunction with hTabulated or eTabulated thermodynamics in which both the energy and heat capacity are tabulated w.r.t. pressure and temperature avoiding the need for equation of state contributions.

Usage
Property Description
rho Density vs pressure and temperature table

Example of the specification of the equation of state:

    equationOfState
    {
        rho
        {
            pLow    1e4;
            pHigh   5e5;

            Tlow    200;
            Thigh   1500;

            values
            <m> <n>
            (
                (..........)
                .
                .
                .
                (..........)
            );
        }
    }
Source files
See also
Foam::Function1s::NonUniformTable

Definition at line 132 of file rhoTabulated.H.

Constructor & Destructor Documentation

◆ rhoTabulated() [1/3]

rhoTabulated ( const Specie &  sp,
const table2D rho 
)
inline

Construct from components.

Definition at line 31 of file rhoTabulatedI.H.

◆ rhoTabulated() [2/3]

rhoTabulated ( const word name,
const dictionary dict 
)

Construct from name and dictionary.

Definition at line 32 of file rhoTabulated.C.

◆ rhoTabulated() [3/3]

rhoTabulated ( const word name,
const rhoTabulated< Specie > &   
)
inline

Construct as named copy.

Member Function Documentation

◆ clone()

Foam::autoPtr< Foam::rhoTabulated< Specie > > clone
inline

Construct and return a clone.

Definition at line 56 of file rhoTabulatedI.H.

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 172 of file rhoTabulated.H.

◆ rho()

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

Return density [kg/m^3].

Definition at line 68 of file rhoTabulatedI.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

Return enthalpy contribution [J/kg].

Not implemented

Definition at line 79 of file rhoTabulatedI.H.

References NotImplemented.

◆ Cp()

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

Return Cp contribution [J/(kg K].

Not implemented

Definition at line 91 of file rhoTabulatedI.H.

References NotImplemented.

◆ E()

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

Return internal energy contribution [J/kg].

Not implemented

Definition at line 103 of file rhoTabulatedI.H.

References NotImplemented.

◆ Cv()

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

Return Cv contribution [J/(kg K].

Not implemented

Definition at line 115 of file rhoTabulatedI.H.

References NotImplemented.

◆ Sp()

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

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

Not implemented

Definition at line 127 of file rhoTabulatedI.H.

References NotImplemented.

◆ Sv()

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

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

Not implemented

Definition at line 139 of file rhoTabulatedI.H.

References NotImplemented.

◆ psi()

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

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

Definition at line 151 of file rhoTabulatedI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Z()

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

Return compression factor [].

Definition at line 162 of file rhoTabulatedI.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].

Not implemented

Definition at line 173 of file rhoTabulatedI.H.

References NotImplemented.

◆ alphav()

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

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

Definition at line 185 of file rhoTabulatedI.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 46 of file rhoTabulated.C.

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

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const rhoTabulated< Specie > &  )
inline

Definition at line 198 of file rhoTabulatedI.H.

References noCoefficientMixing.

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 208 of file rhoTabulatedI.H.

References noCoefficientMixing.

Friends And Related Function Documentation

◆ operator+

rhoTabulated operator+ ( const rhoTabulated< Specie > &  ,
const rhoTabulated< Specie > &   
)
friend

◆ operator*

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

◆ operator==

rhoTabulated operator== ( const rhoTabulated< Specie > &  ,
const rhoTabulated< Specie > &   
)
friend

◆ operator

Ostream& operator ( Ostream ,
const rhoTabulated< Specie > &   
)
friend

Member Data Documentation

◆ incompressible

const bool incompressible = false
static

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

Definition at line 181 of file rhoTabulated.H.

◆ isochoric

const bool isochoric = false
static

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

Definition at line 184 of file rhoTabulated.H.


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