[vtkusers] vtk.vtkExodusIIReader: information in GetOutput()?

Nico Schlömer nico.schloemer at gmail.com
Fri Dec 3 09:34:19 EST 2010


Hi all,

when reading an ExodusII file with

====================== *snip* ======================
reader = vtk.vtkExodusIIReader()
reader.Update()
out = reader.GetOutput()
====================== *snap* ======================

'out' would contain a whole lot of output the significance of which I
don't quite understant;

====================== *snip* ======================
$ print out
vtkMultiBlockDataSet (0xed9580)
  Debug: Off
  Modified Time: 295
  Reference Count: 2
  Registered Events: (none)
  Source: (none)
  Information: 0xecd080
  Data Released: False
  Global Release Data: Off
  UpdateTime: 299
  Release Data: Off
  UpdateExtent: Not Initialized
  Update Number Of Pieces: 1
  Update Piece: 0
  Update Ghost Level: 0
  MaximumNumberOfPieces: 1
  RequestExactExtent: Off
   Field Data:
    Debug: Off
    Modified Time: 144
    Reference Count: 1
    Registered Events: (none)
    Number Of Arrays: 0
    Number Of Components: 0
    Number Of Tuples: 0
  Number Of Children: 8
  Child 0: vtkMultiBlockDataSet
    Debug: Off
    Modified Time: 177
    Reference Count: 1
    Registered Events: (none)
    Source: (none)
    Information: 0xfdbe70
    Data Released: False
    Global Release Data: Off
    UpdateTime: 0
    Field Data:
      Debug: Off
      Modified Time: 155
      Reference Count: 1
      Registered Events: (none)
      Number Of Arrays: 0
      Number Of Components: 0
      Number Of Tuples: 0
    Number Of Children: 1
    Child 0: vtkUnstructuredGrid
      Debug: Off
      Modified Time: 220
      Reference Count: 1
      Registered Events: (none)
      Source: (none)
      Information: 0x101e840
      Data Released: False
      Global Release Data: Off
      UpdateTime: 0
      Field Data:
        Debug: Off
        Modified Time: 220
        Reference Count: 1
        Registered Events: (none)
        Number Of Arrays: 1
        Array 0 name = ElementBlockIds
        Number Of Components: 1
        Number Of Tuples: 1
      Number Of Points: 5700
      Number Of Cells: 11020
      Cell Data:
        Debug: Off
        Modified Time: 216
        Reference Count: 1
        Registered Events: (none)
        Number Of Arrays: 1
        Array 0 name = ObjectId
        Number Of Components: 1
        Number Of Tuples: 11020
        Copy Tuple Flags: ( 1 1 1 1 1 0 1 )
        Interpolate Flags: ( 1 1 1 1 1 0 0 )
        Pass Through Flags: ( 1 1 1 1 1 1 1 )
        Scalars: (none)
        Vectors: (none)
        Normals: (none)
        TCoords: (none)
        Tensors: (none)
        GlobalIds: (none)
        PedigreeIds: (none)
      Point Data:
        Debug: Off
        Modified Time: 205
        Reference Count: 1
        Registered Events: (none)
        Number Of Arrays: 0
        Number Of Components: 0
        Number Of Tuples: 0
        Copy Tuple Flags: ( 1 1 1 1 1 0 1 )
        Interpolate Flags: ( 1 1 1 1 1 0 0 )
        Pass Through Flags: ( 1 1 1 1 1 1 1 )
        Scalars: (none)
        Vectors: (none)
        Normals: (none)
        TCoords: (none)
        Tensors: (none)
        GlobalIds: (none)
        PedigreeIds: (none)
      Bounds:
        Xmin,Xmax: (-10.2953, 15)
        Ymin,Ymax: (-13.6422, 13.6422)
        Zmin,Zmax: (-5, 5)
      Compute Time: 317
      Number Of Points: 5700
      Point Coordinates: 0xe61720
      Locator: 0
      Number Of Pieces: 1
      Piece: -1
      Ghost Level: 0
  Child 1: vtkMultiBlockDataSet
    Debug: Off
    Modified Time: 234
    Reference Count: 1
    Registered Events: (none)
    Source: (none)
    Information: 0x101ef50
    Data Released: False
    Global Release Data: Off
    UpdateTime: 0
    Field Data:
      Debug: Off
      Modified Time: 232
      Reference Count: 1
      Registered Events: (none)
      Number Of Arra...
[...]
====================== *snap* ======================

Aiming for an unstructured grid, I usually parse this with

    vtk_grid = out.GetBlock(0).GetBlock(0)

but really, I'm not quite sure what I'm doing there. Is there any
documentation on vtk.vtkExodusIIReader()?

Cheers,
Nico



More information about the vtkusers mailing list