40 const scalar molWeight
53 const scalar molWeight
65 inline specie::specie(
const specie& st)
69 molWeight_(st.molWeight_)
74 inline specie::specie(
const word& name,
const specie& st)
78 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_;
121 nMoles_ = sumNmoles_;
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_