CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ParaView (http://www.cfd-online.com/Forums/paraview/)
-   -   Trace tool traces animation not correctly (http://www.cfd-online.com/Forums/paraview/120843-trace-tool-traces-animation-not-correctly.html)

nate July 16, 2013 04:44

Trace tool traces animation not correctly
 
Hello,

I am not very experienced in ParaView and face a strange problem.
When we first used the trace tool on animations (like the can.ex2 example), it would save a .py that contains all time steps:

Code:

from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

can_ex2 = ExodusIIReader( FileName=['/home/***/Downloads/ParaViewTutorialData/can.ex2'] )

AnimationScene1 = GetAnimationScene()
can_ex2.NodeMapArrayStatus = []
can_ex2.FaceVariables = []
can_ex2.ElementVariables = []
can_ex2.XMLFileName = 'Invalid result'
can_ex2.FaceSetResultArrayStatus = []
can_ex2.PointVariables = []
can_ex2.FaceSetArrayStatus = []
can_ex2.FaceMapArrayStatus = []
can_ex2.FileRange = [0, 0]
can_ex2.SideSetResultArrayStatus = []
can_ex2.ElementSetArrayStatus = []
can_ex2.EdgeVariables = []
can_ex2.FilePrefix = '/home/***/Downloads/ParaViewTutorialData/can.ex2'
can_ex2.FilePattern = '%s'
can_ex2.EdgeSetArrayStatus = []
can_ex2.SideSetArrayStatus = []
can_ex2.GlobalVariables = []
can_ex2.NodeSetArrayStatus = []
can_ex2.NodeSetResultArrayStatus = []
can_ex2.ElementMapArrayStatus = []
can_ex2.EdgeSetResultArrayStatus = []
can_ex2.EdgeMapArrayStatus = []
can_ex2.ElementSetResultArrayStatus = []

AnimationScene1.EndTime = 0.004299988504499197
AnimationScene1.PlayMode = 'Snap To TimeSteps'

can_ex2.PointVariables = ['DISPL', 'VEL', 'ACCL']
can_ex2.ElementVariables = ['EQPS']
can_ex2.GlobalVariables = ['KE', 'XMOM', 'YMOM', 'ZMOM', 'NSTEPS', 'TMSTEP']
can_ex2.ElementBlocks = ['Unnamed block ID: 1 Type: HEX Size: 4800', 'Unnamed block ID: 2 Type: HEX Size: 2352']

RenderView1 = GetRenderView()
DataRepresentation1 = Show()
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]
DataRepresentation1.SelectionPointFieldDataArrayName = 'ACCL'
DataRepresentation1.SelectionCellFieldDataArrayName = 'EQPS'
DataRepresentation1.ScalarOpacityUnitDistance = 1.3901072164734267
DataRepresentation1.ExtractedBlockIndex = 2
DataRepresentation1.ScaleFactor = 1.9778103828430176

AnimationScene1.AnimationTime = 0.00010007373930420727

RenderView1.CameraViewUp = [0.21980601474806946, -0.014396192480669878, 0.9754373713994308]
RenderView1.CacheKey = 0.00010007373930420727
RenderView1.CameraPosition = [-2.5026723651930034, 55.650740049378435, -3.7357819120646694]
RenderView1.CameraClippingRange = [41.90712923190751, 64.24365578903323]
RenderView1.ViewTime = 0.00010007373930420727
RenderView1.UseCache = 1
RenderView1.CameraFocalPoint = [0.2170600891113302, 3.9999999999999982, -5.110947132110596]
RenderView1.CameraParallelScale = 13.391445890217907
RenderView1.CenterOfRotation = [0.21706008911132812, 4.0, -5.110947132110596]

AnimationScene1.AnimationTime = 0.00019990510190837085

RenderView1.ViewTime = 0.00019990510190837085
RenderView1.CacheKey = 0.00019990510190837085
RenderView1.CameraClippingRange = [41.84401665540126, 64.52150509774275]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.00029996439116075635

RenderView1.ViewTime = 0.00029996439116075635
RenderView1.CacheKey = 0.00029996439116075635
RenderView1.CameraClippingRange = [41.77318267138301, 64.82131988229737]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0004000865446869284

RenderView1.ViewTime = 0.0004000865446869284
RenderView1.CacheKey = 0.0004000865446869284
RenderView1.CameraClippingRange = [41.71892891637263, 65.0658471367726]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0004999192315153778

RenderView1.ViewTime = 0.0004999192315153778
RenderView1.CacheKey = 0.0004999192315153778
RenderView1.CameraClippingRange = [41.686051830283006, 65.23851474438975]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0005999351269565523

RenderView1.ViewTime = 0.0005999351269565523
RenderView1.CacheKey = 0.0005999351269565523
RenderView1.CameraClippingRange = [41.66287870146467, 65.36096321605551]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0007000492187216878

RenderView1.ViewTime = 0.0007000492187216878
RenderView1.CacheKey = 0.0007000492187216878
RenderView1.CameraClippingRange = [41.66075420930691, 65.41753217592174]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0008000352536328137

RenderView1.ViewTime = 0.0008000352536328137
RenderView1.CacheKey = 0.0008000352536328137
RenderView1.CameraClippingRange = [41.68020553522945, 65.38445393371987]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.000900060695130378

RenderView1.ViewTime = 0.000900060695130378
RenderView1.CacheKey = 0.000900060695130378
RenderView1.CameraClippingRange = [41.7259033499767, 65.26288126247108]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0010000059846788645

RenderView1.ViewTime = 0.0010000059846788645
RenderView1.CacheKey = 0.0010000059846788645
RenderView1.CameraClippingRange = [41.76501583808714, 65.15225852362035]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0010999810183420777

RenderView1.ViewTime = 0.0010999810183420777
RenderView1.CacheKey = 0.0010999810183420777
RenderView1.CameraClippingRange = [41.7713927593845, 65.15377116368192]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.001199933118186891

RenderView1.ViewTime = 0.001199933118186891
RenderView1.CacheKey = 0.001199933118186891
RenderView1.CameraClippingRange = [41.74363251546301, 65.28427487884419]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0012999867321923375

RenderView1.ViewTime = 0.0012999867321923375
RenderView1.CacheKey = 0.0012999867321923375
RenderView1.CameraClippingRange = [41.715340389347716, 65.41296599738055]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0014000931987538934

RenderView1.ViewTime = 0.0014000931987538934
RenderView1.CacheKey = 0.0014000931987538934
RenderView1.CameraClippingRange = [41.687904634260654, 65.52437482965617]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0015000413404777646

RenderView1.ViewTime = 0.0015000413404777646
RenderView1.CacheKey = 0.0015000413404777646
RenderView1.CameraClippingRange = [41.65619309635373, 65.64195190246141]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0015999188181012869

RenderView1.ViewTime = 0.0015999188181012869
RenderView1.CacheKey = 0.0015999188181012869
RenderView1.CameraClippingRange = [41.627368886719886, 65.75649960113442]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0016999985091388226

RenderView1.ViewTime = 0.0016999985091388226
RenderView1.CacheKey = 0.0016999985091388226
RenderView1.CameraClippingRange = [41.607008947139896, 65.85084777230944]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0018000734271481633

RenderView1.ViewTime = 0.0018000734271481633
RenderView1.CacheKey = 0.0018000734271481633
RenderView1.CameraClippingRange = [41.592299290128054, 65.92172950626707]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0019000225001946092

RenderView1.ViewTime = 0.0019000225001946092
RenderView1.CacheKey = 0.0019000225001946092
RenderView1.CameraClippingRange = [41.584640724238035, 65.95359635639856]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.001999985659494996

RenderView1.ViewTime = 0.001999985659494996
RenderView1.CacheKey = 0.001999985659494996
RenderView1.CameraClippingRange = [41.585714960957176, 65.94993396687752]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.002099929843097925

RenderView1.ViewTime = 0.002099929843097925
RenderView1.CacheKey = 0.002099929843097925
RenderView1.CameraClippingRange = [41.59776263284566, 65.91585002267814]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0021999210584908724

RenderView1.ViewTime = 0.0021999210584908724
RenderView1.CacheKey = 0.0021999210584908724
RenderView1.CameraClippingRange = [41.59722807473355, 65.8862509548221]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.002299992833286524

RenderView1.ViewTime = 0.002299992833286524
RenderView1.CacheKey = 0.002299992833286524
RenderView1.CameraClippingRange = [41.58350013176916, 65.88738783716545]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.002400053897872567

RenderView1.ViewTime = 0.002400053897872567
RenderView1.CacheKey = 0.002400053897872567
RenderView1.CameraClippingRange = [41.555435589542974, 65.92349653095913]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0024999429006129503

RenderView1.ViewTime = 0.0024999429006129503
RenderView1.CacheKey = 0.0024999429006129503
RenderView1.CameraClippingRange = [41.51834266090649, 65.98637724678571]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0025999213103204966

RenderView1.ViewTime = 0.0025999213103204966
RenderView1.CacheKey = 0.0025999213103204966
RenderView1.CameraClippingRange = [41.44649748907029, 66.1755143523178]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.002699980279430747

RenderView1.ViewTime = 0.002699980279430747
RenderView1.CacheKey = 0.002699980279430747
RenderView1.CameraClippingRange = [41.37496116601877, 66.37922209040318]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0027999996673315763

RenderView1.ViewTime = 0.0027999996673315763
RenderView1.CacheKey = 0.0027999996673315763
RenderView1.CameraClippingRange = [41.30946036119885, 66.56125821867231]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0028999107889831066

RenderView1.ViewTime = 0.0028999107889831066
RenderView1.CacheKey = 0.0028999107889831066
RenderView1.CameraClippingRange = [41.241629715103294, 66.7393518212901]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0030000205151736736

RenderView1.ViewTime = 0.0030000205151736736
RenderView1.CacheKey = 0.0030000205151736736
RenderView1.CameraClippingRange = [41.16988649936318, 66.92917815283027]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.003099979367107153

RenderView1.ViewTime = 0.003099979367107153
RenderView1.CacheKey = 0.003099979367107153
RenderView1.CameraClippingRange = [41.09857626018198, 67.123341275336]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.00319999479688704

RenderView1.ViewTime = 0.00319999479688704
RenderView1.CacheKey = 0.00319999479688704
RenderView1.CameraClippingRange = [41.03205396769718, 67.31588152482058]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.003299942472949624

RenderView1.ViewTime = 0.003299942472949624
RenderView1.CacheKey = 0.003299942472949624
RenderView1.CameraClippingRange = [40.97075686770159, 67.50110625456446]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0034000230953097343

RenderView1.ViewTime = 0.0034000230953097343
RenderView1.CacheKey = 0.0034000230953097343
RenderView1.CameraClippingRange = [40.89765120326344, 67.71102554321658]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0034999684430658817

RenderView1.ViewTime = 0.0034999684430658817
RenderView1.CacheKey = 0.0034999684430658817
RenderView1.CameraClippingRange = [40.80887144340483, 67.95876928676729]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.0035999922547489405

RenderView1.ViewTime = 0.0035999922547489405
RenderView1.CacheKey = 0.0035999922547489405
RenderView1.CameraClippingRange = [40.709247598220884, 68.22641611813476]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.003699962282553315

RenderView1.ViewTime = 0.003699962282553315
RenderView1.CacheKey = 0.003699962282553315
RenderView1.CameraClippingRange = [40.60989636349078, 68.49743347279588]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.003799986792728305

RenderView1.ViewTime = 0.003799986792728305
RenderView1.CacheKey = 0.003799986792728305
RenderView1.CameraClippingRange = [40.51894790680897, 68.74563349706136]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.003899981966242194

RenderView1.ViewTime = 0.003899981966242194
RenderView1.CacheKey = 0.003899981966242194
RenderView1.CameraClippingRange = [40.42683950409735, 68.98878838939312]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.003999985754489899

RenderView1.ViewTime = 0.003999985754489899
RenderView1.CacheKey = 0.003999985754489899
RenderView1.CameraClippingRange = [40.31824862261595, 69.26618415960712]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.004100011195987463

RenderView1.ViewTime = 0.004100011195987463
RenderView1.CacheKey = 0.004100011195987463
RenderView1.CameraClippingRange = [40.20028948248719, 69.56220892074897]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.004199974238872528

RenderView1.ViewTime = 0.004199974238872528
RenderView1.CacheKey = 0.004199974238872528
RenderView1.CameraClippingRange = [40.04709285950773, 69.9934355919264]
RenderView1.UseCache = 1

AnimationScene1.AnimationTime = 0.004299988504499197

RenderView1.ViewTime = 0.004299988504499197
RenderView1.CacheKey = 0.004299988504499197
RenderView1.CameraClippingRange = [39.86179826730063, 70.5468799602603]
RenderView1.UseCache = 1

RenderView1.CameraViewUp = [0.14216083001521143, 0.6397727220606214, 0.7553020339682194]
RenderView1.CameraPosition = [-7.878006708517695, 43.73588776907309, -37.24529150692923]
RenderView1.CameraClippingRange = [28.54608214366247, 68.59281747577515]
RenderView1.CameraFocalPoint = [0.21706008911133032, 3.9999999999999996, -5.110947132110596]
RenderView1.UseCache = 0

Render()

But now, strangely, it saves something different and I don't really know why:

Code:


from paraview.simple import * paraview.simple._DisableFirstRenderCameraReset()
 

can_ex2 = ExodusIIReader( FileName=['/home/***/Downloads/ParaViewTutorialData/can.ex2'] )

 AnimationScene1 = GetAnimationScene()
 AnimationScene1 = GetAnimationScene()
 can_ex2.NodeMapArrayStatus = []
 can_ex2.FaceVariables = []
 can_ex2.ElementVariables = []
 can_ex2.XMLFileName = 'Invalid result'
 can_ex2.FaceSetResultArrayStatus = []
 can_ex2.PointVariables = []
 can_ex2.FaceSetArrayStatus = []
 can_ex2.FaceMapArrayStatus = []
 can_ex2.FileRange = [0, 0]
 can_ex2.SideSetResultArrayStatus = []
 can_ex2.ElementSetArrayStatus = []
 can_ex2.EdgeVariables = []
 can_ex2.FilePrefix = '/home/***/Downloads/ParaViewTutorialData/can.ex2'
 can_ex2.FilePattern = '%s'
 can_ex2.EdgeSetArrayStatus = []
 can_ex2.SideSetArrayStatus = []
 can_ex2.GlobalVariables = []
 can_ex2.NodeSetArrayStatus = []
 can_ex2.NodeSetResultArrayStatus = []
 can_ex2.ElementMapArrayStatus = []
 can_ex2.EdgeSetResultArrayStatus = []
 can_ex2.ModeShape = 0
 can_ex2.EdgeMapArrayStatus = []
 can_ex2.ElementSetResultArrayStatus = []
 

 AnimationScene1.EndTime = 0.004299988504499197
 AnimationScene1.PlayMode = 'Snap To TimeSteps'
 

 AnimationScene1.EndTime = 0.004299988504499197
 AnimationScene1.PlayMode = 'Snap To TimeSteps'
 

 RenderView1 = GetRenderView()
 DataRepresentation1 = Show()
 DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]
 DataRepresentation1.SelectionPointFieldDataArrayName = 'ACCL'
 DataRepresentation1.SelectionCellFieldDataArrayName = 'EQPS'
 DataRepresentation1.ScalarOpacityUnitDistance = 1.3901072164734267
 DataRepresentation1.ExtractedBlockIndex = 2
 DataRepresentation1.ScaleFactor = 1.9778103828430176
 

 can_ex2.ElementVariables = ['EQPS']
 can_ex2.EdgeBlocks = []
 can_ex2.GlobalVariables = ['KE', 'XMOM', 'YMOM', 'ZMOM', 'NSTEPS', 'TMSTEP']
 can_ex2.ElementBlocks = ['Unnamed block ID: 1 Type: HEX', 'Unnamed block ID: 2 Type: HEX']
 can_ex2.PointVariables = ['DISPL', 'VEL', 'ACCL']
 can_ex2.FaceBlocks = []
 

 RenderView1.CenterOfRotation = [0.21706008911132812, 4.0, -5.110947132110596]
 

 AnimationScene1.AnimationTime = 0.004299988504499197
 

 RenderView1.CameraViewUp = [0.0, 0.0, 1.0]
 RenderView1.CacheKey = 0.004299988504499197
 RenderView1.CameraPosition = [0.21706008911132812, -47.74057374685633, -5.110947132110596]
 RenderView1.CameraClippingRange = [37.68160495148829, 65.9825950980581]
 RenderView1.ViewTime = 0.004299988504499197
 RenderView1.UseCache = 0
 RenderView1.CameraFocalPoint = [0.21706008911132812, 4.0, -5.110947132110596]
 RenderView1.CameraParallelScale = 13.391445890217907
 

 Render()

Probably someone knows the issue or how to solve it. Both scripts were generated under Ubuntu 12.04 with ParaView 4.0.1 but we already tried it under Windows and Mac with the same results. Additionally, we un- and re-installed ParaView


Thank you very much!


All times are GMT -4. The time now is 15:59.