Simple extension of the perfect gas equation of state to liquids by the addition of a constant density off-set: More...
Public Member Functions | |
perfectFluid (const Specie &sp, const scalar R, const scalar rho0) | |
Construct from components. More... | |
perfectFluid (const word &name, const dictionary &dict) | |
Construct from name and 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 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 perfectFluid &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
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 scalar s, const perfectFluid &) |
perfectFluid | operator== (const perfectFluid &, const perfectFluid &) |
Ostream & | operator (Ostream &, const perfectFluid &) |
Simple extension of the perfect gas equation of state to liquids by the addition of a constant density off-set:
rho = rho0 + p/(R*T)
Coefficient mixing is very inaccurate and not supported, so this equation of state is not applicable to mixtures.
This equation of state is rather inaccurate and has been superseded by rPolynomial which is much more accurate and supports mixtures.
Property | Description |
---|---|
rho0 | Reference density |
R | Fluid constant |
Example specification of the perfectFluid equation of state:
equationOfState { rho0 1000; R 100; }
Definition at line 119 of file perfectFluid.H.
|
inline |
Construct from components.
Definition at line 31 of file perfectFluidI.H.
perfectFluid | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from name and dictionary.
Definition at line 32 of file perfectFluid.C.
|
inline |
Construct as named copy.
|
inline |
Construct and return a clone.
Definition at line 59 of file perfectFluidI.H.
|
inlinestatic |
Return the instantiated type name.
Definition at line 157 of file perfectFluid.H.
|
inline |
Return fluid constant [J/kg/K].
Definition at line 68 of file perfectFluidI.H.
|
inline |
Return density [kg/m^3].
Definition at line 75 of file perfectFluidI.H.
References p, Foam::R(), and Foam::T().
|
inline |
Return enthalpy contribution [J/kg].
Definition at line 82 of file perfectFluidI.H.
References p, Foam::constant::standard::Pstd, rho, and Foam::T().
|
inline |
Return Cp contribution [J/(kg K].
Definition at line 89 of file perfectFluidI.H.
References p, Foam::constant::standard::Pstd, Foam::R(), rho, Foam::sqr(), and Foam::T().
|
inline |
Return internal energy contribution [J/kg].
Definition at line 98 of file perfectFluidI.H.
|
inline |
Return Cv contribution [J/(kg K].
Definition at line 105 of file perfectFluidI.H.
|
inline |
Return entropy contribution to the integral of Cp/T [J/kg/K].
Definition at line 112 of file perfectFluidI.H.
References Foam::log(), Foam::constant::standard::Pstd, and Foam::R().
|
inline |
Return entropy contribution to the integral of Cv/T [J/kg/K].
Definition at line 119 of file perfectFluidI.H.
References NotImplemented.
|
inline |
Return compressibility [s^2/m^2].
Definition at line 127 of file perfectFluidI.H.
References Foam::R(), and Foam::T().
|
inline |
|
inline |
Return (Cp - Cv) [J/(kg K].
Definition at line 141 of file perfectFluidI.H.
References p, Foam::R(), rho, Foam::sqr(), and Foam::T().
|
inline |
Return volumetric coefficient of thermal expansion [1/T].
Definition at line 151 of file perfectFluidI.H.
References rho, and Foam::T().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 47 of file perfectFluid.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), and Foam::vtkWriteOps::write().
|
inline |
Definition at line 160 of file perfectFluidI.H.
References noCoefficientMixing.
|
inline |
Definition at line 170 of file perfectFluidI.H.
References s().
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 166 of file perfectFluid.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 169 of file perfectFluid.H.