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 dictionary &dict)
 Construct from 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 autoPtr< rhoTabulatedNew (const dictionary &dict)
 
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 96 of file rhoTabulated.H.

Constructor & Destructor Documentation

◆ rhoTabulated() [1/3]

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

Construct from components.

Definition at line 32 of file rhoTabulatedI.H.

References Foam::name().

Here is the call graph for this function:

◆ rhoTabulated() [2/3]

rhoTabulated ( const dictionary dict)

Construct from 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 ( ) const
inline

Construct and return a clone.

Definition at line 58 of file rhoTabulatedI.H.

◆ New()

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

Definition at line 69 of file rhoTabulatedI.H.

References dict, and rhoTabulated< Specie >::rho().

Here is the call graph for this function:

◆ 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 82 of file rhoTabulatedI.H.

References rhoTabulated< Specie >::H().

Referenced by rhoTabulated< Specie >::New().

Here is the call graph for this function:
Here is the caller 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 93 of file rhoTabulatedI.H.

References rhoTabulated< Specie >::Cp(), and NotImplemented.

Referenced by rhoTabulated< Specie >::rho().

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

◆ Cp()

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

Return Cp contribution [J/(kg K].

Not implemented

Definition at line 105 of file rhoTabulatedI.H.

References rhoTabulated< Specie >::E(), and NotImplemented.

Referenced by rhoTabulated< Specie >::H().

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

◆ E()

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

Return internal energy contribution [J/kg].

Not implemented

Definition at line 117 of file rhoTabulatedI.H.

References rhoTabulated< Specie >::Cv(), and NotImplemented.

Referenced by rhoTabulated< Specie >::Cp().

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

◆ Cv()

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

Return Cv contribution [J/(kg K].

Not implemented

Definition at line 129 of file rhoTabulatedI.H.

References NotImplemented, and rhoTabulated< Specie >::Sp().

Referenced by rhoTabulated< Specie >::E().

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

◆ 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 141 of file rhoTabulatedI.H.

References NotImplemented, and rhoTabulated< Specie >::Sv().

Referenced by rhoTabulated< Specie >::Cv().

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

◆ 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 153 of file rhoTabulatedI.H.

References NotImplemented, and rhoTabulated< Specie >::psi().

Referenced by rhoTabulated< Specie >::Sp().

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

◆ psi()

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

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

Definition at line 165 of file rhoTabulatedI.H.

References rhoTabulated< Specie >::Z().

Referenced by rhoTabulated< Specie >::Sv().

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

◆ Z()

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

Return compression factor [].

Definition at line 176 of file rhoTabulatedI.H.

References rhoTabulated< Specie >::CpMCv(), R, rho, and T.

Referenced by rhoTabulated< Specie >::psi().

Here is the call graph for this function:
Here is the caller 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 187 of file rhoTabulatedI.H.

References rhoTabulated< Specie >::alphav(), and NotImplemented.

Referenced by rhoTabulated< Specie >::Z().

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

◆ alphav()

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

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

Definition at line 199 of file rhoTabulatedI.H.

References rho.

Referenced by rhoTabulated< Specie >::CpMCv().

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 42 of file rhoTabulated.C.

References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), UniformTable< Type >::values(), Foam::vtkWriteOps::write(), and Ostream::write().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 212 of file rhoTabulatedI.H.

References noCoefficientMixing.

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 221 of file rhoTabulatedI.H.

References noCoefficientMixing, and s().

Here is the call graph for this function:

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: