# Transfinite Mesh does not work with recombination

**URL:** <https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207>\
**Category:** General Questions\
**Created:** [November 22, 2024, 1:02pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207 "2024-11-22T13:02:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DanielC](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DanielC](https://prepomax.discourse.group/u/DanielC)\
**Post date:** [November 22, 2024, 1:02pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/1 "2024-11-22T13:02:40Z")

</div>

When I follow the tutorial ‘PrePoMax & CalculiX - Transfinite volume meshes’ with any version of PrePoMax that has transfinite meshing capability, I struggle at the point of recombining the tetra mesh. It simply doesn’t complete and throws an error in the log window, but nothing appears in the log files. I’m left with a tetra mesh.

I’m using Windows 10 Pro 22H2 with .NET Framework 4.8.9037.0 and the original CAD file ‘Gmsh\_transfinite.STEP’ with the same setup as in the tutorial.  
Do you have any idea what might be causing this issue?

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

 ![image](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/c/c821637e34d40bc9ac09c2c6214d4deb1d7ea276.jpeg)

Thanks

Daniel

---

<div class="post-metadata">

**Author:** ![DanielC](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DanielC](https://prepomax.discourse.group/u/DanielC)\
**Post date:** [November 22, 2024, 2:13pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/2 "2024-11-22T14:13:34Z")

</div>

In log window states :  
"11/22/24 15:05:46 Progress: Meshing order 2 (curvilinear off)…  
11/22/24 15:05:46 Info: Done meshing order 2 (Wall 0.0111821s, CPU 0.015625s)  
11/22/24 15:05:46 Info: Writing ‘C:\Users\Daniel\Downloads\PrePoMax v2.2.0\Temp\mesh.inp’…  
11/22/24 15:05:46 Info: Done writing ‘C:\Users\Daniel\Downloads\PrePoMax v2.2.0\Temp\mesh.inp’

11/22/24 15:05:46 Elapsed time [s]: 0.3663461

11/22/24 15:05:46 The element type ‘M3D9’ is not supported.  
11/22/24 15:05:46 The element type ‘M3D9’ is not supported.  
11/22/24 15:05:46 The element type ‘M3D9’ is not supported.  
11/22/24 15:05:46 The element type ‘M3D9’ is not supported.  
11/22/24 15:05:46 The element type ‘M3D9’ is not supported.  
11/22/24 15:05:46 The element type ‘M3D9’ is not supported.  
11/22/24 15:05:46 The element type ‘C3D27’ is not supported.

11/22/24 15:05:46 Mesh generation failed for part Solid\_part-1. Check the geometry and/or adjust the meshing parameters."

Perhaps this is useful.

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 22, 2024, 5:10pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/3 "2024-11-22T17:10:22Z")

</div>

it seems not problem when i checked this feature in version 2.2.3dev, geometry built from scratch and imported as brep files.

 ![2024-11-23 00_06_51-GeomApp](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/7/7589022de0c78aaf726558116384909d9b78f6da.png)

 ![2024-11-23 00_07_19-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/c/c59179fac05539c6aa64b8959f27a75b1b7c3c74.png)

---

<div class="post-metadata">

**Author:** ![DanielC](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DanielC](https://prepomax.discourse.group/u/DanielC)\
**Post date:** [November 22, 2024, 6:00pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/4 "2024-11-22T18:00:39Z")

</div>

Yes, of course, it works, but for some reason, it doesn’t on my current Windows 10 installation. A colleague tested it in Wine on Linux, and it works there as well.

When I import the `mesh.inp` from the Wine version, everything is fine. However, the `mesh.inp` from the temp folder on my Windows 10 setup fails and throws the following exception: ‘The element type ‘M3D9’ is not supported,’ etc.

I have no clue why my Windows 10 is refusing to support this feature.

Do I have to Install certain things (gmsh, special Framework etc.)?

---

<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:** [November 22, 2024, 6:35pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/5 "2024-11-22T18:35:15Z")

</div>

If the mesh contains C3D27 elements this means it produces the full finite elements which are not supported by PrePoMax. PrePoMax supports only C3D20 elements. The command that should force the GMSH to do that in the PrePoMax code is:

> Gmsh.Option.SetNumber(“Mesh.SecondOrderIncomplete”, 1);

Do you have basic Gmsh installed? Maybe this setting is saved somewhere.

You could try to create a linear mesh instead of second order mesh (Meshing parameters → Second order → No) and change the Midside nodes on geometry setting.

---

<div class="post-metadata">

**Author:** ![DanielC](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DanielC](https://prepomax.discourse.group/u/DanielC)\
**Post date:** [November 23, 2024, 11:58am UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/6 "2024-11-23T11:58:06Z")

</div>

No, I haven’t installed Gmsh before. Creating a linear mesh and changing the midside nodes didn’t help. I also tried it on my son’s gaming machine, and it worked there. I might end up reinstalling Windows 10.

---

<div class="post-metadata">

**Author:** ![Gunnar](https://avatars.discourse-cdn.com/v4/letter/g/ed655f/32.png) [@Gunnar](https://prepomax.discourse.group/u/Gunnar)\
**Post date:** [November 23, 2024, 12:03pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/7 "2024-11-23T12:03:37Z")

</div>

> [@DanielC](#):
>
> I might end up reinstalling Windows 10.

Wait! 🙂 Try this first:

In gmsh standalone, If you have set Element order 2 as default and did not tick the box “use incomplete elements” and saved this as default options, the error occurs in prepomax.  
So you need to select “use incomplete elements” or change the default to Element order 1.  
Changing between these two settings seem also to have an effect of the resulting mesh element size in prepomax (I updated the mesh in prepomax without changing the size):

 ![o](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/b/b28120ccd586f9e290531301460fbdb3173d3534.png)

---

<div class="post-metadata">

**Author:** ![DanielC](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DanielC](https://prepomax.discourse.group/u/DanielC)\
**Post date:** [November 23, 2024, 12:26pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/8 "2024-11-23T12:26:52Z")

</div>

Downloading a standalone version of Gmsh and selecting ‘incomplete elements’ while saving the option as default worked for me. I can’t remember ever installing Gmsh as a standalone before, but I must have at some point. This aligns with what Matej mentioned earlier—there might be a saved setting somewhere in the system.

Where can I find this setting?

Awesome, Gunnar! You saved me a ton of time! Thanks, man!

---

<div class="post-metadata">

**Author:** ![DanielC](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DanielC](https://prepomax.discourse.group/u/DanielC)\
**Post date:** [November 23, 2024, 12:30pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/9 "2024-11-23T12:30:40Z")

</div>

I found it:  
C:\Users\username\AppData\Roaming\gmsh-options and C:\Users\username\AppData\Roaming\gmshrc.

Maybe there should be a check in PrePoMax to see if those settings exist.

But what I don’t understand is, doesn’t PrePoMax use its own local version of Gmsh? Or is it writing its own options file, with both the standalone Gmsh and PrePoMax overwriting it each time?

---

<div class="post-metadata">

**Author:** ![synt](https://yyz2.discourse-cdn.com/free1/user_avatar/prepomax.discourse.group/synt/32/4658_2.png) [@synt](https://prepomax.discourse.group/u/synt)\
**Post date:** [November 23, 2024, 3:03pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/11 "2024-11-23T15:03:01Z")

</div>

> [@DanielC](#):
>
> But what I don’t understand is, doesn’t PrePoMax use its own local version of Gmsh? Or is it writing its own options file, with both the standalone Gmsh and PrePoMax overwriting it each time?

this is what i understand, so i’m just taking a simple test from scratch and different file formats. Indeed, your log reported indicate complete quadratic were not supported. Also, generate extra membrane element (complete) in normally of transfinite solid mesh should not, probably.

previously, testing with second order is working fine on my machines (Win7 Pro),

 ![2024-11-23 22_07_21-](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/5/516a413221a7680bb95176f64ea46aeef48eeed7.png)

---

<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:** [November 23, 2024, 4:31pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/12 "2024-11-23T16:31:11Z")

</div>

> [@DanielC](#):
>
> But what I don’t understand is, doesn’t PrePoMax use its own local version of Gmsh? Or is it writing its own options file, with both the standalone Gmsh and PrePoMax overwriting it each time?

PrePoMax uses its own version of Gmsh and uses it using an API interface. I am also surprised that settings in these files override the settings PrePoMax sets using:

> Gmsh.Option.SetNumber(“Mesh.SecondOrderIncomplete”, 1);

---

<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:** [November 23, 2024, 4:31pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/13 "2024-11-23T16:31:50Z")

</div>

> [@DanielC](#):
>
> I found it:  
> C:\Users\username\AppData\Roaming\gmsh-options and C:\Users\username\AppData\Roaming\gmshrc.
> 
> Maybe there should be a check in PrePoMax to see if those settings exist.

Ok, and then what should be the next step?

---

<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:** [November 23, 2024, 4:32pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/14 "2024-11-23T16:32:58Z")

</div>

> [@DanielC](#):
>
> No, I haven’t installed Gmsh before. Creating a linear mesh and changing the midside nodes didn’t help. I also tried it on my son’s gaming machine, and it worked there. I might end up reinstalling Windows 10.

I am surprised that using linear mesh did not work. There should be no difference in using incomplete or complete elements.

---

<div class="post-metadata">

**Author:** ![DanielC](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DanielC](https://prepomax.discourse.group/u/DanielC)\
**Post date:** [November 24, 2024, 1:26am UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/15 "2024-11-24T01:26:25Z")

</div>

> Ok, and then what should be the next step?

If I had to tackle the problem, I would suggest modifying the file according to one’s needs while saving the old version in a temporary file, and then restoring it after completing the mesh.

---

<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:** [November 26, 2024, 6:05pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/16 "2024-11-26T18:05:30Z")

</div>

Hm, changing the existing files is risky. What if PrePoMax crashes before the files are changed back to the original settings? I think there should be another solution to force Gmsh to use local and not global settings.

---

<div class="post-metadata">

**Author:** ![DanielC](https://avatars.discourse-cdn.com/v4/letter/d/a3d4f5/32.png) [@DanielC](https://prepomax.discourse.group/u/DanielC)\
**Post date:** [December 6, 2024, 3:10pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/17 "2024-12-06T15:10:44Z")

</div>

Not risky if the configuration files are stored on disk beforehand. If this process is disrupted, the original files remain untouched.

But of course, it would be a clean soloution, to force gmsh to use local settings.

---

<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:** [December 6, 2024, 3:51pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/18 "2024-12-06T15:51:05Z")

</div>

I reproduced the problem you had and the file gmsh-options is to blame. I opened an issue on the Gmsh page and we will see what happens.

---

<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:** [January 22, 2025, 9:38am UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/19 "2025-01-22T09:38:53Z")

</div>

Since there is not much I can do I am moving the topic to General questions.

---

<div class="post-metadata">

**Author:** ![Daniel](https://avatars.discourse-cdn.com/v4/letter/d/3ec8ea/32.png) [@Daniel](https://prepomax.discourse.group/u/Daniel)\
**Post date:** [June 3, 2025, 11:19am UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/20 "2025-06-03T11:19:03Z")

</div>

Daniel, tive uma situação similar. No meu caso, descobri que era o nome do caminho no qual a pasta “.zip” foi descompactada. No caminho (path) tinha um caractere como: ç, ã e outros. Coloquei a pasta descompactada diretamente em "c:\ " e funcionou. Na versão v2.3.4 dev mostra essa mensagem.

Daniel, I had a similar situation. In my case, I discovered that it was the name of the path in which the “.zip” folder was unzipped. In the path there was a character like: ç, ã and others. I put the unzipped folder directly into “c:\” and it worked. Version v2.3.4 dev shows this message.

 ![Sem título 2](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/2/251e8a7667697df8878ab90b0fd4bc6226811e6a.jpeg)  
 ![Sem título 3](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/9/905aa03a194e8fc44437d0fc2d5025ad79c0fb5f.jpeg)  
 ![Sem título 4](https://global.discourse-cdn.com/free1/uploads/prepomax/original/2X/6/6f5ed1166fc39acd3b9e0e17a8ce9fc94baf59e8.jpeg)

---

<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:** [June 3, 2025, 7:16pm UTC](https://prepomax.discourse.group/t/transfinite-mesh-does-not-work-with-recombination/2207/22 "2025-06-03T19:16:47Z")

</div>

> [@Daniel](#):
>
> Version v2.3.4 dev shows this message.

This check was added to help solve such path problems.
