Adiabatic perfect fluid equation of state. More...
Public Member Functions | |
adiabaticPerfectFluid (const Specie &sp, const scalar p0, const scalar rho0, const scalar gamma, const scalar B) | |
Construct from components. More... | |
adiabaticPerfectFluid (const dictionary &dict) | |
Construct from dictionary. More... | |
adiabaticPerfectFluid (const word &name, const adiabaticPerfectFluid &) | |
Construct as named copy. More... | |
autoPtr< adiabaticPerfectFluid > | 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/kg]. More... | |
scalar | Cp (scalar p, scalar T) const |
Return Cp departure [J/(kg K]. More... | |
scalar | E (const scalar p, const scalar T) const |
Return internal energy departure [J/kg]. More... | |
scalar | Cv (scalar p, scalar T) const |
Return Cv departure [J/(kg K]. More... | |
scalar | S (const scalar p, const scalar T) const |
Return entropy [J/kg/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/(kg K]. More... | |
void | write (Ostream &os) const |
Write to Ostream. More... | |
void | operator+= (const adiabaticPerfectFluid &) |
void | operator*= (const scalar) |
Static Public Member Functions | |
static autoPtr< adiabaticPerfectFluid > | 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... | |
Friends | |
adiabaticPerfectFluid | operator+ (const adiabaticPerfectFluid &, const adiabaticPerfectFluid &) |
adiabaticPerfectFluid | operator* (const scalar s, const adiabaticPerfectFluid &) |
adiabaticPerfectFluid | operator== (const adiabaticPerfectFluid &, const adiabaticPerfectFluid &) |
Ostream & | operator (Ostream &, const adiabaticPerfectFluid &) |
Adiabatic perfect fluid equation of state.
Definition at line 47 of file adiabaticPerfectFluid.H.
|
inline |
Construct from components.
Definition at line 32 of file adiabaticPerfectFluidI.H.
References Foam::name().
adiabaticPerfectFluid | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 33 of file adiabaticPerfectFluid.C.
|
inline |
Construct as named copy.
|
inline |
Construct and return a clone.
Definition at line 67 of file adiabaticPerfectFluidI.H.
References adiabaticPerfectFluid< Specie >::New().
|
inlinestatic |
Definition at line 79 of file adiabaticPerfectFluidI.H.
References dict, and adiabaticPerfectFluid< Specie >::rho().
Referenced by adiabaticPerfectFluid< Specie >::clone().
|
inlinestatic |
Return the instantiated type name.
Definition at line 139 of file adiabaticPerfectFluid.H.
|
inline |
Return density [kg/m^3].
Definition at line 94 of file adiabaticPerfectFluidI.H.
References adiabaticPerfectFluid< Specie >::H(), and Foam::pow().
Referenced by adiabaticPerfectFluid< Specie >::New().
|
inline |
Return enthalpy departure [J/kg].
Definition at line 105 of file adiabaticPerfectFluidI.H.
References adiabaticPerfectFluid< Specie >::Cp().
Referenced by adiabaticPerfectFluid< Specie >::rho().
|
inline |
Return Cp departure [J/(kg K].
Definition at line 117 of file adiabaticPerfectFluidI.H.
References adiabaticPerfectFluid< Specie >::E().
Referenced by adiabaticPerfectFluid< Specie >::H().
|
inline |
Return internal energy departure [J/kg].
Definition at line 128 of file adiabaticPerfectFluidI.H.
References adiabaticPerfectFluid< Specie >::Cv().
Referenced by adiabaticPerfectFluid< Specie >::Cp().
|
inline |
Return Cv departure [J/(kg K].
Definition at line 140 of file adiabaticPerfectFluidI.H.
References adiabaticPerfectFluid< Specie >::S().
Referenced by adiabaticPerfectFluid< Specie >::E().
|
inline |
Return entropy [J/kg/K].
Definition at line 151 of file adiabaticPerfectFluidI.H.
References n, Foam::pow(), adiabaticPerfectFluid< Specie >::psi(), and Foam::constant::standard::Pstd.
Referenced by adiabaticPerfectFluid< Specie >::Cv().
|
inline |
Return compressibility rho/p [s^2/m^2].
Definition at line 165 of file adiabaticPerfectFluidI.H.
References Foam::pow().
Referenced by adiabaticPerfectFluid< Specie >::S().
|
inline |
Return compression factor [].
Definition at line 177 of file adiabaticPerfectFluidI.H.
References adiabaticPerfectFluid< Specie >::CpMCv().
|
inline |
Return (Cp - Cv) [J/(kg K].
Definition at line 185 of file adiabaticPerfectFluidI.H.
Referenced by adiabaticPerfectFluid< Specie >::Z().
void write | ( | Ostream & | os | ) | const |
Write to Ostream.
Definition at line 48 of file adiabaticPerfectFluid.C.
References dictionary::add(), dict, dictionaryName::dictName(), Foam::indent(), Foam::blockMeshTools::write(), and Ostream::write().
|
inline |
Definition at line 198 of file adiabaticPerfectFluidI.H.
References Foam::mag(), and Y.
|
inline |
Definition at line 219 of file adiabaticPerfectFluidI.H.
References Foam::mag(), and s().
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
Is the equation of state is incompressible i.e. rho != f(p)
Definition at line 148 of file adiabaticPerfectFluid.H.
|
static |
Is the equation of state is isochoric i.e. rho = const.
Definition at line 151 of file adiabaticPerfectFluid.H.