<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. &nbsp;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 &nbsp;vtkExtractvectorComponents appears to be one of those older filters that expects its input to be the active vector. &nbsp;You can set the field variable &#8216;u&#8217; to be the active vectors by using the vtkAssignAttribute filter.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 3/6/09 5:44 AM, &quot;Eugen Wintersberger&quot; &lt;<a href="eugen.wintersberger@jku.at">eugen.wintersberger@jku.at</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi there<BR>
&nbsp;&nbsp;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(&quot;bilayer_result.e&quot;)<BR>
d.UpdateInformation()<BR>
d.SetPointArrayStatus(&quot;u&quot;,1)<BR>
d.AddFilterOutputVar(&quot;u&quot;)<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>
&nbsp;&nbsp;&nbsp;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>
| &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<BR>
| Dipl. Ing. Eugen Wintersberger &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<BR>
| Department of semicondutor physics &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<BR>
| University of Linz &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<BR>
| Altenbergerstrasse 69 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<BR>
| A-4040 Linz &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<BR>
| Austria &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<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>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<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>