[Paraview] FW: sum of values at all nodes
David E DeMarle
dave.demarle at kitware.com
Fri Apr 17 13:30:02 EDT 2009
In the mean time, you can do it via Tools->Python Shell and this script:
Start up paraview and apply wavelet source for example. Then open
python shell and do this:
Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
>>> from paraview.simple import *
>>> mm = servermanager.filters.MinMax()
>>> mm.Operation = "SUM"
>>> print pm.GetProxiesInGroup("sources")
{('Wavelet1', '114'): <paraview.servermanager.Wavelet object at 0x2d9c9910>}
>>> wavelet = pm.GetProxy("sources", "Wavelet1")
>>> out = servermanager.Fetch(wavelet, mm)
applying operation
>>> out.GetPointData().GetArray("RTData").GetValue(0)
1418359.5
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
On Sat, Apr 11, 2009 at 8:28 PM, Berk Geveci <berk.geveci at kitware.com> wrote:
> This would be super easy to do with the python calculator (which is
> not committed). So, I would say the answer is "yes, we are working on
> it".
>
> On Sat, Apr 11, 2009 at 10:45 AM, Moreland, Kenneth <kmorel at sandia.gov> wrote:
>> I’m forwarding this question to the mailing list because I am not sure. I
>> recall a lot of talk about aggregated operations like sum in context with
>> the programmable filter, but I don’t remember if there is a way to do it
>> outside that.
>>
>> -Ken
>>
>> **** Kenneth Moreland
>> *** Sandia National Laboratories
>> ***********
>> *** *** *** email: kmorel at sandia.gov
>> ** *** ** phone: (505) 844-8919
>> *** web: http://www.cs.unm.edu/~kmorel
>>
>>
>> ------ Forwarded Message
>> From: "Scott, W Alan" <wascott at sandia.gov>
>> Date: Fri, 10 Apr 2009 19:48:55 -0600
>> To: "Moreland, Kenneth" <kmorel at sandia.gov>, "Brown, Alexander L"
>> <albrown at sandia.gov>
>> Subject: sum of values at all nodes
>>
>> Ken,
>> Is it possible to get a sum of all variables from all nodes into one number?
>> Are we planning on adding this for the future?
>>
>> Alan
>>
>> --------------------------------------------------------
>> W. Alan Scott
>> ParaView Support Manager
>>
>> GAITS
>> Sandia National Laboratories, MS 0822
>> Org 9326 - Building 899 2205
>> (505) 284-0932 FAX (505) 845-0833
>> ---------------------------------------------------------
>>
>>
>>
>>
>>
>> ------ End of Forwarded Message
>>
>> _______________________________________________
>> 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
>>
>>
> _______________________________________________
> 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
>
More information about the ParaView
mailing list