Hello Paraview-Experts,
I am using XDMF-file-format to display flow-simulation results.
I just figured out, that XDMF is somehow mixing the dimensions :(
If I store a 3d-dataset using hdf5 in xyz-style. I have to access these
dataset using xdmf in zyx-style.
This is some kind of strange. Is there any reason for that behavior?
Greetings
Jens
Example:
HyperSlab x=32, y=64, z=128
Dataset x=128, y=256, z=512
<Grid Name="1-1-1_t0.0" Type="Uniform">
<Topology Type="3DCORECTMESH" Dimensions="128 64 32"> </Topology>
<Geometry Type="ORIGIN_DXDYDZ">
<DataItem
DataType="Float"
Dimensions="3" Format="XML">
0.0 0.0 0.0
</DataItem>
<DataItem
DataType="Float"
Dimensions="3"
Format="XML">
1.0 1.0 1.0
</DataItem>
</Geometry>
<!-- u-Field -->
<Attribute Active="1" Type="Scalar" Center="Node" Name="u">
<DataItem ItemType="HyperSlab"
Dimensions="128 64 32"
Type="HyperSlab">
<DataItem Dimensions="3 3" Format="XML">
0 0 0 <!-- Start -->
1 1 1 <!-- Stride -->
128 64 32 <!-- Count -->
</DataItem>
<DataItem ItemType="Uniform" Format="HDF"
NumberType="Float" Precision="8"
Dimensions="512 256 128">
dns.h5:/flow/DNSdata/u
</DataItem>
</DataItem>
</Attribute>
</Grid>
<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" [
<!ENTITY DataFile "lipo_dns7a512.h5">
<!ENTITY DimsXYZ "512 512 512">
<!ENTITY HSDimsZYX "128 180 128">
]>
<Xdmf Version="2.0" xmlns:xi="http://www.w3.org/2001/XInclude" >
<Domain Name="DNS - Periodic Box">
<Grid Name="Minimum Attached Elements" GridType="Tree">
<Grid Name="Minimum_Attached_Element_37" GridType="Collection" CollectionType="Spatial">
<Grid Name="epath_8" Type="Uniform">
<Topology Type="POLYLINE" NodesPerElement=" 2145 " Dimension="1"> </Topology>
<Geometry Type="XYZ">
<DataItem ItemType="HyperSlab" Dimensions=" 2145 3" Type="HyperSlab">
<DataItem Dimensions="2 3" Format="XML">
0 0 <!-- Start -->
1 1 <!-- Stride -->
2145 3 <!-- Count -->
</DataItem>
<DataItem ItemType="Uniform" Format="HDF" NumberType="Float" Precision="8" Dimensions=" 2145 3">
&DataFile;:/flow/TRAJdata/chi1/epath/epath_8
</DataItem>
</DataItem>
</Geometry>
</Grid>
</Grid>
</Grid>
<Grid Name="2Pi-Box_temporal" GridType="Collection" CollectionType="Temporal">
<!--spatial grid collection for time 0.0-->
<Grid Name="2Pi-Box_spatial_0.0" GridType="Collection" CollectionType="Spatial">
<Time Type="Single" Value="0.00000000"/>
<Grid Name="1-1-1_t0.0" Type="Uniform">
<Topology Type="3DCORECTMESH" Dimensions="&HSDimsZYX;"> </Topology>
<Geometry Type="ORIGIN_DXDYDZ">
<DataItem DataType="Float" Dimensions="3" Format="XML"> 0.0 0.0 0.0 </DataItem>
<DataItem DataType="Float" Dimensions="3" Format="XML"> 1.0 1.0 1.0 </DataItem>
</Geometry>
<!-- u-Field -->
<Attribute Active="1" Type="Scalar" Center="Node" Name="u">
<DataItem ItemType="HyperSlab" Dimensions="&HSDimsZYX;" Type="HyperSlab">
<DataItem Dimensions="3 3" Format="XML">
0 0 0 <!-- Start -->
1 1 1 <!-- Stride -->
&HSDimsZYX; <!-- Count -->
</DataItem>
<DataItem ItemType="Uniform" Format="HDF" NumberType="Float" Precision="8" Dimensions="&DimsXYZ;">
&DataFile;:/flow/DNSdata/u
</DataItem>
</DataItem>
</Attribute>
</Grid>
</Grid>
</Domain>
</Xdmf>
_______________________________________________
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