OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

perfectGas Class Reference

Perfect gas equation of state. More...

Inheritance diagram for perfectGas:
Collaboration diagram for perfectGas:

List of all members.


Public Member Functions

 perfectGas (const specie &sp)
 Construct from components.
 perfectGas (Istream &)
 Construct from Istream.
 perfectGas (const word &name, const perfectGas &)
 Construct as named copy.
autoPtr< perfectGas > clone () const
 Construct and return a clone.
scalar rho (scalar p, scalar T) const
 Return density [kg/m^3].
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 [].
void operator+= (const perfectGas &)
void operator-= (const perfectGas &)
void operator*= (const scalar)

Static Public Member Functions

static autoPtr< perfectGas > New (Istream &is)

Friends

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

Detailed Description

Perfect gas equation of state.

Source files

Definition at line 46 of file perfectGas.H.


Constructor & Destructor Documentation

perfectGas ( const specie &  sp  )  [inline]

Construct from components.

Definition at line 29 of file perfectGasI.H.

Referenced by perfectGas::New(), perfectGas::perfectGas(), and perfectGas::rho().

Here is the caller graph for this function:

perfectGas ( Istream &  is  ) 

Construct from Istream.

Definition at line 32 of file perfectGas.C.

References perfectGas::perfectGas().

Here is the call graph for this function:

perfectGas ( const word &  name,
const perfectGas &  pg 
) [inline]

Construct as named copy.

Definition at line 40 of file perfectGasI.H.


Member Function Documentation

autoPtr< perfectGas > clone (  )  const [inline]

Construct and return a clone.

Definition at line 47 of file perfectGasI.H.

autoPtr< perfectGas > New ( Istream &  is  )  [inline, static]

Definition at line 54 of file perfectGasI.H.

References perfectGas::perfectGas().

Here is the call graph for this function:

scalar rho ( scalar  p,
scalar  T 
) const [inline]

Return density [kg/m^3].

Definition at line 63 of file perfectGasI.H.

References perfectGas::perfectGas().

Here is the call graph for this function:

scalar psi ( scalar  p,
scalar  T 
) const [inline]

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

Definition at line 69 of file perfectGasI.H.

References specie::R().

Here is the call graph for this function:

scalar Z ( scalar  p,
scalar  T 
) const [inline]

Return compression factor [].

Definition at line 75 of file perfectGasI.H.

void operator+= ( const perfectGas &  pg  )  [inline]

Definition at line 83 of file perfectGasI.H.

Referenced by perfectGas::operator*=().

Here is the caller graph for this function:

void operator-= ( const perfectGas &  pg  )  [inline]

Definition at line 88 of file perfectGasI.H.

void operator*= ( const scalar  s  )  [inline]

Reimplemented from specie.

Definition at line 93 of file perfectGasI.H.

References perfectGas::operator+=().

Referenced by Foam::operator+().

Here is the call graph for this function:

Here is the caller graph for this function:


Friends And Related Function Documentation

perfectGas operator+ ( const perfectGas &  pg1,
const perfectGas &  pg2 
) [friend]

Definition at line 102 of file perfectGasI.H.

perfectGas operator- ( const perfectGas &  pg1,
const perfectGas &  pg2 
) [friend]

Definition at line 116 of file perfectGasI.H.

perfectGas operator* ( const scalar  s,
const perfectGas &  pg 
) [friend]

Definition at line 130 of file perfectGasI.H.

perfectGas operator== ( const perfectGas &  pg1,
const perfectGas &  pg2 
) [friend]

Definition at line 140 of file perfectGasI.H.

Ostream& operator<< ( Ostream &  os,
const perfectGas &  pg 
) [friend]

Definition at line 42 of file perfectGas.C.


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
Copyright © 2000-2009 OpenCFD Ltd