Go to the documentation of this file.
36 #ifndef adiabaticPerfectFluid_H
37 #define adiabaticPerfectFluid_H
50 template<
class Specie>
57 template<
class Specie>
64 template<
class Specie>
71 template<
class Specie>
78 template<
class Specie>
90 template<
class Specie>
155 return "adiabaticPerfectFluid<" +
word(Specie::typeName_()) +
'>';
168 inline scalar
rho(scalar
p, scalar
T)
const;
171 inline scalar
s(
const scalar
p,
const scalar
T)
const;
174 inline scalar
psi(scalar
p, scalar
T)
const;
177 inline scalar
Z(scalar
p, scalar
T)
const;
180 inline scalar
cpMcv(scalar
p, scalar
T)
const;
226 friend Ostream& operator<< <Specie>
scalar B_
Pressure offset for a stiffened gas.
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
A class for handling words, derived from string.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
void operator+=(const adiabaticPerfectFluid &)
static autoPtr< adiabaticPerfectFluid > New(Istream &is)
scalar Z(scalar p, scalar T) const
Return compression factor [].
AdiabaticPerfect gas equation of state.
scalar rho0_
Reference density.
void write(Ostream &os) const
Write to Ostream.
scalar gamma_
The isentropic exponent.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void operator-=(const adiabaticPerfectFluid &)
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
static word typeName()
Return the instantiated type name.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
A list of keyword definitions, which are a keyword followed by any number of values (e....
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar p0_
Reference pressure.
scalar s(const scalar p, const scalar T) const
Return entropy [J/(kmol K)].
autoPtr< adiabaticPerfectFluid > clone() const
Construct and return a clone.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
adiabaticPerfectFluid(const Specie &sp, const scalar p0, const scalar rho0, const scalar gamma, const scalar B)
Construct from components.
word name(const complex &)
Return a string representation of a complex.
void operator*=(const scalar)