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 sampling - how to compute surface area (https://www.cfd-online.com/Forums/openfoam-post-processing/141260-surface-sampling-how-compute-surface-area.html)

vut September 3, 2014 11:32

surface sampling - how to compute surface area
 
Hello everybody,

I used surface sample in OpenFoam to obtain the velocity fields (U,V,W) over a plane. Thus, I gave a base point and a normal vector to specify A PLANE I wanted to consider.

In the resulting surfaceSampling folder, there are some files:
* faceCenter => X,Y,Z of centers of each elementary face
* U => U,V,W at elementary face
* faces => list of 3 points (3 vertices) of each elementary face
* points => coordinates of these points

(Please bear in mind that I am not sure about the information contained in each file :o).

I do the following steps:
* Firstly, I use these files to recognize the coordinates of three vertices of each elementary face. :)
* Then, these coordinates are implemented to calculate the area of each elementary face. :)
* The sum of these areas should be equal to the area of THE ABOVE PLANE. However, these two values are different! :confused:

May you give me some remarks or advices? They will be really appreciated.

Cheers :),

vut

vut September 8, 2014 07:27

Does somebody have a suggestion?

Thanks,

vut


All times are GMT -4. The time now is 16:46.