61 #ifndef PengRobinsonGas_H 62 #define PengRobinsonGas_H 73 template<
class Specie>
class PengRobinsonGas;
75 template<
class Specie>
76 inline PengRobinsonGas<Specie>
operator+
78 const PengRobinsonGas<Specie>&,
79 const PengRobinsonGas<Specie>&
82 template<
class Specie>
83 inline PengRobinsonGas<Specie>
operator*
86 const PengRobinsonGas<Specie>&
89 template<
class Specie>
90 inline PengRobinsonGas<Specie>
operator==
92 const PengRobinsonGas<Specie>&,
93 const PengRobinsonGas<Specie>&
96 template<
class Specie>
100 const PengRobinsonGas<Specie>&
109 template<
class Specie>
168 return "PengRobinsonGas<" +
word(Specie::typeName_()) +
'>';
181 inline scalar
rho(scalar
p, scalar
T)
const;
184 inline scalar
H(
const scalar
p,
const scalar
T)
const;
187 inline scalar
Cp(scalar
p, scalar
T)
const;
190 inline scalar
E(
const scalar
p,
const scalar
T)
const;
193 inline scalar
Cv(scalar
p, scalar
T)
const;
196 inline scalar
Sp(
const scalar
p,
const scalar
T)
const;
199 inline scalar
Sv(
const scalar
p,
const scalar
T)
const;
202 inline scalar
psi(scalar
p, scalar
T)
const;
205 inline scalar
Z(scalar
p, scalar
T)
const;
208 inline scalar
CpMCv(scalar
p, scalar
T)
const;
211 inline scalar
alphav(
const scalar
p,
const scalar
T)
const;
217 void write(Ostream& os)
const;
230 const PengRobinsonGas&
233 friend PengRobinsonGas
operator* <Specie>
236 const PengRobinsonGas&
239 friend PengRobinsonGas
operator== <Specie>
241 const PengRobinsonGas&,
242 const PengRobinsonGas&
248 friend Ostream& operator<< <Specie>
251 const PengRobinsonGas&
void write(Ostream &os) const
Write to Ostream.
A list of keyword definitions, which are a keyword followed by any number of values (e...
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
scalar Z(scalar p, scalar T) const
Return compression factor [].
void operator*=(const scalar)
scalar H(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
scalar Sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
autoPtr< PengRobinsonGas > clone() const
Construct and return a clone.
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
scalar Sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
A class for handling words, derived from string.
static autoPtr< PengRobinsonGas > New(const dictionary &dict)
static word typeName()
Return the instantiated type name.
PengRobinsonGas cubic equation of state for gases.
void operator+=(const PengRobinsonGas &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
PengRobinsonGas(const Specie &sp, const scalar &Tc, const scalar &Vc, const scalar &Zc, const scalar &Pc, const scalar &omega)
Construct from components.
static const bool incompressible
Is the equation of state is incompressible i.e. rho != f(p)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
word name(const complex &)
Return a string representation of a complex.
static const bool isochoric
Is the equation of state is isochoric i.e. rho = const.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
scalar E(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].