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

**URL:** <https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310>\
**Category:** Bug Reports\
**Created:** [March 3, 2026, 3:41pm UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310 "2026-03-03T15:41:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjes](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@sjes](https://prepomax.discourse.group/u/sjes)\
**Post date:** [March 3, 2026, 3:41pm UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310/1 "2026-03-03T15:41:51Z")

</div>

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](https://prepomax.discourse.group/uploads/short-url/ejFwNPPgtRUIGL5d83k7eLqUyfZ.pmx) (2.1 MB)

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

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [March 3, 2026, 4:29pm UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310/2 "2026-03-03T16:29:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [March 5, 2026, 7:01pm UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310/3 "2026-03-05T19:01:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [March 8, 2026, 9:46am UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310/4 "2026-03-08T09:46:11Z")

</div>

Please confirm if it is working as expected.

---

<div class="post-metadata">

**Author:** ![febing](https://avatars.discourse-cdn.com/v4/letter/f/c89c15/32.png) [@febing](https://prepomax.discourse.group/u/febing)\
**Post date:** [March 8, 2026, 10:35am UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310/5 "2026-03-08T10:35:14Z")

</div>

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?

 ![grafik](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/1/1f2ce1a9c1caffd70d43f664d352bf20967ff642.png)

 ![grafik](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/8/8a5f0c52dd11243f42e9d61c2da764b96a2beb87.jpeg)

---

<div class="post-metadata">

**Author:** ![FEAnalyst](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/feanalyst/32/688_2.png) [@FEAnalyst](https://prepomax.discourse.group/u/FEAnalyst)\
**Post date:** [March 8, 2026, 11:07am UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310/6 "2026-03-08T11:07:08Z")

</div>

> [@febing](#):
>
> 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](https://prepomax.discourse.group/t/mesh-refinement-problem/35/2)

But keep in mind that Gmsh may work differently.

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [March 8, 2026, 4:03pm UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310/7 "2026-03-08T16:03:12Z")

</div>

> [@febing](#):
>
> How can i make a global course mesh and a refinement in a radius?

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.

---

<div class="post-metadata">

**Author:** ![sjes](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@sjes](https://prepomax.discourse.group/u/sjes)\
**Post date:** [March 9, 2026, 10:44am UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310/8 "2026-03-09T10:44:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Matej](https://avatars.discourse-cdn.com/v4/letter/m/a698b9/32.png) [@Matej](https://prepomax.discourse.group/u/Matej)\
**Post date:** [March 17, 2026, 5:54pm UTC](https://prepomax.discourse.group/t/trouble-with-mesh-refinement-local-mesh-size-in-v2-5-0/3310/9 "2026-03-17T17:54:59Z")

</div>


