Hi, I lately started to write my data in HDF5/XDMF files. This works so far very well for unstructured data using TopologyType="Mixed" and Polygon cells, but I have some trouble with structured grids.
I attached a very simple VTK file, which is correctly visualized in ParaView. More precisely, the DIMENSIONS keyword specifies the dimensions in X Y Z direction and the SPACING and POINT_DATA keywords are specified accordingly. Opening the VTK file in ParaView and exporting the data as XDMF leads to an XDMF file with dimensions and the spacing is in reverse order (Z Y X), where seemingly the data is written in the same order as in the VTK file. Is this intended or a bug? Just to note, the data from the ParaView-created XDMF and the original VTK file are displayed consistently. When I however manually converter the VTK to a XDMF file with dimensions, spacing and data specified as in the VTK file, I get a completely wrong representation in ParaView. Seemingly, in the "Topology" element the "Dimensions" keyword specifies the dimensions in Z Y X direction, which I thing is rather odd. The whole thing gets then completely messed up when specifying the data. Am I doing something wrong when manually creating the XDMF file or is this a bug? Best regards, Armin -- Armin Wehrfritz, Dipl.-Ing. (M.Sc.) Aalto University, School of Engineering Department of Energy Technology PO Box 14300 FI-00076 Aalto, Finland
# vtk DataFile Version 2.0 testing ASCII DATASET STRUCTURED_POINTS DIMENSIONS 3 4 1 ORIGIN 0.0 0.0 0.0 SPACING 0.5 0.5 1.0 POINT_DATA 12 SCALARS test_scalar float LOOKUP_TABLE default 0.0 1.0 2.0 1.0 2.0 3.0 2.0 3.0 4.0 3.0 4.0 5.0 VECTORS test_vector float 0.0 0.0 0.0 1.0 1.0 1.0 2.0 2.0 2.0 1.0 1.0 1.0 2.0 2.0 2.0 3.0 3.0 3.0 2.0 2.0 2.0 3.0 3.0 3.0 4.0 4.0 4.0 3.0 3.0 3.0 4.0 4.0 4.0 5.0 5.0 5.0
test_manual.xmf
Description: audio/xmf
test_paraview.xmf
Description: audio/xmf
_______________________________________________ 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://public.kitware.com/mailman/listinfo/paraview
