Go to the documentation of this file.
36 #ifndef perfectFluid_H
37 #define perfectFluid_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>
140 return "perfectFluid<" +
word(Specie::typeName_()) +
'>';
153 inline scalar
R()
const;
156 inline scalar
rho(scalar
p, scalar
T)
const;
159 inline scalar
s(
const scalar
p,
const scalar
T)
const;
162 inline scalar
psi(scalar
p, scalar
T)
const;
165 inline scalar
Z(scalar
p, scalar
T)
const;
168 inline scalar
cpMcv(scalar
p, scalar
T)
const;
214 friend Ostream& operator<< <Specie>
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
Perfect gas equation of state.
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
A class for handling words, derived from string.
perfectFluid(const Specie &sp, const scalar R, const scalar rho0)
Construct from components.
void write(Ostream &os) const
Write to Ostream.
void operator-=(const perfectFluid &)
scalar rho0_
The reference density.
static autoPtr< perfectFluid > New(Istream &is)
static word typeName()
Return the instantiated type name.
autoPtr< perfectFluid > clone() const
Construct and return a clone.
void operator*=(const scalar)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
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....
void operator+=(const perfectFluid &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar R() const
Return fluid constant [J/(kg K)].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
scalar Z(scalar p, scalar T) const
Return compression factor [].
scalar s(const scalar p, const scalar T) const
Return entropy [J/(kmol K)].
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
word name(const complex &)
Return a string representation of a complex.