dune-foamgrid issueshttps://gitlab.dune-project.org/extensions/dune-foamgrid/-/issues2019-09-16T10:10:03Zhttps://gitlab.dune-project.org/extensions/dune-foamgrid/-/issues/14Single vertices2019-09-16T10:10:03ZTimo KochSingle verticesWe had several cases of segmented network grid files that contained single vertices. When read into FoamGrid the factory inserts these vertices that do not belong to any element.
One could argue that the grid file is broken and FoamGrid...We had several cases of segmented network grid files that contained single vertices. When read into FoamGrid the factory inserts these vertices that do not belong to any element.
One could argue that the grid file is broken and FoamGrid does not need to support this. However, it is not always obvious in the program since some codes will e.g. never iterate over vertices. But then when you switch to another scheme where vertices are important, the code will suddenly fail.
Is is considered a feature that FoamGrid supports single vertices? Or is it a bug? The factory could be easily adjusted to only insert vertices belonging to elements. This is also done in the growth interface. Vertices not belonging to elements are not inserted.https://gitlab.dune-project.org/extensions/dune-foamgrid/-/issues/6Local adaptivity broken in 2d2020-03-13T17:47:15ZTimo KochLocal adaptivity broken in 2dLocally adapting a single element in a 2d foamgrid results in wrong number of facets. Adding the lines
```diff
+ // refine single element
+ grid2d->mark(1, *grid2d->leafGridView().begin<0>());
+ grid2d->preAdapt();
+ grid2d...Locally adapting a single element in a 2d foamgrid results in wrong number of facets. Adding the lines
```diff
+ // refine single element
+ grid2d->mark(1, *grid2d->leafGridView().begin<0>());
+ grid2d->preAdapt();
+ grid2d->adapt();
+ grid2d->postAdapt();
```
to the local adaptivity 2d test throws error:
```
Warning: gridsize = 1854 entities, set of entities = 1862 [codim 1]
For subEntity key (3,(simplex, 1))
Got 0 4
Found 0 2
Dune::GridError [checkSubEntity:/home/timok/dune/nextdumux/dune-grid/dune/grid/test/checkindexset.hh:215]: global != globalcheck
```https://gitlab.dune-project.org/extensions/dune-foamgrid/-/issues/5geometryInOutside() broken for locally adapted grids (1d and 2d) and non-conf...2019-05-01T19:25:33ZTimo KochgeometryInOutside() broken for locally adapted grids (1d and 2d) and non-conforming grids (2d)The current implementation only works for conforming grid and if the intersection vertices exist in the neighbor element. This is not the case for locally adapted grids and non-conforming grids.The current implementation only works for conforming grid and if the intersection vertices exist in the neighbor element. This is not the case for locally adapted grids and non-conforming grids.https://gitlab.dune-project.org/extensions/dune-foamgrid/-/issues/3Grid does not grow - No error message2017-07-28T09:39:18ZKatja HanowskiGrid does not grow - No error messageThere are cases in which a grid does not grow although the data needed for the extension is correctly defined. Unfortunately the reason for this remains unclear. There is no error message at all. I attached an example grid, which was ge...There are cases in which a grid does not grow although the data needed for the extension is correctly defined. Unfortunately the reason for this remains unclear. There is no error message at all. I attached an example grid, which was generated during my computations ([grid.pdf](/uploads/ea0b79d357a913d906ca40f7bd9baace/grid.pdf), generated by running [foamgridbug.cc](/uploads/be5ebe01860ee459a89c8e6fd06e2336/foamgridbug.cc)).
Does anyone know the cause of this problem? Can it be fixed somehow?
I am currently using the 2.4-release branch.