Go to the documentation of this file.
32 template<
class Specie>
46 template<
class Specie>
58 template<
class Specie>
68 template<
class Specie>
75 template<
class Specie>
82 template<
class Specie>
89 template<
class Specie>
96 template<
class Specie>
103 template<
class Specie>
110 template<
class Specie>
117 template<
class Specie>
124 template<
class Specie>
133 template<
class Specie>
136 scalar Y1 = this->
Y();
137 Specie::operator+=(ico);
139 if (
mag(this->
Y()) > SMALL)
142 const scalar Y2 = ico.Y()/this->
Y();
144 rho_ = Y1*rho_ + Y2*ico.rho_;
149 template<
class Specie>
152 Specie::operator*=(
s);
158 template<
class Specie>
161 const rhoConst<Specie>& ico1,
162 const rhoConst<Specie>& ico2
167 static_cast<const Specie&
>(ico1)
168 +
static_cast<const Specie&
>(ico2)
171 if (
mag(sp.Y()) < SMALL)
173 return rhoConst<Specie>
181 const scalar Y1 = ico1.Y()/sp.Y();
182 const scalar Y2 = ico2.Y()/sp.Y();
184 return rhoConst<Specie>
187 Y1*ico1.rho_ + Y2*ico2.rho_
193 template<
class Specie>
197 const rhoConst<Specie>& ico
200 return rhoConst<Specie>(
s*
static_cast<const Specie&
>(ico), ico.rho_);
204 template<
class Specie>
207 const rhoConst<Specie>& ico1,
208 const rhoConst<Specie>& ico2
213 static_cast<const Specie&
>(ico1)
214 ==
static_cast<const Specie&
>(ico2)
217 const scalar Y1 = ico1.Y()/sp.Y();
218 const scalar Y2 = ico2.Y()/sp.Y();
220 return rhoConst<Specie>
223 Y2*ico2.rho_ - Y1*ico1.rho_
scalar E(const scalar p, const scalar T) const
scalar CpMCv(scalar p, scalar T) const
void operator*=(const scalar)
A class for handling words, derived from Foam::string.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< " ";}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.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 Cp(scalar p, scalar T) const
scalar H(const scalar p, const scalar T) const
scalar Z(scalar p, scalar T) const
scalar rho(scalar p, scalar T) const
scalar Cv(scalar p, scalar T) const
scalar S(const scalar p, const scalar T) const
rhoConst(const Specie &sp, const scalar rho)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
PtrList< volScalarField > & Y
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
word name(const expressions::valueTypeCode typeCode)
autoPtr< rhoConst > clone() const
void operator+=(const rhoConst &)
scalar psi(scalar p, scalar T) const
RhoConst (rho = const) of state.