<div dir="ltr"><div><div><div><div>Hi Alan,<br><br></div>For #2, a hacky way would be to use the temporal statistics to get the average value and then multiply that by the number of time steps. The only other way I can think of is by using a Python Programmable Filter to integrate the values over time. The Python Programmable Filter recently was changed to have access to the pipeline executive so that you can have it iterate over time steps. <br><br></div>Attached is a state file which I used to iterate over time steps in a programmable filter. It's not working with PV 4.3.1 but it may help give you some guidance on how to do it. If it's overly confusing  (which it very well could be -- I'm too lazy to look at it closely right now) let me know and I can see if I can update it to work with the latest version of PV.<br><br></div>Best,<br></div>Andy<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 14, 2015 at 7:22 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" size="2"><span style="font-size:11pt">
<div>Question from a user:</div>
<div> </div>
<div>I would like to use paraview to do the following:</div>
<div> </div>
<div>1)      Integrate a nodal variable over a volume (IntegrateVariables filter does this)</div>
<div> </div>
<div>2)      Then, integrate the result of the volume integral over time (cumulative integral)</div>
<div> </div>
<div>The "IntegrateVariables" filter works just fine to integrate over the volume, and I can plot the results of it over time by selecting "RowData" from the "PlotSelectionOverTime" filter.  I just can't figure out how to do #2 - integrate these results over
time with something like "numpy.trapz" or "scipy.integrate.cumtrapz".</div>
<div> </div>
<div>I feel like this has probably been asked a million times, but I still seem to have trouble with it.  I think I usually fall back to other post processing tools.  Can this be done all in Paraview?</div>
<div> </div>
<div> </div>
<div> </div>
<div>Thanks,</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" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>