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 (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 departure [J/kg]. More...
 
scalar Cp (scalar p, scalar T) const
 Return Cp departure [J/(kg K]. More...
 
scalar S (const scalar p, const scalar T) const
 Return entropy [J/(kg 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/(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::thermodynamic::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 departure [J/kg].

Definition at line 109 of file PengRobinsonGasI.H.

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

Here is the call graph for this function:

◆ Cp()

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

◆ S()

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

Return entropy [J/(kg K)].

Definition at line 163 of file PengRobinsonGasI.H.

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

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

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 rho/p [s^2/m^2].

Definition at line 190 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:

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

References Foam::constant::atomic::alpha, Foam::constant::physicoChemical::b, Foam::constant::electromagnetic::kappa, M, N, R, Foam::constant::thermodynamic::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::blockMeshTools::write(), and Ostream::write().

Here is the call graph for this function:

◆ operator+=()

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

Definition at line 293 of file PengRobinsonGasI.H.

References Foam::mag(), Foam::constant::thermodynamic::RR, Y, Y1, and Y2.

Here is the call graph for this function:

◆ operator*=()

void operator*= ( const scalar  s)
inline

Definition at line 315 of file PengRobinsonGasI.H.

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

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: