Perfect gas equation of state. More...
Public Member Functions | |
perfectFluid (const Specie &sp, const scalar R, const scalar rho0) | |
Construct from components. More... | |
perfectFluid (Istream &) | |
Construct from Istream. More... | |
perfectFluid (const dictionary &dict) | |
Construct from dictionary. More... | |
perfectFluid (const word &name, const perfectFluid &) | |
Construct as named copy. More... | |
autoPtr< perfectFluid > | clone () const |
Construct and return a clone. More... | |
scalar | R () const |
Return fluid constant [J/(kg K)]. 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 perfectFluid &) |
void | operator-= (const perfectFluid &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static autoPtr< perfectFluid > | New (Istream &is) |
static autoPtr< perfectFluid > | 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 | |
perfectFluid | operator+ (const perfectFluid &, const perfectFluid &) |
perfectFluid | operator- (const perfectFluid &, const perfectFluid &) |
perfectFluid | operator* (const scalar s, const perfectFluid &) |
perfectFluid | operator== (const perfectFluid &, const perfectFluid &) |
Ostream & | operator (Ostream &, const perfectFluid &) |
Perfect gas equation of state.
Definition at line 47 of file perfectFluid.H.
|
inline |
Construct from components.
Definition at line 33 of file perfectFluidI.H.
References Foam::name().
perfectFluid | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 32 of file perfectFluid.C.
References IOstream::check().
perfectFluid | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 43 of file perfectFluid.C.
|
inline |
Construct as named copy.
|
inline |
Construct and return a clone.
Definition at line 62 of file perfectFluidI.H.
|
inlinestatic |
Definition at line 70 of file perfectFluidI.H.
|
inlinestatic |
Definition at line 79 of file perfectFluidI.H.
References dict.
|
inlinestatic |
Return the instantiated type name.
Definition at line 137 of file perfectFluid.H.
|
inline |
Return fluid constant [J/(kg K)].
Definition at line 90 of file perfectFluidI.H.
|
inline |
|
inline |
Return enthalpy departure [J/kmol].
Definition at line 104 of file perfectFluidI.H.
|
inline |
Return cp departure [J/(kmol K].
Definition at line 111 of file perfectFluidI.H.
|
inline |
Return entropy [J/(kmol K)].
Definition at line 118 of file perfectFluidI.H.
References Foam::log(), Foam::constant::standard::Pstd, and Foam::constant::thermodynamic::RR.
|
inline |
Return compressibility rho/p [s^2/m^2].
Definition at line 125 of file perfectFluidI.H.
|
inline |
Return compression factor [].
Definition at line 132 of file perfectFluidI.H.
|
inline |
Return (cp - cv) [J/(kmol K].
Definition at line 139 of file perfectFluidI.H.
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 54 of file perfectFluid.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), token::SPACE, and write().
|
inline |
Definition at line 149 of file perfectFluidI.H.
|
inline |
Definition at line 167 of file perfectFluidI.H.
|
inline |
Definition at line 184 of file perfectFluidI.H.
References s().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 146 of file perfectFluid.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 149 of file perfectFluid.H.