Atholis |
July 22, 2014 15:54 |
Time steps, XDMF, and HDF5
Heyo!! I've been having troubles with Paraview's ability on reading timesteps. I'm using HDF5 and XDMF to view data in VisIt and Paraview. VisIt doesn't need a 'temporal collection' to view time steps, but Paraview does. Two of my xdmf files are below to give an idea on what I'm looking at. Grid is (30, 20, 10) written is staggered format with the original first and last values lopped off, which is why my dimensions look odd in the file.
(Please assume any typos in my xmf files are copy errors, the individual files are working fine)
Paraview_1000.xdmf
Code:
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="2.0">
<Domain>
<Grid Name="mesh1" GridType="Uniform">
<Topology TopologyType="3DSMesh" NumberOfElements="9 19 29"/>
<Geometry GeometryType="X_Y_Z">
<DataItem Dimensions="9 19 29" NumberType="Float" Precision="7" Format="HDF">
1000_test.h5:/X
</DataItem>
<DataItem Dimensions="9 19 29" NumberType="Float" Precision="7" Format="HDF">
1000_test.h5:/Y
</DataItem>
<DataItem Dimensions="9 19 29" NumberType="Float" Precision="7" Format="HDF">
1000_test.h5:/Z
</DataItem>
</Geometry>
<Attribute Name="Density" AttributeType="Scalar" Center="Cell">
<DataItem Dimensions="8 18 28" NumberType="Float" Precision="7" Format="HDF">
1000_test.h5:/Density
</DataItem>
<---------Lot's more data----------->
</Grid>
</Domain>
</Xdmf>
Paraview_1001.xdmf
Code:
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf Version="2.0">
<Domain>
<Grid Name="mesh1" GridType="Uniform">
<Topology TopologyType="3DSMesh" NumberOfElements="9 19 29"/>
<Geometry GeometryType="X_Y_Z">
<DataItem Dimensions="9 19 29" NumberType="Float" Precision="7" Format="HDF">
1001_test.h5:/X
</DataItem>
<DataItem Dimensions="9 19 29" NumberType="Float" Precision="7" Format="HDF">
1001_test.h5:/Y
</DataItem>
<DataItem Dimensions="9 19 29" NumberType="Float" Precision="7" Format="HDF">
1001_test.h5:/Z
</DataItem>
</Geometry>
<Attribute Name="Density" AttributeType="Scalar" Center="Cell">
<DataItem Dimensions="8 18 28" NumberType="Float" Precision="7" Format="HDF">
1001_test.h5:/Density
</DataItem>
</Attribute>
<------even more data------>
</Grid>
</Domain>
</Xdmf>
I've looked online and have seen I need
Code:
GridType="Collection" CollectionType="Temporal"
for it, but I haven't seen anything that gives an example of how the syntax works. :o Any and all help is appreciated!
|