XDMF saved from ParaView is incompatible with DOLFIN

Issue #548 resolved
Chris Richardson created an issue

When viewing a mesh in ParaView, it can be saved with "Save Data" as format XDMF (.xmf) This should be possible to read in to DOLFIN, but currently fails.

Comments (8)

  1. Chris Richardson reporter

    Yes. Dolfin XDMF assumes certain names for topology and geometry datasets. It will require some reorganisation, but it's basically just crunching the right strings in XML.

  2. Chris Richardson reporter

    Another issue is that ParaView does not save the CellType in HDF5, so the XML has to be queried to differentiate, for example, between a mesh of tetrahedra, and a mesh of quads in R^3.

  3. Prof Garth Wells

    Different cell groups can be stored in different groups (it should at least in principle be fine, whether or not it works in practice . . .).

  4. Chris Richardson reporter

    There is a TopologyType "Mixed" defined in XDMF, where you have to define the cell type of each cell. It should work in principle, but could cause problems to read in parallel, as the topology dataset becomes a serial stream in that case. I guess some more metadata will be needed, maybe indicating where the stream can be split.

  5. Log in to comment