<div dir="ltr">Hi Filipe,<div><br></div><div>Perhaps the array at index 7 is not the array you are expecting? Could you access the array by name instead, .e.g.,</div><div><br></div><div>dAxis.GetPointData().GetArray('variable_name').GetValue(150)</div><div><br></div><div>and see if that works better?</div><div><br></div><div>Thanks,</div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 1, 2015 at 1:44 PM, deq11009 <span dir="ltr"><<a href="mailto:deq11009@fe.up.pt" target="_blank">deq11009@fe.up.pt</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am currently using Paraview 4.2, 64, in Windows. (but tried 4.3 and same problem happened)<br>
<br>
My case is Ensight transient. Cylinder with 3.6 million cells, two-phase flow.<br>
<br>
I created a python code, which I run from the shell in the GUI.<br>
<br>
<br>
The main parts of the code are:<br>
<br>
<br>
enscase = EnSightReader(CaseFileName = direcp + 'ensfinal.case')<br>
...<br>
axis = Line()<br>
...<br>
rAxis = ResampleWithDataset(Input = enscase , Source = axis)<br>
...<br>
rAxis.SMProxy.UpdatePipeline(7) # enscase.SMProxy yields same problem<br>
rAxis.UpdatePipelineInformation()<br>
dAxis = servermanager.Fetch(rAxis)<br>
<br>
<br>
<br>
Now, for example:<br>
print dAxis.GetPointData().GetArray(7).GetValue(150)<br>
which gives me the value 150 of the phase array.<br>
<br>
This data is wrong. On the other hand, if I go to the GUI Pipeline and create a Spreadsheet, the values are the real ones (confirmed in Fluent).<br>
<br>
So, the fetched data in the python shell is, for some reason, wrong.<br>
What is my mistake?<br>
<br>
<br>
Thanks<br>
Filipe Direito<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</div>