Go to the documentation of this file.
50 template<
class Specie>
57 template<
class Specie>
64 template<
class Specie>
71 template<
class Specie>
78 template<
class Specie>
90 template<
class Specie>
127 return "perfectGas<" +
word(Specie::typeName_()) +
'>';
140 inline scalar
rho(scalar
p, scalar
T)
const;
143 inline scalar
s(
const scalar
p,
const scalar
T)
const;
146 inline scalar
psi(scalar
p, scalar
T)
const;
149 inline scalar
Z(scalar
p, scalar
T)
const;
152 inline scalar
cpMcv(scalar
p, scalar
T)
const;
198 friend Ostream& operator<< <Specie>
A class for handling words, derived from string.
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 [].
void write(Ostream &os) const
Write to Ostream.
perfectGas(const Specie &sp)
Construct from components.
static autoPtr< perfectGas > New(Istream &is)
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 s(const scalar p, const scalar T) const
Return entropy [J/(kmol K)].
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.
A list of keyword definitions, which are a keyword followed by any number of values (e....
void operator-=(const perfectGas &)
void operator+=(const perfectGas &)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static word typeName()
Return the instantiated type name.
word name(const complex &)
Return a string representation of a complex.
void operator*=(const scalar)