38 #ifndef incompressiblePerfectGas_H 39 #define incompressiblePerfectGas_H 52 template<
class Specie>
56 const incompressiblePerfectGas<Specie>&
59 template<
class Specie>
60 inline incompressiblePerfectGas<Specie>
operator-
62 const incompressiblePerfectGas<Specie>&,
63 const incompressiblePerfectGas<Specie>&
66 template<
class Specie>
67 inline incompressiblePerfectGas<Specie>
operator*
70 const incompressiblePerfectGas<Specie>&
73 template<
class Specie>
74 inline incompressiblePerfectGas<Specie>
operator==
76 const incompressiblePerfectGas<Specie>&,
77 const incompressiblePerfectGas<Specie>&
80 template<
class Specie>
84 const incompressiblePerfectGas<Specie>&
92 template<
class Specie>
145 "incompressiblePerfectGas<" 146 +
word(Specie::typeName_()) +
'>';
159 inline scalar
rho(scalar
p, scalar
T)
const;
162 inline scalar
h(
const scalar
p,
const scalar
T)
const;
165 inline scalar
cp(scalar
p, scalar
T)
const;
168 inline scalar
s(
const scalar
p,
const scalar
T)
const;
171 inline scalar
psi(scalar
p, scalar
T)
const;
174 inline scalar
Z(scalar
p, scalar
T)
const;
177 inline scalar
cpMcv(scalar
p, scalar
T)
const;
183 void write(Ostream& os)
const;
200 const incompressiblePerfectGas&
203 friend incompressiblePerfectGas
operator- <Specie>
205 const incompressiblePerfectGas&,
206 const incompressiblePerfectGas&
209 friend incompressiblePerfectGas
operator* <Specie>
212 const incompressiblePerfectGas&
215 friend incompressiblePerfectGas
operator== <Specie>
217 const incompressiblePerfectGas&,
218 const incompressiblePerfectGas&
224 friend Ostream& operator<< <Specie>
227 const incompressiblePerfectGas&
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
void operator-=(const incompressiblePerfectGas &)
scalar cp(scalar p, scalar T) const
Return cp departure [J/(kmol K].
void operator*=(const scalar)
A list of keyword definitions, which are a keyword followed by any number of values (e...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
void write(Ostream &os) const
Write to Ostream.
Incompressible gas equation of state using a constant reference pressure in the perfect gas equation ...
void operator=(const incompressiblePerfectGas &)
void operator+=(const incompressiblePerfectGas &)
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
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].
A class for handling words, derived from string.
incompressiblePerfectGas(const Specie &sp, const scalar pRef)
Construct from components.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
scalar h(const scalar p, const scalar T) const
Return enthalpy departure [J/kmol].
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
word name(const complex &)
Return a string representation of a complex.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static autoPtr< incompressiblePerfectGas > New(Istream &is)
scalar Z(scalar p, scalar T) const
Return compression factor [].
static word typeName()
Return the instantiated type name.
autoPtr< incompressiblePerfectGas > clone() const
Construct and return a clone.