icoTabulated< Specie > Class Template Reference

Incompressible of equation of state using non-uniform tabulated density vs temperature. More...

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

Public Member Functions

 icoTabulated (const Specie &sp, const nonUniformTable &rho)
 Construct from components. More...
 
 icoTabulated (const dictionary &dict)
 Construct from dictionary. More...
 
 icoTabulated (const word &name, const icoTabulated &)
 Construct as named copy. More...
 
autoPtr< icoTabulatedclone () 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...
 
void write (Ostream &os) const
 Write to Ostream. More...
 

Static Public Member Functions

static autoPtr< icoTabulatedNew (const dictionary &dict)
 
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

Ostreamoperator (Ostream &, const icoTabulated &)
 

Detailed Description

template<class Specie>
class Foam::icoTabulated< Specie >

Incompressible of equation of state using non-uniform tabulated density vs temperature.

Usage
Property Description
rho Density vs temperature table

Example of the specification of the equation of state:

    equationOfState
    {
        rho
        (
            (200 1010)
            (350 1000)
            (400 980)
        );
    }
Source files
See also
Foam::thermophysicalFunctions::nonUniformTable

Definition at line 77 of file icoTabulated.H.

Constructor & Destructor Documentation

◆ icoTabulated() [1/3]

icoTabulated ( const Specie &  sp,
const nonUniformTable rho 
)
inline

Construct from components.

Definition at line 32 of file icoTabulatedI.H.

References Foam::name().

Here is the call graph for this function:

◆ icoTabulated() [2/3]

icoTabulated ( const dictionary dict)

Construct from dictionary.

Definition at line 37 of file icoTabulated.C.

◆ icoTabulated() [3/3]

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

Construct as named copy.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 58 of file icoTabulatedI.H.

◆ New()

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

Definition at line 69 of file icoTabulatedI.H.

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

Here is the call graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 132 of file icoTabulated.H.

◆ rho()

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

Return density [kg/m^3].

Definition at line 82 of file icoTabulatedI.H.

References icoTabulated< Specie >::H().

Referenced by icoTabulated< 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].

Definition at line 93 of file icoTabulatedI.H.

References icoTabulated< Specie >::Cp(), and rho.

Referenced by icoTabulated< 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].

Definition at line 104 of file icoTabulatedI.H.

References icoTabulated< Specie >::E().

Referenced by icoTabulated< 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].

Definition at line 115 of file icoTabulatedI.H.

References icoTabulated< Specie >::Cv().

Referenced by icoTabulated< 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].

Definition at line 126 of file icoTabulatedI.H.

References icoTabulated< Specie >::Sp().

Referenced by icoTabulated< 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].

Definition at line 137 of file icoTabulatedI.H.

References icoTabulated< Specie >::Sv().

Referenced by icoTabulated< 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].

Definition at line 148 of file icoTabulatedI.H.

References icoTabulated< Specie >::psi().

Referenced by icoTabulated< 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 159 of file icoTabulatedI.H.

References icoTabulated< Specie >::Z().

Referenced by icoTabulated< 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 170 of file icoTabulatedI.H.

References icoTabulated< Specie >::CpMCv().

Referenced by icoTabulated< 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].

Definition at line 181 of file icoTabulatedI.H.

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

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 47 of file icoTabulated.C.

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

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator

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

Member Data Documentation

◆ incompressible

const bool incompressible = true
static

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

Definition at line 141 of file icoTabulated.H.

◆ isochoric

const bool isochoric = false
static

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

Definition at line 144 of file icoTabulated.H.


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