39 const scalar molWeight
51 const scalar molWeight
65 molWeight_(st.molWeight_)
101 molWeight_ = st.molWeight_;
107 const scalar sumY = Y_ + st.Y_;
108 if (
mag(sumY) > small)
110 molWeight_ = sumY/(Y_/molWeight_ + st.Y_/st.molWeight_);
127 const scalar sumY =
max(st1.Y_ + st2.Y_, small);
129 if (
mag(sumY) > small)
134 sumY/(st1.Y_/st1.molWeight_ + st2.Y_/st2.molWeight_)
156 scalar diffY = st2.Y_ - st1.Y_;
157 if (
mag(diffY) < small)
162 const scalar diffRW =
163 st2.Y_/st2.molWeight_ - st1.Y_/st1.molWeight_;
165 scalar molWeight = great;
166 if (
mag(diffRW) > small)
168 molWeight = diffY/diffRW;
171 return specie(diffY, molWeight);
const word & name() const
Name.
void operator=(const specie &)
void operator*=(const scalar)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
scalar R() const
Gas constant [J/kg/K].
scalar Y() const
Mass fraction of this specie in mixture.
friend specie operator==(const specie &, const specie &)
Base class of the thermophysical property types.
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))
friend specie operator*(const scalar, const specie &)
A class for handling words, derived from string.
friend specie operator+(const specie &, const specie &)
specie(const scalar Y, const scalar molWeight)
Construct from components without name.
scalar W() const
Molecular weight [kg/kmol].
dimensioned< scalar > mag(const dimensioned< Type > &)
const scalar RR
Universal gas constant (default in [J/kmol/K])
void operator+=(const specie &)