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

PengRobinsonGas gas equation of state. More...

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

Public Member Functions

 PengRobinsonGas (const Specie &sp, const scalar &Tc, const scalar &Vc, const scalar &Zc, const scalar &Pc, const scalar &omega)
 Construct from components. More...
 
 PengRobinsonGas (Istream &)
 Construct from Istream. More...
 
 PengRobinsonGas (const dictionary &dict)
 Construct from dictionary. More...
 
 PengRobinsonGas (const word &name, const PengRobinsonGas &)
 Construct as named copy. More...
 
autoPtr< PengRobinsonGasclone () const
 Construct and return a clone. More...
 
scalar rho (scalar p, scalar T) const
 Return density [kg/m^3]. 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 PengRobinsonGas &)
 
void operator-= (const PengRobinsonGas &)
 
void operator*= (const scalar)
 

Static Public Member Functions

static autoPtr< PengRobinsonGasNew (Istream &is)
 
static autoPtr< PengRobinsonGasNew (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

PengRobinsonGas operator+ (const PengRobinsonGas &, const PengRobinsonGas &)
 
PengRobinsonGas operator- (const PengRobinsonGas &, const PengRobinsonGas &)
 
PengRobinsonGas operator* (const scalar s, const PengRobinsonGas &)
 
PengRobinsonGas operator== (const PengRobinsonGas &, const PengRobinsonGas &)
 
Ostreamoperator (Ostream &, const PengRobinsonGas &)
 

Detailed Description

template<class Specie>
class Foam::PengRobinsonGas< Specie >

PengRobinsonGas gas equation of state.

Source files

Definition at line 47 of file PengRobinsonGas.H.

Constructor & Destructor Documentation

PengRobinsonGas ( const Specie &  sp,
const scalar &  Tc,
const scalar &  Vc,
const scalar &  Zc,
const scalar &  Pc,
const scalar &  omega 
)
inline

Construct from components.

Definition at line 33 of file PengRobinsonGasI.H.

Referenced by PengRobinsonGas< Specie >::PengRobinsonGas().

Here is the caller graph for this function:

Construct from Istream.

Definition at line 32 of file PengRobinsonGas.C.

References IOstream::check(), and PengRobinsonGas< Specie >::PengRobinsonGas().

Here is the call graph for this function:

PengRobinsonGas ( const dictionary dict)

Construct from dictionary.

Definition at line 47 of file PengRobinsonGas.C.

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

PengRobinsonGas ( const word name,
const PengRobinsonGas< Specie > &  pg 
)
inline

Construct as named copy.

Definition at line 55 of file PengRobinsonGasI.H.

Member Function Documentation

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

Construct and return a clone.

Definition at line 71 of file PengRobinsonGasI.H.

References PengRobinsonGas< Specie >::New().

Here is the call graph for this function:

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

Definition at line 83 of file PengRobinsonGasI.H.

Referenced by PengRobinsonGas< Specie >::clone().

Here is the caller graph for this function:

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

Definition at line 94 of file PengRobinsonGasI.H.

References dict, and PengRobinsonGas< Specie >::rho().

Here is the call graph for this function:

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 153 of file PengRobinsonGas.H.

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

Return density [kg/m^3].

Definition at line 109 of file PengRobinsonGasI.H.

References R, PengRobinsonGas< Specie >::s(), and T.

Referenced by PengRobinsonGas< Specie >::New().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return entropy [J/(kmol K)].

Definition at line 121 of file PengRobinsonGasI.H.

References Foam::log(), PengRobinsonGas< Specie >::psi(), Foam::constant::standard::Pstd, and Foam::constant::thermodynamic::RR.

Referenced by PengRobinsonGas< Specie >::rho().

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 134 of file PengRobinsonGasI.H.

References R, T, and PengRobinsonGas< Specie >::Z().

Referenced by PengRobinsonGas< Specie >::s().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Return compression factor [-].

Definition at line 146 of file PengRobinsonGasI.H.

References Foam::constant::atomic::a0, Foam::acos(), Foam::constant::atomic::alpha, Foam::constant::physicoChemical::b, Foam::cos(), PengRobinsonGas< Specie >::cpMcv(), Foam::mag(), Foam::max(), Foam::constant::mathematical::pi(), Foam::pow(), Foam::pow3(), R, Foam::sqr(), Foam::sqrt(), and T.

Referenced by PengRobinsonGas< Specie >::psi().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 212 of file PengRobinsonGasI.H.

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

Referenced by PengRobinsonGas< Specie >::Z().

Here is the caller graph for this function:

void write ( Ostream os) const

Write to Ostream.

Definition at line 66 of file PengRobinsonGas.C.

References token::SPACE, and write().

Here is the call graph for this function:

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

Definition at line 225 of file PengRobinsonGasI.H.

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

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

Definition at line 245 of file PengRobinsonGasI.H.

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

void operator*= ( const scalar  s)
inline

Definition at line 265 of file PengRobinsonGasI.H.

References Foam::constant::thermodynamic::RR, and s().

Here is the call graph for this function:

Friends And Related Function Documentation

PengRobinsonGas operator+ ( const PengRobinsonGas< Specie > &  ,
const PengRobinsonGas< Specie > &   
)
friend
PengRobinsonGas operator- ( const PengRobinsonGas< Specie > &  ,
const PengRobinsonGas< Specie > &   
)
friend
PengRobinsonGas operator* ( const scalar  s,
const PengRobinsonGas< Specie > &   
)
friend
PengRobinsonGas operator== ( const PengRobinsonGas< Specie > &  ,
const PengRobinsonGas< Specie > &   
)
friend
Ostream& operator ( Ostream ,
const PengRobinsonGas< 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 162 of file PengRobinsonGas.H.

const bool isochoric = false
static

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

Definition at line 165 of file PengRobinsonGas.H.


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