CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   How to compute total liquid volume of the whole domain (https://www.cfd-online.com/Forums/openfoam-post-processing/61436-how-compute-total-liquid-volume-whole-domain.html)

hsieh July 12, 2007 14:27

Hi, I finished an interFoam
 
Hi,

I finished an interFoam run. The case has liquid phase escaping from the domain. I would like to compute the total liquid volume left at each time step (post-porcessing). Can someone suggest the way(s) to do this?

Thanks!

Pei

gschaider July 13, 2007 07:24

Info << " Liquid: " << sum(mes
 
Info << " Liquid: " << sum(mesh.V()*gamma) << endl;

hsieh July 13, 2007 18:18

Thanks a lot Bernhard! I ca
 
Thanks a lot Bernhard!

I cannot believe it is SO easy!

Pei


All times are GMT -4. The time now is 05:34.