PengRobinsonGas gas equation of state. More...
#include <PengRobinsonGas.H>


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. | |
| PengRobinsonGas (const dictionary &dict) | |
| Construct from dictionary. | |
| PengRobinsonGas (const word &name, const PengRobinsonGas &) | |
| Construct as named copy. | |
| autoPtr< PengRobinsonGas > | clone () const |
| Construct and return a clone. | |
| scalar | rho (scalar p, scalar T) const |
| Return density [kg/m^3]. | |
| scalar | H (const scalar p, const scalar T) const |
| Return enthalpy departure [J/kg]. | |
| scalar | Cp (scalar p, scalar T) const |
| Return Cp departure [J/(kg K]. | |
| scalar | E (const scalar p, const scalar T) const |
| Return internal energy departure [J/kg]. | |
| scalar | Cv (scalar p, scalar T) const |
| Return Cv departure [J/(kg K]. | |
| scalar | S (const scalar p, const scalar T) const |
| Return entropy [J/(kg K)]. | |
| scalar | psi (scalar p, scalar T) const |
| Return compressibility rho/p [s^2/m^2]. | |
| scalar | Z (scalar p, scalar T) const |
| Return compression factor []. | |
| scalar | CpMCv (scalar p, scalar T) const |
| Return (Cp - Cv) [J/(kg K]. | |
| void | write (Ostream &os) const |
| Write to Ostream. | |
| 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. | |
Static Public Attributes | |
| static const bool | incompressible = false |
| Is the equation of state is incompressible i.e. rho != f(p). | |
| static const bool | isochoric = false |
| Is the equation of state is isochoric i.e. rho = const. | |
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 85 of file PengRobinsonGas.H.
|
inline |
Construct from components.
Definition at line 27 of file PengRobinsonGasI.H.
Referenced by operator*, operator+, operator+=(), operator<<, operator==, and PengRobinsonGas().

| PengRobinsonGas | ( | const dictionary & | dict | ) |
|
inline |
Construct as named copy.
Definition at line 49 of file PengRobinsonGasI.H.
References Foam::name(), and PengRobinsonGas().

|
inline |
Construct and return a clone.
Definition at line 66 of file PengRobinsonGasI.H.
References Foam::New().

|
inlinestatic |
Definition at line 74 of file PengRobinsonGasI.H.
References dict, and Foam::New().

|
inlinestatic |
Return the instantiated type name.
Definition at line 161 of file PengRobinsonGas.H.
|
inline |
|
inline |
Return enthalpy departure [J/kg].
Definition at line 98 of file PengRobinsonGasI.H.
References alpha, B, Foam::log(), p, Pr(), R, Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

|
inline |
Return Cp departure [J/(kg K].
Definition at line 120 of file PengRobinsonGasI.H.
References A, alpha, B, b, Foam::log(), M, N(), p, Foam::pow3(), Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

|
inline |
Return internal energy departure [J/kg].
Definition at line 151 of file PengRobinsonGasI.H.
References alpha, B, Foam::log(), p, Pr(), R, Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

|
inline |
Return Cv departure [J/(kg K].
Definition at line 172 of file PengRobinsonGasI.H.
References B, b, Foam::log(), p, Foam::pow3(), Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

|
inline |
Return entropy [J/(kg K)].
Definition at line 195 of file PengRobinsonGasI.H.
References B, Foam::log(), p, Pr(), R, Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().
Referenced by Z().


|
inline |
|
inline |
Return compression factor [].
Definition at line 235 of file PengRobinsonGasI.H.
References A, Foam::acos(), alpha, B, b, Foam::cbrt(), Foam::cos(), D, Foam::mag(), Foam::max(), p, Foam::constant::mathematical::pi(), Foam::pow3(), S(), Foam::sqr(), Foam::sqrt(), and Foam::T().
Referenced by Cp(), CpMCv(), Cv(), E(), H(), psi(), rho(), and S().


|
inline |
Return (Cp - Cv) [J/(kg K].
Definition at line 297 of file PengRobinsonGasI.H.
References A, alpha, B, b, M, N(), p, R, Foam::sqr(), Foam::sqrt(), Foam::T(), and Z().

| void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 47 of file PengRobinsonGas.C.
References os().

|
inline |
Definition at line 325 of file PengRobinsonGasI.H.
References Foam::mag(), PengRobinsonGas(), and Y.

|
inline |
Definition at line 348 of file PengRobinsonGasI.H.
References s().

|
friend |
References PengRobinsonGas().
|
friend |
References PengRobinsonGas(), and s().
|
friend |
References PengRobinsonGas().
|
friend |
References PengRobinsonGas().
|
static |
Is the equation of state is incompressible i.e. rho != f(p).
Definition at line 172 of file PengRobinsonGas.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 177 of file PengRobinsonGas.H.