CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to accelerate findCell in OpenFOAM-6 (https://www.cfd-online.com/Forums/openfoam-programming-development/231166-how-accelerate-findcell-openfoam-6-a.html)

yyy155klt October 24, 2020 10:46

How to accelerate findCell in OpenFOAM-6
 
Hello,

I’m using OpenFOAM-6 and “findCell” function in parallel, but this calculation is very slow.
As for old version of OpenFOAM, there was a thread about acceleration of findCell. (https://www.cfd-online.com/Forums/op...-findcell.html)

In this thread, it is said that tree search enables to accelerate findCell.
(Definition of findCell in oldversion is as below.)
Code:

findCell (const point &location, const label seedCellI=-1, const bool useTreeSearch=true)
However, in OpenFOAM-6, definition of findCell is as below.
(https://github.com/OpenFOAM/OpenFOAM...MeshFindCell.C)

Code:

findCell(const point& location)
Tree search is not included in the definition of findCell.
Can’t I use tree search in OpenFOAM-6?

In addition, are there any options to accelerate findCell in OpenFOAM-6 (in parallel)?

Thank you very much.


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