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/)
-   -   How to find cells within a distance (https://www.cfd-online.com/Forums/openfoam-solving/64370-how-find-cells-within-distance.html)

ivan_cozza May 8, 2009 12:49

How to find cells within a distance
 
Hi Foamers,
I need to find, given a cell in the mesh, the labels of the cells within a given distance. Now I do it sweeping for all cells all the other cells and saving the ones that are nearer than a certain length in a labelListList, but this procedure is clearly heavy. Is there anything in OF that could help me to do it in a faster way?
I was managing to do it with mesh.cellCells(), but I can't find a way...
Thanks!!!
Ivan


All times are GMT -4. The time now is 17:19.