[Paraview] Get point array data in paraview from python shell

Berk Geveci berk.geveci at kitware.com
Fri Mar 27 09:36:37 EDT 2015


Yes. You can use temporal statistics.

Please direct questions to the mailing list so everyone can benefit from
the answers.

Best,
-berk

On Thu, Mar 26, 2015 at 10:28 PM, Jay Romero <jayreno33 at gmail.com> wrote:

> Hi Berk
>
> Thanks for reply. I can try python calculator.
> Actually, I am trying to calculate the time average of a vector variable (
> for example: velocity vector) as:
>
> (1/k) Sum ( I V_k |  dt_k )
>
> where V_k : velocity vector
>           dt_k: time step
>            k: time step number
>
>  I am wondering how I can achieve it.  Is it possible to do in Python
> calculator. Any help would be great.
>
> Best Regards
>
> Jay
>
> On Thu, Mar 26, 2015 at 7:45 PM, Berk Geveci <berk.geveci at kitware.com>
> wrote:
>
>> Hi Jay,
>>
>> The Python console is not the right way to go. Use the Python Calculator
>> with an expression like:
>>
>> mag(<array name here>)
>>
>> Best,
>> -berk
>>
>> On Thu, Mar 26, 2015 at 4:28 PM, Jay Romero <jayreno33 at gmail.com> wrote:
>>
>>> I am trying to get point array data ( node and its values) of a variable
>>> in paraview: so far I can use following (python shell):
>>>
>>> from paraview.simple import *
>>> out = GetActiveSource()
>>>
>>> The point array data is a velocity vector on each node, and I can
>>> calculate magnitude of a vector, next I want to treat these magnitude
>>> values as new point array data in the pipeline browser.
>>> How to do in python shell?
>>>
>>> Best Regards
>>>
>>> Jay
>>>
>>> _______________________________________________
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/paraview
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150327/27f346d3/attachment.html>


More information about the ParaView mailing list