Last active
September 20, 2021 11:09
-
-
Save Foadsf/cad475a092167fbc2ec4be9e1b26ba71 to your computer and use it in GitHub Desktop.
paraview script to solve this problem http://bit.ly/2NnDKAW
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### import the simple module from the paraview | |
from paraview.simple import * | |
Connect("localhost") #from here https://stackoverflow.com/a/46407769/4999991 | |
#### disable automatic camera reset on 'Show' | |
paraview.simple._DisableFirstRenderCameraReset() | |
# create a new 'OpenFOAMReader' | |
paraviewfoam = OpenFOAMReader(FileName='C:\\path\\my\\file\\paraview.foam') | |
paraviewfoam.MeshRegions = ['internalMesh'] | |
# Properties modified on paraviewfoam | |
paraviewfoam.CaseType = 'Decomposed Case' | |
paraviewfoam.MeshRegions = ['internalMesh', 'inlet', 'outlet', 'walls', 'stepFront', 'stepSide', 'stepBack', 'wedgeFront', 'wedgeBack', 'axis'] | |
# get active view | |
renderView1 = GetActiveViewOrCreate('RenderView') | |
# uncomment following to set a specific view size | |
# renderView1.ViewSize = [1464, 818] | |
# show data in view | |
paraviewfoamDisplay = Show(paraviewfoam, renderView1) | |
# get color transfer function/color map for 'p' | |
pLUT = GetColorTransferFunction('p') | |
# trace defaults for the display properties. | |
paraviewfoamDisplay.Representation = 'Surface' | |
paraviewfoamDisplay.ColorArrayName = ['POINTS', 'p'] | |
paraviewfoamDisplay.LookupTable = pLUT | |
paraviewfoamDisplay.OSPRayScaleArray = 'p' | |
paraviewfoamDisplay.OSPRayScaleFunction = 'PiecewiseFunction' | |
paraviewfoamDisplay.SelectOrientationVectors = 'U' | |
paraviewfoamDisplay.ScaleFactor = 0.005000000074505806 | |
paraviewfoamDisplay.SelectScaleArray = 'p' | |
paraviewfoamDisplay.GlyphType = 'Arrow' | |
paraviewfoamDisplay.GlyphTableIndexArray = 'p' | |
paraviewfoamDisplay.DataAxesGrid = 'GridAxesRepresentation' | |
paraviewfoamDisplay.PolarAxes = 'PolarAxesRepresentation' | |
paraviewfoamDisplay.GaussianRadius = 0.002500000037252903 | |
paraviewfoamDisplay.SetScaleArray = ['POINTS', 'p'] | |
paraviewfoamDisplay.ScaleTransferFunction = 'PiecewiseFunction' | |
paraviewfoamDisplay.OpacityArray = ['POINTS', 'p'] | |
paraviewfoamDisplay.OpacityTransferFunction = 'PiecewiseFunction' | |
# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction' | |
paraviewfoamDisplay.ScaleTransferFunction.Points = [100000.0, 0.0, 0.5, 0.0, 203446.9375, 1.0, 0.5, 0.0] | |
# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction' | |
paraviewfoamDisplay.OpacityTransferFunction.Points = [100000.0, 0.0, 0.5, 0.0, 203446.9375, 1.0, 0.5, 0.0] | |
# reset view to fit data | |
renderView1.ResetCamera() | |
# show color bar/color legend | |
paraviewfoamDisplay.SetScalarBarVisibility(renderView1, True) | |
# get animation scene | |
animationScene1 = GetAnimationScene() | |
# update animation scene based on data timesteps | |
animationScene1.UpdateAnimationUsingDataTimeSteps() | |
# reset view to fit data | |
renderView1.ResetCamera() | |
# create a new 'Plot Over Line' | |
plotOverLine1 = PlotOverLine(Input=paraviewfoam, | |
Source='High Resolution Line Source') | |
# init the 'High Resolution Line Source' selected for 'Source' | |
plotOverLine1.Source.Point1 = [0.0, -0.0004361938626971096, 0.0] | |
plotOverLine1.Source.Point2 = [0.009990482591092587, 0.0004361938626971096, 0.05000000074505806] | |
# Properties modified on paraviewfoam | |
paraviewfoam.CellArrays = ['T', 'U', 'alphat', 'epsilon', 'k', 'nut', 'p'] | |
# Properties modified on plotOverLine1.Source | |
plotOverLine1.Source.Point1 = [0.0, 0.0, 0.02] | |
plotOverLine1.Source.Point2 = [0.008, 0.0, 0.02] | |
# Properties modified on plotOverLine1.Source | |
plotOverLine1.Source.Point1 = [0.0, 0.0, 0.02] | |
plotOverLine1.Source.Point2 = [0.008, 0.0, 0.02] | |
# show data in view | |
plotOverLine1Display = Show(plotOverLine1, renderView1) | |
# trace defaults for the display properties. | |
plotOverLine1Display.Representation = 'Surface' | |
plotOverLine1Display.ColorArrayName = ['POINTS', 'p'] | |
plotOverLine1Display.LookupTable = pLUT | |
plotOverLine1Display.OSPRayScaleArray = 'p' | |
plotOverLine1Display.OSPRayScaleFunction = 'PiecewiseFunction' | |
plotOverLine1Display.SelectOrientationVectors = 'U' | |
plotOverLine1Display.ScaleFactor = 0.000800000037997961 | |
plotOverLine1Display.SelectScaleArray = 'p' | |
plotOverLine1Display.GlyphType = 'Arrow' | |
plotOverLine1Display.GlyphTableIndexArray = 'p' | |
plotOverLine1Display.DataAxesGrid = 'GridAxesRepresentation' | |
plotOverLine1Display.PolarAxes = 'PolarAxesRepresentation' | |
plotOverLine1Display.GaussianRadius = 0.0004000000189989805 | |
plotOverLine1Display.SetScaleArray = ['POINTS', 'p'] | |
plotOverLine1Display.ScaleTransferFunction = 'PiecewiseFunction' | |
plotOverLine1Display.OpacityArray = ['POINTS', 'p'] | |
plotOverLine1Display.OpacityTransferFunction = 'PiecewiseFunction' | |
# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction' | |
plotOverLine1Display.ScaleTransferFunction.Points = [100000.0, 0.0, 0.5, 0.0, 100016.0, 1.0, 0.5, 0.0] | |
# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction' | |
plotOverLine1Display.OpacityTransferFunction.Points = [100000.0, 0.0, 0.5, 0.0, 100016.0, 1.0, 0.5, 0.0] | |
# Create a new 'Line Chart View' | |
lineChartView1 = CreateView('XYChartView') | |
lineChartView1.ViewSize = [727, 818] | |
lineChartView1.LeftAxisRangeMaximum = 6.66 | |
lineChartView1.BottomAxisRangeMaximum = 6.66 | |
lineChartView1.RightAxisRangeMaximum = 6.66 | |
lineChartView1.TopAxisRangeMaximum = 6.66 | |
# get layout | |
layout1 = GetLayout() | |
# place view in the layout | |
layout1.AssignView(2, lineChartView1) | |
# show data in view | |
plotOverLine1Display_1 = Show(plotOverLine1, lineChartView1) | |
# trace defaults for the display properties. | |
plotOverLine1Display_1.CompositeDataSetIndex = [0] | |
plotOverLine1Display_1.UseIndexForXAxis = 0 | |
plotOverLine1Display_1.XArrayName = 'arc_length' | |
plotOverLine1Display_1.SeriesVisibility = ['alphat', 'epsilon', 'k', 'nut', 'p', 'T', 'U_Magnitude'] | |
plotOverLine1Display_1.SeriesLabel = ['alphat', 'alphat', 'arc_length', 'arc_length', 'epsilon', 'epsilon', 'k', 'k', 'nut', 'nut', 'p', 'p', 'T', 'T', 'U_X', 'U_X', 'U_Y', 'U_Y', 'U_Z', 'U_Z', 'U_Magnitude', 'U_Magnitude', 'vtkValidPointMask', 'vtkValidPointMask', 'Points_X', 'Points_X', 'Points_Y', 'Points_Y', 'Points_Z', 'Points_Z', 'Points_Magnitude', 'Points_Magnitude'] | |
plotOverLine1Display_1.SeriesColor = ['alphat', '0', '0', '0', 'arc_length', '0.89', '0.1', '0.11', 'epsilon', '0.22', '0.49', '0.72', 'k', '0.3', '0.69', '0.29', 'nut', '0.6', '0.31', '0.64', 'p', '1', '0.5', '0', 'T', '0.65', '0.34', '0.16', 'U_X', '0', '0', '0', 'U_Y', '0.89', '0.1', '0.11', 'U_Z', '0.22', '0.49', '0.72', 'U_Magnitude', '0.3', '0.69', '0.29', 'vtkValidPointMask', '0.6', '0.31', '0.64', 'Points_X', '1', '0.5', '0', 'Points_Y', '0.65', '0.34', '0.16', 'Points_Z', '0', '0', '0', 'Points_Magnitude', '0.89', '0.1', '0.11'] | |
plotOverLine1Display_1.SeriesPlotCorner = ['alphat', '0', 'arc_length', '0', 'epsilon', '0', 'k', '0', 'nut', '0', 'p', '0', 'T', '0', 'U_X', '0', 'U_Y', '0', 'U_Z', '0', 'U_Magnitude', '0', 'vtkValidPointMask', '0', 'Points_X', '0', 'Points_Y', '0', 'Points_Z', '0', 'Points_Magnitude', '0'] | |
plotOverLine1Display_1.SeriesLabelPrefix = '' | |
plotOverLine1Display_1.SeriesLineStyle = ['alphat', '1', 'arc_length', '1', 'epsilon', '1', 'k', '1', 'nut', '1', 'p', '1', 'T', '1', 'U_X', '1', 'U_Y', '1', 'U_Z', '1', 'U_Magnitude', '1', 'vtkValidPointMask', '1', 'Points_X', '1', 'Points_Y', '1', 'Points_Z', '1', 'Points_Magnitude', '1'] | |
plotOverLine1Display_1.SeriesLineThickness = ['alphat', '2', 'arc_length', '2', 'epsilon', '2', 'k', '2', 'nut', '2', 'p', '2', 'T', '2', 'U_X', '2', 'U_Y', '2', 'U_Z', '2', 'U_Magnitude', '2', 'vtkValidPointMask', '2', 'Points_X', '2', 'Points_Y', '2', 'Points_Z', '2', 'Points_Magnitude', '2'] | |
plotOverLine1Display_1.SeriesMarkerStyle = ['alphat', '0', 'arc_length', '0', 'epsilon', '0', 'k', '0', 'nut', '0', 'p', '0', 'T', '0', 'U_X', '0', 'U_Y', '0', 'U_Z', '0', 'U_Magnitude', '0', 'vtkValidPointMask', '0', 'Points_X', '0', 'Points_Y', '0', 'Points_Z', '0', 'Points_Magnitude', '0'] | |
# update the view to ensure updated data information | |
renderView1.Update() | |
# update the view to ensure updated data information | |
lineChartView1.Update() | |
# Properties modified on plotOverLine1Display_1 | |
plotOverLine1Display_1.SeriesVisibility = [] | |
plotOverLine1Display_1.SeriesColor = ['alphat', '0', '0', '0', 'arc_length', '0.889998', '0.100008', '0.110002', 'epsilon', '0.220005', '0.489998', '0.719997', 'k', '0.300008', '0.689998', '0.289998', 'nut', '0.6', '0.310002', '0.639994', 'p', '1', '0.500008', '0', 'T', '0.650004', '0.340002', '0.160006', 'U_X', '0', '0', '0', 'U_Y', '0.889998', '0.100008', '0.110002', 'U_Z', '0.220005', '0.489998', '0.719997', 'U_Magnitude', '0.300008', '0.689998', '0.289998', 'vtkValidPointMask', '0.6', '0.310002', '0.639994', 'Points_X', '1', '0.500008', '0', 'Points_Y', '0.650004', '0.340002', '0.160006', 'Points_Z', '0', '0', '0', 'Points_Magnitude', '0.889998', '0.100008', '0.110002'] | |
plotOverLine1Display_1.SeriesPlotCorner = ['Points_Magnitude', '0', 'Points_X', '0', 'Points_Y', '0', 'Points_Z', '0', 'T', '0', 'U_Magnitude', '0', 'U_X', '0', 'U_Y', '0', 'U_Z', '0', 'alphat', '0', 'arc_length', '0', 'epsilon', '0', 'k', '0', 'nut', '0', 'p', '0', 'vtkValidPointMask', '0'] | |
plotOverLine1Display_1.SeriesLineStyle = ['Points_Magnitude', '1', 'Points_X', '1', 'Points_Y', '1', 'Points_Z', '1', 'T', '1', 'U_Magnitude', '1', 'U_X', '1', 'U_Y', '1', 'U_Z', '1', 'alphat', '1', 'arc_length', '1', 'epsilon', '1', 'k', '1', 'nut', '1', 'p', '1', 'vtkValidPointMask', '1'] | |
plotOverLine1Display_1.SeriesLineThickness = ['Points_Magnitude', '2', 'Points_X', '2', 'Points_Y', '2', 'Points_Z', '2', 'T', '2', 'U_Magnitude', '2', 'U_X', '2', 'U_Y', '2', 'U_Z', '2', 'alphat', '2', 'arc_length', '2', 'epsilon', '2', 'k', '2', 'nut', '2', 'p', '2', 'vtkValidPointMask', '2'] | |
plotOverLine1Display_1.SeriesMarkerStyle = ['Points_Magnitude', '0', 'Points_X', '0', 'Points_Y', '0', 'Points_Z', '0', 'T', '0', 'U_Magnitude', '0', 'U_X', '0', 'U_Y', '0', 'U_Z', '0', 'alphat', '0', 'arc_length', '0', 'epsilon', '0', 'k', '0', 'nut', '0', 'p', '0', 'vtkValidPointMask', '0'] | |
# Properties modified on plotOverLine1Display_1 | |
plotOverLine1Display_1.SeriesVisibility = ['p'] | |
# create a new 'Plot Selection Over Time' | |
plotSelectionOverTime1 = PlotSelectionOverTime(Input=plotOverLine1, | |
Selection=None) | |
# set active source | |
SetActiveSource(plotOverLine1) | |
# destroy plotSelectionOverTime1 | |
Delete(plotSelectionOverTime1) | |
del plotSelectionOverTime1 | |
# create a new 'Integrate Variables' | |
integrateVariables1 = IntegrateVariables(Input=plotOverLine1) | |
# Create a new 'SpreadSheet View' | |
spreadSheetView1 = CreateView('SpreadSheetView') | |
spreadSheetView1.ColumnToSort = '' | |
spreadSheetView1.BlockSize = 1024L | |
# uncomment following to set a specific view size | |
# spreadSheetView1.ViewSize = [400, 400] | |
# place view in the layout | |
layout1.AssignView(6, spreadSheetView1) | |
# show data in view | |
integrateVariables1Display = Show(integrateVariables1, spreadSheetView1) | |
# update the view to ensure updated data information | |
spreadSheetView1.Update() | |
# create a new 'Plot Selection Over Time' | |
plotSelectionOverTime1 = PlotSelectionOverTime(Input=integrateVariables1, | |
Selection=None) | |
# set active source | |
SetActiveSource(integrateVariables1) | |
# set active source | |
SetActiveSource(plotSelectionOverTime1) | |
# Create a new 'Quartile Chart View' | |
quartileChartView1 = CreateView('QuartileChartView') | |
quartileChartView1.ViewSize = [216, 394] | |
quartileChartView1.LeftAxisRangeMaximum = 6.66 | |
quartileChartView1.BottomAxisRangeMaximum = 6.66 | |
quartileChartView1.RightAxisRangeMaximum = 6.66 | |
quartileChartView1.TopAxisRangeMaximum = 6.66 | |
# place view in the layout | |
layout1.AssignView(14, quartileChartView1) | |
# show data in view | |
plotSelectionOverTime1Display = Show(plotSelectionOverTime1, quartileChartView1) | |
# trace defaults for the display properties. | |
plotSelectionOverTime1Display.AttributeType = 'Row Data' | |
plotSelectionOverTime1Display.UseIndexForXAxis = 0 | |
plotSelectionOverTime1Display.XArrayName = 'Time' | |
plotSelectionOverTime1Display.SeriesVisibility = ['alphat (Point Statistics)', 'epsilon (Point Statistics)', 'k (Point Statistics)', 'nut (Point Statistics)', 'p (Point Statistics)', 'T (Point Statistics)', 'U (Magnitude) (Point Statistics)', 'X (Point Statistics)', 'Y (Point Statistics)', 'Z (Point Statistics)'] | |
plotSelectionOverTime1Display.SeriesLabel = ['alphat (Point Statistics)', 'alphat (Point Statistics)', 'arc_length (Point Statistics)', 'arc_length (Point Statistics)', 'epsilon (Point Statistics)', 'epsilon (Point Statistics)', 'k (Point Statistics)', 'k (Point Statistics)', 'nut (Point Statistics)', 'nut (Point Statistics)', 'p (Point Statistics)', 'p (Point Statistics)', 'T (Point Statistics)', 'T (Point Statistics)', 'U (0) (Point Statistics)', 'U (0) (Point Statistics)', 'U (1) (Point Statistics)', 'U (1) (Point Statistics)', 'U (2) (Point Statistics)', 'U (2) (Point Statistics)', 'U (Magnitude) (Point Statistics)', 'U (Magnitude) (Point Statistics)', 'vtkOriginalPointIds (Point Statistics)', 'vtkOriginalPointIds (Point Statistics)', 'vtkValidPointMask (Point Statistics)', 'vtkValidPointMask (Point Statistics)', 'X (Point Statistics)', 'X (Point Statistics)', 'Y (Point Statistics)', 'Y (Point Statistics)', 'Z (Point Statistics)', 'Z (Point Statistics)', 'N (Point Statistics)', 'N (Point Statistics)', 'Time (Point Statistics)', 'Time (Point Statistics)'] | |
plotSelectionOverTime1Display.SeriesColor = ['alphat (Point Statistics)', '0', '0', '0', 'arc_length (Point Statistics)', '0.89', '0.1', '0.11', 'epsilon (Point Statistics)', '0.22', '0.49', '0.72', 'k (Point Statistics)', '0.3', '0.69', '0.29', 'nut (Point Statistics)', '0.6', '0.31', '0.64', 'p (Point Statistics)', '1', '0.5', '0', 'T (Point Statistics)', '0.65', '0.34', '0.16', 'U (0) (Point Statistics)', '0', '0', '0', 'U (1) (Point Statistics)', '0.89', '0.1', '0.11', 'U (2) (Point Statistics)', '0.22', '0.49', '0.72', 'U (Magnitude) (Point Statistics)', '0.3', '0.69', '0.29', 'vtkOriginalPointIds (Point Statistics)', '0.6', '0.31', '0.64', 'vtkValidPointMask (Point Statistics)', '1', '0.5', '0', 'X (Point Statistics)', '0.65', '0.34', '0.16', 'Y (Point Statistics)', '0', '0', '0', 'Z (Point Statistics)', '0.89', '0.1', '0.11', 'N (Point Statistics)', '0.22', '0.49', '0.72', 'Time (Point Statistics)', '0.3', '0.69', '0.29'] | |
plotSelectionOverTime1Display.SeriesPlotCorner = ['alphat (Point Statistics)', '0', 'arc_length (Point Statistics)', '0', 'epsilon (Point Statistics)', '0', 'k (Point Statistics)', '0', 'nut (Point Statistics)', '0', 'p (Point Statistics)', '0', 'T (Point Statistics)', '0', 'U (0) (Point Statistics)', '0', 'U (1) (Point Statistics)', '0', 'U (2) (Point Statistics)', '0', 'U (Magnitude) (Point Statistics)', '0', 'vtkOriginalPointIds (Point Statistics)', '0', 'vtkValidPointMask (Point Statistics)', '0', 'X (Point Statistics)', '0', 'Y (Point Statistics)', '0', 'Z (Point Statistics)', '0', 'N (Point Statistics)', '0', 'Time (Point Statistics)', '0'] | |
plotSelectionOverTime1Display.SeriesLabelPrefix = '' | |
plotSelectionOverTime1Display.SeriesLineStyle = ['alphat (Point Statistics)', '1', 'arc_length (Point Statistics)', '1', 'epsilon (Point Statistics)', '1', 'k (Point Statistics)', '1', 'nut (Point Statistics)', '1', 'p (Point Statistics)', '1', 'T (Point Statistics)', '1', 'U (0) (Point Statistics)', '1', 'U (1) (Point Statistics)', '1', 'U (2) (Point Statistics)', '1', 'U (Magnitude) (Point Statistics)', '1', 'vtkOriginalPointIds (Point Statistics)', '1', 'vtkValidPointMask (Point Statistics)', '1', 'X (Point Statistics)', '1', 'Y (Point Statistics)', '1', 'Z (Point Statistics)', '1', 'N (Point Statistics)', '1', 'Time (Point Statistics)', '1'] | |
plotSelectionOverTime1Display.SeriesLineThickness = ['alphat (Point Statistics)', '2', 'arc_length (Point Statistics)', '2', 'epsilon (Point Statistics)', '2', 'k (Point Statistics)', '2', 'nut (Point Statistics)', '2', 'p (Point Statistics)', '2', 'T (Point Statistics)', '2', 'U (0) (Point Statistics)', '2', 'U (1) (Point Statistics)', '2', 'U (2) (Point Statistics)', '2', 'U (Magnitude) (Point Statistics)', '2', 'vtkOriginalPointIds (Point Statistics)', '2', 'vtkValidPointMask (Point Statistics)', '2', 'X (Point Statistics)', '2', 'Y (Point Statistics)', '2', 'Z (Point Statistics)', '2', 'N (Point Statistics)', '2', 'Time (Point Statistics)', '2'] | |
plotSelectionOverTime1Display.SeriesMarkerStyle = ['alphat (Point Statistics)', '0', 'arc_length (Point Statistics)', '0', 'epsilon (Point Statistics)', '0', 'k (Point Statistics)', '0', 'nut (Point Statistics)', '0', 'p (Point Statistics)', '0', 'T (Point Statistics)', '0', 'U (0) (Point Statistics)', '0', 'U (1) (Point Statistics)', '0', 'U (2) (Point Statistics)', '0', 'U (Magnitude) (Point Statistics)', '0', 'vtkOriginalPointIds (Point Statistics)', '0', 'vtkValidPointMask (Point Statistics)', '0', 'X (Point Statistics)', '0', 'Y (Point Statistics)', '0', 'Z (Point Statistics)', '0', 'N (Point Statistics)', '0', 'Time (Point Statistics)', '0'] | |
# update the view to ensure updated data information | |
spreadSheetView1.Update() | |
# update the view to ensure updated data information | |
quartileChartView1.Update() | |
# Properties modified on plotSelectionOverTime1Display | |
plotSelectionOverTime1Display.SeriesVisibility = [] | |
plotSelectionOverTime1Display.SeriesColor = ['alphat (Point Statistics)', '0', '0', '0', 'arc_length (Point Statistics)', '0.889998', '0.100008', '0.110002', 'epsilon (Point Statistics)', '0.220005', '0.489998', '0.719997', 'k (Point Statistics)', '0.300008', '0.689998', '0.289998', 'nut (Point Statistics)', '0.6', '0.310002', '0.639994', 'p (Point Statistics)', '1', '0.500008', '0', 'T (Point Statistics)', '0.650004', '0.340002', '0.160006', 'U (0) (Point Statistics)', '0', '0', '0', 'U (1) (Point Statistics)', '0.889998', '0.100008', '0.110002', 'U (2) (Point Statistics)', '0.220005', '0.489998', '0.719997', 'U (Magnitude) (Point Statistics)', '0.300008', '0.689998', '0.289998', 'vtkOriginalPointIds (Point Statistics)', '0.6', '0.310002', '0.639994', 'vtkValidPointMask (Point Statistics)', '1', '0.500008', '0', 'X (Point Statistics)', '0.650004', '0.340002', '0.160006', 'Y (Point Statistics)', '0', '0', '0', 'Z (Point Statistics)', '0.889998', '0.100008', '0.110002', 'N (Point Statistics)', '0.220005', '0.489998', '0.719997', 'Time (Point Statistics)', '0.300008', '0.689998', '0.289998'] | |
plotSelectionOverTime1Display.SeriesPlotCorner = ['N (Point Statistics)', '0', 'T (Point Statistics)', '0', 'Time (Point Statistics)', '0', 'U (0) (Point Statistics)', '0', 'U (1) (Point Statistics)', '0', 'U (2) (Point Statistics)', '0', 'U (Magnitude) (Point Statistics)', '0', 'X (Point Statistics)', '0', 'Y (Point Statistics)', '0', 'Z (Point Statistics)', '0', 'alphat (Point Statistics)', '0', 'arc_length (Point Statistics)', '0', 'epsilon (Point Statistics)', '0', 'k (Point Statistics)', '0', 'nut (Point Statistics)', '0', 'p (Point Statistics)', '0', 'vtkOriginalPointIds (Point Statistics)', '0', 'vtkValidPointMask (Point Statistics)', '0'] | |
plotSelectionOverTime1Display.SeriesLineStyle = ['N (Point Statistics)', '1', 'T (Point Statistics)', '1', 'Time (Point Statistics)', '1', 'U (0) (Point Statistics)', '1', 'U (1) (Point Statistics)', '1', 'U (2) (Point Statistics)', '1', 'U (Magnitude) (Point Statistics)', '1', 'X (Point Statistics)', '1', 'Y (Point Statistics)', '1', 'Z (Point Statistics)', '1', 'alphat (Point Statistics)', '1', 'arc_length (Point Statistics)', '1', 'epsilon (Point Statistics)', '1', 'k (Point Statistics)', '1', 'nut (Point Statistics)', '1', 'p (Point Statistics)', '1', 'vtkOriginalPointIds (Point Statistics)', '1', 'vtkValidPointMask (Point Statistics)', '1'] | |
plotSelectionOverTime1Display.SeriesLineThickness = ['N (Point Statistics)', '2', 'T (Point Statistics)', '2', 'Time (Point Statistics)', '2', 'U (0) (Point Statistics)', '2', 'U (1) (Point Statistics)', '2', 'U (2) (Point Statistics)', '2', 'U (Magnitude) (Point Statistics)', '2', 'X (Point Statistics)', '2', 'Y (Point Statistics)', '2', 'Z (Point Statistics)', '2', 'alphat (Point Statistics)', '2', 'arc_length (Point Statistics)', '2', 'epsilon (Point Statistics)', '2', 'k (Point Statistics)', '2', 'nut (Point Statistics)', '2', 'p (Point Statistics)', '2', 'vtkOriginalPointIds (Point Statistics)', '2', 'vtkValidPointMask (Point Statistics)', '2'] | |
plotSelectionOverTime1Display.SeriesMarkerStyle = ['N (Point Statistics)', '0', 'T (Point Statistics)', '0', 'Time (Point Statistics)', '0', 'U (0) (Point Statistics)', '0', 'U (1) (Point Statistics)', '0', 'U (2) (Point Statistics)', '0', 'U (Magnitude) (Point Statistics)', '0', 'X (Point Statistics)', '0', 'Y (Point Statistics)', '0', 'Z (Point Statistics)', '0', 'alphat (Point Statistics)', '0', 'arc_length (Point Statistics)', '0', 'epsilon (Point Statistics)', '0', 'k (Point Statistics)', '0', 'nut (Point Statistics)', '0', 'p (Point Statistics)', '0', 'vtkOriginalPointIds (Point Statistics)', '0', 'vtkValidPointMask (Point Statistics)', '0'] | |
# Properties modified on plotSelectionOverTime1Display | |
plotSelectionOverTime1Display.SeriesVisibility = ['p (Point Statistics)'] | |
# set active view | |
SetActiveView(renderView1) | |
# set active source | |
SetActiveSource(plotSelectionOverTime1) | |
#### saving camera placements for all active views | |
# current camera placement for renderView1 | |
renderView1.CameraPosition = [0.004995241295546293, 0.0985163064806481, 0.02500000037252903] | |
renderView1.CameraFocalPoint = [0.004995241295546293, 0.0, 0.02500000037252903] | |
renderView1.CameraViewUp = [1.0, 0.0, 0.0] | |
renderView1.CameraParallelScale = 0.02549789637034862 | |
#### uncomment the following to render all views | |
# RenderAllViews() | |
# alternatively, if you want to write images, you can use SaveScreenshot(...). |
Hi, did you manage to solve the problem?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
also when trying to apply the plot over line filter manually I get this warning message: