Constant density equations of state. More...


Public Member Functions | |
| rhoConst (const Specie &sp, const scalar rho) | |
| Construct from components. More... | |
| rhoConst (const word &name, const dictionary &dict) | |
| Construct from name and 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 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... | |
| scalar | alphav (const scalar p, const scalar T) const |
| Return volumetric coefficient of thermal expansion [1/T]. More... | |
| void | write (Ostream &os) const |
| Write to Ostream. More... | |
| void | operator+= (const rhoConst &) |
| void | operator*= (const scalar) |
Static Public Member Functions | |
| 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 scalar s, const rhoConst &) |
| rhoConst | operator== (const rhoConst &, const rhoConst &) |
| Ostream & | operator (Ostream &, const rhoConst &) |
Constant density equations of state.
| Property | Description |
|---|---|
rho | Constant density |
Example specification of the rhoConst equation of state:
equationOfState
{
rho 1000;
}Definition at line 104 of file rhoConst.H.
|
inline |
Construct from components.
Definition at line 31 of file rhoConstI.H.
| rhoConst | ( | const word & | name, |
| const dictionary & | dict | ||
| ) |
Construct from name and dictionary.
Definition at line 32 of file rhoConst.C.
|
inline |
Construct and return a clone.
Definition at line 56 of file rhoConstI.H.
|
inlinestatic |
Return the instantiated type name.
Definition at line 134 of file rhoConst.H.
|
inline |
Return density [kg/m^3].
Definition at line 65 of file rhoConstI.H.
|
inline |
|
inline |
Return Cp contribution [J/(kg K].
Definition at line 79 of file rhoConstI.H.
|
inline |
Return internal energy contribution [J/kg].
Definition at line 86 of file rhoConstI.H.
|
inline |
Return Cv contribution [J/(kg K].
Definition at line 93 of file rhoConstI.H.
|
inline |
Return entropy contribution to the integral of Cp/T [J/kg/K].
Definition at line 100 of file rhoConstI.H.
|
inline |
Return entropy contribution to the integral of Cv/T [J/kg/K].
Definition at line 107 of file rhoConstI.H.
|
inline |
Return compressibility [s^2/m^2].
Definition at line 114 of file rhoConstI.H.
|
inline |
|
inline |
Return (Cp - Cv) [J/(kg K].
Definition at line 128 of file rhoConstI.H.
|
inline |
Return volumetric coefficient of thermal expansion [1/T].
Definition at line 135 of file rhoConstI.H.
| void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 42 of file rhoConst.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), and Foam::vtkWriteOps::write().

Definition at line 144 of file rhoConstI.H.
References Foam::mag(), Foam::operator+=(), and Y.

|
inline |
Definition at line 157 of file rhoConstI.H.
References s().

|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 143 of file rhoConst.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 146 of file rhoConst.H.