[Dune] Paraview error with vtk vector data file

Sreejith Pulloor Kuttanikkad sreejith at hal.iwr.uni-heidelberg.de
Tue Aug 29 16:33:37 CEST 2006


Dear All,

Here is a sample vector data file (vtkout.vtu - produced by the vtkwriter class in DUNE) attached.When i try to open it in Paraview, it produce the following error message

# Error or warning: There was a VTK Warning in file:
# /home/amy/ParaViewReleaseRoot/paraview-2.4.2/VTK/Filtering/vtkDataSetAttributes.cxx
# (937)
 vtkPointData (0x8da38b0): Can not set attribute Vectors. Incorrect
 number of components.

I couldnt figure out what is wrong witht the vtk input file. any help is
appreciated.

thanks,
Sreejith

-- 
Sreejith P. Kuttanikkad                       
IWR, University of Heidelberg       
Room:009, Im Neuenheimer Feld-348                         
69120 Heidelberg,Germany.                      
Ph :+49-6221-54-5689/4412(Office)
   :+49-(0)17624228904(Mob)
http://hal.iwr.uni-heidelberg.de/~sreejith/
-------------------------------------------
-------------- next part --------------
<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
  <UnstructuredGrid>
    <Piece NumberOfPoints="16" NumberOfCells="4">
      <PointData Vectors="velocity">
<DataArray type="Float32" Name="velocity" NumberOfComponents="2" format="ascii">
0.07 0.02 
0.02 0.03 
0.05 0.02 
0.05 0.02 
0.02 0.05
0.03 0.02 
0.02 0.05
0.05 0.02 
0.05 0.02 
0.04 0.01
0.03 0.02 
0.02 0.05
0.04 0.01
0.05 0.02 
0.02 0.05
0.07 0.02 
</DataArray>
      </PointData>
      <CellData>
      </CellData>
      <Points>
<DataArray type="Float32" Name="Coordinates" NumberOfComponents="3" format="ascii">
0 0 0 0.5 0 0 0 0.5 0 0.5 0.5 0 
0.5 0 0 1 0 0 0.5 0.5 0 1 0.5 0 
0 0.5 0 0.5 0.5 0 0 1 0 0.5 1 0 
0.5 0.5 0 1 0.5 0 0.5 1 0 1 1 0 
</DataArray>
      </Points>
      <Cells>
<DataArray type="Int32" Name="connectivity" format="ascii">
0 1 3 2 4 5 7 6 8 9 11 10 
12 13 15 14 
</DataArray>
<DataArray type="Int32" Name="offsets" format="ascii">
4 8 12 16 
</DataArray>
<DataArray type="UInt8" Name="types" format="ascii">
9 9 9 9 
</DataArray>
      </Cells>
    </Piece>
  </UnstructuredGrid>
</VTKFile>


More information about the Dune mailing list