[Paraview] First trial file does not work-help!

Moreland, Kenneth kmorel at sandia.gov
Thu Feb 2 19:24:01 EST 2017


Did you type this in a text editor? The first thing I notice is that many of the quotes are the fancy open/close characters. Many text editors use a “smart quotes” feature that replaces the straight quote to a bent open or closed quote. The VTK reader only accepts the straight quotes (ASCII character 34).

-Ken


On 2/2/17, 5:58 PM, "ParaView on behalf of Emrah Ersan Erdogan" <paraview-bounces at paraview.org on behalf of emrahersanerdogan at gmail.com> wrote:

    Hi,
    
    I am a new user of paraview and try to understand .vtu file format. 
    Just as a simple test I wanted to create two pieces one solely defines 4 points and a cell with no attributes, hence forming geometry only. And the second piece defines only points with point attributes.
    
    However, it seems I am doing something(s) wrong since paraview reader does not recognize the information. It would be great if somebody tells me what I am doing wrong. Afterwards I can take it off by myself I guess.
    
    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>
             </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>
             </Cells>
             <PointData Scalars="strain">
                <DataArray type=“Float64” Name=“strain” NumberOfComponents=“1” format=“ascii”>
                   2.0 2.0 3.0 1.0
                </DataArray>
             </PointData>
             <CellData>
             </CellData>
          </Piece>
       </UnstructuredGrid>
    </VTKFile>
    
    _______________________________________________
    Powered by www.kitware.com
    
    Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
    
    Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
    
    Search the list archives at: http://markmail.org/search/?q=ParaView
    
    Follow this link to subscribe/unsubscribe:
    http://public.kitware.com/mailman/listinfo/paraview
    



More information about the ParaView mailing list