- **OpenFOAM Running, Solving & CFD**
(*https://www.cfd-online.com/Forums/openfoam-solving/*)

- - **To calculate total value of mass generation in the whole domain**
(*https://www.cfd-online.com/Forums/openfoam-solving/109333-calculate-total-value-mass-generation-whole-domain.html*)

To calculate total value of mass generation in the whole domainHello,
Does anyone know how to calculate an averaged value of any field in OpenFoam/paraFoam ? I mean if I want to calculate total value of mass generation in the whole domain then how I can do that in OF or in ParaFoam. With regards, GP |

If you simulate rho and the mass fractions for every time step, you could simply use the calculator to calculate "rho*<species>" and use "integrateVariables" to get the total mass of this species in the system. Comparing this value at different points of time should give information on the species production.
Do you agree? :) |

All times are GMT -4. The time now is 17:09. |