[Dune] Getting the list of neighbours for a given element of the grid

Sacconi, Andrea a.sacconi11 at imperial.ac.uk
Thu Oct 18 12:17:29 CEST 2012


Hi Andreas,

I'm currently implementing an algorithm that requires to know, for each element of the grid, its neighbours. Simply it'd be easier if I had a method that, given the current element, returns the list of neighbours; nevermind, I'll write down a routine that does so.

Cheers,
Andrea
__________________________________________________________

Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk
________________________________
From: Dedner, Andreas [A.S.Dedner at warwick.ac.uk]
Sent: 18 October 2012 11:12
To: Sacconi, Andrea; dune at dune-project.org
Subject: RE: [Dune] Getting the list of neighbours for a given element of the grid

The interesection iterator is the only way to access neighbors in DUNE. Why would you want to
have something else?

Best
Andreas

________________________________
From: dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org [dune-bounces+a.s.dedner=warwick.ac.uk at dune-project.org] on behalf of Sacconi, Andrea [a.sacconi11 at imperial.ac.uk]
Sent: 18 October 2012 11:05
To: dune at dune-project.org
Subject: [Dune] Getting the list of neighbours for a given element of the grid

Hi everyone,

I've a question about the grid.
Suppose you're interested in finding all the neighbours for a given element of a conforming grid. Is there a method that, given an element, tells you directly which are its neighbours?
Or is it necessary to traverse the Intersections and get that information with a loop?

Thanks in advance!

Andrea
__________________________________________________________

Andrea Sacconi
PhD student, Applied Mathematics
AMMP Section, Department of Mathematics, Imperial College London,
London SW7 2AZ, UK
a.sacconi11 at imperial.ac.uk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20121018/7da3be86/attachment.htm>


More information about the Dune mailing list