[Paraview] XDMF Cell attribute type of Matrix, How to use.

Michael Jackson mike.jackson at bluequartz.net
Tue Feb 11 11:37:10 EST 2014


We are generating Xdmf files alongside our HDF5 files in order to allow ParaView to visualize our files. For the most part we generate a 3DCoRectMesh type and put in all of our Attributes. So the first part of the xdmf file is:

<Grid Name="Cell Data" GridType="Uniform">
    <Topology TopologyType="3DCoRectMesh" Dimensions="161 201 321 "></Topology>
    <Geometry Type="ORIGIN_DXDYDZ">
      <!-- Origin -->
      <DataItem Format="XML" Dimensions="3">0 0 0</DataItem>
      <!-- DxDyDz (Spacing/Resolution)-->
      <DataItem Format="XML" Dimensions="3">0.25 0.25 0.25</DataItem>
    </Geometry>

but some of our data is not the "standard" Vector or Tensor data but possible an MxN matrix which is allowable under XDMF:

    <Attribute Name="Kikuchi Patterns" AttributeType="Matrix" Center="Cell">
      <DataItem Format="HDF" Dimensions="160 200 320 60 80 " NumberType="UChar" Precision="1" >
        Cleaned 3D.dream3d:/VoxelDataContainer/CELL_DATA/Kikuchi_Patterns
      </DataItem>
    </Attribute>

According to the XDMF web page:
Attribute
The Attribute element defines values associated with the mesh. Currently the supported types of values are :
	• Scalar
	• Vector
	• Tensor - 9 values expected
	• Tensor6 - a symmetrical tensor
	• Matrix - an arbitrary NxM matrix

How do I go about specifying the "MxN" part? Is that inherit in the dimensions? Do I specify it with another "Data" tag somehow?

Thanks for any help
___________________________________________________________
Mike Jackson                            BlueQuartz Software
Help:                                dream3d at bluequartz.net
Web|Download                  http://dream3d.bluequartz.net



More information about the ParaView mailing list