you need to use two separate grid entries, have a look at this for example, it
contains 2 grids inside a spatial grid collection
<Grid GridType="Collection" CollectionType="Spatial">
<Time Value=" 0.0000000e+00"/>
<!--Begin of segment 01 definition-->
<Grid Name="segment_01" GridType="Uniform">
<Topology TopologyType="3DCORECTMESH" NumberOfElements="1 600 600"/>
<Geometry GeometryType="ORIGIN_DXDYDZ" >
<DataItem Name="Origin" NumberType="Float" Dimensions="3"
Format="XML">
-6E6 -6E6 -6E6
</DataItem>
<DataItem Name="Spacing" NumberType="Float" Dimensions="3"
Format="XML">
100000 100000 100000
</DataItem>
</Geometry>
<Attribute AttributeType="Scalar" Center="Node" Name="density">
<DataItem Dimensions="1 600 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/01/scalars/dens
</DataItem>
</Attribute>
<Attribute AttributeType="Scalar" Center="Node" Name="entropy">
<DataItem Dimensions="1 600 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/01/scalars/entr
</DataItem>
</Attribute>
<Attribute AttributeType="Scalar" Center="Node" Name="ye">
<DataItem Dimensions="1 600 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/01/scalars/ye
</DataItem>
</Attribute>
<Attribute AttributeType="Scalar" Center="Node" Name="gpot">
<DataItem Dimensions="1 600 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/01/scalars/gpot
</DataItem>
</Attribute>
<Attribute AttributeType="Scalar" Center="Node" Name="divb">
<DataItem Dimensions="1 600 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/01/scalars/divb
</DataItem>
</Attribute>
<Attribute AttributeType="Vector" Center="Node" Name="velocity">
<DataItem Dimensions="1 600 600 3" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/01/vectors/vel
</DataItem>
</Attribute>
<Attribute AttributeType="Vector" Center="Node" Name="bfield">
<DataItem Dimensions="1 600 600 3" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/01/vectors/bfield
</DataItem>
</Attribute>
</Grid>
<!--End of segment 01 definition-->
<!--Begin of segment 02 definition-->
<Grid Name="segment_02" GridType="Uniform">
<Topology TopologyType="3DCORECTMESH" NumberOfElements="600 1 600"/>
<Geometry GeometryType="ORIGIN_DXDYDZ" >
<DataItem Name="Origin" NumberType="Float" Dimensions="3"
Format="XML">
-6E6 -6E6 -6E6
</DataItem>
<DataItem Name="Spacing" NumberType="Float" Dimensions="3"
Format="XML">
100000 100000 100000
</DataItem>
</Geometry>
<Attribute AttributeType="Scalar" Center="Node" Name="density">
<DataItem Dimensions="600 1 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/02/scalars/dens
</DataItem>
</Attribute>
<Attribute AttributeType="Scalar" Center="Node" Name="entropy">
<DataItem Dimensions="600 1 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/02/scalars/entr
</DataItem>
</Attribute>
<Attribute AttributeType="Scalar" Center="Node" Name="ye">
<DataItem Dimensions="600 1 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/02/scalars/ye
</DataItem>
</Attribute>
<Attribute AttributeType="Scalar" Center="Node" Name="gpot">
<DataItem Dimensions="600 1 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/02/scalars/gpot
</DataItem>
</Attribute>
<Attribute AttributeType="Scalar" Center="Node" Name="divb">
<DataItem Dimensions="600 1 600" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/02/scalars/divb
</DataItem>
</Attribute>
<Attribute AttributeType="Vector" Center="Node" Name="velocity">
<DataItem Dimensions="600 1 600 3" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/02/vectors/vel
</DataItem>
</Attribute>
<Attribute AttributeType="Vector" Center="Node" Name="bfield">
<DataItem Dimensions="600 1 600 3" NumberType="Float" Precision="4"
Format="HDF">
./s15test_00000.h5:/segments/02/vectors/bfield
</DataItem>
</Attribute>
</Grid>
<!--End of segment 02 definition-->
</Grid>
From: [email protected] [mailto:[email protected]] On
Behalf Of Xiaoxue Gong
Sent: 05 September 2013 17:15
To: [email protected]; [email protected]
Subject: [Xdmf] Seeking help with display hdf5 file in paraview using xdmf
Hi All!
I have a technique issue with displaying hdf5 file in paraview.
I have to store a surface into hdf5 file and to display it in paraview.
The surface is made up by base grid triangles and planer graphs on each
basegrid triangle. The planar graphs in base grid triangle includes points and
edges.
I store the coordinate of the vertex of base grid triangles in
surface.h5:/xbasetrianglecoords
surface.h5:/ybasetrianglecoords
surface.h5:/zbasetrianglecoords
and the coordinate of nodes on planer graphs in
surface.h5:/xnodescoords
surface.h5:/ynodescoords
surface.h5:/znodescoords
If I only need to display the base triangle coords, I would write the xdmf as
<Geometry GeometryType="X_Y_Z">
<DataItem Dimensions="318" NumberType="Float" Format="HDF">
surface.h5:/xbasetrianglecoords
</DataItem>
<DataItem Dimensions="318" NumberType="Float" Format="HDF">
surface.h5:/ybasetrianglecoords
</DataItem>
<DataItem Dimensions="318" NumberType="Float" Format="HDF">
surface.h5:/zbasetrianglecoords
</DataItem>
</Geometry>
What if I want to display both of them?
I tried to do this:
<Geometry GeometryType="X_Y_Z">
<DataItem Dimensions="1212" NumberType="Float" Format="HDF">
surface.h5:/xbasetrianglecoords
surface.h5:/xnodescoords
</DataItem>
<DataItem Dimensions="1212" NumberType="Float" Format="HDF">
surface.h5:/ybasetrianglecoords
surface.h5:/ynodescoords
</DataItem>
<DataItem Dimensions="1212" NumberType="Float" Format="HDF">
surface.h5:/zbasetrianglecoords
surface.h5:/znodescoords
</DataItem>
</Geometry>
But it does no work. I am wondering if anyone on this list have any experience
with this problem(put 2 hdf5 files in one entry)?
Best,
Xiaoxue
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview