39 const scalar molWeight
51 const scalar molWeight
65 molWeight_(st.molWeight_)
73 molWeight_(st.molWeight_)
108 nMoles_ = st.nMoles_;
109 molWeight_ = st.molWeight_;
115 scalar sumNmoles =
max(nMoles_ + st.nMoles_, SMALL);
118 nMoles_/sumNmoles*molWeight_
119 + st.nMoles_/sumNmoles*st.molWeight_;
127 scalar diffnMoles = nMoles_ - st.nMoles_;
128 if (
mag(diffnMoles) < SMALL)
134 nMoles_/diffnMoles*molWeight_
135 - st.nMoles_/diffnMoles*st.molWeight_;
137 nMoles_ = diffnMoles;
151 scalar sumNmoles =
max(st1.nMoles_ + st2.nMoles_, SMALL);
156 st1.nMoles_/sumNmoles*st1.molWeight_
157 + st2.nMoles_/sumNmoles*st2.molWeight_
164 scalar diffNmoles = st1.nMoles_ - st2.nMoles_;
165 if (
mag(diffNmoles) < SMALL)
173 st1.nMoles_/diffNmoles*st1.molWeight_
174 - st2.nMoles_/diffNmoles*st2.molWeight_
void operator=(const specie &)
void operator*=(const scalar)
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 ))
dimensioned< scalar > mag(const dimensioned< Type > &)
scalar W() const
Molecular weight [kg/kmol].
A class for handling words, derived from string.
scalar nMoles() const
No of moles of this species in mixture.
void operator-=(const specie &)
friend specie operator==(const specie &, const specie &)
friend specie operator-(const specie &, const specie &)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
specie(const scalar nMoles, const scalar molWeight)
Construct from components without name.
const scalar RR
Universal gas constant (default in [J/(kmol K)])
void operator+=(const specie &)
const word & name() const
Name.
friend specie operator+(const specie &, const specie &)
friend specie operator*(const scalar, const specie &)
scalar R() const
Gas constant [J/(kg K)].
Base class of the thermophysical property types.