30 template<
class Specie>
44 template<
class Specie>
56 template<
class Specie>
64 template<
class Specie>
74 template<
class Specie>
81 template<
class Specie>
88 template<
class Specie>
95 template<
class Specie>
102 template<
class Specie>
109 template<
class Specie>
116 template<
class Specie>
125 template<
class Specie>
128 scalar molr1 = this->nMoles();
130 Specie::operator+=(ico);
132 molr1 /= this->nMoles();
133 scalar molr2 = ico.nMoles()/this->nMoles();
135 rho_ = molr1*rho_ + molr2*ico.rho_;
139 template<
class Specie>
142 scalar molr1 = this->nMoles();
144 Specie::operator-=(ico);
146 molr1 /= this->nMoles();
147 scalar molr2 = ico.nMoles()/this->nMoles();
149 rho_ = molr1*rho_ - molr2*ico.rho_;
153 template<
class Specie>
156 Specie::operator*=(s);
162 template<
class Specie>
169 scalar nMoles = ico1.nMoles() + ico2.nMoles();
170 scalar molr1 = ico1.nMoles()/nMoles;
171 scalar molr2 = ico2.nMoles()/nMoles;
175 static_cast<const Specie&
>(ico1)
176 + static_cast<const Specie&>(ico2),
177 molr1*ico1.rho_ + molr2*ico2.rho_
182 template<
class Specie>
189 scalar nMoles = ico1.nMoles() + ico2.nMoles();
190 scalar molr1 = ico1.nMoles()/nMoles;
191 scalar molr2 = ico2.nMoles()/nMoles;
195 static_cast<const Specie&
>(ico1)
196 - static_cast<const Specie&>(ico2),
197 molr1*ico1.rho_ - molr2*ico2.rho_
202 template<
class Specie>
213 template<
class Specie>
void operator+=(const rhoConst &)
void operator-=(const rhoConst &)
static autoPtr< rhoConst > New(Istream &is)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
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].
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.
scalar Z(scalar p, scalar T) const
Return compression factor [].
scalar cp(scalar p, scalar T) const
Return cp departure [J/(kmol K].
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.