Rate of Chemical Reaction

Hello,

If i want to define the following rate of reaction in usr_rates_des.f

rate

What is the symbol of number of moles in MFIX-DEM?

Thank you in advance.

I think you need to convert to moles by dividing mass by molecular weight.
Here’s an example from the usr_rates.f in the Biomass (variable density) tutorial:

 c_O2  = RO_g(IJK) * X_g(IJK,O2) / MW_g(O2)

RO_g is the gas phase fraction in cell IKJ and X_g is the mass fraction for O2 within the gas phase. So RO_g * X_g gives you the mass of O2 in the cell. Then dividing by MW_g(O2) gives you the molecular mass.

– Charles