[Paraview] get the sum of a cell or point variable (UNCLASSIFIED)

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Jul 22 16:10:41 EDT 2014


Hey, once the sum() is computed by the calculator, you can just use "save
data" from the menu and save it out as a CSV :P.

Utkarsh


On Tue, Jul 22, 2014 at 3:49 PM, Su, Simon M CTR USARMY ARL (US) <
simon.m.su.ctr at mail.mil> wrote:

> Classification: UNCLASSIFIED
> Caveats: NONE
>
> Hi Utkarsh,
>
> That's great. That will eliminate the programmable filter part of my
> pipeline.
> You didn't happen to also pushed update to VTK/ParaView that will write the
> expression "sum(EQPS)" to a file that will work in parallel, did you? :)
>
> Thanks
> -simon
>
> -----Original Message-----
> From: Utkarsh Ayachit [mailto:utkarsh.ayachit at kitware.com]
> Sent: Tuesday, July 22, 2014 3:43 PM
> To: Su, Simon M CTR USARMY ARL (US)
> Cc: paraview at paraview.org
> Subject: Re: [Paraview] get the sum of a cell or point variable
> (UNCLASSIFIED)
>
> Simon,
>
> As I am cleaning my inbox, I ran into this email. Since there have been
> other
> emails about this I'll skip your original query :). Just wanted to give
> you an
> update on recent developments in ParaView. We recently pushed updates to
> VTK/ParaView to allow you to use Python calculator to compute "sum" in
> parallel across all blocks in the dataset. e.g. for can.ex2, you can apply
> the
> Python Calculator and select "Cell Data", with expression "sum(EQPS)" the
> result array will have the true global sum. This also includes operations
> like
> min/max/mean etc.
>
> Utkarsh
>
>
> On Wed, Jun 25, 2014 at 11:21 AM, Su, Simon M CTR USARMY ARL (US)
> <simon.m.su.ctr at mail.mil> wrote:
>
>
>         Classification: UNCLASSIFIED
>         Caveats: NONE
>
>         Hello,
>
>         Running in PV client/server mode, is there a calculator function
> that will
>         add up all the values of a variable (cell or point variable).
>
>         I can use the programmable filter to write a python loop to
> iterate through
>         all the cell/point of the variable and add them up. But, running
> in a
>         client/server mode, how would you store that value? Can I just add
> a single
>         value (not array) to the data? If so, what vtk data structure
> shall I use to
>         store a double variable? vtk.vtkDouble()? Or is there a way to
> write that
>         value out to a file. Running it in parallel, how would that be
> handled?
>
>         Thanks
>         -simon
>
>         Classification: UNCLASSIFIED
>         Caveats: NONE
>
>
>
>         _______________________________________________
>         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://public.kitware.com/mailman/listinfo/paraview
>
>
>
>
>
> Classification: UNCLASSIFIED
> Caveats: NONE
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20140722/fd71fd39/attachment.html>


More information about the ParaView mailing list