meshio icon indicating copy to clipboard operation
meshio copied to clipboard

Write physical groups when converting gmsh to exodus

Open NjJu1 opened this issue 3 years ago • 1 comments

Hi, I am new to meshio package. This is a great package, but I meet with difficulties when converting gmsh (version 2 or 4) into exodus format. I use the following commands for reading and writting meshes:

import meshio

mesh = meshio.read('test.msh', file_format="gmsh") mesh.write("test.exo", file_format = 'exodus')

By looking at the result of mesh, I find that physical groups are correctly identified by mesh. However, by using ParaView to see the output test.exo, I find that the physical groups information are totally lost, with Unnamed block ID: 0 and Unnamed block ID: 1 in Element blocks.

Does it mean meshio could not preserve physical group information? Or does it mean there is something missing on my codes?

Many thanks!

NjJu1 avatar Sep 02 '22 07:09 NjJu1

Hey ! Did you find a solution to this problem ? Also, by any chance you are doing this conversion for nek5000 ?

gauravity30 avatar Jun 30 '24 09:06 gauravity30