V3 Road Feature Request

From XdmfWeb
Revision as of 11:19, 17 April 2015 by Chrisr (talk | contribs) (→‎Version 3 Feature Request')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Version 3 Feature Request'

Implement AttributeType=Matrix

I would like to see the Matrix type implemented so that ParaView can open the files. A clear Example on how to use the Matrix AttributeMatrix. For example I have a triangular surface mesh where each triangle has a (2x1) matrix of values so that each triangle has 2 values. Currently we have to setup a hyper slab for the data array and end up with 2 data items.

   <Attribute Name="SurfaceMeshFaceLabels (Feature 0)" AttributeType="Scalar" Center="Cell">
     <DataItem ItemType="HyperSlab" Dimensions="757136 1" Type="HyperSlab" Name="SurfaceMeshFaceLabels (Feature 0)" >
       <DataItem Dimensions="3 2" Format="XML" >
         0        0
         1        1
         757136 1 </DataItem>
       <DataItem Format="HDF" Dimensions="757136 2" NumberType="Int" Precision="4" >
       Matrix_XDMF_Test.dream3d:/DataContainers/SurfaceDataContainer/FaceData/SurfaceMeshFaceLabels
       </DataItem>
     </DataItem>
   </Attribute>
   <Attribute Name="SurfaceMeshFaceLabels (Feature 1)" AttributeType="Scalar" Center="Cell">
     <DataItem ItemType="HyperSlab" Dimensions="757136 1" Type="HyperSlab" Name="SurfaceMeshFaceLabels (Feature 1)" >
       <DataItem Dimensions="3 2" Format="XML" >
         0        1
         1        1
         757136 1 </DataItem>
       <DataItem Format="HDF" Dimensions="757136 2" NumberType="Int" Precision="4" >
       Matrix_XDMF_Test.dream3d:/DataContainers/SurfaceDataContainer/FaceData/SurfaceMeshFaceLabels
       </DataItem>
     </DataItem>
   </Attribute>


I would rather do something like this:

   <Attribute Center="Cell" Name="Phases_Matrix" Type="Matrix">
     <DataItem Dimensions="2 1" Format="XML" >2 1</DataItem>
     <DataItem DataType="Int" Dimensions="757136 2" Format="HDF" Precision="4">
       Matrix_XDMF_Test.dream3d:/DataContainers/SurfaceDataContainer/FaceData/SurfaceMeshFaceLabels
     </DataItem>
   </Attribute>

Or something like that.

1DCoRectMesh

I will like to have also something like 1DCORECTMesh, for the moment I Use a 2DCORECTMesh with only 1 point in the second direction. But cant be used with cell data (paraview crash). So I use only point data.

Polyhedral Cells

It would be great to have the XDMF specification and library support polyhedral cells http://public.kitware.com/Bug/view.php?id=14528

Set

Already implemented (unofficially?) by VTK XdmfSet.h, this is pretty similar to the GridType="Subset".

This would be useful for specifying boundary conditions on models. However, it needs a clearer definition of how to access Edges and Faces in 2D and 3D. e.g. they could be identified by CellId and then the cell-local FaceId/EdgeId?