[Paraview] pvtr file format
Felix Wolfheimer
wolfheimer at temf.tu-darmstadt.de
Tue Mar 29 08:28:03 EST 2005
Hello!
I'm trying to use the .pvtr file format to visualize a vector field
associated to a rectilinear grid. Unfortunately I get not the expected
result. I have two .vtr files which are connected via a .pvtr file. I'm
trying to visualize the datasets using only one instance of ParaView.
Maybe this is a problem? It seems to me, that the data from the second
vtr file is read and displayed incorrect. I will provide you a short
example to reproduce the problem. The dataset consists of a vectorfield
distributed on two vtr files. The values in the first file contains a
field pointing only in x-direction and the second file contains field
values pointing only in y-direction.
Any suggestions would be greatly appreciated. Thanks in advance
Felix
This is the .pvtr file:
---------------------------------------------------------------------------------------------------------------------------------
<VTKFile type="PRectilinearGrid">
<PRectilinearGrid WholeExtent="1 4 1 2 1 2" 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="3 4 1 2 1 2" Source="test1.vtr"/>
</PRectilinearGrid>
</VTKFile>
===================================================================================
this is the file test0.vtr
-----------------------------------------------------------------------------------------------------------------------------
<VTKFile type="RectilinearGrid" version="0.1">
<RectilinearGrid WholeExtent="1 4 1 2 1 2">
<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
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
</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 file test1.vtr
-------------------------------------------------------------------------------------------------------------
<VTKFile type="RectilinearGrid">
<RectilinearGrid WholeExtent="1 4 1 2 1 2">
<Piece Extent="3 4 1 2 1 2">
<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 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">
3.000000E+000
4.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>
-----------------------------------------------------------------------------------------------------------------------
--
================================================================================
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