[Paraview] problems with Xdmf Polyline

Natalie Happenhofer nataliehapp at hotmail.com
Wed Dec 2 06:30:36 EST 2009


Hi!

Basically I want to visualize a 1D-array in ParaView, specifying it with the Xdmf-Format. 
My approach is to determine an X-Axis, specifying the x-Coordinates as 1.0, 2.0,.., then specifying the y-Coordinates as my 1D-array I want to visualize und using "Polyline" to "draw" a "plot". 
My sample file doing this looks like the following:

<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2001/XInclude" Version="2.0">
  <Domain>
    <Grid Name="Polyline" GridType="Uniform">
      <Topology TopologyType="Polyline"
          >
        <DataItem Format="XML"
            Dimensions="1 8"
            NumberType="Float">
          0 1 2 3 4 5 6 7
        </DataItem>
      </Topology>
      <Geometry Type="XYZ">
        <DataItem Format="XML" Dimensions="4 2 3">
          0.0    0.0    0.0
          1.0    2.0    0.0
          2.0    3.0    0.0
          3.0    4.0    0.0

          4.0    3.0    0.0
          5.0    2.0    0.0
          6.0    3.0    0.0
          7.0    4.0    0.0

        </DataItem>
      </Geometry>
    </Grid>
  </Domain>
</Xdmf>


and it works well. 
so, doing this with my data, I get the following Xdmf-File:

<?xml version="1.0" ?>
<!DOCTYPE Xdmf SYSTEM "Xdmf.dtd" []>
<Xdmf xmlns:xi="http://www.w3.org/2001/XInclude" Version="2.0">
<Domain>
<!-- Time:     0.29 -->


 <Grid Name="flko" GridType="Uniform">

 <Topology TopologyType="Polyline">
     <DataItem Format="XML" Dimensions="1 10" NumberType="Float">
         0 1 2 3 4 5 6 7 8 9
 </DataItem>
 </Topology>

<!--Topology TopologyType="3DRectMesh" Dimensions="    1  121  140">
</Topology -->


 <Geometry Type="VXVYVZ">
<DataStructure DataType="Float" Precision="4" Dimensions="170" Format="HDF">
 s2d-more-sun-OT14.00000.h5:/flko/xCoordinates
 </DataStructure>
<DataStructure DataType="Float" Precision="4" Dimensions="170" Format="HDF">
 s2d-more-sun-OT14.00000.h5:/flko/yCoordinates
 </DataStructure>
<DataStructure DataType="Float" Precision="4" Dimensions="170" Format="HDF">
 s2d-more-sun-OT14.00000.h5:/flko/zCoordinates
 </DataStructure>

 </Geometry>


</Grid>
</Domain>
</Xdmf>


In this case, just for testing purposes, I just connected the points 0 - 9. If that worked, I would have tried connecting them all. 

Well, I suspected that I got something wrong in the Geometry part, but trying it with another topology type (the commented one you see here), the grid is visualized well. trying it with the Polyline-Topology, I get a segmentation fault. 

 
Thanks for any piece of advice,
Natalie Happenhofer
 		 	   		  
_________________________________________________________________
Toda la información que te interesa está en MSN Noticias. Clic aquí
http://noticias.latam.msn.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091202/7b5faf03/attachment.htm>


More information about the ParaView mailing list