Mesh refinement and boundary tags
Posted: 30 Oct 2023, 23:52
Hi all,
I’ve been using the MMG2DSolver to refine a mesh in a given area and this has worked perfectly. I’m now comparing my Elmer/Ice simulations with another model (icepack) and would like to use the same refined mesh which should be in an .msh format with boundary tags. After using the MMG2DSolver, I saved the vtu file and converted it to an .msh file using meshio, which works fine except that I lose information about the boundary tags (directly saving as an .msh file from Elmer gives me more trouble).
Do any of you know how I can retain the boundary tags after using the MMG2DSolver? Is there a way to add a line to the .msh file to redefine the boundaries? Or is specifying the mesh refinement in the original .geo file the only way to solve this?
Many thanks for any help!
Clara
I’ve been using the MMG2DSolver to refine a mesh in a given area and this has worked perfectly. I’m now comparing my Elmer/Ice simulations with another model (icepack) and would like to use the same refined mesh which should be in an .msh format with boundary tags. After using the MMG2DSolver, I saved the vtu file and converted it to an .msh file using meshio, which works fine except that I lose information about the boundary tags (directly saving as an .msh file from Elmer gives me more trouble).
Do any of you know how I can retain the boundary tags after using the MMG2DSolver? Is there a way to add a line to the .msh file to redefine the boundaries? Or is specifying the mesh refinement in the original .geo file the only way to solve this?
Many thanks for any help!
Clara