[Paraview] vtu files with two pieces

Sreejith Kuttanikkad sreejithpk at gmail.com
Wed Apr 15 14:22:30 EDT 2009


Dear all,

I have tried to write an ascii vtu file with two pieces as shown below.
However when I opened it using paraview, i can only see one data set.
Could you please tell me the format of  vtu files with two pieces.  How can
i  get both data sets into paraview.?

<?xml version="1.0" ?>
<VTKFile byte_order="LittleEndian" type="UnstructuredGrid" version="0.1">
<UnstructuredGrid>
<Piece NumberOfCells="4" NumberOfPoints="4">
<Points>
<DataArray NumberOfComponents="3" format="ascii" type="Float32">
0 0 0 1 0 0 0 1 0  1 1 0
</DataArray>
</Points>
<Cells>
<DataArray Name="connectivity" format="ascii" type="Int32">
0 1 0 2 2 3 1 3
</DataArray>
<DataArray Name="offsets" format="ascii" type="Int32">
2 4 6 8
</DataArray>
<DataArray Name="types" format="ascii" type="UInt8">
3 3 3 3
</DataArray>
</Cells>
<PointData>
<DataArray Name="scalar1" format="ascii" type="Float32">
0.836841 0.828652 0.777264 0.669688
</DataArray>
<DataArray Name="status1" format="ascii" type="Float32">
0 0 0 0
</DataArray>
</PointData>
<CellData/>
</Piece>
<Piece NumberOfCells="4" NumberOfPoints="4">
<Points>
<DataArray NumberOfComponents="3" format="ascii" type="Float32">
0.5 0 0 0 0.5 0 1 0.5 0 0.5 1 0
</DataArray>
</Points>
<Cells>
<DataArray Name="connectivity" format="ascii" type="Int32">
0 1 0 2 1 3 2 3
</DataArray>
<DataArray Name="offsets" format="ascii" type="Int32">
2 4 6 8
</DataArray>
<DataArray Name="types" format="ascii" type="UInt8">
3 3 3 3
</DataArray>
</Cells>
<PointData>
<DataArray Name="scalar2" format="ascii" type="Float32">
0.768523 0.627182 0.846613 0.66475
</DataArray>
<DataArray Name="status2" format="ascii" type="Float32">
1 1 1 1
</DataArray>
</PointData>
<CellData/>
</Piece>
</UnstructuredGrid>
</VTKFile>

thanks,
Sreejith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090415/611b25d2/attachment.htm>


More information about the ParaView mailing list