Hi,
I want to find the list of neighboring elements of any particular element in the mesh, is there any method to do so.
By finding the list of neighboring elements I wish to search for a particle in a domain based on the previous location (i.e previous known element), since knowing the previous location there is a greater probability that new location of the diffused particle may be near the previous element neighbors. And thus iterating along the neighbors. This I think may provide a faster searching method.
Will it be a feasible method to do so? Has anyone tried it yet?
I have noticed that in the subroutine ADD_PARTICLE, in source file util/beif/streamline.f the iteration is
DO IELEM=1,NELEM2
....
....
ENDDO
The above mentioned code could be replaced by iterating the neighbors, as something like
DO WHILE(FOUND)
DO I=1,NB_NEIGH_EL(PELEM)
.
.
ENDDO
ENDDO
Thanks,
Gourish