Go to the documentation of this file.
36 #ifndef PengRobinsonGas_H
37 #define PengRobinsonGas_H
50 template<
class Specie>
57 template<
class Specie>
64 template<
class Specie>
71 template<
class Specie>
78 template<
class Specie>
91 template<
class Specie>
156 return "PengRobinsonGas<" +
word(Specie::typeName_()) +
'>';
169 inline scalar
rho(scalar
p, scalar
T)
const;
172 inline scalar
s(
const scalar
p,
const scalar
T)
const;
175 inline scalar
psi(scalar
p, scalar
T)
const;
178 inline scalar
Z(scalar
p, scalar
T)
const;
181 inline scalar
cpMcv(scalar
p, scalar
T)
const;
226 friend Ostream& operator<< <Specie>
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].
scalar Pc_
Critical Pressure [Pa].
scalar Vc_
Critical volume [m^3/kmol].
A class for handling words, derived from string.
scalar cpMcv(scalar p, scalar T) const
Return (cp - cv) [J/(kmol K].
scalar Z(scalar p, scalar T) const
Return compression factor [-].
void operator*=(const scalar)
static autoPtr< PengRobinsonGas > New(Istream &is)
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar Tc_
Critical Temperature [K].
autoPtr< PengRobinsonGas > clone() const
Construct and return a clone.
static word typeName()
Return the instantiated type name.
scalar omega_
Acentric factor [-].
void operator+=(const PengRobinsonGas &)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void operator-=(const PengRobinsonGas &)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
PengRobinsonGas gas equation of state.
PengRobinsonGas(const Specie &sp, const scalar &Tc, const scalar &Vc, const scalar &Zc, const scalar &Pc, const scalar &omega)
Construct from components.
A list of keyword definitions, which are a keyword followed by any number of values (e....
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
scalar Zc_
Critical compression factor [-].
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
void write(Ostream &os) const
Write to Ostream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
word name(const complex &)
Return a string representation of a complex.