PengRobinsonGas gas equation of state. More...
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< PengRobinsonGas > | clone () 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 PengRobinsonGas &) |
void | operator-= (const PengRobinsonGas &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static autoPtr< PengRobinsonGas > | New (Istream &is) |
static autoPtr< PengRobinsonGas > | New (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 &) |
Ostream & | operator (Ostream &, const PengRobinsonGas &) |
PengRobinsonGas gas equation of state.
Definition at line 47 of file PengRobinsonGas.H.
|
inline |
Construct from components.
Definition at line 33 of file PengRobinsonGasI.H.
Referenced by PengRobinsonGas< Specie >::PengRobinsonGas().
PengRobinsonGas | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 32 of file PengRobinsonGas.C.
References IOstream::check(), and PengRobinsonGas< Specie >::PengRobinsonGas().
PengRobinsonGas | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 47 of file PengRobinsonGas.C.
References Foam::constant::thermodynamic::RR.
|
inline |
Construct as named copy.
Definition at line 55 of file PengRobinsonGasI.H.
|
inline |
Construct and return a clone.
Definition at line 71 of file PengRobinsonGasI.H.
References PengRobinsonGas< Specie >::New().
|
inlinestatic |
Definition at line 83 of file PengRobinsonGasI.H.
Referenced by PengRobinsonGas< Specie >::clone().
|
inlinestatic |
Definition at line 94 of file PengRobinsonGasI.H.
References dict, and PengRobinsonGas< Specie >::rho().
|
inlinestatic |
Return the instantiated type name.
Definition at line 153 of file PengRobinsonGas.H.
|
inline |
Return density [kg/m^3].
Definition at line 109 of file PengRobinsonGasI.H.
Referenced by PengRobinsonGas< Specie >::New().
|
inline |
Return enthalpy departure [J/kmol].
Definition at line 120 of file PengRobinsonGasI.H.
References Foam::constant::atomic::alpha, Foam::constant::electromagnetic::kappa, Foam::log(), Pr(), Foam::constant::thermodynamic::RR, Foam::sqr(), and Foam::sqrt().
|
inline |
Return cp departure [J/(kmol K].
Definition at line 141 of file PengRobinsonGasI.H.
References Foam::constant::atomic::alpha, Foam::constant::physicoChemical::b, Foam::constant::electromagnetic::kappa, Foam::log(), M, N, Foam::pow3(), Foam::constant::thermodynamic::RR, PengRobinsonGas< Specie >::s(), Foam::sqr(), Foam::sqrt(), and T.
|
inline |
Return entropy [J/(kmol K)].
Definition at line 171 of file PengRobinsonGasI.H.
References Foam::constant::electromagnetic::kappa, Foam::log(), Pr(), PengRobinsonGas< Specie >::psi(), Foam::constant::standard::Pstd, Foam::constant::thermodynamic::RR, Foam::sqr(), and Foam::sqrt().
Referenced by PengRobinsonGas< Specie >::cp().
|
inline |
Return compressibility rho/p [s^2/m^2].
Definition at line 196 of file PengRobinsonGasI.H.
References R, T, and PengRobinsonGas< Specie >::Z().
Referenced by PengRobinsonGas< Specie >::s().
|
inline |
Return compression factor [-].
Definition at line 209 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::constant::electromagnetic::kappa, Foam::mag(), Foam::max(), Foam::constant::mathematical::pi(), Foam::pow(), Foam::pow3(), Foam::constant::thermodynamic::RR, Foam::sqr(), Foam::sqrt(), and T.
Referenced by PengRobinsonGas< Specie >::psi().
|
inline |
Return (cp - cv) [J/(kmol K].
Definition at line 269 of file PengRobinsonGasI.H.
References Foam::constant::atomic::alpha, Foam::constant::physicoChemical::b, Foam::constant::electromagnetic::kappa, M, N, Foam::constant::thermodynamic::RR, Foam::sqr(), Foam::sqrt(), and T.
Referenced by PengRobinsonGas< Specie >::Z().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 66 of file PengRobinsonGas.C.
References token::SPACE, and write().
|
inline |
Definition at line 297 of file PengRobinsonGasI.H.
References Foam::constant::thermodynamic::RR.
|
inline |
Definition at line 317 of file PengRobinsonGasI.H.
References Foam::constant::thermodynamic::RR.
|
inline |
Definition at line 337 of file PengRobinsonGasI.H.
References Foam::constant::thermodynamic::RR, and s().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 162 of file PengRobinsonGas.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 165 of file PengRobinsonGas.H.