Loading...
Searching...
No Matches
perfectGas< Specie > Class Template Reference

Perfect gas equation of state. More...

#include <perfectGas.H>

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

Public Member Functions

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

Static Public Member Functions

static autoPtr< perfectGasNew (const dictionary &dict)
static word typeName ()
 Return the instantiated type name.

Static Public Attributes

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

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

Detailed Description

template<class Specie>
class Foam::perfectGas< Specie >

Perfect gas equation of state.

Source files

Definition at line 84 of file perfectGas.H.

Constructor & Destructor Documentation

◆ perfectGas() [1/3]

template<class Specie>
perfectGas ( const Specie & sp)
inline

Construct from components.

Definition at line 29 of file perfectGasI.H.

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

Here is the caller graph for this function:

◆ perfectGas() [2/3]

template<class Specie>
perfectGas ( const dictionary & dict)

Construct from dictionary.

Definition at line 27 of file perfectGas.C.

References dict.

◆ perfectGas() [3/3]

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

Construct as named copy.

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

Here is the call graph for this function:

Member Function Documentation

◆ clone()

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

Construct and return a clone.

Definition at line 50 of file perfectGasI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

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

Definition at line 57 of file perfectGasI.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 122 of file perfectGas.H.

◆ rho()

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

Return density [kg/m^3].

Definition at line 69 of file perfectGasI.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 76 of file perfectGasI.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 83 of file perfectGasI.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 90 of file perfectGasI.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 97 of file perfectGasI.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 104 of file perfectGasI.H.

References Foam::log(), p, Foam::constant::thermodynamic::Pstd, R, 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 111 of file perfectGasI.H.

References p, R, 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 118 of file perfectGasI.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 125 of file perfectGasI.H.

References p, R, 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 36 of file perfectGas.C.

References os().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 134 of file perfectGasI.H.

References perfectGas().

Here is the call graph for this function:

◆ operator*=()

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

Definition at line 141 of file perfectGasI.H.

References s().

Here is the call graph for this function:

◆ operator+

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

References perfectGas().

◆ operator*

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

References perfectGas(), and s().

◆ operator==

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

References perfectGas().

◆ operator<<

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

References perfectGas().

Member Data Documentation

◆ incompressible

template<class Specie>
const bool incompressible = false
static

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

Definition at line 133 of file perfectGas.H.

◆ isochoric

template<class Specie>
const bool isochoric = false
static

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

Definition at line 138 of file perfectGas.H.


The documentation for this class was generated from the following files:
  • src/thermophysicalModels/specie/equationOfState/perfectGas/perfectGas.H
  • src/thermophysicalModels/specie/equationOfState/perfectGas/perfectGas.C
  • src/thermophysicalModels/specie/equationOfState/perfectGas/perfectGasI.H