[Paraview] pvpython, get data over time
John
l.rabbit.88 at gmail.com
Mon Mar 6 16:11:20 EST 2017
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/8f5598b0/attachment.html>
More information about the ParaView
mailing list