Incompressible gas equation of state using a constant reference pressure in the perfect gas equation of state rather than the local pressure so that the density only varies with temperature: More...
Public Member Functions | |
incompressiblePerfectGas (const Specie &sp, const scalar pRef) | |
Construct from components. More... | |
incompressiblePerfectGas (const word &name, const dictionary &dict) | |
Construct from name and dictionary. More... | |
incompressiblePerfectGas (const word &name, const incompressiblePerfectGas &) | |
Construct as named copy. More... | |
autoPtr< incompressiblePerfectGas > | 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 incompressiblePerfectGas &) |
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 = false |
Is the equation of state is isochoric i.e. rho = const. More... | |
Friends | |
incompressiblePerfectGas | operator+ (const incompressiblePerfectGas &, const incompressiblePerfectGas &) |
incompressiblePerfectGas | operator* (const scalar s, const incompressiblePerfectGas &) |
incompressiblePerfectGas | operator== (const incompressiblePerfectGas &, const incompressiblePerfectGas &) |
Ostream & | operator (Ostream &, const incompressiblePerfectGas &) |
Incompressible gas equation of state using a constant reference pressure in the perfect gas equation of state rather than the local pressure so that the density only varies with temperature:
rho = pRef/(R*T)
Property | Description |
---|---|
pRef | Reference pressure |
Example specification of the incompressiblePerfectGas equation of state:
equationOfState { pRef 1e5; }
Definition at line 109 of file incompressiblePerfectGas.H.
|
inline |
Construct from components.
Definition at line 32 of file incompressiblePerfectGasI.H.
incompressiblePerfectGas | ( | const word & | name, |
const dictionary & | dict | ||
) |
Construct from name and dictionary.
Definition at line 32 of file incompressiblePerfectGas.C.
|
inline |
Construct as named copy.
|
inline |
Construct and return a clone.
Definition at line 57 of file incompressiblePerfectGasI.H.
|
inlinestatic |
Return the instantiated type name.
Definition at line 143 of file incompressiblePerfectGas.H.
|
inline |
Return density [kg/m^3].
Definition at line 69 of file incompressiblePerfectGasI.H.
References Foam::R(), and Foam::T().
|
inline |
Return enthalpy contribution [J/kg].
Definition at line 80 of file incompressiblePerfectGasI.H.
References p, rho, and Foam::T().
|
inline |
Return Cp contribution [J/(kg K].
Definition at line 91 of file incompressiblePerfectGasI.H.
|
inline |
Return internal energy contribution [J/kg].
Definition at line 102 of file incompressiblePerfectGasI.H.
|
inline |
Return Cv contribution [J/(kg K].
Definition at line 113 of file incompressiblePerfectGasI.H.
|
inline |
Return entropy contribution to the integral of Cp/T [J/kg/K].
Definition at line 124 of file incompressiblePerfectGasI.H.
|
inline |
Return entropy contribution to the integral of Cv/T [J/kg/K].
Definition at line 135 of file incompressiblePerfectGasI.H.
|
inline |
Return compressibility [s^2/m^2].
Definition at line 146 of file incompressiblePerfectGasI.H.
|
inline |
|
inline |
Return (Cp - Cv) [J/(kg K].
Definition at line 168 of file incompressiblePerfectGasI.H.
|
inline |
Return volumetric coefficient of thermal expansion [1/T].
Definition at line 179 of file incompressiblePerfectGasI.H.
References Foam::T().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 46 of file incompressiblePerfectGas.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), and Foam::vtkWriteOps::write().
|
inline |
Definition at line 192 of file incompressiblePerfectGasI.H.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::name(), and Foam::notEqual().
|
inline |
Definition at line 212 of file incompressiblePerfectGasI.H.
References s().
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 154 of file incompressiblePerfectGas.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 157 of file incompressiblePerfectGas.H.