I am trying to extract the individual area of each face on an unstructured surface grid from OpenFOAM. I have tried using both the PythonCalculator (area(input[0])) and Quality features but this seems to be limited to just quad and tri elements. All the elements with 5 or more sides are just given an area of -1 (see figure). Is there away to calculate the area of the irregular polygons within paraview?
As an example, if you have a body and want to integrate the pressure over the whole surface and multiply by normals to get lift and drag (not what I am doing in this case but an example). I assumed it was calculating:
Lift = sum of (face pressure * face area * Normal.z)
Drag = sum of (face pressure * face area * Normal.x)
If ParaView doesn’t currently extract the face area, does it use some other algorithm to do the integration?
Mathieu,
Looking at the IntegratePolygon it looks like it is just breaking each polygon down in to triangles to calculate the areas. I have used this functionality in the past to get an idea whether my lift and drag calculations were close and was concerned that it was missing out all the polygons.
I am using v5.2.0 currently and I saw this post, and wondered if the cellsize was a feature in a newer version that solves this problem.