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/)
-   -   Area of patch (https://www.cfd-online.com/Forums/openfoam-post-processing/185960-area-patch.html)

eivind April 6, 2017 10:29

Area of patch
 
Hi!
I need to know the area of my inlet patch in order to be able to specify the average velocity from a giver flow rate.
I'm using the mappedPatch BC for the inlet with an average velocity, and a snappyHexMesh-ed mesh.

Is there a neat way to find the area of a patch?

Cheers,
Eivind

alexeym April 6, 2017 15:52

Hi,

If you have field, which is constant over the patch, you can use

Code:

postProcess -func 'patchIntegrate(name=inlet,field)'
Or you can open case in paraview, select inlet patch in 'Mesh regions' and use Integrate Variables filter. In SpreadSheetView, you select Attribute 'Cell Data', and there is column Area with area of the patch.


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