[Paraview] pvpython, get data over time

John l.rabbit.88 at gmail.com
Mon Mar 6 21:40:53 EST 2017


Hi All,

I found an older post that used the SelectPoints/SelectCells methods.
However, even with "OnlyReportSelectionStatistics = 0" I still am getting
min, q1, med, q3, max, avg, std. My script is attached.

On Mon, Mar 6, 2017 at 4:11 PM, John <l.rabbit.88 at gmail.com> wrote:

> Hello all,
>
> I'm trying to collect data over time. Using as a
>
> #### import the simple module from the paraview
> from paraview.simple import *
>
> # create a new 'ExodusIIReader'
> reader = ExodusIIReader(FileName=['C:\\Users\\John\\Desktop\\
> download\\V_171_V_d_2_um_phi_4.50_eV_tOn_0.5_ns.e'])
> reader.GenerateObjectIdCellArray = 1
> reader.GenerateGlobalElementIdArray = 1
> reader.ElementVariables = reader.ElementVariables.Available
> reader.PointVariables = reader.PointVariables.Available
> reader.ElementBlocks = reader.ElementBlocks.Available
> reader.ApplyDisplacements = 1
> reader.DisplacementMagnitude = 1.0
>
> # get animation scene
> animationScene1 = GetAnimationScene()
>
> # update animation scene based on data timesteps
> animationScene1.UpdateAnimationUsingDataTimeSteps()
>
> # create a new 'Integrate Variables'
> integrateVariables1 = IntegrateVariables(Input=reader)
>
> Then, in the trace, the next important line output is
>
> plotSelectionOverTime1 = PlotSelectionOverTime(Input=integrateVariables1,
> Selection=None)
>
>
> But whereas in the GUI, it integrates over space for all time steps, this
> doesn't create any data. I'm assuming the problem is related to
> "Selection=None" but I cannot figure out how to select the data or a
> different function I could use.
>
> Any advice?
>
> John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170306/c538fc3e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script.py
Type: application/octet-stream
Size: 2265 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170306/c538fc3e/attachment.obj>


More information about the ParaView mailing list