How to convert msh file to xdmf and load it into dolfin-x?

Either save it as XDMF as described here: Transitioning from mesh.xml to mesh.xdmf, from dolfin-convert to meshio
or load it directly using meshio.read and:
https://github.com/FEniCS/dolfinx/blob/master/python/demo/gmsh/demo_gmsh.py

3 Likes