RhoConst (rho = const) of state. More...
Public Member Functions | |
rhoConst (const Specie &sp, const scalar rho) | |
Construct from components. More... | |
rhoConst (Istream &) | |
Construct from Istream. More... | |
rhoConst (const dictionary &dict) | |
Construct from dictionary. More... | |
rhoConst (const word &name, const rhoConst &) | |
Construct as named copy. More... | |
autoPtr< rhoConst > | 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 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 rhoConst &) |
void | operator-= (const rhoConst &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static autoPtr< rhoConst > | New (Istream &is) |
static word | typeName () |
Return the instantiated type name. More... | |
Static Public Attributes | |
static const bool | incompressible = true |
Is the equation of state is incompressible i.e. rho != f(p) More... | |
static const bool | isochoric = true |
Is the equation of state is isochoric i.e. rho = const. More... | |
Friends | |
rhoConst | operator+ (const rhoConst &, const rhoConst &) |
rhoConst | operator- (const rhoConst &, const rhoConst &) |
rhoConst | operator* (const scalar s, const rhoConst &) |
rhoConst | operator== (const rhoConst &, const rhoConst &) |
Ostream & | operator (Ostream &, const rhoConst &) |
RhoConst (rho = const) of state.
Definition at line 47 of file rhoConst.H.
|
inline |
Construct from components.
Definition at line 32 of file rhoConstI.H.
References Foam::name().
Construct from Istream.
Definition at line 32 of file rhoConst.C.
References IOstream::check().
rhoConst | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 42 of file rhoConst.C.
|
inline |
Construct and return a clone.
Definition at line 58 of file rhoConstI.H.
|
inlinestatic |
Definition at line 66 of file rhoConstI.H.
|
inlinestatic |
Return the instantiated type name.
Definition at line 126 of file rhoConst.H.
|
inline |
Return density [kg/m^3].
Definition at line 75 of file rhoConstI.H.
|
inline |
Return enthalpy departure [J/kmol].
Definition at line 82 of file rhoConstI.H.
|
inline |
Return cp departure [J/(kmol K].
Definition at line 89 of file rhoConstI.H.
|
inline |
Return entropy [J/(kmol K)].
Definition at line 96 of file rhoConstI.H.
|
inline |
Return compressibility rho/p [s^2/m^2].
Definition at line 103 of file rhoConstI.H.
|
inline |
Return compression factor [].
Definition at line 110 of file rhoConstI.H.
|
inline |
Return (cp - cv) [J/(kmol K].
Definition at line 117 of file rhoConstI.H.
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 52 of file rhoConst.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), token::SPACE, and write().
Definition at line 126 of file rhoConstI.H.
Definition at line 140 of file rhoConstI.H.
|
inline |
Definition at line 154 of file rhoConstI.H.
References s().
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 135 of file rhoConst.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 138 of file rhoConst.H.