CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Post-Processing (
-   -   Surface area of free surface (

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


All times are GMT -4. The time now is 13:49.