<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;color:#000000">Hi Berk, this is just awesome. Thanks a lot.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 3, 2014 at 10:06 AM, Berk Geveci <span dir="ltr"><<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Here is a way of doing this. Apply a Programmable Filter with a script<br>
like this:<br>
<br>
displ = inputs[0].PointData['DISPL']<br>
val = numpy.sum(displ[:,0], 0)<br>
a = vtk.vtkFloatArray()<br>
a.SetName("Sumdispl")<br>
a.InsertNextValue(val)<br>
output.SetNumberOfRows(1)<br>
output.AddColumn(a)<br>
<br>
Make sure that the output type is set to vtkTable. Also, you need a<br>
ParaView compiled with Python and numpy support.<br>
<br>
Once you have the table, select the first row in the spreadsheet view.<br>
Then apply Plot Selection Over Time.<br>
<br>
This is a bit more complicated if the data is multi-block or AMR. Let<br>
me know if that is the case.<br>
<br>
Best,<br>
-berk<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Wed, Jan 29, 2014 at 6:50 PM, William Oquendo <<a href="mailto:woquendo@gmail.com">woquendo@gmail.com</a>> wrote:<br>
> Hi, thanks for your response.<br>
> Yes, I have tried it, and although useful for the statistics, like average<br>
> velocity magnitud, still does not allow<br>
> me to extract what I really need, like the sum of every mass*|V|^2 for all<br>
> particles as a function of time, and,<br>
> in general, Â a global function (a function which depends on all the<br>
> particles) as function of time (array which<br>
> seems to be hidden).<br>
> Do you or anybody know if it is possible to configure the "Plot Selection<br>
> Over Time" filter to add it some<br>
> other function? or, is it possible to use the Python Calculator filter for<br>
> this? can someone share and example?<br>
> Thanks again for your kind response.<br>
><br>
><br>
> On Tue, Jan 28, 2014 at 9:32 PM, Utkarsh Ayachit<br>
> <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>> wrote:<br>
>><br>
>> Have you tried selecting all the particles, then applying "Plot Selection<br>
>> Over Time", however this time checking the "Only report selection<br>
>> statistics" property?<br>
>><br>
>><br>
>> On Tue, Jan 28, 2014 at 2:01 PM, William Oquendo <<a href="mailto:woquendo@gmail.com">woquendo@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Dear all,<br>
>>> I have a system of particles printed on vtp files. I am visualising them<br>
>>> on Paraview, and want to analyse some dynamic info. Each particle has its<br>
>>> own position and velocity vectors, and mass (scalar) as well, plus some<br>
>>> other scalars and vectors not relevant now. Let/s say that I want to plot<br>
>>> the total kinetic energy as a function of time. I was able to plot the<br>
>>> individual kinetic energies per particle for each time (using the calculator<br>
>>> and plot data filters), and also to plot the kinetic energy for a single<br>
>>> selected Â particle as function of time (after selecting the particle and<br>
>>> using the plot selection over time filter). But I haven't found how to use<br>
>>> the Python calculator or similar to compute that aggregate quantity (total<br>
>>> kinetic energy in this example), and to plot it as a function of time.<br>
>>> Any help is greatly appreciated.<br>
>>><br>
>>> --<br>
>>><br>
>>> Best regards / Cordialmente,<br>
>>><br>
>>> William-Fernando Oquendo<br>
>>> --------------------------<br>
>>> Este correo puede carecer de tildes o eñes debido al teclado.<br>
>>><br>
>>><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<br>
>>> <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:<br>
>>> <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>
>><br>
><br>
><br>
><br>
> --<br>
><br>
> Best regards / Cordialmente,<br>
><br>
> William-Fernando Oquendo<br>
> --------------------------<br>
> Este correo puede carecer de tildes o eñes debido al teclado.<br>
><br>
><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<br>
> <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:<br>
> <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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><br style="font-family:arial,helvetica,sans-serif"><span style="font-family:arial,helvetica,sans-serif">Best regards / Cordialmente,</span><br style="font-family:arial,helvetica,sans-serif">

<span style="font-family:arial,helvetica,sans-serif"><br></span><div><span style="font-family:arial,helvetica,sans-serif">William-Fernando Oquendo</span><div><div style="font-family:arial,helvetica,sans-serif">--------------------------</div>

<div style="font-family:arial,helvetica,sans-serif">Este correo puede carecer de tildes o eñes debido al teclado. </div><div style="font-family:arial,helvetica,sans-serif"><br></div></div></div>
</div>