# Sweep mesh: n layers capability

**URL:** <https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866>\
**Category:** Feature Requests\
**Created:** [July 21, 2025, 5:53pm UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866 "2025-07-21T17:53:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul18fr](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@Paul18fr](https://prepomax.discourse.group/u/Paul18fr)\
**Post date:** [July 21, 2025, 5:53pm UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866/1 "2025-07-21T17:53:18Z")

</div>

Hi,

As for Extrude and Revolve mesher, i think it will be relevant for Sweep to be able to define a nlayers value (so that meshes remain coincident typically).

In a more general way, the edge discretization is sometime difficult to impose when using only the size elements; as in Gmsh, it might be powerfull to have such feature.

Propomax remains a very promising tool 👍

Paul

---

<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:** [July 22, 2025, 7:46am UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866/2 "2025-07-22T07:46:37Z")

</div>

Currently, you can define the element size in the sweep direction using mesh refinement.

---

<div class="post-metadata">

**Author:** ![Paul18fr](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@Paul18fr](https://prepomax.discourse.group/u/Paul18fr)\
**Post date:** [July 22, 2025, 8:19am UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866/3 "2025-07-22T08:19:44Z")

</div>

yes, but I’m saying that if we have the opportunity to define a “nlayer” parameter as for “Extrude” and “Revolved”, then we can have a better control on the discretization of each sub-volume prior to merge nodes i.e. gmsh “coherence” (see difficulties in [this post](https://prepomax.discourse.group/t/meshing-methodology/2863) )

Paul

---

<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:** [July 22, 2025, 9:36am UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866/4 "2025-07-22T09:36:38Z")

</div>

Mesh refinement with number of elements per edge option (in addition to the current element size setting) would also help here: [Mesh refinement of edges with gmsh](https://prepomax.discourse.group/t/mesh-refinement-of-edges-with-gmsh/1378)

---

<div class="post-metadata">

**Author:** ![Paul18fr](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@Paul18fr](https://prepomax.discourse.group/u/Paul18fr)\
**Post date:** [July 22, 2025, 9:49am UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866/5 "2025-07-22T09:49:53Z")

</div>

Agree on the principle with Jakub.

Just to illustrate it: i tried to get a “transfinite” mesh using a model found in the site but with no sucess.  
[nozzle\_shell2.pmx](https://prepomax.discourse.group/uploads/short-url/kTwGPvAoA48S4Z1dynIiXHjG5uo.pmx) (1.1 MB)

 ![shell](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/d/dc48b2e9f02baaef46f8cbc08bde24dd4499128e.png)

---

<div class="post-metadata">

**Author:** ![TKemeny86](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@TKemeny86](https://prepomax.discourse.group/u/TKemeny86)\
**Post date:** [July 22, 2025, 1:32pm UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866/6 "2025-07-22T13:32:58Z")

</div>

Try it with GMSH-shell and quasi-structured

---

<div class="post-metadata">

**Author:** ![Paul18fr](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@Paul18fr](https://prepomax.discourse.group/u/Paul18fr)\
**Post date:** [July 22, 2025, 1:54pm UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866/7 "2025-07-22T13:54:31Z")

</div>

that’s what i did with almost all options

---

<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:** [July 22, 2025, 2:06pm UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866/8 "2025-07-22T14:06:02Z")

</div>

There are some issues that should be corrected first in this model. Such as those small faces:

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/5/54efff78c96a2eaf73a12b44d04529ec27d32983.png)

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/a/a54ac5ff28ea7a95c5bff4a34cf2c8c648340482.png)

---

<div class="post-metadata">

**Author:** ![Paul18fr](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@Paul18fr](https://prepomax.discourse.group/u/Paul18fr)\
**Post date:** [July 23, 2025, 6:27am UTC](https://prepomax.discourse.group/t/sweep-mesh-n-layers-capability/2866/9 "2025-07-23T06:27:12Z")

</div>

ahhhhh … indeed 🤬  
Need to check the cad at each step
