[Dune] Intersection iterator and global labels of vertices

Christian Engwer christian.engwer at uni-muenster.de
Fri May 3 23:36:25 CEST 2013


On Fri, May 03, 2013 at 09:21:33PM +0000, Sacconi, Andrea wrote:
> Hi Andreas,
> 
> thanks for your answer.
> Sorry but I'm a bit perplexed about the method "numberInSelf()" ... I tried to call it, but I get an error from the compiler, saying that there is no such method.
> To which class does it belong? I didn't find it in the documentation.

It is called indexInInside numberInSelf was the old name, which
changed to make it consistent with methods like geometryInInside

Ciao
Christian

> The subIndex method is from IntersectionIterator? Or from elsewhere?
> 
> 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: 03 May 2013 17:26
> To: Sacconi, Andrea; dune at dune-project.org
> Subject: RE: Intersection iterator and global labels of vertices
> 
> Hi.
> Definitely a dune question:
> 
> Probably the easiest way is to use the codim 1 subentity which (in the case of alberta) corresponds to the intersection, i.e., e=intersection.numberInSelf().
> Then you can get the index of your corners for that edge by using the subIndex method.
> 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: 03 May 2013 17:01
> To: dune at dune-project.org
> Subject: [Dune] Intersection iterator and global labels of vertices
> 
> Hi everyone,
> 
> I have a quick question about the Intersection Iterator. Before starting, I'm using AlbertGrid.
> 
> Suppose you have a triangle ABC, and you need to perform some operations related to its boundary edges, i.e., the three segments AB, AC, BC.
> When you call the intersection iterator, you get three iterators, one for each edge. So far, so good.
> But what is the correspondence? I mean, iterator -> geometry().corner(0) gives you the local first corner of the codim-1 entity. To which global vertex does it correspond? A, B or C?
> 
> I'm not even sure if this question is related to DUNE in general, or maybe should be addressed to DUNE-FEM.
> Thanks for your help!
> 
> 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

> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune


-- 
Prof. Dr. Christian Engwer 
Institut für Numerische und Angewandte Mathematik
Fachbereich Mathematik und Informatik der Universität Münster
Einsteinstrasse 62
48149 Münster

E-Mail	christian.engwer at uni-muenster.de
Telefon	+49 251 83-35067
FAX		+49 251 83-32729




More information about the Dune mailing list