[Paraview] Python calculator

Fred Fred stan1313 at hotmail.fr
Tue Dec 1 13:06:15 EST 2009


Yes it helps, thx.
But what does the 2 first fields mean?
For instance I would like to select the name of the vector field from an argument of the python script, should I do this:
  filter.VectorVariable = [options.name, 'velocity', '0', '1', '2']
or this:
  filter.VectorVariable = ['velocity', options.name, '0', '1', '2']


Date: Tue, 1 Dec 2009 10:53:58 -0700
Subject: Re: [Paraview] Python calculator
From: petertbrady at gmail.com
To: stan1313 at hotmail.fr
CC: paraview at paraview.org

The way to specify a vector variable is not entirely intuitive:

filter.VectorVariable = ['velocity', 'velocity', '0', '1', '2']

Hope that helps,

Peter.


On Tue, Dec 1, 2009 at 9:51 AM, Fred Fred <stan1313 at hotmail.fr> wrote:






I a trying to compute the velocity magnitude but there are some thing I did not well understand:
First, what do the 3 arguments of VectorVariable mean?

  filter.VectorVariable = ['velocity','velocity', '3']


Second, what is wrong here:

  filter.Function = 'mag(velocity)'

 		 	   		  
Vous cherchez l'intégrale des clips de Michael Jackson ? Bing ! Trouvez !


_______________________________________________

Powered by 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



 		 	   		  
_________________________________________________________________
Tchattez en direct en en vidéo avec vos amis !  
http://www.windowslive.fr/messenger/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091201/eacf09bf/attachment-0001.htm>


More information about the ParaView mailing list