48 template<
class Specie>
class rhoConst;
50 template<
class Specie>
54 const rhoConst<Specie>&
57 template<
class Specie>
58 inline rhoConst<Specie>
operator-
60 const rhoConst<Specie>&,
61 const rhoConst<Specie>&
64 template<
class Specie>
65 inline rhoConst<Specie>
operator*
68 const rhoConst<Specie>&
71 template<
class Specie>
72 inline rhoConst<Specie>
operator==
74 const rhoConst<Specie>&,
75 const rhoConst<Specie>&
78 template<
class Specie>
82 const rhoConst<Specie>&
90 template<
class Specie>
106 inline rhoConst(
const Specie& sp,
const scalar
rho);
129 return "rhoConst<" +
word(Specie::typeName_()) +
'>';
142 inline scalar
rho(scalar
p, scalar
T)
const;
145 inline scalar
h(
const scalar
p,
const scalar
T)
const;
148 inline scalar
cp(scalar
p, scalar
T)
const;
151 inline scalar
s(
const scalar
p,
const scalar
T)
const;
154 inline scalar
psi(scalar
p, scalar
T)
const;
157 inline scalar
Z(scalar
p, scalar
T)
const;
160 inline scalar
cpMcv(scalar
p, scalar
T)
const;
166 void write(Ostream& os)
const;
185 friend rhoConst
operator- <Specie>
191 friend rhoConst
operator* <Specie>
197 friend rhoConst
operator== <Specie>
206 friend Ostream& operator<< <Specie>
void operator+=(const rhoConst &)
void operator-=(const rhoConst &)
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
static autoPtr< rhoConst > New(Istream &is)
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.
rhoConst(const Specie &sp, const scalar rho)
Construct from components.
scalar s(const scalar p, const scalar T) const
Return entropy [J/(kmol K)].
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
A class for handling words, derived from string.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
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)
word name(const complex &)
Return a string representation of a complex.
scalar cp(scalar p, scalar T) const
Return cp departure [J/(kmol K].
static word typeName()
Return the instantiated type name.
void operator*=(const scalar)
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
RhoConst (rho = const) of state.
scalar psi(scalar p, scalar T) const
Return compressibility rho/p [s^2/m^2].
scalar h(const scalar p, const scalar T) const
Return enthalpy departure [J/kmol].
autoPtr< rhoConst > clone() const
Construct and return a clone.