Go to the documentation of this file.
38 #ifndef incompressiblePerfectGas_H
39 #define incompressiblePerfectGas_H
52 template<
class Specie>
59 template<
class Specie>
66 template<
class Specie>
73 template<
class Specie>
80 template<
class Specie>
92 template<
class Specie>
145 "incompressiblePerfectGas<"
146 +
word(Specie::typeName_()) +
'>';
159 inline scalar
rho(scalar
p, scalar
T)
const;
162 inline scalar
s(
const scalar
p,
const scalar
T)
const;
165 inline scalar
psi(scalar
p, scalar
T)
const;
168 inline scalar
Z(scalar
p, scalar
T)
const;
171 inline scalar
cpMcv(scalar
p, scalar
T)
const;
221 friend Ostream& operator<< <Specie>
void operator-=(const incompressiblePerfectGas &)
void write(Ostream &os) const
Write to Ostream.
static word typeName()
Return the instantiated type name.
A class for handling words, derived from string.
void operator+=(const incompressiblePerfectGas &)
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
scalar pRef_
Reference pressure.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
scalar Z(scalar p, scalar T) const
Return compression factor [].
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
A list of keyword definitions, which are a keyword followed by any number of values (e....
incompressiblePerfectGas(const Specie &sp, const scalar pRef)
Construct from components.
scalar s(const scalar p, const scalar T) const
Return entropy [J/(kmol K)].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
Incompressible gas equation of state using a constant reference pressure in the perfect gas equation ...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static autoPtr< incompressiblePerfectGas > New(Istream &is)
autoPtr< incompressiblePerfectGas > clone() const
Construct and return a clone.
void operator*=(const scalar)
word name(const complex &)
Return a string representation of a complex.