[Paraview] VTK XML Unstructured Grid format

Christopher Neal chrisneal at snumerics.com
Wed Aug 24 13:58:05 EDT 2016


Thank you T.J.  

I think I see now how the information is organized via those ‘offsets’. Do you know if there is a function call that can tell it to write the actual connectivity out in full?  If it’s really obscure or would be difficult to find out, then don’t worry about it.

 

-Chris

 

From: "T.J. Corona" <tj.corona at kitware.com>
Date: Wednesday, August 24, 2016 at 12:52 PM
To: Christopher Neal <chrisneal at snumerics.com>
Cc: Benson Muite via ParaView <paraview at paraview.org>
Subject: Re: [Paraview] VTK XML Unstructured Grid format

 

Hi Chris,

 

I don’t think the line breaks represent discrete cells. If you count them, there are 32 values for the connectivity (4 cells x 8 points). 

 

Sincerely,

T.J.

 

Thomas J. Corona, Ph.D.
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4443

 

On Aug 24, 2016, at 12:50 PM, Christopher Neal <chrisneal at snumerics.com> wrote:

 

Hi All,

 

Does anyone have a link to an example or documentation describing how one can interpret a *.vtu file that is XML ascii? I’m looking at a file that was written for a 2x2x1 group of cells i.e. 4 hexahedral cells, and the connectivity looks like:

 

<Cells>

        <DataArray type="Int64" Name="connectivity" format="ascii" RangeMin="0" RangeMax="17">

          0 6 8 2 1 7

          9 3 2 8 10 4

          3 9 11 5 6 12

          14 8 7 13 15 9

          8 14 16 10 9 15

          17 11

        </DataArray>

        <DataArray type="Int64" Name="offsets" format="ascii" RangeMin="8" RangeMax="32">

          8 16 24 32

        </DataArray>

        <DataArray type="UInt8" Name="types" format="ascii" RangeMin="12" RangeMax="12">

          12 12 12 12

        </DataArray>

      </Cells>


I can’t seem to understand the connectivity info that is displayed. I would image there should be 8 entries per line for a hexahedral cell.


Any material on this would be greatly appreciated.

Thank you,

Chris Neal

_______________________________________________
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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160824/fb9f73b7/attachment.html>


More information about the ParaView mailing list