Perfect gas equation of state. More...
Public Member Functions | |
perfectGas (const Specie &sp) | |
Construct from components. More... | |
perfectGas (const dictionary &dict) | |
Construct from dictionary. More... | |
perfectGas (const word &name, const perfectGas &) | |
Construct as named copy. More... | |
autoPtr< perfectGas > | 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 perfectGas &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static autoPtr< perfectGas > | 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 | |
perfectGas | operator+ (const perfectGas &, const perfectGas &) |
perfectGas | operator* (const scalar s, const perfectGas &) |
perfectGas | operator== (const perfectGas &, const perfectGas &) |
Ostream & | operator (Ostream &, const perfectGas &) |
Perfect gas equation of state.
Definition at line 47 of file perfectGas.H.
|
inline |
Construct from components.
Definition at line 31 of file perfectGasI.H.
References Foam::name().
perfectGas | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 32 of file perfectGas.C.
|
inline |
Construct as named copy.
|
inline |
Construct and return a clone.
Definition at line 52 of file perfectGasI.H.
References perfectGas< Specie >::New().
|
inlinestatic |
Definition at line 60 of file perfectGasI.H.
References dict.
Referenced by perfectGas< Specie >::clone().
|
inlinestatic |
Return the instantiated type name.
Definition at line 111 of file perfectGas.H.
|
inline |
Return density [kg/m^3].
Definition at line 71 of file perfectGasI.H.
|
inline |
Return enthalpy contribution [J/kg].
Definition at line 78 of file perfectGasI.H.
|
inline |
Return Cp contribution [J/(kg K].
Definition at line 85 of file perfectGasI.H.
|
inline |
Return internal energy contribution [J/kg].
Definition at line 92 of file perfectGasI.H.
|
inline |
Return Cv contribution [J/(kg K].
Definition at line 99 of file perfectGasI.H.
|
inline |
Return entropy contribution to the integral of Cp/T [J/kg/K].
Definition at line 106 of file perfectGasI.H.
References Foam::log(), Foam::constant::standard::Pstd, and R.
|
inline |
Return entropy contribution to the integral of Cv/T [J/kg/K].
Definition at line 113 of file perfectGasI.H.
References NotImplemented.
|
inline |
Return compressibility [s^2/m^2].
Definition at line 121 of file perfectGasI.H.
|
inline |
Return compression factor [].
Definition at line 128 of file perfectGasI.H.
|
inline |
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 41 of file perfectGas.C.
References Foam::vtkWriteOps::write(), and Ostream::write().
|
inline |
Definition at line 144 of file perfectGasI.H.
|
inline |
Definition at line 151 of file perfectGasI.H.
References s().
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 120 of file perfectGas.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 123 of file perfectGas.H.