PengRobinsonGas< Specie > Class Template Reference

PengRobinsonGas gas equation of state. More...

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

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 (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 H (const scalar p, const scalar T) const
 Return enthalpy contribution [J/kg]. More...
 
scalar Cp (scalar p, scalar T) const
 Return Cp contribution [J/(kg K]. More...
 
scalar E (const scalar p, const scalar T) const
 Return internal energy contribution [J/kg]. More...
 
scalar Cv (scalar p, scalar T) const
 Return Cv contribution [J/(kg K]. More...
 
scalar Sp (const scalar p, const scalar T) const
 Return entropy contribution to the integral of Cp/T [J/kg/K]. More...
 
scalar Sv (const scalar p, const scalar T) const
 Return entropy contribution to the integral of Cv/T [J/kg/K]. More...
 
scalar psi (scalar p, scalar T) const
 Return compressibility [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/(kg K]. More...
 
void write (Ostream &os) const
 Write to Ostream. More...
 
void operator+= (const PengRobinsonGas &)
 
void operator*= (const scalar)
 

Static Public Member Functions

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 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() [1/3]

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.

◆ PengRobinsonGas() [2/3]

PengRobinsonGas ( const dictionary dict)

Construct from dictionary.

Definition at line 33 of file PengRobinsonGas.C.

References Foam::constant::physicoChemical::RR.

◆ PengRobinsonGas() [3/3]

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

Construct as named copy.

Definition at line 55 of file PengRobinsonGasI.H.

Member Function Documentation

◆ clone()

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:

◆ New()

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

Definition at line 83 of file PengRobinsonGasI.H.

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

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ typeName()

static word typeName ( )
inlinestatic

Return the instantiated type name.

Definition at line 140 of file PengRobinsonGas.H.

◆ rho()

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

Return density [kg/m^3].

Definition at line 98 of file PengRobinsonGasI.H.

References R, and T.

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

Here is the caller graph for this function:

◆ H()

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

Return enthalpy contribution [J/kg].

Definition at line 109 of file PengRobinsonGasI.H.

References alpha(), Foam::constant::electromagnetic::kappa, Foam::log(), R, Foam::sqr(), and Foam::sqrt().

Here is the call graph for this function:

◆ Cp()

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

Return Cp contribution [J/(kg K].

Definition at line 131 of file PengRobinsonGasI.H.

References alpha(), Foam::constant::physicoChemical::b, Foam::constant::electromagnetic::kappa, Foam::log(), M, N, Foam::pow3(), Foam::constant::physicoChemical::RR, Foam::sqr(), Foam::sqrt(), T, and W().

Here is the call graph for this function:

◆ E()

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

Return internal energy contribution [J/kg].

Definition at line 162 of file PengRobinsonGasI.H.

References alpha(), Foam::constant::electromagnetic::kappa, Foam::log(), R, Foam::sqr(), and Foam::sqrt().

Here is the call graph for this function:

◆ Cv()

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

Return Cv contribution [J/(kg K].

Definition at line 183 of file PengRobinsonGasI.H.

References Foam::constant::physicoChemical::b, Foam::constant::electromagnetic::kappa, Foam::log(), Foam::pow3(), Foam::constant::physicoChemical::RR, PengRobinsonGas< Specie >::Sp(), Foam::sqr(), Foam::sqrt(), T, and W().

Here is the call graph for this function:

◆ Sp()

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

Return entropy contribution to the integral of Cp/T [J/kg/K].

Definition at line 207 of file PengRobinsonGasI.H.

References Foam::constant::electromagnetic::kappa, Foam::log(), Foam::constant::standard::Pstd, R, Foam::sqr(), Foam::sqrt(), and PengRobinsonGas< Specie >::Sv().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Sv()

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

Return entropy contribution to the integral of Cv/T [J/kg/K].

Definition at line 234 of file PengRobinsonGasI.H.

References NotImplemented, and PengRobinsonGas< Specie >::psi().

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ psi()

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

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

Definition at line 246 of file PengRobinsonGasI.H.

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

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Z()

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

◆ CpMCv()

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

Return (Cp - Cv) [J/(kg K].

Definition at line 321 of file PengRobinsonGasI.H.

References alpha(), Foam::constant::physicoChemical::b, Foam::constant::electromagnetic::kappa, M, N, R, Foam::constant::physicoChemical::RR, Foam::sqr(), Foam::sqrt(), and T.

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

Here is the call graph for this function:
Here is the caller graph for this function:

◆ write()

void write ( Ostream os) const

Write to Ostream.

Definition at line 52 of file PengRobinsonGas.C.

References Foam::vtkWriteOps::write(), and Ostream::write().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 349 of file PengRobinsonGasI.H.

References Foam::mag(), Foam::constant::physicoChemical::RR, W(), and Y.

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 371 of file PengRobinsonGasI.H.

References Foam::mag(), Foam::constant::physicoChemical::RR, and s().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator+

PengRobinsonGas operator+ ( const PengRobinsonGas< Specie > &  ,
const PengRobinsonGas< Specie > &   
)
friend

◆ operator*

PengRobinsonGas operator* ( const scalar  s,
const PengRobinsonGas< Specie > &   
)
friend

◆ operator==

PengRobinsonGas operator== ( const PengRobinsonGas< Specie > &  ,
const PengRobinsonGas< Specie > &   
)
friend

◆ operator

Ostream& operator ( Ostream ,
const PengRobinsonGas< Specie > &   
)
friend

Member Data Documentation

◆ incompressible

const bool incompressible = false
static

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

Definition at line 149 of file PengRobinsonGas.H.

◆ isochoric

const bool isochoric = false
static

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

Definition at line 152 of file PengRobinsonGas.H.


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