[Paraview] Simple problem with point data and geometry definition

Emrah Ersan Erdogan emrahersanerdogan at gmail.com
Fri Feb 3 07:43:13 EST 2017


Hi,

I have two small problems and since I am just a newbie I really appreciate any help.

In the first piece I want to create only the geometry and in the second piece some points (these are gauss points actually) and with some data.

First problem is, paraview does not see “strain” when it is defined as given below. However, if I swap the point dataset to the first piece it works: on the wrong points of course.
Second, it is apparently not possible to show the geometry and point values at the same time. Do you think I need to define two separate files and "light them up" separately on main paraview screen?

Thanks a bunch!

Ersan

<?xml version="1.0"?>
<VTKFile type="UnstructuredGrid" version="0.1" byte_order="LittleEndian">
   <UnstructuredGrid>
      <Piece NumberOfPoints="4" NumberOfCells="1">
         <Points>
            <DataArray type="Float64" NumberOfComponents="3" format="ascii">
               0.00 0.00 0.00 1.00 0.00 0.00 1.00 1.00 0.00 0.00 1.00 0.00
            </DataArray>
         </Points>
         <Cells>
            <DataArray type="Int64" Name="connectivity" format="ascii">
               0 1 2 3
            </DataArray>
            <DataArray type="Int64" Name="offsets" format="ascii">
               4
            </DataArray>
            <DataArray type="UInt8" Name="types" format="ascii">
               9
            </DataArray>
         </Cells>
         <PointData Tensors="strain">
         </PointData>
         <CellData>
         </CellData>
      </Piece>
      <Piece NumberOfPoints="4" NumberOfCells="0">
         <Points>
            <DataArray type="Float64" NumberOfComponents="3" format="ascii">
               0.25 0.25 0.00 0.75 0.25 0.00 0.75 0.75 0.00 0.25 0.75 0.00
            </DataArray>
         </Points>
         <Cells>
            <DataArray type="Int64" Name="connectivity" format="ascii">
            </DataArray>
            <DataArray type="Int64" Name="offsets" format="ascii">
           </DataArray>
            <DataArray type="UInt8" Name="types" format="ascii">
            </DataArray>
         </Cells>
         <PointData Tensors="strain">
            <DataArray type="Float64" Name="strain" NumberOfComponents="9" format="ascii">
               2.0 3.0 0.0
               3.0 2.0 0.0
               0.0 0.0 0.0

               1.0 2.0 0.0
               2.0 1.0 0.0
               0.0 0.0 0.0

               5.0 4.0 0.0
               4.0 1.0 0.0
               0.0 0.0 0.0

               3.0 6.0 0.0
               6.0 7.0 0.0
               0.0 0.0 0.0
            </DataArray>
         </PointData>
         <CellData>
         </CellData>
      </Piece>
   </UnstructuredGrid>
</VTKFile>


More information about the ParaView mailing list