incompressiblePerfectGas< Specie > Class Template Reference

Incompressible gas equation of state using a constant reference pressure in the perfect gas equation of state rather than the local pressure so that the density only varies with temperature: More...

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

Public Member Functions

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

Static Public Member Functions

static autoPtr< incompressiblePerfectGasNew (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

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

Detailed Description

template<class Specie>
class Foam::incompressiblePerfectGas< Specie >

Incompressible gas equation of state using a constant reference pressure in the perfect gas equation of state rather than the local pressure so that the density only varies with temperature:

    rho = pRef/(R*T)
Usage
Property Description
pRef Reference pressure

Example specification of the incompressiblePerfectGas equation of state:

    equationOfState
    {
        pRef        1e5;
    }
Source files

Definition at line 73 of file incompressiblePerfectGas.H.

Constructor & Destructor Documentation

◆ incompressiblePerfectGas() [1/3]

incompressiblePerfectGas ( const Specie &  sp,
const scalar  pRef 
)
inline

Construct from components.

Definition at line 33 of file incompressiblePerfectGasI.H.

References Foam::name().

Here is the call graph for this function:

◆ incompressiblePerfectGas() [2/3]

Construct from dictionary.

Definition at line 33 of file incompressiblePerfectGas.C.

◆ incompressiblePerfectGas() [3/3]

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

Construct as named copy.

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 56 of file incompressiblePerfectGasI.H.

References incompressiblePerfectGas< Specie >::New().

Here is the call graph for this function:

◆ New()

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

Definition at line 68 of file incompressiblePerfectGasI.H.

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

Referenced by incompressiblePerfectGas< Specie >::clone().

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

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 149 of file incompressiblePerfectGas.H.

◆ rho()

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

Return density [kg/m^3].

Definition at line 83 of file incompressiblePerfectGasI.H.

References incompressiblePerfectGas< Specie >::H(), R, and T.

Referenced by incompressiblePerfectGas< 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 94 of file incompressiblePerfectGasI.H.

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

Referenced by incompressiblePerfectGas< 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 105 of file incompressiblePerfectGasI.H.

References incompressiblePerfectGas< Specie >::E().

Referenced by incompressiblePerfectGas< 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 116 of file incompressiblePerfectGasI.H.

References incompressiblePerfectGas< Specie >::Cv().

Referenced by incompressiblePerfectGas< 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 127 of file incompressiblePerfectGasI.H.

References incompressiblePerfectGas< Specie >::Sp().

Referenced by incompressiblePerfectGas< 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 138 of file incompressiblePerfectGasI.H.

References incompressiblePerfectGas< Specie >::Sv().

Referenced by incompressiblePerfectGas< 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 149 of file incompressiblePerfectGasI.H.

References incompressiblePerfectGas< Specie >::psi().

Referenced by incompressiblePerfectGas< 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 160 of file incompressiblePerfectGasI.H.

References incompressiblePerfectGas< Specie >::Z().

Referenced by incompressiblePerfectGas< 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 171 of file incompressiblePerfectGasI.H.

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

Referenced by incompressiblePerfectGas< 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 182 of file incompressiblePerfectGasI.H.

References incompressiblePerfectGas< Specie >::alphav().

Referenced by incompressiblePerfectGas< 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 193 of file incompressiblePerfectGasI.H.

References T.

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

Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 45 of file incompressiblePerfectGas.C.

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

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 206 of file incompressiblePerfectGasI.H.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::name(), and Foam::notEqual().

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 225 of file incompressiblePerfectGasI.H.

References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::notEqual(), and s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

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

◆ operator*

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

◆ operator==

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

◆ operator

Ostream& operator ( Ostream ,
const incompressiblePerfectGas< 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 160 of file incompressiblePerfectGas.H.

◆ isochoric

const bool isochoric = false
static

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

Definition at line 163 of file incompressiblePerfectGas.H.


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