4 paraview.simple._DisableFirstRenderCameraReset()
10 renderView1 = GetActiveViewOrCreate(
'RenderView')
12 calculator1 = Calculator(Input=GetActiveSource())
13 SetActiveSource(calculator1)
14 if any(
"SINGULAR_DISP" in str
for str
in calculator1.PointData.keys()):
15 calculator1.Function =
'MESH_NODE_POSITIONS+SINGULAR_DISP-coords'
17 calculator1.Function =
'MESH_NODE_POSITIONS-coords'
18 calculator1.ResultArrayName =
'Result1'
21 calculator1Display = Show(calculator1, renderView1)
22 Hide(calculator1, renderView1)
25 WarpByVector1 = WarpByVector(Input=calculator1)
26 WarpByVector1.Vectors = [
None,
'Result1']
28 calculator2 = Calculator(Input=WarpByVector1)
32 if any(
"SINGULAR_DISP" in str
for str
in calculator2.PointData.keys()):
33 calculator2.Function =
'SPATIAL_POSITION-MESH_NODE_POSITIONS-SINGULAR_DISP'
35 calculator2.Function =
'SPATIAL_POSITION-MESH_NODE_POSITIONS'
36 calculator2.ResultArrayName =
'DISPLACEMENTS'
37 SetActiveSource(calculator2)
40 calculator2Display = Show(calculator2, renderView1)
41 Hide(calculator2, renderView1)
42 WarpByVector2 = WarpByVector(Input=calculator2)
43 WarpByVector2.Vectors = [
None,
'DISPLACEMENTS']
44 WarpByVector2.ScaleFactor = 1.0
45 WarpByVector2Display = Show(WarpByVector2, renderView1)