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);
Base class of the thermophysical property types.
scalar W() const
Molecular weight [kg/kmol].
scalar R() const
Gas constant [J/kg/K].
scalar Y() const
Mass fraction of this specie in mixture.
void operator=(const specie &)
specie(const scalar Y, const scalar molWeight)
Construct from components without name.
const word & name() const
Name.
void operator+=(const specie &)
void operator*=(const scalar)
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))
const dimensionedScalar RR
Universal gas constant: default SI units: [J/kmol/K].
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
word name(const bool)
Return a word representation of a bool.
dimensioned< scalar > mag(const dimensioned< Type > &)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
tmp< fvMatrix< Type > > operator*(const volScalarField::Internal &, const fvMatrix< Type > &)
tmp< fvMatrix< Type > > operator+(const fvMatrix< Type > &, const fvMatrix< Type > &)
PtrList< volScalarField > & Y