CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Boundary Element Parent Cell Search (https://www.cfd-online.com/Forums/main/65533-boundary-element-parent-cell-search.html)

raptor3x June 17, 2009 20:38

Boundary Element Parent Cell Search
 
Hello,

I have a situation where I receive an incomplete CGNS file that does not specify the parent cell for boundary faces. The search method I have right now is extremely slow and I'm looking for some way to accelerate the process. So the question is, for an unstructured mesh, does anybody know a fast algorithm for find the parent cells for a given boundary face?

andy_ June 18, 2009 02:36

You do not say what you are doing now but the following is straightforward to implement:
- separate out the 3D elements with boundary faces (no connectivity) into a separate list
- insert these boundary 3D elements into an octree
- search only the few relevant cell/s in the octree to find a match for your boundary elements

There is plenty of code for octrees (and other types of trees) for Fortran/C/C++ on the web.


All times are GMT -4. The time now is 10:24.