[Paraview] Integrate variable filter

Berk Geveci berk.geveci at kitware.com
Tue May 20 10:21:11 EDT 2014


There is always a reason Alan :-) In the case, luckily, the reason is not
"it is a bug". It is the fact that summing a variable is not "integrating"
a variable. So the filter does that its name implies. If you want to sum a
variable, there are other ways. The "simplest" being the programmable
filter with the following script:

print sum(inputs[0].PointData['RTData'][:,0], axis=0)


Substitute PointData and RTData with the appropriate cell/point
connectivity and array name.


Now I realize that this is totally black magic and not simple at all. We
really need to make this much more accessible to users through the
calculator. I am envisioning something like this:


Filter: Python Calculator

Expression: sum(array_name) (where the function sum is selected from a
pull-down menu)

Array Association: field data


Is this easy enough for most users?


Best,

-berk




On Mon, May 19, 2014 at 9:43 PM, Scott, W Alan <wascott at sandia.gov> wrote:

>  Utkarsh/Berk/All,
> I have a user that wants to add up all of the forces in a dataset, not
> volume corrected.  Is there a reason that the Integrate Variable filter
> can’t do this (default off)?  My user just dumped the raw data as a .csv
> file and read it into excel, which worked.  It would be nicer if ParaView
> did this internally.
>
> Also, having just poked through the documentation for this filter, from
> that I could find, it does not explicitly state that the variables are
> being corrected for volume, area or length.  Documentation should be
> adjusted to state this.  I finally had to create a hacky test, along with
> reading the code, to find what this filter does.
>
> Alan
>
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20140520/3631c89a/attachment.html>


More information about the ParaView mailing list