CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   calculating distance between neighboring points (https://www.cfd-online.com/Forums/openfoam-solving/241569-calculating-distance-between-neighboring-points.html)

kuangwulee March 6, 2022 06:56

calculating distance between neighboring points
 
Hello Foamers,


I have a very fundamental question: how can we calculate the distance between neighboring mesh points (not the distance from mesh point to surface.)
can someone help me?? thanks

Jeff

Tobermory March 6, 2022 08:54

What do you mean by "neighboring mesh points"? Do you mean the distance between the centre of a cell and the centre of its neighbouring cells? Since this is an unstructured mesh, then you need to start by getting the cell numbers of the neighbouring cells, and their cell centres, and then it's simple trigonometry to get the separation distance. Is that what you are after?


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