Re: [Libmesh-users] From a node to its element

2017-06-25 Thread Derek Gaston
Check out MeshTools::build_node_to_elem_map() Derek On Sun, Jun 25, 2017 at 4:27 PM Shayan Hoshyari wrote: > Hi, > > If it is feasible, you can create an array of pointers to elements with the > size of your vertices, vert2el[]. Then, loop over all elements, e, and loop > over all the vertices o

Re: [Libmesh-users] From a node to its element

2017-06-25 Thread Shayan Hoshyari
Hi, If it is feasible, you can create an array of pointers to elements with the size of your vertices, vert2el[]. Then, loop over all elements, e, and loop over all the vertices of that element, e_v, and set vert2el[e_v]=e. Then given any vertex v, vert2el[v], would be an element to which v belong

[Libmesh-users] From a node to its element

2017-06-25 Thread gabriele r
Hi all, given a dof D on the boundary (it may be a vertex or a midpoint of a TRI6), I would like to access to an element E (in particular, to its vertices) which D belongs to. I need only one element, it is not important which one. Is there an easy way to do so? Thank you very much ---