<HTML>
<HEAD>
<TITLE>Re: [vtkusers] Exodus II problem</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>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.<BR>
<BR>
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.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 3/6/09 5:44 AM, "Eugen Wintersberger" <<a href="eugen.wintersberger@jku.at">eugen.wintersberger@jku.at</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi there<BR>
I am fairly new to VTK and would like to know how to extract data from<BR>
an ExodusII file using vktExodusReader using the python bindings of VTK.<BR>
I have stored displacement data in the file from a finite element<BR>
simulation. This data appears as a 3 component vector in the ExodusII<BR>
file. The data structure should be an unstructured grid (tets).<BR>
<BR>
I tried the following (most probably naive) approach<BR>
<BR>
import vtk<BR>
<BR>
d = vtk.vtkExodusReader()<BR>
d.SetFileName("bilayer_result.e")<BR>
d.UpdateInformation()<BR>
d.SetPointArrayStatus("u",1)<BR>
d.AddFilterOutputVar("u")<BR>
d.Update()<BR>
print d<BR>
<BR>
uc = vtk.vtkExtractVectorComponents()<BR>
uc.SetInputConnection(d.GetOutputPort())<BR>
<BR>
unfortunately vtkExtractVectorComponents complains that the input is no<BR>
vector.<BR>
<BR>
Has anyone an idea how to get this working?<BR>
<BR>
thanks in advance<BR>
Eugen<BR>
<BR>
PS: sorry for bothering you with such a maybe stupid question but I<BR>
could not find a useful example for vtkExodusReader anywhere on the web.<BR>
--<BR>
--------------------------------------------<BR>
| |<BR>
| Dipl. Ing. Eugen Wintersberger |<BR>
| Department of semicondutor physics |<BR>
| University of Linz |<BR>
| Altenbergerstrasse 69 |<BR>
| A-4040 Linz |<BR>
| Austria |<BR>
| |<BR>
| Mobile.: +43 664 3112861 |<BR>
| Tel.: +43 732 2468 9605 |<BR>
| E-Mail.: <a href="eugen.wintersberger@jku.at">eugen.wintersberger@jku.at</a> |<BR>
| Skype: eugen20056221 |<BR>
| ICQ: 214418739, nickname: thot |<BR>
| |<BR>
--------------------------------------------<BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>