Trouble with mesh refinement/local mesh size in v2.5.0

Did the “Mesh Refinement” item from v2.4.0 get changed to “Local Mesh Size” in v2.5.0? If so, it should have the same function, right?

A mesh refinement I did in v2.4.0 does not work as a local mesh size in v2.5.0, neither with element size nor with number of elements. I have also tried various sizes/scales.

20260303_mesh_refinement_issue.pmx (2.1 MB)

Edit: I just realized, that in 2D axissymmetric it works just fine, my problem happens in 3D

I confirmed the issue. It does not work with the default Netgen mesher. You can use the Gmsh tetrahedral mesh for now.

2 Likes

I have fixed the problem and will release a new version over the weekend.

3 Likes

Please confirm if it is working as expected.

Hi Matej,

the new local mesh size option says, that the global mesh size overrides the local mesh size. Should it not be the other way round? How can i make a global course mesh and a refinement in a radius?

It’s just about the global mesh size limit (max and min values). Check this: Mesh refinement problem - #2 by Matej

But keep in mind that Gmsh may work differently.

This is how Netgen works. If you need a coarse mesh, set Elements per edge and Elements per curvature to low values. 0.5 or 0.1. Leave the minimum element size small. The mesher will always try to create elements as large as possible.

2 Likes

Hi Matej, for my case, it works as expected now. Thanks a lot for the quick fix!!