[Paraview] xyz or zyx in XDMF-files?

Jerry Clarke clarke at arl.army.mil
Fri May 29 08:33:30 EDT 2009


Jens,

Yes, this is a problem several people have run across.
There will be some solution in a future release. We'll
probably need some type of fast transpose routines that
do it in memory (potential memory hog) and/or as the
data is read (potentially slow due to multiple
IO calls).

Jerry Clarke

Jens wrote:
> Hi everyone,
> 
> I just answer my own question :)
> If you create a 3d-array(i,j,k) it will look like this:
> 
> Fortran-App:
>   [iii][iii][iii]  [iii][iii][iii]  [iii][iii][iii]
>  [       j       ][       j       ][       j       ]
> [                         k                         ]
> 
> C/C++-App:
>   [kkk][kkk][kkk]  [kkk][kkk][kkk]  [kkk][kkk][kkk]
>  [       j       ][       j       ][       j       ]
> [                         i                         ]
> 
> Saving an array from Fortran to HDF5 or from C/C++ to HDF5 results in
> ZYX or XYZ
> 
> Therefor problem is not Xdmf, but the difference between Fortran-Style
> and C/C++-Style
> 
> Greetings
> Jens
> 
> Jens schrieb:
>> 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>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
> _______________________________________________
> 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



More information about the ParaView mailing list