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 | 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... | |
Private Attributes | |
scalar | R_ |
Fluid constant. More... | |
scalar | rho0_ |
The reference density. 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 &) |
|
inline |
Construct from components.
Definition at line 33 of file perfectFluidI.H.
perfectFluid | ( | Istream & | ) |
Construct from Istream.
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 |
Return density [kg/m^3].
Definition at line 97 of file perfectFluidI.H.
References p, R, and Foam::T().
|
inline |
Return entropy [J/(kmol K)].
Definition at line 104 of file perfectFluidI.H.
References Foam::log(), p, Foam::constant::standard::Pstd, and Foam::constant::thermodynamic::RR.
|
inline |
Return compressibility rho/p [s^2/m^2].
Definition at line 111 of file perfectFluidI.H.
|
inline |
Return compression factor [].
Definition at line 118 of file perfectFluidI.H.
|
inline |
Return (cp - cv) [J/(kmol K].
Definition at line 125 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(), and write().
|
inline |
Definition at line 135 of file perfectFluidI.H.
|
inline |
Definition at line 153 of file perfectFluidI.H.
|
inline |
Definition at line 170 of file perfectFluidI.H.
References s().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Fluid constant.
Definition at line 97 of file perfectFluid.H.
|
private |
The reference density.
Definition at line 100 of file perfectFluid.H.
|
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.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.