[Paraview] Block ordering
Berend van Wachem
berend at tfd.chalmers.se
Thu, 18 Mar 2004 12:43:10 +0100
Hi,
Thanks for ParaView - it seems impressive.
I have a question about writing data from a block structured code to the
VTK-Paraview format.
I want to write multiple structured, boundary fitted blocks at a same
time-level to a number of VTK files, and glue them with <Collection>. In
the files for each block, I give the geometry data in the form of
<Points> and the cell centered data in the form of <CellData>. This all
works fine.
However, Paraview expects the numbering in the blocks always to be the
same (I,J,K). So the I numbering matches with increase in X, J->Y, and
K->Z. In the "VTK File Formats" manual it is stated as "Data with
implicit topology are ordered with x increasing fastest, then y, then z".
In most block structured codes, this is however not the case. In one
block the I direction can lie in another direction than in another
block. This may not be so crucial when reading in the <Points>, but it
is when reading in the <CellData>. It seems that Paraview maps the
<CellData> to the (I,J,K) numbering instead of to the geometry given in
<Points>.
Is there an easy way to overcome this in Paraview? So that the data
given in <CellData> corresponds directly with the geometric data given
in <Points>?
Thanks in advance!
Berend.