CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   updateConcsInReactionI (https://www.cfd-online.com/Forums/openfoam-bugs/95357-updateconcsinreactioni.html)

gregor December 14, 2011 12:38

updateConcsInReactionI
 
In openFoam2.0.x in the ODEChemistryModel.C-file in the updateConcsInReactionI-function it updates the concentrations by

Code:

  scalar sl = R.lhs()[s].stoichCoeff;
  c[si] -= dt*sl*omeg;

but since omega is in [kg/(m^3*s] the mass stoichiometric coefficient (normalised) instead of the molar stoichiometric coefficient should be taken, right ??

gregor


All times are GMT -4. The time now is 07:27.