I just started using Fenicsx. When I try to convert a fenics code into a fenicsx code, I’m having trouble generating the mesh. The FEnics code is given a .xml file to mesh. And it can use “Mesh” command based on FEnics. But I can’t find how to use XML files to generate meshes in Fenicsx.
I’m looking forward to the reply. Thank you very much!
Xml as a file format is not supported in DOLFINx. You should convert it to xdmf files (this is also the recommended file format in legacy dolfin). You can for instance do this with meshio: