How to deal with output files of meshio in FEniCS

Guys, I know how to deal with output files in dolfin conversion, but how can I addapt file_gmsh:physical.xml and file.xml in my FEniCS code? Can someone give me some examples?

I would suggest using xdmf format instead of the legacy xml format. There is a long thread on how to use meshio to write xdmf meshes to be then read in dolfin, see here.
As for loading xdmf meshes

from dolfin import *
mesh = Mesh()
XDMFFile("<name>.xdmf").read(mesh)

should work. There are plenty of examples by Dokken in the thread above.

1 Like

Thank you for the tips. Sorry for the late answer.