Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
perfectGas Class Reference

Perfect gas equation of state. More...

Public Member Functions

 perfectGas (const Specie &sp)
 
 perfectGas (const dictionary &dict)
 
 perfectGas (const word &name, const perfectGas &)
 
autoPtr< perfectGasclone () const
 
scalar rho (scalar p, scalar T) const
 
scalar H (const scalar p, const scalar T) const
 
scalar Cp (scalar p, scalar T) const
 
scalar E (const scalar p, const scalar T) const
 
scalar Cv (scalar p, scalar T) const
 
scalar S (const scalar p, const scalar T) const
 
scalar psi (scalar p, scalar T) const
 
scalar Z (scalar p, scalar T) const
 
scalar CpMCv (scalar p, scalar T) const
 
void write (Ostream &os) const
 
void operator+= (const perfectGas &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< perfectGasNew (const dictionary &dict)
 
static word typeName ()
 

Static Public Attributes

static const bool incompressible = false
 
static const bool isochoric = false
 

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

Perfect gas equation of state.

Source files

Definition at line 48 of file perfectGas.H.

Constructor & Destructor Documentation

◆ perfectGas() [1/3]

perfectGas ( const Specie &  sp)
inline

Definition at line 29 of file perfectGasI.H.

◆ perfectGas() [2/3]

perfectGas ( const dictionary dict)

Definition at line 27 of file perfectGas.C.

◆ perfectGas() [3/3]

perfectGas ( const word name,
const perfectGas  
)
inline

Member Function Documentation

◆ clone()

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

Definition at line 50 of file perfectGasI.H.

References Foam::New().

Here is the call graph for this function:

◆ New()

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

Definition at line 58 of file perfectGasI.H.

References dict, and Foam::New().

Here is the call graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Definition at line 112 of file perfectGas.H.

◆ rho()

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

Definition at line 69 of file perfectGasI.H.

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

Here is the call graph for this function:

◆ H()

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

Definition at line 76 of file perfectGasI.H.

◆ Cp()

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

Definition at line 83 of file perfectGasI.H.

◆ E()

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

Definition at line 90 of file perfectGasI.H.

◆ Cv()

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

Definition at line 97 of file perfectGasI.H.

◆ S()

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

Definition at line 104 of file perfectGasI.H.

References Foam::log(), Foam::constant::standard::Pstd, and R.

Here is the call graph for this function:

◆ psi()

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

Definition at line 111 of file perfectGasI.H.

References R, and Foam::T().

Here is the call graph for this function:

◆ Z()

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

Definition at line 118 of file perfectGasI.H.

◆ CpMCv()

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

Definition at line 125 of file perfectGasI.H.

References R.

◆ write()

void write ( Ostream os) const

Definition at line 36 of file perfectGas.C.

References os(), and Foam::vtk::write().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const perfectGas )
inline

Definition at line 134 of file perfectGasI.H.

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 141 of file perfectGasI.H.

References s.

Friends And Related Function Documentation

◆ operator+

perfectGas operator+ ( const perfectGas ,
const perfectGas  
)
friend

◆ operator*

perfectGas operator* ( const scalar  s,
const perfectGas  
)
friend

◆ operator==

perfectGas operator== ( const perfectGas ,
const perfectGas  
)
friend

◆ operator

Ostream& operator ( Ostream ,
const perfectGas  
)
friend

Member Data Documentation

◆ incompressible

const bool incompressible = false
static

Definition at line 121 of file perfectGas.H.

◆ isochoric

const bool isochoric = false
static

Definition at line 124 of file perfectGas.H.


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