Is mesh distortion okay? #769
-
I'm working on a 2D problem in the unit square, where I've defined several disk subdomains. I'm running this against thousands of arrangements of the disks, each time generating the mesh with gmsh/occ and it is sometimes complaining, as in
However I realize this question is 1/2 gmsh and 1/2 skfem, but I figured I would start here... do these warnings matter? Any advice how to get rid of them? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
One simple way to stop the warnings has been to add From the gmsh docs:
But I would still like to know how the warning impacts |
Beta Was this translation helpful? Give feedback.
-
Possible to draw one of the meshes? Triangular P1 element? P1 FEM is pretty robust against bad meshes and it is actually really hard to find mesh families where FEM is not converging. |
Beta Was this translation helpful? Give feedback.
-
To turn it high enough to get rid of all of the warnings made the mesh very dense and slow. It turned out to be better to specify a background field according to what I new about the geometry. See gmsh tutorial #10. The gmsh docs are hard to read, but the section on the different field types is important, and combining several together with a Note that if you are going after a disk (as I was) adding a temporary point at the center and using the |
Beta Was this translation helpful? Give feedback.
To turn it high enough to get rid of all of the warnings made the mesh very dense and slow. It turned out to be better to specify a background field according to what I new about the geometry. See gmsh tutorial #10. The gmsh docs are hard to read, but the section on the different field types is important, and combining several together with a
min
field eliminated all of the warnings.Note that if you are going after a disk (as I was) adding a temporary point at the center and using the
distance
field against that point is more effective than trying to use the circle perimiter of the disk or the area of the disk itself. See t10 for example. Make sure not to leave the temporary point in the…