Add support XDMF mesh entity attributes

Issue #488 new
Prof Garth Wells created an issue

XDMF supports attaching data to mesh entities, which maps nicely onto MeshFunctions. See 'Attribute section on http://www.xdmf.org/index.php/XDMF_Model_and_Format .

This will help with having a 'standard' mesh format that supports things like boundary conditions.

Comments (7)

  1. Chris Richardson

    Unfortunately, the XDMF standard is less than clear about how to specify Edge and Face based data. There is some code in VTK (https://github.com/Kitware/VTK/blob/master/ThirdParty/xdmf2/vtkxdmf2/libsrc/XdmfSet.h) which describes attaching data to a subset of Faces or Edges, by specifying CellIDs and then local Face and Edge IDs. This seems not to work in 2D, and the FaceIDs seem to be redundantly specified for Edge based data in 3D. I am trying to get some clarification and/or a tightening of the XDMF standard.

  2. Michal Habera

    I am currently working on checkpointing and visualizing Function. But it is a good point to work on afterwards.

  3. Chris Richardson

    This is largely resolved. Our current implementation for MeshFunction uses vertex indices to identify entities in XDMF. This is more robust than the (cell, local_index) formulation.

  4. Log in to comment