36 #ifndef perfectFluid_H 37 #define perfectFluid_H 50 template<
class Specie>
54 const perfectFluid<Specie>&
57 template<
class Specie>
58 inline perfectFluid<Specie>
operator-
60 const perfectFluid<Specie>&,
61 const perfectFluid<Specie>&
64 template<
class Specie>
65 inline perfectFluid<Specie>
operator*
68 const perfectFluid<Specie>&
71 template<
class Specie>
72 inline perfectFluid<Specie>
operator==
74 const perfectFluid<Specie>&,
75 const perfectFluid<Specie>&
78 template<
class Specie>
82 const perfectFluid<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
h(
const scalar
p,
const scalar
T)
const;
162 inline scalar
cp(scalar
p, scalar
T)
const;
165 inline scalar
s(
const scalar
p,
const scalar
T)
const;
168 inline scalar
psi(scalar
p, scalar
T)
const;
171 inline scalar
Z(scalar
p, scalar
T)
const;
174 inline scalar
cpMcv(scalar
p, scalar
T)
const;
180 void write(Ostream& os)
const;
199 friend perfectFluid
operator- <Specie>
205 friend perfectFluid
operator* <Specie>
211 friend perfectFluid
operator== <Specie>
220 friend Ostream& operator<< <Specie>
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
static word typeName()
Return the instantiated type name.
void write(Ostream &os) const
Write to Ostream.
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar R() const
Return fluid constant [J/(kg K)].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
perfectFluid(const Specie &sp, const scalar R, const scalar rho0)
Construct from components.
scalar h(const scalar p, const scalar T) const
Return enthalpy departure [J/kmol].
void operator-=(const perfectFluid &)
static autoPtr< perfectFluid > New(Istream &is)
A class for handling words, derived from string.
void operator*=(const scalar)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar Z(scalar p, scalar T) const
Return compression factor [].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Perfect gas equation of state.
word name(const complex &)
Return a string representation of a complex.
scalar s(const scalar p, const scalar T) const
Return entropy [J/(kmol K)].
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
void operator+=(const perfectFluid &)
autoPtr< perfectFluid > clone() const
Construct and return a clone.
scalar cp(scalar p, scalar T) const
Return cp departure [J/(kmol K].