I generated a simple example that shows unexpected behavior when defining local mesh refinement for a point in 2D. The refinement depends on the dimensions and the grading value:
Grading2DGeom.ipynb (7.1 KB)
The last cell in the notebook contains a command that runs forever in my notebook, that’s why I commented it out. I just changed the direction of one line from p3 → p4 to p4 → p3.
the domain must be on the left side of the edges, if you change the direction of the line p3 → p4 you don’t have a valid domain.
and … we recommend to switch to occ-geometry, instead of SplineGeometry2D or CSGeometry
1 Like
Thanks for the explanation, that helps a lot. In case someone has the same issue, this is an implementation using occ:
Grading2DGeomOCC.ipynb (5.0 KB)
The refinement now looks very good for almost all cases! However, the first example with a grading value of 0.05 only has a very localized refinement, if you switch to 0.06 the refinement is again as I would expect it. Are there limits to the grading value?