Go to the documentation of this file.
41 const scalar molWeight
53 const scalar molWeight
67 molWeight_(st.molWeight_)
103 molWeight_ = st.molWeight_;
109 const scalar sumY = Y_ + st.Y_;
110 if (
mag(sumY) > SMALL)
112 molWeight_ = sumY/(Y_/molWeight_ + st.Y_/st.molWeight_);
129 const scalar sumY =
max(st1.Y_ + st2.Y_, SMALL);
131 if (
mag(sumY) > SMALL)
136 sumY/(st1.Y_/st1.molWeight_ + st2.Y_/st2.molWeight_)
158 scalar diffY = st2.Y_ - st1.Y_;
159 if (
mag(diffY) < SMALL)
164 const scalar diffRW = st2.Y_/st2.molWeight_ - st1.Y_/st1.molWeight_;
169 volatile const bool valid = (
mag(diffRW) > SMALL);
170 const scalar molWeight = valid ? diffY/diffRW : GREAT;
172 scalar molWeight = GREAT;
173 if (
mag(diffRW) > SMALL)
175 molWeight = diffY/diffRW;
179 return specie(diffY, molWeight);
const scalar RR
Universal gas constant: default in [J/(kmol K)].
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 W() const
Molecular weight [kg/kmol].
const word & name() const
Name.
void operator+=(const specie &)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
word name(const complex &c)
Return string representation of complex.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
Base class of the thermophysical property types.
specie(const scalar Y, const scalar molWeight)
Construct from components without name.
PtrList< volScalarField > & Y
void operator=(const specie &)
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
tmp< faMatrix< Type > > operator*(const areaScalarField &, const faMatrix< Type > &)
scalar Y() const
No of moles of this species in mixture.
void operator*=(const scalar)
scalar R() const
Gas constant [J/(kg K)].