30 template<
class Specie>
44 template<
class Specie>
56 template<
class Specie>
66 template<
class Specie>
73 template<
class Specie>
80 template<
class Specie>
87 template<
class Specie>
94 template<
class Specie>
101 template<
class Specie>
108 template<
class Specie>
117 template<
class Specie>
120 scalar
Y1 = this->
Y();
121 Specie::operator+=(ico);
123 if (
mag(this->
Y()) > SMALL)
126 const scalar
Y2 = ico.Y()/this->
Y();
128 rho_ = Y1*rho_ + Y2*ico.rho_;
133 template<
class Specie>
136 Specie::operator*=(s);
142 template<
class Specie>
151 static_cast<const Specie&>(ico1)
152 + static_cast<const Specie&>(ico2)
155 if (
mag(sp.Y()) < SMALL)
165 const scalar
Y1 = ico1.Y()/sp.Y();
166 const scalar
Y2 = ico2.Y()/sp.Y();
171 Y1*ico1.rho_ + Y2*ico2.rho_
177 template<
class Specie>
188 template<
class Specie>
197 static_cast<const Specie&>(ico1)
198 == static_cast<const Specie&>(ico2)
201 const scalar
Y1 = ico1.Y()/sp.Y();
202 const scalar
Y2 = ico2.Y()/sp.Y();
207 Y2*ico2.rho_ - Y1*ico1.rho_
PtrList< volScalarField > & Y1
void operator+=(const rhoConst &)
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/kg].
scalar Z(scalar p, scalar T) const
Return compression factor [].
rhoConst(const Specie &sp, const scalar rho)
Construct from components.
scalar CpMCv(scalar p, scalar T) const
Return (Cp - Cv) [J/(kg K].
scalar S(const scalar p, const scalar T) const
Return entropy [J/(kg K)].
PtrList< volScalarField > & Y2
scalar Cp(scalar p, scalar T) const
Return Cp departure [J/(kg K].
scalar rho(scalar p, scalar T) const
Return density [kg/m^3].
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))
A class for handling words, derived from string.
autoPtr< rhoConst > clone() const
Construct and return a clone.
PtrList< volScalarField > & Y
void operator*=(const scalar)
dimensioned< scalar > mag(const dimensioned< Type > &)
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.