Public Member Functions | Static Public Member Functions | Static Public Attributes | Friends | List of all members
perfectGas< Specie > Class Template Reference

Perfect gas equation of state. More...

Inheritance diagram for perfectGas< Specie >:
Inheritance graph
[legend]
Collaboration diagram for perfectGas< Specie >:
Collaboration graph
[legend]

Public Member Functions

 perfectGas (const Specie &sp)
 Construct from components. More...
 
 perfectGas (Istream &)
 Construct from Istream. More...
 
 perfectGas (const dictionary &dict)
 Construct from dictionary. More...
 
 perfectGas (const word &name, const perfectGas &)
 Construct as named copy. More...
 
autoPtr< perfectGasclone () 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 departure [J/kmol]. More...
 
scalar cp (scalar p, scalar T) const
 Return cp departure [J/(kmol K]. More...
 
scalar s (const scalar p, const scalar T) const
 Return entropy [J/(kmol K)]. More...
 
scalar psi (scalar p, scalar T) const
 Return compressibility rho/p [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/(kmol K]. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 
void operator+= (const perfectGas &)
 
void operator-= (const perfectGas &)
 
void operator*= (const scalar)
 

Static Public Member Functions

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

Static Public Attributes

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

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 &)
 
Ostreamoperator (Ostream &, const perfectGas &)
 

Detailed Description

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

Perfect gas equation of state.

Source files

Definition at line 47 of file perfectGas.H.

Constructor & Destructor Documentation

perfectGas ( const Specie &  sp)
inline

Construct from components.

Definition at line 31 of file perfectGasI.H.

References Foam::name().

Here is the call graph for this function:

perfectGas ( Istream is)

Construct from Istream.

Definition at line 32 of file perfectGas.C.

References IOstream::check().

Here is the call graph for this function:

perfectGas ( const dictionary dict)

Construct from dictionary.

Definition at line 41 of file perfectGas.C.

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

Construct as named copy.

Member Function Documentation

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

Construct and return a clone.

Definition at line 52 of file perfectGasI.H.

Foam::autoPtr< Foam::perfectGas< Specie > > New ( Istream is)
inlinestatic

Definition at line 60 of file perfectGasI.H.

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

Definition at line 68 of file perfectGasI.H.

References dict.

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 124 of file perfectGas.H.

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

Return density [kg/m^3].

Definition at line 79 of file perfectGasI.H.

References R, and Foam::T().

Here is the call graph for this function:

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

Return enthalpy departure [J/kmol].

Definition at line 86 of file perfectGasI.H.

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

Return cp departure [J/(kmol K].

Definition at line 93 of file perfectGasI.H.

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

Return entropy [J/(kmol K)].

Definition at line 100 of file perfectGasI.H.

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

Referenced by perfectGas< Specie >::operator*=().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 107 of file perfectGasI.H.

References R, and Foam::T().

Here is the call graph for this function:

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

Return compression factor [].

Definition at line 114 of file perfectGasI.H.

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

Return (cp - cv) [J/(kmol K].

Definition at line 121 of file perfectGasI.H.

References Foam::constant::thermodynamic::RR.

void write ( Ostream os) const

Write to Ostream.

Definition at line 50 of file perfectGas.C.

References IOstream::check(), and write().

Here is the call graph for this function:

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

Definition at line 130 of file perfectGasI.H.

void operator-= ( const perfectGas< Specie > &  )
inline

Definition at line 137 of file perfectGasI.H.

void operator*= ( const scalar  s)
inline

Definition at line 144 of file perfectGasI.H.

References perfectGas< Specie >::s().

Here is the call graph for this function:

Friends And Related Function Documentation

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

Member Data Documentation

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.

const bool isochoric = false
static

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

Definition at line 136 of file perfectGas.H.


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