[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!