[Dune] unwanted refinement with ALUGRID_CUBE

Carsten Gräser graeser at math.fu-berlin.de
Fri Dec 7 12:55:24 CET 2012


Hi Matteo,
this is because the level of hanging nodes is restricted and the
default is one.

There's a constructor where you can specify the number of hanging
nodes. However, I'm not sure if this is the number per edge, per face,
or number of nested hanging nodes, i.e. the level.

Best,
Carsten



re is a default of
Am 07.12.2012 11:16, schrieb Matteo Semplice:
> Dear Dune,
>     I am trying to create on purpose an irregular quad-based grid for a
> test.
> My purpose is to have some elements whose neighbours along an edge have
> two different sizes (e.g. one of size 1/2 and two of size 1/4) like this
> 
> |-------|  edge of big quad
> |-|-|---|  edges of neighbouring quads
> 
> Is there something in ALUgrid or DUNE that prevents this?
> 
> Here's my experiment.
> 
> I start with a grid of a single square (level 0)
> I refine it once obtaining 4 level 1 quads.
> I mark the north-east and south-west quads and call adapt and I have a
> grid with 2 level 1 quads and 8 level 2 quads.
> I do this once more: mark the north-east and south-west level 2 quads
> and call adapt.
> This time the level2 quads that were marked get refined, but also the
> level 1 quads (not marked!) are refined.
> 
> I am wondering if ALUGRID or DUNE have some mechanism that automatically
> causes the refinement of the unmarked level1 quads. If so, I appreciate
> that this feature is quite understandable (and desirable!) for
> production code, but is there a way to turn this feature off for a test?
> 
> Best regards,
>     Matteo


-- 
----------------------------------------------------------------------
Dr. Carsten Gräser       | phone: +49-30 / 838-75349
Freie Universität Berlin | fax  : +49-30 / 838-54977
Institut für Mathematik  | email: graeser at math.fu-berlin.de
Arnimallee 6             |
14195 Berlin, Germany    | URL  : http://page.mi.fu-berlin.de/graeser
----------------------------------------------------------------------




More information about the Dune mailing list