Importing XMDF in fenics for mesh

Have XMDF file that contain mesh including tetrahedron, hexahedron, wedge and prism elements. I want to import meshes in fenics?
So far using meshio-convert to convert xmdf to xml gave error that dolfin-xml can only handle one cell type at a time. Converting xmdf to msh also gave this error.
Trying to read xdmf file via dolfin XDMFFile(filename).read() gave Error: Unable to recognise cell type. ** Reason: Unknown value “mixed”.
Can this be done in fenics to import multi element mesh?

Dolfin does not support multi element meshes. in dolfinx people are working on supporting prisms, as well as mixed elements. However, these changes are not in main yet.

1 Like