[vtkusers] Exodus II problem

Eugen Wintersberger eugen.wintersberger at jku.at
Fri Mar 6 07:44:22 EST 2009


Hi there
  I am fairly new to VTK and would like to know how to extract data from
an ExodusII file using vktExodusReader using the python bindings of VTK.
I have stored displacement data in the file from a finite element
simulation. This data appears as a 3 component vector in the ExodusII
file. The data structure should be an unstructured grid (tets).

I tried the following (most probably naive) approach

import vtk

d = vtk.vtkExodusReader()
d.SetFileName("bilayer_result.e")
d.UpdateInformation()
d.SetPointArrayStatus("u",1)
d.AddFilterOutputVar("u")
d.Update()
print d

uc = vtk.vtkExtractVectorComponents()
uc.SetInputConnection(d.GetOutputPort())

unfortunately vtkExtractVectorComponents complains that the input is no
vector.

Has anyone an idea how to get this working?

thanks in advance
   Eugen

PS: sorry for bothering you with such a maybe stupid question but I
could not find a useful example for vtkExodusReader anywhere on the web.
-- 
--------------------------------------------
|                                          |
| Dipl. Ing. Eugen Wintersberger           |
| Department of semicondutor physics       |
| University of Linz                       |
| Altenbergerstrasse 69                    |
| A-4040 Linz                              |
| Austria                                  |
|                                          |
| Mobile.: +43 664 3112861                 |
| Tel.: +43 732 2468 9605                  |
| E-Mail.: eugen.wintersberger at jku.at      |
| Skype: eugen20056221                     |
| ICQ: 214418739, nickname: thot           |
|                                          |
--------------------------------------------




More information about the vtkusers mailing list