[Dune] boundaryId ?

Benedikt Oswald benedikt.oswald at lspr.ch
Sat Oct 19 12:54:52 CEST 2013


Dear Oliver and Bernd,

thanks for the clarification. Activating the boundaryId via the switch will help me immediately.

In the meantime, I will consider switching to the boundarySegmentIndex() and to implement
infrastructure to distribute boundary data over parallel processes.

One solution would be to read boundary data from the DGF file on the root process
and then to distribute them to the respective processes. The identification of the boundary
triangles or quadrangles would then be based on the global id which is guaranteed
to be persistent over all the processes.

What would you think of this approach ? Could this be compatible with the Dune
approach of keeping user data separate from the Grid API ?

Thanks again and greetings, Benedikt






On Oct 19, 2013, at 11:09 AM, Oliver Sander wrote:

> Hi Benedikt,
> the boundaryId method was an experimental grid extension, added to suit the
> needs of the DGF reader, but it was never clearly stated what it does.
> In particular, you will notice that it only works with ALUGrid (and possibly
> with Alberta), but definitely not with the other grid managers.  To clearly
> mark it as 'experimental' it is now hidden behind the DUNE_GRID_EXPERIMENTAL_GRID_EXTENSIONS
> macro.  If you want to continue using boundaryId you'll have to set that flag.
> 
> On the other hand, boundarySegmentIndex implements an index in the Dune sense
> (i.e., a consecutive, zero-starting set of integers) for the boundary segments
> of the macro grid.  Following the Dune philosophy, if you want to attach data
> to these segments (like, e.g., an integer giving the type of boundary conditions),
> than that is external data and needs to be done outside of the grid interface.
> 
> Note that there are problems with boundarySegmentIndex when working on parallel
> grids.  A discussion about this was scheduled at the last dev meeting, but
> unfortunately we ran out of time before getting to this point.
> 
> Best,
> Oliver
> 
> Am 19.10.2013 10:52, schrieb Bernd Flemisch:
>> Hi Benedikt, 
>> 
>> please have a look here:
>> http://lists.dune-project.org/pipermail/dune/2013-October/012490.html
>> especially at the second answer.
>> 
>> To my understanding, boundarySegmentIndex is a different concept:
>> http://www.dune-project.org/doc/doxygen/dune-grid-html/class_dune_1_1_intersection.html#a576b6611af20e6676706a68f33fef09e
>> In particular, I think that you can't set a particular index in the DGF file. 
>> 
>> Kind regards
>> Bernd 
>> 
>> On Fri, 18 Oct 2013 23:24:34 +0200
>> Benedikt Oswald <benedikt.oswald at lspr.ch> wrote:
>>> Dear Dune,
>>> 
>>> I have come to realize that the boundaryId method in the IntersectionIterator has obviously disappeared
>>> by default. Still, I need to access the id's of a boundary as they are stored in the DGF file.
>>> 
>>> My question: is the new method boundarySegmentIndex() in the grid api equivalent ?
>>> 
>>> Second, is this also available for AluSimplexGrid ?
>>> 
>>> There is no documentation for AluGridSimplex on the dune-project site ?
>>> 
>>> Thanks for some hints and greetings, Benedikt
>>> 
>>> 
>>> 
>>> 
>>> ----------------------------------------------------------------------------------------------------------------------------------------------
>>> Dr. sc. techn. Benedikt Oswald - first engineer - LSPR AG - phone - +41 76 380 91 33
>>> Technoparkstrasse 1, CH-8005 Zürich, benedikt.oswald at lspr.ch
>>> "Passion is required for any great work, and for the Revolution passion and audacity are required in big doses." 
>>> Ernesto 'Che' Guevara, Letter to his parents.
>>> ----------------------------------------------------------------------------------------------------------------------------------------------
>>> 
>>> 
>>> 
>>> 
>> 
>> _______________________________________________________________
>> 
>>    !!!! CMWR 2014: 10th - 13th June 2014 in Stuttgart !!!!
>>                  Please visit www.cmwr14.de
>> _______________________________________________________________
>> 
>> Bernd Flemisch                         phone: +49 711 685 69162
>> IWS, Universitaet Stuttgart              fax: +49 711 685 67020
>> Pfaffenwaldring 61            email: bernd at iws.uni-stuttgart.de
>> D-70569 Stuttgart            url: www.hydrosys.uni-stuttgart.de
>> _______________________________________________________________
>> 
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20131019/0e23d2da/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20131019/0e23d2da/attachment.sig>


More information about the Dune mailing list