[Paraview] pvtr file format

Felix Wolfheimer wolfheimer at temf.tu-darmstadt.de
Wed Mar 30 08:55:43 EST 2005


Thank you again for your explanations. I have modified the datafiles as 
you suggested (with duplicated point values at the boundaries). But 
ParaView doesn't display the data correctly. The outline displayed by 
the dataset is wrong and when I choose to set glyphs onto the datapoints 
only the data from the first file seems to be used.
I know the red exclamation point in the lower right corner of the GUI, 
but it doesn't appear, even with the wrong datafiles containing no 
duplicated point values. I will again enclose the simple example pvtr 
and vtr files in the hope that you or someone else can help me to get 
this working.

Greetings

 Felix

=======================================================================================
This is the pvtr file:
-----------------------------------------------------------------------------------------------------------------------------------
<VTKFile type="PRectilinearGrid">
<PRectilinearGrid WholeExtent="1 2 1 2 1 3" GhostLevel="0">
<PPointData>
  <PDataArray type="Float32" Name="Field" NumberOfComponents="3"/>
</PPointData>
<PCellData></PCellData>
<PCoordinates>
  <PDataArray type="Float32" Name="X_COORDINATES" NumberOfComponents="1"/>
  <PDataArray type="Float32" Name="Y_COORDINATES" NumberOfComponents="1"/>
  <PDataArray type="Float32" Name="Z_COORDINATES" NumberOfComponents="1"/>
</PCoordinates>
<Piece Extent="1 2 1 2 1 2" Source="test0.vtr"/>
<Piece Extent="1 2 1 2 2 3" Source="test1.vtr"/>
</PRectilinearGrid>
</VTKFile>
=======================================================================================
This is the first vtr file (test0.vtr):
-----------------------------------------------------------------------------------------------------------------------------------
<VTKFile type="RectilinearGrid" version="0.1">
<RectilinearGrid WholeExtent="1 2 1 2 1 3">
<Piece Extent="1 2 1 2 1 2">
<PointData Vectors="Field">
<DataArray type="Float32" Name="Field" NumberOfComponents="3" 
format="ascii">
  1.000000E+000 0.000000E+000 0.000000E+000
  1.000000E+000 0.000000E+000 0.000000E+000
  1.000000E+000 0.000000E+000 0.000000E+000
  1.000000E+000 0.000000E+000 0.000000E+000
  0.000000E+000 1.000000E+000 0.000000E+000
  0.000000E+000 1.000000E+000 0.000000E+000
  0.000000E+000 1.000000E+000 0.000000E+000
  0.000000E+000 1.000000E+000 0.000000E+000
</DataArray>
</PointData>
<CellData></CellData>
<Coordinates>
<DataArray type="Float32" Name="X_COORDINATES" NumberOfComponents="1" 
format="ascii">
  1.000000E+000
  2.000000E+000
</DataArray>
<DataArray type="Float32" Name="Y_COORDINATES" NumberOfComponents="1" 
format="ascii">
  1.000000E+000
  2.000000E+000
</DataArray>
<DataArray type="Float32" Name="Z_COORDINATES" NumberOfComponents="1" 
format="ascii">
  1.000000E+000
  2.000000E+000
</DataArray>
</Coordinates>
</Piece>
</RectilinearGrid>
</VTKFile>
=======================================================================================
This is the second vtr file (test1.vtr)
-----------------------------------------------------------------------------------------------------------------------------------
<VTKFile type="RectilinearGrid">
<RectilinearGrid WholeExtent="1 2 1 2 1 3">
<Piece Extent="1 2 1 2 2 3">
<PointData>
<DataArray type="Float32" Name="Field" NumberOfComponents="3" 
format="ascii">
  0.000000E+000 1.000000E+000 0.000000E+000
  0.000000E+000 1.000000E+000 0.000000E+000
  0.000000E+000 1.000000E+000 0.000000E+000
  0.000000E+000 1.000000E+000 0.000000E+000
  0.000000E+000 0.000000E+000 1.000000E+000
  0.000000E+000 0.000000E+000 1.000000E+000
  0.000000E+000 0.000000E+000 1.000000E+000
  0.000000E+000 0.000000E+000 1.000000E+000
</DataArray>
</PointData>
<CellData></CellData>
<Coordinates>
<DataArray type="Float32" Name="X_COORDINATES" NumberOfComponents="1" 
format="ascii">
  1.000000E+000
  2.000000E+000
</DataArray>
<DataArray type="Float32" Name="Y_COORDINATES" NumberOfComponents="1" 
format="ascii">
  1.000000E+000
  2.000000E+000
</DataArray>
<DataArray type="Float32" Name="Z_COORDINATES" NumberOfComponents="1" 
format="ascii">
  2.000000E+000
  3.000000E+000
</DataArray>
</Coordinates>
</Piece>
</RectilinearGrid>
</VTKFile>
--------------------------------------------------------------------------------------------------------------------

 

-- 
================================================================================
Dipl.-Ing. Felix Wolfheimer
Institut für Theorie Elektromagnetischer Felder
Schlossgartenstr.8
64289 Darmstadt
Germany

Tel.: +49 06151/16-2561




More information about the ParaView mailing list