[Paraview] PV 3.10.1 using python to slice and integrate variable

Stephen Wornom stephen.wornom at inria.fr
Thu Jun 16 08:57:31 EDT 2011


pat marion wrote:
> 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.
>

Thanks Pat,
Worked correctly (We saved the .py script for reference)
with the following exception.
The integrate variables opens a spread sheet with the different values.
We then do save data to save the spreadsheet.
Stop trace
*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).
Almost there, what do you suggest?
Many thanks for your help.
Stephen
> Pat
>
> On Wed, Jun 15, 2011 at 4:39 PM, Stephen Wornom 
> <stephen.wornom at inria.fr <mailto:stephen.wornom at inria.fr>> wrote:
>
>     We are using PV to analyze flow around a sphere.
>
>     1- We extract the surface of the sphere from the mean flow solution.
>     2- We make a slice in x (say at the center x=0)
>     3- Then click integrate variables. Result: We get the integrated
>     values for the circle at x=0.
>     4- We would like to create a python script do automate this for
>     say 60 slices.
>
>     Would someone share a python script that we could adapt to do
>     this? (We have zero experience with python).
>     We would be greatly appreciative!
>     Stephen
>
>     -- 
>     stephen.wornom at inria.fr <mailto:stephen.wornom at inria.fr>
>     2004 route des lucioles - BP93
>     Sophia Antipolis
>     06902 CEDEX
>                    
>     Tel: 04 92 38 50 54
>     Fax: 04 97 15 53 51
>
>
>     _______________________________________________
>     Powered by www.kitware.com <http://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 ParaView Wiki at:
>     http://paraview.org/Wiki/ParaView
>
>     Follow this link to subscribe/unsubscribe:
>     http://www.paraview.org/mailman/listinfo/paraview
>
>


-- 
stephen.wornom at inria.fr
2004 route des lucioles - BP93
Sophia Antipolis
06902 CEDEX
		
Tel: 04 92 38 50 54
Fax: 04 97 15 53 51

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stephen_wornom.vcf
Type: text/x-vcard
Size: 160 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110616/75fa113e/attachment.vcf>


More information about the ParaView mailing list