Loading...
Searching...
No Matches
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 and composition. More...

#include <incompressiblePerfectGas.H>

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

Public Member Functions

 incompressiblePerfectGas (const Specie &sp, const scalar pRef)
 Construct from components.
 incompressiblePerfectGas (const dictionary &dict)
 Construct from dictionary.
 incompressiblePerfectGas (const word &name, const incompressiblePerfectGas &)
 Construct as named copy.
autoPtr< incompressiblePerfectGasclone () const
 Construct and return a clone.
scalar rho (scalar p, scalar T) const
 Return density [kg/m^3].
scalar H (const scalar p, const scalar T) const
 Return enthalpy departure [J/kg].
scalar Cp (scalar p, scalar T) const
 Return Cp departure [J/(kg K].
scalar E (const scalar p, const scalar T) const
 Return internal energy departure [J/kg].
scalar Cv (scalar p, scalar T) const
 Return Cv departure [J/(kg K].
scalar S (const scalar p, const scalar T) const
 Return entropy [J/(kg K)].
scalar psi (scalar p, scalar T) const
 Return compressibility rho/p [s^2/m^2].
scalar Z (scalar p, scalar T) const
 Return compression factor [].
scalar CpMCv (scalar p, scalar T) const
 Return (Cp - Cv) [J/(kg K].
void write (Ostream &os) const
 Write to Ostream.
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.

Static Public Attributes

static const bool incompressible = true
 Is the equation of state is incompressible i.e. rho != f(p).
static const bool isochoric = false
 Is the equation of state is isochoric i.e. rho = const.

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 and composition.

Source files

Definition at line 87 of file incompressiblePerfectGas.H.

Constructor & Destructor Documentation

◆ incompressiblePerfectGas() [1/3]

template<class Specie>
incompressiblePerfectGas ( const Specie & sp,
const scalar pRef )
inline

Construct from components.

Definition at line 26 of file incompressiblePerfectGasI.H.

Referenced by incompressiblePerfectGas(), operator*, operator+, operator+=(), operator<<, and operator==.

Here is the caller graph for this function:

◆ incompressiblePerfectGas() [2/3]

template<class Specie>
incompressiblePerfectGas ( const dictionary & dict)
explicit

Construct from dictionary.

Definition at line 27 of file incompressiblePerfectGas.C.

References dict.

◆ incompressiblePerfectGas() [3/3]

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

Construct as named copy.

References dict, incompressiblePerfectGas(), and Foam::name().

Here is the call graph for this function:

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 51 of file incompressiblePerfectGasI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

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

Definition at line 59 of file incompressiblePerfectGasI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

template<class Specie>
word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 142 of file incompressiblePerfectGas.H.

◆ rho()

template<class Specie>
Foam::scalar rho ( scalar p,
scalar T ) const
inline

Return density [kg/m^3].

Definition at line 71 of file incompressiblePerfectGasI.H.

References p, R, and Foam::T().

Here is the call graph for this function:

◆ H()

template<class Specie>
Foam::scalar H ( const scalar p,
const scalar T ) const
inline

Return enthalpy departure [J/kg].

Definition at line 82 of file incompressiblePerfectGasI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Cp()

template<class Specie>
Foam::scalar Cp ( scalar p,
scalar T ) const
inline

Return Cp departure [J/(kg K].

Definition at line 93 of file incompressiblePerfectGasI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ E()

template<class Specie>
Foam::scalar E ( const scalar p,
const scalar T ) const
inline

Return internal energy departure [J/kg].

Definition at line 104 of file incompressiblePerfectGasI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Cv()

template<class Specie>
Foam::scalar Cv ( scalar p,
scalar T ) const
inline

Return Cv departure [J/(kg K].

Definition at line 115 of file incompressiblePerfectGasI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ S()

template<class Specie>
Foam::scalar S ( const scalar p,
const scalar T ) const
inline

Return entropy [J/(kg K)].

Definition at line 126 of file incompressiblePerfectGasI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ psi()

template<class Specie>
Foam::scalar psi ( scalar p,
scalar T ) const
inline

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

Definition at line 137 of file incompressiblePerfectGasI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ Z()

template<class Specie>
Foam::scalar Z ( scalar p,
scalar T ) const
inline

Return compression factor [].

Definition at line 148 of file incompressiblePerfectGasI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ CpMCv()

template<class Specie>
Foam::scalar CpMCv ( scalar p,
scalar T ) const
inline

Return (Cp - Cv) [J/(kg K].

Definition at line 159 of file incompressiblePerfectGasI.H.

References p, and Foam::T().

Here is the call graph for this function:

◆ write()

template<class Specie>
void write ( Ostream & os) const

Write to Ostream.

Definition at line 40 of file incompressiblePerfectGas.C.

References os().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 172 of file incompressiblePerfectGasI.H.

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

Here is the call graph for this function:

◆ operator*=()

template<class Specie>
void operator*= ( const scalar s)
inline

Definition at line 191 of file incompressiblePerfectGasI.H.

References s().

Here is the call graph for this function:

◆ operator+

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

◆ operator*

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

References incompressiblePerfectGas(), and s().

◆ operator==

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

◆ operator<<

template<class Specie>
Ostream & operator<< ( Ostream & ,
const incompressiblePerfectGas< Specie > &  )
friend

Member Data Documentation

◆ incompressible

template<class Specie>
const bool incompressible = true
static

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

Definition at line 155 of file incompressiblePerfectGas.H.

◆ isochoric

template<class Specie>
const bool isochoric = false
static

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

Definition at line 160 of file incompressiblePerfectGas.H.


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