You could interactively run through the scripts with pvpython and then use dir() and help() to figure out how to write out the information properly. You'll probably need to do something like:<br>SetActiveSource(<the filter that connects to your writer>)<br>
writer = XMLPolyDataWriter() # most writers take off the vtk part<br>writer.FileName= "file.vtp"<br>writer.UpdatePipeline()<br><br>Hope this helps,<br>Andy<br><br><div class="gmail_quote">On Thu, Jun 16, 2011 at 8:57 AM, Stephen Wornom <span dir="ltr"><<a href="mailto:stephen.wornom@inria.fr">stephen.wornom@inria.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">pat marion wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Did you try python trace? Tools menu --> Start Trace. Then load your data and carry out steps 1, 2, and 3. Tools menu --> Stop Trace.<br>
<br>
</blockquote>
<br>
Thanks Pat,<br>
Worked correctly (We saved the .py script for reference)<br>
with the following exception.<br>
The integrate variables opens a spread sheet with the different values.<br>
We then do save data to save the spreadsheet.<br>
Stop trace<br>
*But* the trace does not contain the save spread sheet commands. Therefore we do not see how to generalize the trace.py (add a loop over theta 0 - 180).<br>
Almost there, what do you suggest?<br>
Many thanks for your help.<br>
Stephen<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Pat<br>
<br>
On Wed, Jun 15, 2011 at 4:39 PM, Stephen Wornom <<a href="mailto:stephen.wornom@inria.fr" target="_blank">stephen.wornom@inria.fr</a> <mailto:<a href="mailto:stephen.wornom@inria.fr" target="_blank">stephen.wornom@inria.fr</a>>> wrote:<br>
<br>
We are using PV to analyze flow around a sphere.<br>
<br>
1- We extract the surface of the sphere from the mean flow solution.<br>
2- We make a slice in x (say at the center x=0)<br>
3- Then click integrate variables. Result: We get the integrated<br>
values for the circle at x=0.<br>
4- We would like to create a python script do automate this for<br>
say 60 slices.<br>
<br>
Would someone share a python script that we could adapt to do<br>
this? (We have zero experience with python).<br>
We would be greatly appreciative!<br>
Stephen<br>
<br>
-- <a href="mailto:stephen.wornom@inria.fr" target="_blank">stephen.wornom@inria.fr</a> <mailto:<a href="mailto:stephen.wornom@inria.fr" target="_blank">stephen.wornom@inria.fr</a>><br>
2004 route des lucioles - BP93<br>
Sophia Antipolis<br>
06902 CEDEX<br>
Tel: 04 92 38 50 54<br>
Fax: 04 97 15 53 51<br>
<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:<br>
<a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
<a href="mailto:stephen.wornom@inria.fr" target="_blank">stephen.wornom@inria.fr</a><br>
2004 route des lucioles - BP93<br>
Sophia Antipolis<br>
06902 CEDEX<br>
<br>
Tel: 04 92 38 50 54<br>
Fax: 04 97 15 53 51<br>
<br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" 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" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>