One question related with this topic:
A quadrangular element can only have four neighbors? Say in the left side I
have a refined element with just one level more of refinement. The neighbor
I would get would be the parent element? The element that's at the same
level than me? I will illustrate it:
----------------------
| | | |
| | e | |
| | | |
|-----------| f |
| | | |
| | | |
| | | |
----------------------
Calling
for (unsigned int n_p=0; n_p<f->n_neighbors(); n_p++)
Elem * neighbor_f = f->neighbor(n_p);
will never return the element e, but it would return its parent?
What about the other way around? If I try to get the neighbors of e, will I
get f?
Thanks
Miguel
On Tue, Aug 19, 2014 at 10:24 AM, Miguel Angel Salazar de Troya <
[email protected]> wrote:
> Hi all
>
> Do the elements have id's from 0 to the number of elements? And when we
> refine the mesh, the new elements will take subsequent id numbers?
> Basically what I want to do is to have an array of numbers of size equal to
> the number of elements and assign each number to each element. If I refined
> the mesh, I would resize this array to accommodate the new elements. Is
> there a more efficient way to do this in libmesh rather than just creating
> a vector and accessing it with an index equal to the element's id? Thanks
> in advance.
>
> Miguel
>
> --
> *Miguel Angel Salazar de Troya*
> Graduate Research Assistant
> Department of Mechanical Science and Engineering
> University of Illinois at Urbana-Champaign
> (217) 550-2360
> [email protected]
>
>
--
*Miguel Angel Salazar de Troya*
Graduate Research Assistant
Department of Mechanical Science and Engineering
University of Illinois at Urbana-Champaign
(217) 550-2360
[email protected]
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users