<div dir="ltr">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:<div>
<br></div><div>
<p style="margin:0px">print sum(inputs[0].PointData['RTData'][:,0], axis=0)</p>
<p style="margin:0px"><br></p><p style="margin:0px">Substitute PointData and RTData with the appropriate cell/point connectivity and array name.</p><p style="margin:0px"><br></p><p style="margin:0px">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:</p>
<p style="margin:0px"><br></p><p style="margin:0px">Filter: Python Calculator</p><p style="margin:0px">Expression: sum(array_name) (where the function sum is selected from a pull-down menu)</p><p style="margin:0px">Array Association: field data</p>
<p style="margin:0px"><br></p><p style="margin:0px">Is this easy enough for most users?</p><p style="margin:0px"><br></p><p style="margin:0px">Best,</p><p style="margin:0px">-berk</p><p style="margin:0px"><br></p></div></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 19, 2014 at 9:43 PM, Scott, W Alan <span dir="ltr"><<a href="mailto:wascott@sandia.gov" target="_blank">wascott@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<font face="Calibri"><span style="font-size:11pt">
<div>Utkarsh/Berk/All,</div>
<div>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.</div>
<div> </div>
<div>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.</div><span class="HOEnZb"><font color="#888888">
<div> </div>
<div>Alan</div>
<div> </div>
<div> </div>
</font></span></span></font>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>