[Help] How to Generate a 2D .mesh File Compatible with MMG (mmg_hausd Use Case)

Hi everyone,

I’m a beginner with MMG and would like to seek your advice on using the mmg-hausd feature to achieve approximate control over the boundary. I saw that the example “Mesh adaptation to a solution” provided in mmg_2d demonstrates this capability. However, the tutorial starts with a file called hole.mesh, and I’m not sure how to generate this type of mesh.

I used Gmsh 4.4.1 to create a relatively coarse mesh, defined physical groups, and exported the mesh in .mesh format. Although my geometry is 2D, I noticed that the exported .mesh file still appears to be in 3D when opened, which is quite confusing to me.

I tried modifying it to be 2D and ran it with mmg2d_O3, but the issue still remains.

May I ask if I have misunderstood something in the process? I would really appreciate any suggestions or guidance you could offer.

Thank you in advance!

Hello,

Please find attached the hole.mesh file that you can use to try out MMG.

However, if you need more guidance on the case that you created, please send it so we can investigate the issue that you have. Please provide the output log from MMG that produces the error as well.

Kind regards,
Corentin

hole.mesh (513.4 KB)