neighboring cells
Asked by
yk1000
I would like to define a function that takes as its input the index of a particular cell within my mesh(2D or 3D), and returns as output the indices of all neighboring cells (where I define neighbors to mean those that share ANY VERTICES with the input cell). What might be the best way to do this using the built in MeshConnectivity or MeshTopology classes? It appears MeshConnectivity yields all cells associated with each vertex and vice versa (the transpose), but I'm not sure how to obtain the neighbors of one particular cell. There doesn't seem to be a reference operator of any sort. Thank you in advance for any help!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- DOLFIN Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Andre Massing
- Solved:
- Last query:
- Last reply:
To post a message you must log in.