Re: [Paraview] [EXTERNAL] Re: Plot cumulative integral over time of a variable

2015-07-15 Thread Scott, W Alan
Thanks!

Are you going to get the patch into the next release?

Alan

From: Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
Sent: Wednesday, July 15, 2015 9:06 AM
To: Scott, W Alan; paraview@paraview.org
Subject: [EXTERNAL] Re: [Paraview] Plot cumulative integral over time of a 
variable

Alan,

Attached is a state file (using can.ex2) which indeed uses numpy.trapz() to do 
the work. It needs a small patch to be applied to VTK (attached) to avoid a 
segfault.

The Programmable Filter adds a new row-data array named "trapz" which is the 
result of the operation (it's repeated so we can add it to RowData rather than 
field data.

Utkarsh
On Tue, Jul 14, 2015 at 7:23 PM Scott, W Alan 
mailto:wasc...@sandia.gov>> wrote:
Question from a user:

I would like to use paraview to do the following:

1)  Integrate a nodal variable over a volume (IntegrateVariables filter 
does this)

2)  Then, integrate the result of the volume integral over time (cumulative 
integral)

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".

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?



Thanks,

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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Re: Plot cumulative integral over time of a variable

2015-07-20 Thread Utkarsh Ayachit
Yes, the change is already merged in VTK. It'll make it to ParaView soon.

Utkarsh

On Wed, Jul 15, 2015 at 12:38 PM Scott, W Alan  wrote:

>  Thanks!
>
>
>
> Are you going to get the patch into the next release?
>
>
>
> Alan
>
>
>
> *From:* Utkarsh Ayachit [mailto:utkarsh.ayac...@kitware.com]
> *Sent:* Wednesday, July 15, 2015 9:06 AM
> *To:* Scott, W Alan; paraview@paraview.org
> *Subject:* [EXTERNAL] Re: [Paraview] Plot cumulative integral over time
> of a variable
>
>
>
> Alan,
>
>
> Attached is a state file (using can.ex2) which indeed uses numpy.trapz()
> to do the work. It needs a small patch to be applied to VTK (attached) to
> avoid a segfault.
>
>
>
> The Programmable Filter adds a new row-data array named "trapz" which is
> the result of the operation (it's repeated so we can add it to RowData
> rather than field data.
>
>
>
> Utkarsh
>
> On Tue, Jul 14, 2015 at 7:23 PM Scott, W Alan  wrote:
>
>  Question from a user:
>
>
>
> I would like to use paraview to do the following:
>
>
>
> 1)  Integrate a nodal variable over a volume (IntegrateVariables
> filter does this)
>
>
>
> 2)  Then, integrate the result of the volume integral over time
> (cumulative integral)
>
>
>
> 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".
>
>
>
> 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?
>
>
>
>
>
>
>
> Thanks,
>
>
>
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview