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 (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 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< 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 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.
PengRobinsonGas | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 33 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.
References dict, and PengRobinsonGas< Specie >::rho().
Referenced by PengRobinsonGas< Specie >::clone().
|
inlinestatic |
Return the instantiated type name.
Definition at line 140 of file PengRobinsonGas.H.
|
inline |
Return density [kg/m^3].
Definition at line 98 of file PengRobinsonGasI.H.
Referenced by PengRobinsonGas< Specie >::New().
|
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().
|
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::thermodynamic::RR, Foam::sqr(), Foam::sqrt(), T, and W().
|
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().
|
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::thermodynamic::RR, PengRobinsonGas< Specie >::Sp(), Foam::sqr(), Foam::sqrt(), T, and W().
|
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().
|
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().
|
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().
|
inline |
Return compression factor [].
Definition at line 259 of file PengRobinsonGasI.H.
References Foam::constant::atomic::a0, Foam::acos(), 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/(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::thermodynamic::RR, Foam::sqr(), Foam::sqrt(), and T.
Referenced by PengRobinsonGas< Specie >::Z().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 52 of file PengRobinsonGas.C.
References Foam::vtkWriteOps::write(), and Ostream::write().
|
inline |
Definition at line 349 of file PengRobinsonGasI.H.
References Foam::mag(), Foam::constant::thermodynamic::RR, W(), and Y.
|
inline |
Definition at line 371 of file PengRobinsonGasI.H.
References Foam::mag(), Foam::constant::thermodynamic::RR, and s().
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 149 of file PengRobinsonGas.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 152 of file PengRobinsonGas.H.