[Dune] Local Refinement in a DUNE Grid

Carsten Gräser graeser at math.fu-berlin.de
Wed Jan 5 17:17:49 CET 2011


Am 05.01.2011 17:02, schrieb Oliver Sander:
> Hi!
> Please don't take this in a bad way, but your question is really covered
> by the documentation.  Please consult it first before writing to the list.
> best,
> Oliver
> 
> 
> Am 05.01.2011 16:59, schrieb S. Swayamjyoti:
>> Just a correction! It need not be for refinement. I just need to know how to access geometrical
>> positions inside a grid? say x, y and z.
>>
>> On Wed, Jan 5, 2011 at 4:48 PM, S. Swayamjyoti <swayam.151 at gmail.com
>> <mailto:swayam.151 at gmail.com>> wrote:
>>
>>     Is it possible to give a conditional statement for refinement
>>     based on the geometric position of the grid elements for refinement?
>>
>>     e.g   if ( 40 < x < 50 && 10 < y < 30)
>>               {
>>                 refine mesh!
>>               }
>>     where x and y are the grid vectors in x and y direction. Can
>>     someone please tell me how do I find x and y, i.e how can I use
>>     geometric parameters related to the grid in my code. Does it come
>>     from the class GeometryType ?

Ideed the grid-how-to (a.k. grid tutorial) would have answered your question.

Best,
Carsten




More information about the Dune mailing list