CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   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)

Gitesh P November 15, 2012 06:21

To calculate total value of mass generation in the whole domain
 
Hello,

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

vainilreb November 20, 2012 11:17

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 03:53.