Add support XDMF mesh entity attributes
Issue #488
new
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)
-
-
- changed milestone to 1.7
-
- removed milestone
Removing milestone: 1.7 (automated comment)
-
reporter @michalhabera How does this related to your work?
-
I am currently working on checkpointing and visualizing Function. But it is a good point to work on afterwards.
-
- edited description
-
assigned issue to
-
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.
- Log in to comment
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.