[vtkusers] Exodus II problem

Moreland, Kenneth kmorel at sandia.gov
Fri Mar 6 15:12:34 EST 2009

First, may I recommend that you use the newer vtkExodusIIReader instead of vtkExodusReader.  The latter does not support some of the newer Exodus format features and is no longer being developed.

I think the problem is that the Exodus reader is not setting the active vector on its output  vtkExtractvectorComponents appears to be one of those older filters that expects its input to be the active vector.  You can set the field variable 'u' to be the active vectors by using the vtkAssignAttribute filter.


On 3/6/09 5:44 AM, "Eugen Wintersberger" <eugen.wintersberger at jku.at> wrote:

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()
print d

uc = vtk.vtkExtractVectorComponents()

unfortunately vtkExtractVectorComponents complains that the input is no

Has anyone an idea how to get this working?

thanks in advance

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           |
|                                          |

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 VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:

   ****      Kenneth Moreland
    ***      Sandia National Laboratories
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090306/ab9b807d/attachment.htm>

More information about the vtkusers mailing list