30 template<
class Specie>
42 template<
class Specie>
54 template<
class Specie>
64 template<
class Specie>
71 template<
class Specie>
78 template<
class Specie>
85 template<
class Specie>
92 template<
class Specie>
99 template<
class Specie>
106 template<
class Specie>
113 template<
class Specie>
120 template<
class Specie>
127 template<
class Specie>
134 template<
class Specie>
143 template<
class Specie>
146 const scalar Y1 = this->
Y();
147 Specie::operator+=(rc);
149 if (
mag(this->
Y()) > small)
151 rho_ = this->
Y()/(Y1/rho_ + rc.Y()/rc.rho_);
156 template<
class Specie>
159 Specie::operator*=(
s);
165 template<
class Specie>
174 static_cast<const Specie&
>(rc1)
175 +
static_cast<const Specie&
>(rc2)
178 if (
mag(sp.Y()) < small)
188 return rhoConst<Specie>
191 sp.Y()/(rc1.Y()/rc1.rho_ + rc2.Y()/rc2.rho_)
197 template<
class Specie>
201 const rhoConst<Specie>& rc
204 return rhoConst<Specie>(
s*
static_cast<const Specie&
>(rc), rc.rho_);
208 template<
class Specie>
211 const rhoConst<Specie>& rc1,
212 const rhoConst<Specie>& rc2
215 return rhoConst<Specie>
217 static_cast<const Specie&
>(rc1) ==
static_cast<const Specie&
>(rc2),
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Constant density equations of state.
scalar Cv(scalar p, scalar T) const
Return Cv contribution [J/(kg K].
scalar psi(scalar p, scalar T) const
Return compressibility [s^2/m^2].
scalar alphav(const scalar p, const scalar T) const
Return volumetric coefficient of thermal expansion [1/T].
scalar e(const scalar p, const scalar T) const
Return internal energy contribution [J/kg].
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar h(const scalar p, const scalar T) const
Return enthalpy contribution [J/kg].
scalar Cp(scalar p, scalar T) const
Return Cp contribution [J/(kg K].
scalar sv(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cv/T [J/kg/K].
autoPtr< rhoConst > clone() const
Construct and return a clone.
scalar sp(const scalar p, const scalar T) const
Return entropy contribution to the integral of Cp/T [J/kg/K].
scalar Z(scalar p, scalar T) const
Return compression factor [].
void operator*=(const scalar)
void operator+=(const rhoConst &)
rhoConst(const Specie &sp, const scalar rho)
Construct from components.
A class for handling words, derived from string.
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.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
word name(const bool)
Return a word representation of a bool.
dimensioned< scalar > mag(const dimensioned< Type > &)
static scalar R(const scalar a, const scalar x)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
PtrList< volScalarField > & Y