50 template<
class Specie>
54 const perfectGas<Specie>&
57 template<
class Specie>
58 inline perfectGas<Specie>
operator-
60 const perfectGas<Specie>&,
61 const perfectGas<Specie>&
64 template<
class Specie>
65 inline perfectGas<Specie>
operator*
68 const perfectGas<Specie>&
71 template<
class Specie>
72 inline perfectGas<Specie>
operator==
74 const perfectGas<Specie>&,
75 const perfectGas<Specie>&
78 template<
class Specie>
82 const perfectGas<Specie>&
90 template<
class Specie>
127 return "perfectGas<" +
word(Specie::typeName_()) +
'>';
140 inline scalar
rho(scalar
p, scalar
T)
const;
143 inline scalar
h(
const scalar
p,
const scalar
T)
const;
146 inline scalar
cp(scalar
p, scalar
T)
const;
149 inline scalar
s(
const scalar
p,
const scalar
T)
const;
152 inline scalar
psi(scalar
p, scalar
T)
const;
155 inline scalar
Z(scalar
p, scalar
T)
const;
158 inline scalar
cpMcv(scalar
p, scalar
T)
const;
164 void write(Ostream& os)
const;
183 friend perfectGas
operator- <Specie>
189 friend perfectGas
operator* <Specie>
195 friend perfectGas
operator== <Specie>
204 friend Ostream& operator<< <Specie>
void operator*=(const scalar)
static autoPtr< perfectGas > New(Istream &is)
static word typeName()
Return the instantiated type name.
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.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
void operator+=(const perfectGas &)
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
A class for handling words, derived from string.
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...
void operator-=(const perfectGas &)
Perfect gas equation of state.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
autoPtr< perfectGas > clone() const
Construct and return a clone.
word name(const complex &)
Return a string representation of a complex.
scalar h(const scalar p, const scalar T) const
Return enthalpy departure [J/kmol].
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol 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 [].
perfectGas(const Specie &sp)
Construct from components.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar cp(scalar p, scalar T) const
Return cp departure [J/(kmol K].