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/)
-   -   Surface area of free surface (https://www.cfd-online.com/Forums/openfoam-post-processing/61433-surface-area-free-surface.html)

jaswi July 25, 2007 14:34

Hi all I found the followin
 
Hi all

I found the following piece of code in order to calculate surface area of the free surface in interFoam.

volScalarField gradGamma
= mag(fvc::grad(gamma));
scalar totalSurfaceArea
= sum(gradGamma.internalField()*mesh.V());

Can somebody please elaborate on it. I mean the physics part as I understand what this code is doing.

Thanks in advance

Regards
Jaswinder


All times are GMT -4. The time now is 04:06.