# trace generated using paraview version 5.6.0-RC2
#
# To ensure correct image size when batch processing, please search 
# for and uncomment the line `# renderView*.ViewSize = [*,*]`

#### import the simple module from the paraview
from paraview.simple import *
#### disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()

import sys

dirName                   = sys.argv[1]
zPositionInSlice          = float(sys.argv[2])
zPositionInSaveScreenShot = sys.argv[3]

# create a new 'OpenFOAMReader'
inlet_0p5foam = OpenFOAMReader(FileName=dirName+'/inlet_0p5.foam')
inlet_0p5foam.SkipZeroTime = 1
inlet_0p5foam.CaseType = 'Reconstructed Case'
inlet_0p5foam.LabelSize = '32-bit'
inlet_0p5foam.ScalarSize = '64-bit (DP)'
inlet_0p5foam.Createcelltopointfiltereddata = 1
inlet_0p5foam.Adddimensionalunitstoarraynames = 0
inlet_0p5foam.MeshRegions = ['internalMesh']
inlet_0p5foam.CellArrays = ['Q', 'T', 'T_mean', 'U', 'U_mean', 'k_mean', 'nu', 'nu_mean', 'p', 'reyTensor', 'reyTensor_mean', 'strainRate_U', 'vorticity_U', 'vorticity_U_mean']
inlet_0p5foam.PointArrays = []
inlet_0p5foam.LagrangianArrays = []
inlet_0p5foam.Cachemesh = 1
inlet_0p5foam.Decomposepolyhedra = 1
inlet_0p5foam.ListtimestepsaccordingtocontrolDict = 0
inlet_0p5foam.Lagrangianpositionswithoutextradata = 1
inlet_0p5foam.Readzones = 0
inlet_0p5foam.Copydatatocellzones = 0

# Properties modified on inlet_0p5foam
inlet_0p5foam.CellArrays = ['T_mean']

# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
# renderView1.ViewSize = [1448, 919]

# show data in view
inlet_0p5foamDisplay = Show(inlet_0p5foam, renderView1)

# trace defaults for the display properties.
inlet_0p5foamDisplay.Representation = 'Surface'
inlet_0p5foamDisplay.AmbientColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.ColorArrayName = [None, '']
inlet_0p5foamDisplay.DiffuseColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.LookupTable = None
inlet_0p5foamDisplay.MapScalars = 1
inlet_0p5foamDisplay.MultiComponentsMapping = 0
inlet_0p5foamDisplay.InterpolateScalarsBeforeMapping = 1
inlet_0p5foamDisplay.Opacity = 1.0
inlet_0p5foamDisplay.PointSize = 2.0
inlet_0p5foamDisplay.LineWidth = 1.0
inlet_0p5foamDisplay.RenderLinesAsTubes = 0
inlet_0p5foamDisplay.RenderPointsAsSpheres = 0
inlet_0p5foamDisplay.Interpolation = 'Gouraud'
inlet_0p5foamDisplay.Specular = 0.0
inlet_0p5foamDisplay.SpecularColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.SpecularPower = 100.0
inlet_0p5foamDisplay.Luminosity = 0.0
inlet_0p5foamDisplay.Ambient = 0.0
inlet_0p5foamDisplay.Diffuse = 1.0
inlet_0p5foamDisplay.EdgeColor = [0.0, 0.0, 0.5]
inlet_0p5foamDisplay.BackfaceRepresentation = 'Follow Frontface'
inlet_0p5foamDisplay.BackfaceAmbientColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.BackfaceDiffuseColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.BackfaceOpacity = 1.0
inlet_0p5foamDisplay.Position = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.Scale = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.Orientation = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.Origin = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.Pickable = 1
inlet_0p5foamDisplay.Texture = None
inlet_0p5foamDisplay.Triangulate = 0
inlet_0p5foamDisplay.UseShaderReplacements = 0
inlet_0p5foamDisplay.ShaderReplacements = ''
inlet_0p5foamDisplay.NonlinearSubdivisionLevel = 1
inlet_0p5foamDisplay.UseDataPartitions = 0
inlet_0p5foamDisplay.OSPRayUseScaleArray = 0
inlet_0p5foamDisplay.OSPRayScaleArray = 'T_mean'
inlet_0p5foamDisplay.OSPRayScaleFunction = 'PiecewiseFunction'
inlet_0p5foamDisplay.OSPRayMaterial = 'None'
inlet_0p5foamDisplay.Orient = 0
inlet_0p5foamDisplay.OrientationMode = 'Direction'
inlet_0p5foamDisplay.SelectOrientationVectors = 'None'
inlet_0p5foamDisplay.Scaling = 0
inlet_0p5foamDisplay.ScaleMode = 'No Data Scaling Off'
inlet_0p5foamDisplay.ScaleFactor = 0.015999999642372132
inlet_0p5foamDisplay.SelectScaleArray = 'None'
inlet_0p5foamDisplay.GlyphType = 'Arrow'
inlet_0p5foamDisplay.UseGlyphTable = 0
inlet_0p5foamDisplay.GlyphTableIndexArray = 'None'
inlet_0p5foamDisplay.UseCompositeGlyphTable = 0
inlet_0p5foamDisplay.UseGlyphCullingAndLOD = 0
inlet_0p5foamDisplay.LODValues = []
inlet_0p5foamDisplay.ColorByLODIndex = 0
inlet_0p5foamDisplay.GaussianRadius = 0.0007999999821186066
inlet_0p5foamDisplay.ShaderPreset = 'Sphere'
inlet_0p5foamDisplay.CustomTriangleScale = 3
inlet_0p5foamDisplay.CustomShader = ' // This custom shader code define a gaussian blur\n // Please take a look into vtkSMPointGaussianRepresentation.cxx\n // for other custom shader examples\n //VTK::Color::Impl\n   float dist2 = dot(offsetVCVSOutput.xy,offsetVCVSOutput.xy);\n   float gaussian = exp(-0.5*dist2);\n   opacity = opacity*gaussian;\n'
inlet_0p5foamDisplay.Emissive = 0
inlet_0p5foamDisplay.ScaleByArray = 0
inlet_0p5foamDisplay.SetScaleArray = ['POINTS', 'T_mean']
inlet_0p5foamDisplay.ScaleArrayComponent = ''
inlet_0p5foamDisplay.UseScaleFunction = 1
inlet_0p5foamDisplay.ScaleTransferFunction = 'PiecewiseFunction'
inlet_0p5foamDisplay.OpacityByArray = 0
inlet_0p5foamDisplay.OpacityArray = ['POINTS', 'T_mean']
inlet_0p5foamDisplay.OpacityArrayComponent = ''
inlet_0p5foamDisplay.OpacityTransferFunction = 'PiecewiseFunction'
inlet_0p5foamDisplay.DataAxesGrid = 'GridAxesRepresentation'
inlet_0p5foamDisplay.SelectionCellLabelBold = 0
inlet_0p5foamDisplay.SelectionCellLabelColor = [0.0, 1.0, 0.0]
inlet_0p5foamDisplay.SelectionCellLabelFontFamily = 'Arial'
inlet_0p5foamDisplay.SelectionCellLabelFontFile = ''
inlet_0p5foamDisplay.SelectionCellLabelFontSize = 18
inlet_0p5foamDisplay.SelectionCellLabelItalic = 0
inlet_0p5foamDisplay.SelectionCellLabelJustification = 'Left'
inlet_0p5foamDisplay.SelectionCellLabelOpacity = 1.0
inlet_0p5foamDisplay.SelectionCellLabelShadow = 0
inlet_0p5foamDisplay.SelectionPointLabelBold = 0
inlet_0p5foamDisplay.SelectionPointLabelColor = [1.0, 1.0, 0.0]
inlet_0p5foamDisplay.SelectionPointLabelFontFamily = 'Arial'
inlet_0p5foamDisplay.SelectionPointLabelFontFile = ''
inlet_0p5foamDisplay.SelectionPointLabelFontSize = 18
inlet_0p5foamDisplay.SelectionPointLabelItalic = 0
inlet_0p5foamDisplay.SelectionPointLabelJustification = 'Left'
inlet_0p5foamDisplay.SelectionPointLabelOpacity = 1.0
inlet_0p5foamDisplay.SelectionPointLabelShadow = 0
inlet_0p5foamDisplay.PolarAxes = 'PolarAxesRepresentation'
inlet_0p5foamDisplay.ScalarOpacityFunction = None
inlet_0p5foamDisplay.ScalarOpacityUnitDistance = 0.0006064726018038802
inlet_0p5foamDisplay.SelectMapper = 'Projected tetra'
inlet_0p5foamDisplay.SamplingDimensions = [128, 128, 128]
inlet_0p5foamDisplay.UseFloatingPointFrameBuffer = 1

# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction'
inlet_0p5foamDisplay.OSPRayScaleFunction.Points = [0.0, 0.0, 0.5, 0.0, 2.5, 1.0, 0.5, 0.0]
inlet_0p5foamDisplay.OSPRayScaleFunction.UseLogScale = 0

# init the 'Arrow' selected for 'GlyphType'
inlet_0p5foamDisplay.GlyphType.TipResolution = 6
inlet_0p5foamDisplay.GlyphType.TipRadius = 0.1
inlet_0p5foamDisplay.GlyphType.TipLength = 0.35
inlet_0p5foamDisplay.GlyphType.ShaftResolution = 6
inlet_0p5foamDisplay.GlyphType.ShaftRadius = 0.03
inlet_0p5foamDisplay.GlyphType.Invert = 0

# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
inlet_0p5foamDisplay.ScaleTransferFunction.Points = [0.0, 0.0, 0.5, 0.0, 2.5, 1.0, 0.5, 0.0]
inlet_0p5foamDisplay.ScaleTransferFunction.UseLogScale = 0

# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
inlet_0p5foamDisplay.OpacityTransferFunction.Points = [0.0, 0.0, 0.5, 0.0, 2.5, 1.0, 0.5, 0.0]
inlet_0p5foamDisplay.OpacityTransferFunction.UseLogScale = 0

# init the 'GridAxesRepresentation' selected for 'DataAxesGrid'
inlet_0p5foamDisplay.DataAxesGrid.XTitle = 'X Axis'
inlet_0p5foamDisplay.DataAxesGrid.YTitle = 'Y Axis'
inlet_0p5foamDisplay.DataAxesGrid.ZTitle = 'Z Axis'
inlet_0p5foamDisplay.DataAxesGrid.XTitleColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.DataAxesGrid.XTitleFontFamily = 'Arial'
inlet_0p5foamDisplay.DataAxesGrid.XTitleFontFile = ''
inlet_0p5foamDisplay.DataAxesGrid.XTitleBold = 0
inlet_0p5foamDisplay.DataAxesGrid.XTitleItalic = 0
inlet_0p5foamDisplay.DataAxesGrid.XTitleFontSize = 12
inlet_0p5foamDisplay.DataAxesGrid.XTitleShadow = 0
inlet_0p5foamDisplay.DataAxesGrid.XTitleOpacity = 1.0
inlet_0p5foamDisplay.DataAxesGrid.YTitleColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.DataAxesGrid.YTitleFontFamily = 'Arial'
inlet_0p5foamDisplay.DataAxesGrid.YTitleFontFile = ''
inlet_0p5foamDisplay.DataAxesGrid.YTitleBold = 0
inlet_0p5foamDisplay.DataAxesGrid.YTitleItalic = 0
inlet_0p5foamDisplay.DataAxesGrid.YTitleFontSize = 12
inlet_0p5foamDisplay.DataAxesGrid.YTitleShadow = 0
inlet_0p5foamDisplay.DataAxesGrid.YTitleOpacity = 1.0
inlet_0p5foamDisplay.DataAxesGrid.ZTitleColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.DataAxesGrid.ZTitleFontFamily = 'Arial'
inlet_0p5foamDisplay.DataAxesGrid.ZTitleFontFile = ''
inlet_0p5foamDisplay.DataAxesGrid.ZTitleBold = 0
inlet_0p5foamDisplay.DataAxesGrid.ZTitleItalic = 0
inlet_0p5foamDisplay.DataAxesGrid.ZTitleFontSize = 12
inlet_0p5foamDisplay.DataAxesGrid.ZTitleShadow = 0
inlet_0p5foamDisplay.DataAxesGrid.ZTitleOpacity = 1.0
inlet_0p5foamDisplay.DataAxesGrid.FacesToRender = 63
inlet_0p5foamDisplay.DataAxesGrid.CullBackface = 0
inlet_0p5foamDisplay.DataAxesGrid.CullFrontface = 1
inlet_0p5foamDisplay.DataAxesGrid.GridColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.DataAxesGrid.ShowGrid = 0
inlet_0p5foamDisplay.DataAxesGrid.ShowEdges = 1
inlet_0p5foamDisplay.DataAxesGrid.ShowTicks = 1
inlet_0p5foamDisplay.DataAxesGrid.LabelUniqueEdgesOnly = 1
inlet_0p5foamDisplay.DataAxesGrid.AxesToLabel = 63
inlet_0p5foamDisplay.DataAxesGrid.XLabelColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.DataAxesGrid.XLabelFontFamily = 'Arial'
inlet_0p5foamDisplay.DataAxesGrid.XLabelFontFile = ''
inlet_0p5foamDisplay.DataAxesGrid.XLabelBold = 0
inlet_0p5foamDisplay.DataAxesGrid.XLabelItalic = 0
inlet_0p5foamDisplay.DataAxesGrid.XLabelFontSize = 12
inlet_0p5foamDisplay.DataAxesGrid.XLabelShadow = 0
inlet_0p5foamDisplay.DataAxesGrid.XLabelOpacity = 1.0
inlet_0p5foamDisplay.DataAxesGrid.YLabelColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.DataAxesGrid.YLabelFontFamily = 'Arial'
inlet_0p5foamDisplay.DataAxesGrid.YLabelFontFile = ''
inlet_0p5foamDisplay.DataAxesGrid.YLabelBold = 0
inlet_0p5foamDisplay.DataAxesGrid.YLabelItalic = 0
inlet_0p5foamDisplay.DataAxesGrid.YLabelFontSize = 12
inlet_0p5foamDisplay.DataAxesGrid.YLabelShadow = 0
inlet_0p5foamDisplay.DataAxesGrid.YLabelOpacity = 1.0
inlet_0p5foamDisplay.DataAxesGrid.ZLabelColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.DataAxesGrid.ZLabelFontFamily = 'Arial'
inlet_0p5foamDisplay.DataAxesGrid.ZLabelFontFile = ''
inlet_0p5foamDisplay.DataAxesGrid.ZLabelBold = 0
inlet_0p5foamDisplay.DataAxesGrid.ZLabelItalic = 0
inlet_0p5foamDisplay.DataAxesGrid.ZLabelFontSize = 12
inlet_0p5foamDisplay.DataAxesGrid.ZLabelShadow = 0
inlet_0p5foamDisplay.DataAxesGrid.ZLabelOpacity = 1.0
inlet_0p5foamDisplay.DataAxesGrid.XAxisNotation = 'Mixed'
inlet_0p5foamDisplay.DataAxesGrid.XAxisPrecision = 2
inlet_0p5foamDisplay.DataAxesGrid.XAxisUseCustomLabels = 0
inlet_0p5foamDisplay.DataAxesGrid.XAxisLabels = []
inlet_0p5foamDisplay.DataAxesGrid.YAxisNotation = 'Mixed'
inlet_0p5foamDisplay.DataAxesGrid.YAxisPrecision = 2
inlet_0p5foamDisplay.DataAxesGrid.YAxisUseCustomLabels = 0
inlet_0p5foamDisplay.DataAxesGrid.YAxisLabels = []
inlet_0p5foamDisplay.DataAxesGrid.ZAxisNotation = 'Mixed'
inlet_0p5foamDisplay.DataAxesGrid.ZAxisPrecision = 2
inlet_0p5foamDisplay.DataAxesGrid.ZAxisUseCustomLabels = 0
inlet_0p5foamDisplay.DataAxesGrid.ZAxisLabels = []

# init the 'PolarAxesRepresentation' selected for 'PolarAxes'
inlet_0p5foamDisplay.PolarAxes.Visibility = 0
inlet_0p5foamDisplay.PolarAxes.Translation = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.PolarAxes.Scale = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.PolarAxes.Orientation = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.PolarAxes.EnableCustomBounds = [0, 0, 0]
inlet_0p5foamDisplay.PolarAxes.CustomBounds = [0.0, 1.0, 0.0, 1.0, 0.0, 1.0]
inlet_0p5foamDisplay.PolarAxes.EnableCustomRange = 0
inlet_0p5foamDisplay.PolarAxes.CustomRange = [0.0, 1.0]
inlet_0p5foamDisplay.PolarAxes.PolarAxisVisibility = 1
inlet_0p5foamDisplay.PolarAxes.RadialAxesVisibility = 1
inlet_0p5foamDisplay.PolarAxes.DrawRadialGridlines = 1
inlet_0p5foamDisplay.PolarAxes.PolarArcsVisibility = 1
inlet_0p5foamDisplay.PolarAxes.DrawPolarArcsGridlines = 1
inlet_0p5foamDisplay.PolarAxes.NumberOfRadialAxes = 0
inlet_0p5foamDisplay.PolarAxes.AutoSubdividePolarAxis = 1
inlet_0p5foamDisplay.PolarAxes.NumberOfPolarAxis = 0
inlet_0p5foamDisplay.PolarAxes.MinimumRadius = 0.0
inlet_0p5foamDisplay.PolarAxes.MinimumAngle = 0.0
inlet_0p5foamDisplay.PolarAxes.MaximumAngle = 90.0
inlet_0p5foamDisplay.PolarAxes.RadialAxesOriginToPolarAxis = 1
inlet_0p5foamDisplay.PolarAxes.Ratio = 1.0
inlet_0p5foamDisplay.PolarAxes.PolarAxisColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.PolarAxes.PolarArcsColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.PolarAxes.SecondaryPolarArcsColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.PolarAxes.SecondaryRadialAxesColor = [1.0, 1.0, 1.0]
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleVisibility = 1
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitle = 'Radial Distance'
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleLocation = 'Bottom'
inlet_0p5foamDisplay.PolarAxes.PolarLabelVisibility = 1
inlet_0p5foamDisplay.PolarAxes.PolarLabelFormat = '%-#6.3g'
inlet_0p5foamDisplay.PolarAxes.PolarLabelExponentLocation = 'Labels'
inlet_0p5foamDisplay.PolarAxes.RadialLabelVisibility = 1
inlet_0p5foamDisplay.PolarAxes.RadialLabelFormat = '%-#3.1f'
inlet_0p5foamDisplay.PolarAxes.RadialLabelLocation = 'Bottom'
inlet_0p5foamDisplay.PolarAxes.RadialUnitsVisibility = 1
inlet_0p5foamDisplay.PolarAxes.ScreenSize = 10.0
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleOpacity = 1.0
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleFontFamily = 'Arial'
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleFontFile = ''
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleBold = 0
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleItalic = 0
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleShadow = 0
inlet_0p5foamDisplay.PolarAxes.PolarAxisTitleFontSize = 12
inlet_0p5foamDisplay.PolarAxes.PolarAxisLabelColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.PolarAxes.PolarAxisLabelOpacity = 1.0
inlet_0p5foamDisplay.PolarAxes.PolarAxisLabelFontFamily = 'Arial'
inlet_0p5foamDisplay.PolarAxes.PolarAxisLabelFontFile = ''
inlet_0p5foamDisplay.PolarAxes.PolarAxisLabelBold = 0
inlet_0p5foamDisplay.PolarAxes.PolarAxisLabelItalic = 0
inlet_0p5foamDisplay.PolarAxes.PolarAxisLabelShadow = 0
inlet_0p5foamDisplay.PolarAxes.PolarAxisLabelFontSize = 12
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTextColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTextOpacity = 1.0
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTextFontFamily = 'Arial'
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTextFontFile = ''
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTextBold = 0
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTextItalic = 0
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTextShadow = 0
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTextFontSize = 12
inlet_0p5foamDisplay.PolarAxes.SecondaryRadialAxesTextColor = [0.0, 0.0, 0.0]
inlet_0p5foamDisplay.PolarAxes.SecondaryRadialAxesTextOpacity = 1.0
inlet_0p5foamDisplay.PolarAxes.SecondaryRadialAxesTextFontFamily = 'Arial'
inlet_0p5foamDisplay.PolarAxes.SecondaryRadialAxesTextFontFile = ''
inlet_0p5foamDisplay.PolarAxes.SecondaryRadialAxesTextBold = 0
inlet_0p5foamDisplay.PolarAxes.SecondaryRadialAxesTextItalic = 0
inlet_0p5foamDisplay.PolarAxes.SecondaryRadialAxesTextShadow = 0
inlet_0p5foamDisplay.PolarAxes.SecondaryRadialAxesTextFontSize = 12
inlet_0p5foamDisplay.PolarAxes.EnableDistanceLOD = 1
inlet_0p5foamDisplay.PolarAxes.DistanceLODThreshold = 0.7
inlet_0p5foamDisplay.PolarAxes.EnableViewAngleLOD = 1
inlet_0p5foamDisplay.PolarAxes.ViewAngleLODThreshold = 0.7
inlet_0p5foamDisplay.PolarAxes.SmallestVisiblePolarAngle = 0.5
inlet_0p5foamDisplay.PolarAxes.PolarTicksVisibility = 1
inlet_0p5foamDisplay.PolarAxes.ArcTicksOriginToPolarAxis = 1
inlet_0p5foamDisplay.PolarAxes.TickLocation = 'Both'
inlet_0p5foamDisplay.PolarAxes.AxisTickVisibility = 1
inlet_0p5foamDisplay.PolarAxes.AxisMinorTickVisibility = 0
inlet_0p5foamDisplay.PolarAxes.ArcTickVisibility = 1
inlet_0p5foamDisplay.PolarAxes.ArcMinorTickVisibility = 0
inlet_0p5foamDisplay.PolarAxes.DeltaAngleMajor = 10.0
inlet_0p5foamDisplay.PolarAxes.DeltaAngleMinor = 5.0
inlet_0p5foamDisplay.PolarAxes.PolarAxisMajorTickSize = 0.0
inlet_0p5foamDisplay.PolarAxes.PolarAxisTickRatioSize = 0.3
inlet_0p5foamDisplay.PolarAxes.PolarAxisMajorTickThickness = 1.0
inlet_0p5foamDisplay.PolarAxes.PolarAxisTickRatioThickness = 0.5
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisMajorTickSize = 0.0
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTickRatioSize = 0.3
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisMajorTickThickness = 1.0
inlet_0p5foamDisplay.PolarAxes.LastRadialAxisTickRatioThickness = 0.5
inlet_0p5foamDisplay.PolarAxes.ArcMajorTickSize = 0.0
inlet_0p5foamDisplay.PolarAxes.ArcTickRatioSize = 0.3
inlet_0p5foamDisplay.PolarAxes.ArcMajorTickThickness = 1.0
inlet_0p5foamDisplay.PolarAxes.ArcTickRatioThickness = 0.5
inlet_0p5foamDisplay.PolarAxes.Use2DMode = 0
inlet_0p5foamDisplay.PolarAxes.UseLogAxis = 0

# reset view to fit data
renderView1.ResetCamera()

# get the material library
materialLibrary1 = GetMaterialLibrary()

# update the view to ensure updated data information
renderView1.Update()

# set scalar coloring
ColorBy(inlet_0p5foamDisplay, ('POINTS', 'T_mean'))

# rescale color and/or opacity maps used to include current data range
inlet_0p5foamDisplay.RescaleTransferFunctionToDataRange(True, False)

# show color bar/color legend
inlet_0p5foamDisplay.SetScalarBarVisibility(renderView1, True)

# get color transfer function/color map for 'T_mean'
t_meanLUT = GetColorTransferFunction('T_mean')
t_meanLUT.AutomaticRescaleRangeMode = "Grow and update on 'Apply'"
t_meanLUT.InterpretValuesAsCategories = 0
t_meanLUT.AnnotationsInitialized = 0
t_meanLUT.ShowCategoricalColorsinDataRangeOnly = 0
t_meanLUT.RescaleOnVisibilityChange = 0
t_meanLUT.EnableOpacityMapping = 0
t_meanLUT.RGBPoints = [-0.0481652170419693, 0.231373, 0.298039, 0.752941, 0.48919790238142014, 0.865003, 0.865003, 0.865003, 1.0265610218048096, 0.705882, 0.0156863, 0.14902]
t_meanLUT.UseLogScale = 0
t_meanLUT.ColorSpace = 'Diverging'
t_meanLUT.UseBelowRangeColor = 0
t_meanLUT.BelowRangeColor = [0.0, 0.0, 0.0]
t_meanLUT.UseAboveRangeColor = 0
t_meanLUT.AboveRangeColor = [0.5, 0.5, 0.5]
t_meanLUT.NanColor = [1.0, 1.0, 0.0]
t_meanLUT.NanOpacity = 1.0
t_meanLUT.Discretize = 1
t_meanLUT.NumberOfTableValues = 256
t_meanLUT.ScalarRangeInitialized = 1.0
t_meanLUT.HSVWrap = 0
t_meanLUT.VectorComponent = 0
t_meanLUT.VectorMode = 'Magnitude'
t_meanLUT.AllowDuplicateScalars = 1
t_meanLUT.Annotations = []
t_meanLUT.ActiveAnnotatedValues = []
t_meanLUT.IndexedColors = []
t_meanLUT.IndexedOpacities = []

# get opacity transfer function/opacity map for 'T_mean'
t_meanPWF = GetOpacityTransferFunction('T_mean')
t_meanPWF.Points = [-0.0481652170419693, 0.0, 0.5, 0.0, 1.0265610218048096, 1.0, 0.5, 0.0]
t_meanPWF.AllowDuplicateScalars = 1
t_meanPWF.UseLogScale = 0
t_meanPWF.ScalarRangeInitialized = 1

# create a new 'Slice'
slice1 = Slice(Input=inlet_0p5foam)
slice1.SliceType = 'Plane'
slice1.Crinkleslice = 0
slice1.Triangulatetheslice = 1
slice1.SliceOffsetValues = [0.0]

# init the 'Plane' selected for 'SliceType'
slice1.SliceType.Origin = [0.0, -0.037999999010935426, zPositionInSlice]
slice1.SliceType.Normal = [1.0, 0.0, 0.0]
slice1.SliceType.Offset = 0.0

# toggle 3D widget visibility (only when running from the GUI)
Hide3DWidgets(proxy=slice1.SliceType)

# Properties modified on slice1.SliceType
slice1.SliceType.Normal = [0.0, 0.0, 1.0]

# Properties modified on slice1.SliceType
slice1.SliceType.Normal = [0.0, 0.0, 1.0]

# show data in view
slice1Display = Show(slice1, renderView1)

# trace defaults for the display properties.
slice1Display.Representation = 'Surface'
slice1Display.AmbientColor = [1.0, 1.0, 1.0]
slice1Display.ColorArrayName = ['POINTS', 'T_mean']
slice1Display.DiffuseColor = [1.0, 1.0, 1.0]
slice1Display.LookupTable = t_meanLUT
slice1Display.MapScalars = 1
slice1Display.MultiComponentsMapping = 0
slice1Display.InterpolateScalarsBeforeMapping = 1
slice1Display.Opacity = 1.0
slice1Display.PointSize = 2.0
slice1Display.LineWidth = 1.0
slice1Display.RenderLinesAsTubes = 0
slice1Display.RenderPointsAsSpheres = 0
slice1Display.Interpolation = 'Gouraud'
slice1Display.Specular = 0.0
slice1Display.SpecularColor = [1.0, 1.0, 1.0]
slice1Display.SpecularPower = 100.0
slice1Display.Luminosity = 0.0
slice1Display.Ambient = 0.0
slice1Display.Diffuse = 1.0
slice1Display.EdgeColor = [0.0, 0.0, 0.5]
slice1Display.BackfaceRepresentation = 'Follow Frontface'
slice1Display.BackfaceAmbientColor = [1.0, 1.0, 1.0]
slice1Display.BackfaceDiffuseColor = [1.0, 1.0, 1.0]
slice1Display.BackfaceOpacity = 1.0
slice1Display.Position = [0.0, 0.0, 0.0]
slice1Display.Scale = [1.0, 1.0, 1.0]
slice1Display.Orientation = [0.0, 0.0, 0.0]
slice1Display.Origin = [0.0, 0.0, 0.0]
slice1Display.Pickable = 1
slice1Display.Texture = None
slice1Display.Triangulate = 0
slice1Display.UseShaderReplacements = 0
slice1Display.ShaderReplacements = ''
slice1Display.NonlinearSubdivisionLevel = 1
slice1Display.UseDataPartitions = 0
slice1Display.OSPRayUseScaleArray = 0
slice1Display.OSPRayScaleArray = 'T_mean'
slice1Display.OSPRayScaleFunction = 'PiecewiseFunction'
slice1Display.OSPRayMaterial = 'None'
slice1Display.Orient = 0
slice1Display.OrientationMode = 'Direction'
slice1Display.SelectOrientationVectors = 'None'
slice1Display.Scaling = 0
slice1Display.ScaleMode = 'No Data Scaling Off'
slice1Display.ScaleFactor = 0.015999999642372132
slice1Display.SelectScaleArray = 'None'
slice1Display.GlyphType = 'Arrow'
slice1Display.UseGlyphTable = 0
slice1Display.GlyphTableIndexArray = 'None'
slice1Display.UseCompositeGlyphTable = 0
slice1Display.UseGlyphCullingAndLOD = 0
slice1Display.LODValues = []
slice1Display.ColorByLODIndex = 0
slice1Display.GaussianRadius = 0.0007999999821186066
slice1Display.ShaderPreset = 'Sphere'
slice1Display.CustomTriangleScale = 3
slice1Display.CustomShader = ' // This custom shader code define a gaussian blur\n // Please take a look into vtkSMPointGaussianRepresentation.cxx\n // for other custom shader examples\n //VTK::Color::Impl\n   float dist2 = dot(offsetVCVSOutput.xy,offsetVCVSOutput.xy);\n   float gaussian = exp(-0.5*dist2);\n   opacity = opacity*gaussian;\n'
slice1Display.Emissive = 0
slice1Display.ScaleByArray = 0
slice1Display.SetScaleArray = ['POINTS', 'T_mean']
slice1Display.ScaleArrayComponent = ''
slice1Display.UseScaleFunction = 1
slice1Display.ScaleTransferFunction = 'PiecewiseFunction'
slice1Display.OpacityByArray = 0
slice1Display.OpacityArray = ['POINTS', 'T_mean']
slice1Display.OpacityArrayComponent = ''
slice1Display.OpacityTransferFunction = 'PiecewiseFunction'
slice1Display.DataAxesGrid = 'GridAxesRepresentation'
slice1Display.SelectionCellLabelBold = 0
slice1Display.SelectionCellLabelColor = [0.0, 1.0, 0.0]
slice1Display.SelectionCellLabelFontFamily = 'Arial'
slice1Display.SelectionCellLabelFontFile = ''
slice1Display.SelectionCellLabelFontSize = 18
slice1Display.SelectionCellLabelItalic = 0
slice1Display.SelectionCellLabelJustification = 'Left'
slice1Display.SelectionCellLabelOpacity = 1.0
slice1Display.SelectionCellLabelShadow = 0
slice1Display.SelectionPointLabelBold = 0
slice1Display.SelectionPointLabelColor = [1.0, 1.0, 0.0]
slice1Display.SelectionPointLabelFontFamily = 'Arial'
slice1Display.SelectionPointLabelFontFile = ''
slice1Display.SelectionPointLabelFontSize = 18
slice1Display.SelectionPointLabelItalic = 0
slice1Display.SelectionPointLabelJustification = 'Left'
slice1Display.SelectionPointLabelOpacity = 1.0
slice1Display.SelectionPointLabelShadow = 0
slice1Display.PolarAxes = 'PolarAxesRepresentation'

# init the 'PiecewiseFunction' selected for 'OSPRayScaleFunction'
slice1Display.OSPRayScaleFunction.Points = [0.0, 0.0, 0.5, 0.0, 2.5, 1.0, 0.5, 0.0]
slice1Display.OSPRayScaleFunction.UseLogScale = 0

# init the 'Arrow' selected for 'GlyphType'
slice1Display.GlyphType.TipResolution = 6
slice1Display.GlyphType.TipRadius = 0.1
slice1Display.GlyphType.TipLength = 0.35
slice1Display.GlyphType.ShaftResolution = 6
slice1Display.GlyphType.ShaftRadius = 0.03
slice1Display.GlyphType.Invert = 0

# init the 'PiecewiseFunction' selected for 'ScaleTransferFunction'
slice1Display.ScaleTransferFunction.Points = [0.0, 0.0, 0.5, 0.0, 2.5, 1.0, 0.5, 0.0]
slice1Display.ScaleTransferFunction.UseLogScale = 0

# init the 'PiecewiseFunction' selected for 'OpacityTransferFunction'
slice1Display.OpacityTransferFunction.Points = [0.0, 0.0, 0.5, 0.0, 2.5, 1.0, 0.5, 0.0]
slice1Display.OpacityTransferFunction.UseLogScale = 0

# init the 'GridAxesRepresentation' selected for 'DataAxesGrid'
slice1Display.DataAxesGrid.XTitle = 'X Axis'
slice1Display.DataAxesGrid.YTitle = 'Y Axis'
slice1Display.DataAxesGrid.ZTitle = 'Z Axis'
slice1Display.DataAxesGrid.XTitleColor = [0.0, 0.0, 0.0]
slice1Display.DataAxesGrid.XTitleFontFamily = 'Arial'
slice1Display.DataAxesGrid.XTitleFontFile = ''
slice1Display.DataAxesGrid.XTitleBold = 0
slice1Display.DataAxesGrid.XTitleItalic = 0
slice1Display.DataAxesGrid.XTitleFontSize = 12
slice1Display.DataAxesGrid.XTitleShadow = 0
slice1Display.DataAxesGrid.XTitleOpacity = 1.0
slice1Display.DataAxesGrid.YTitleColor = [0.0, 0.0, 0.0]
slice1Display.DataAxesGrid.YTitleFontFamily = 'Arial'
slice1Display.DataAxesGrid.YTitleFontFile = ''
slice1Display.DataAxesGrid.YTitleBold = 0
slice1Display.DataAxesGrid.YTitleItalic = 0
slice1Display.DataAxesGrid.YTitleFontSize = 12
slice1Display.DataAxesGrid.YTitleShadow = 0
slice1Display.DataAxesGrid.YTitleOpacity = 1.0
slice1Display.DataAxesGrid.ZTitleColor = [0.0, 0.0, 0.0]
slice1Display.DataAxesGrid.ZTitleFontFamily = 'Arial'
slice1Display.DataAxesGrid.ZTitleFontFile = ''
slice1Display.DataAxesGrid.ZTitleBold = 0
slice1Display.DataAxesGrid.ZTitleItalic = 0
slice1Display.DataAxesGrid.ZTitleFontSize = 12
slice1Display.DataAxesGrid.ZTitleShadow = 0
slice1Display.DataAxesGrid.ZTitleOpacity = 1.0
slice1Display.DataAxesGrid.FacesToRender = 63
slice1Display.DataAxesGrid.CullBackface = 0
slice1Display.DataAxesGrid.CullFrontface = 1
slice1Display.DataAxesGrid.GridColor = [1.0, 1.0, 1.0]
slice1Display.DataAxesGrid.ShowGrid = 0
slice1Display.DataAxesGrid.ShowEdges = 1
slice1Display.DataAxesGrid.ShowTicks = 1
slice1Display.DataAxesGrid.LabelUniqueEdgesOnly = 1
slice1Display.DataAxesGrid.AxesToLabel = 63
slice1Display.DataAxesGrid.XLabelColor = [0.0, 0.0, 0.0]
slice1Display.DataAxesGrid.XLabelFontFamily = 'Arial'
slice1Display.DataAxesGrid.XLabelFontFile = ''
slice1Display.DataAxesGrid.XLabelBold = 0
slice1Display.DataAxesGrid.XLabelItalic = 0
slice1Display.DataAxesGrid.XLabelFontSize = 12
slice1Display.DataAxesGrid.XLabelShadow = 0
slice1Display.DataAxesGrid.XLabelOpacity = 1.0
slice1Display.DataAxesGrid.YLabelColor = [0.0, 0.0, 0.0]
slice1Display.DataAxesGrid.YLabelFontFamily = 'Arial'
slice1Display.DataAxesGrid.YLabelFontFile = ''
slice1Display.DataAxesGrid.YLabelBold = 0
slice1Display.DataAxesGrid.YLabelItalic = 0
slice1Display.DataAxesGrid.YLabelFontSize = 12
slice1Display.DataAxesGrid.YLabelShadow = 0
slice1Display.DataAxesGrid.YLabelOpacity = 1.0
slice1Display.DataAxesGrid.ZLabelColor = [0.0, 0.0, 0.0]
slice1Display.DataAxesGrid.ZLabelFontFamily = 'Arial'
slice1Display.DataAxesGrid.ZLabelFontFile = ''
slice1Display.DataAxesGrid.ZLabelBold = 0
slice1Display.DataAxesGrid.ZLabelItalic = 0
slice1Display.DataAxesGrid.ZLabelFontSize = 12
slice1Display.DataAxesGrid.ZLabelShadow = 0
slice1Display.DataAxesGrid.ZLabelOpacity = 1.0
slice1Display.DataAxesGrid.XAxisNotation = 'Mixed'
slice1Display.DataAxesGrid.XAxisPrecision = 2
slice1Display.DataAxesGrid.XAxisUseCustomLabels = 0
slice1Display.DataAxesGrid.XAxisLabels = []
slice1Display.DataAxesGrid.YAxisNotation = 'Mixed'
slice1Display.DataAxesGrid.YAxisPrecision = 2
slice1Display.DataAxesGrid.YAxisUseCustomLabels = 0
slice1Display.DataAxesGrid.YAxisLabels = []
slice1Display.DataAxesGrid.ZAxisNotation = 'Mixed'
slice1Display.DataAxesGrid.ZAxisPrecision = 2
slice1Display.DataAxesGrid.ZAxisUseCustomLabels = 0
slice1Display.DataAxesGrid.ZAxisLabels = []

# init the 'PolarAxesRepresentation' selected for 'PolarAxes'
slice1Display.PolarAxes.Visibility = 0
slice1Display.PolarAxes.Translation = [0.0, 0.0, 0.0]
slice1Display.PolarAxes.Scale = [1.0, 1.0, 1.0]
slice1Display.PolarAxes.Orientation = [0.0, 0.0, 0.0]
slice1Display.PolarAxes.EnableCustomBounds = [0, 0, 0]
slice1Display.PolarAxes.CustomBounds = [0.0, 1.0, 0.0, 1.0, 0.0, 1.0]
slice1Display.PolarAxes.EnableCustomRange = 0
slice1Display.PolarAxes.CustomRange = [0.0, 1.0]
slice1Display.PolarAxes.PolarAxisVisibility = 1
slice1Display.PolarAxes.RadialAxesVisibility = 1
slice1Display.PolarAxes.DrawRadialGridlines = 1
slice1Display.PolarAxes.PolarArcsVisibility = 1
slice1Display.PolarAxes.DrawPolarArcsGridlines = 1
slice1Display.PolarAxes.NumberOfRadialAxes = 0
slice1Display.PolarAxes.AutoSubdividePolarAxis = 1
slice1Display.PolarAxes.NumberOfPolarAxis = 0
slice1Display.PolarAxes.MinimumRadius = 0.0
slice1Display.PolarAxes.MinimumAngle = 0.0
slice1Display.PolarAxes.MaximumAngle = 90.0
slice1Display.PolarAxes.RadialAxesOriginToPolarAxis = 1
slice1Display.PolarAxes.Ratio = 1.0
slice1Display.PolarAxes.PolarAxisColor = [1.0, 1.0, 1.0]
slice1Display.PolarAxes.PolarArcsColor = [1.0, 1.0, 1.0]
slice1Display.PolarAxes.LastRadialAxisColor = [1.0, 1.0, 1.0]
slice1Display.PolarAxes.SecondaryPolarArcsColor = [1.0, 1.0, 1.0]
slice1Display.PolarAxes.SecondaryRadialAxesColor = [1.0, 1.0, 1.0]
slice1Display.PolarAxes.PolarAxisTitleVisibility = 1
slice1Display.PolarAxes.PolarAxisTitle = 'Radial Distance'
slice1Display.PolarAxes.PolarAxisTitleLocation = 'Bottom'
slice1Display.PolarAxes.PolarLabelVisibility = 1
slice1Display.PolarAxes.PolarLabelFormat = '%-#6.3g'
slice1Display.PolarAxes.PolarLabelExponentLocation = 'Labels'
slice1Display.PolarAxes.RadialLabelVisibility = 1
slice1Display.PolarAxes.RadialLabelFormat = '%-#3.1f'
slice1Display.PolarAxes.RadialLabelLocation = 'Bottom'
slice1Display.PolarAxes.RadialUnitsVisibility = 1
slice1Display.PolarAxes.ScreenSize = 10.0
slice1Display.PolarAxes.PolarAxisTitleColor = [0.0, 0.0, 0.0]
slice1Display.PolarAxes.PolarAxisTitleOpacity = 1.0
slice1Display.PolarAxes.PolarAxisTitleFontFamily = 'Arial'
slice1Display.PolarAxes.PolarAxisTitleFontFile = ''
slice1Display.PolarAxes.PolarAxisTitleBold = 0
slice1Display.PolarAxes.PolarAxisTitleItalic = 0
slice1Display.PolarAxes.PolarAxisTitleShadow = 0
slice1Display.PolarAxes.PolarAxisTitleFontSize = 12
slice1Display.PolarAxes.PolarAxisLabelColor = [0.0, 0.0, 0.0]
slice1Display.PolarAxes.PolarAxisLabelOpacity = 1.0
slice1Display.PolarAxes.PolarAxisLabelFontFamily = 'Arial'
slice1Display.PolarAxes.PolarAxisLabelFontFile = ''
slice1Display.PolarAxes.PolarAxisLabelBold = 0
slice1Display.PolarAxes.PolarAxisLabelItalic = 0
slice1Display.PolarAxes.PolarAxisLabelShadow = 0
slice1Display.PolarAxes.PolarAxisLabelFontSize = 12
slice1Display.PolarAxes.LastRadialAxisTextColor = [0.0, 0.0, 0.0]
slice1Display.PolarAxes.LastRadialAxisTextOpacity = 1.0
slice1Display.PolarAxes.LastRadialAxisTextFontFamily = 'Arial'
slice1Display.PolarAxes.LastRadialAxisTextFontFile = ''
slice1Display.PolarAxes.LastRadialAxisTextBold = 0
slice1Display.PolarAxes.LastRadialAxisTextItalic = 0
slice1Display.PolarAxes.LastRadialAxisTextShadow = 0
slice1Display.PolarAxes.LastRadialAxisTextFontSize = 12
slice1Display.PolarAxes.SecondaryRadialAxesTextColor = [0.0, 0.0, 0.0]
slice1Display.PolarAxes.SecondaryRadialAxesTextOpacity = 1.0
slice1Display.PolarAxes.SecondaryRadialAxesTextFontFamily = 'Arial'
slice1Display.PolarAxes.SecondaryRadialAxesTextFontFile = ''
slice1Display.PolarAxes.SecondaryRadialAxesTextBold = 0
slice1Display.PolarAxes.SecondaryRadialAxesTextItalic = 0
slice1Display.PolarAxes.SecondaryRadialAxesTextShadow = 0
slice1Display.PolarAxes.SecondaryRadialAxesTextFontSize = 12
slice1Display.PolarAxes.EnableDistanceLOD = 1
slice1Display.PolarAxes.DistanceLODThreshold = 0.7
slice1Display.PolarAxes.EnableViewAngleLOD = 1
slice1Display.PolarAxes.ViewAngleLODThreshold = 0.7
slice1Display.PolarAxes.SmallestVisiblePolarAngle = 0.5
slice1Display.PolarAxes.PolarTicksVisibility = 1
slice1Display.PolarAxes.ArcTicksOriginToPolarAxis = 1
slice1Display.PolarAxes.TickLocation = 'Both'
slice1Display.PolarAxes.AxisTickVisibility = 1
slice1Display.PolarAxes.AxisMinorTickVisibility = 0
slice1Display.PolarAxes.ArcTickVisibility = 1
slice1Display.PolarAxes.ArcMinorTickVisibility = 0
slice1Display.PolarAxes.DeltaAngleMajor = 10.0
slice1Display.PolarAxes.DeltaAngleMinor = 5.0
slice1Display.PolarAxes.PolarAxisMajorTickSize = 0.0
slice1Display.PolarAxes.PolarAxisTickRatioSize = 0.3
slice1Display.PolarAxes.PolarAxisMajorTickThickness = 1.0
slice1Display.PolarAxes.PolarAxisTickRatioThickness = 0.5
slice1Display.PolarAxes.LastRadialAxisMajorTickSize = 0.0
slice1Display.PolarAxes.LastRadialAxisTickRatioSize = 0.3
slice1Display.PolarAxes.LastRadialAxisMajorTickThickness = 1.0
slice1Display.PolarAxes.LastRadialAxisTickRatioThickness = 0.5
slice1Display.PolarAxes.ArcMajorTickSize = 0.0
slice1Display.PolarAxes.ArcTickRatioSize = 0.3
slice1Display.PolarAxes.ArcMajorTickThickness = 1.0
slice1Display.PolarAxes.ArcTickRatioThickness = 0.5
slice1Display.PolarAxes.Use2DMode = 0
slice1Display.PolarAxes.UseLogAxis = 0

# hide data in view
Hide(inlet_0p5foam, renderView1)

# show color bar/color legend
slice1Display.SetScalarBarVisibility(renderView1, True)

# update the view to ensure updated data information
renderView1.Update()

# reset view to fit data
renderView1.ResetCamera()

# get color legend/bar for t_meanLUT in view renderView1
t_meanLUTColorBar = GetScalarBar(t_meanLUT, renderView1)
t_meanLUTColorBar.AutoOrient = 1
t_meanLUTColorBar.Orientation = 'Vertical'
t_meanLUTColorBar.WindowLocation = 'LowerRightCorner'
t_meanLUTColorBar.Position = [0.89, 0.02]
t_meanLUTColorBar.Title = 'T_mean'
t_meanLUTColorBar.ComponentTitle = ''
t_meanLUTColorBar.TitleJustification = 'Centered'
t_meanLUTColorBar.HorizontalTitle = 0
t_meanLUTColorBar.TitleColor = [0.0, 0.0, 0.0]
t_meanLUTColorBar.TitleOpacity = 1.0
t_meanLUTColorBar.TitleFontFamily = 'Arial'
t_meanLUTColorBar.TitleFontFile = ''
t_meanLUTColorBar.TitleBold = 0
t_meanLUTColorBar.TitleItalic = 0
t_meanLUTColorBar.TitleShadow = 0
t_meanLUTColorBar.TitleFontSize = 16
t_meanLUTColorBar.LabelColor = [0.0, 0.0, 0.0]
t_meanLUTColorBar.LabelOpacity = 1.0
t_meanLUTColorBar.LabelFontFamily = 'Arial'
t_meanLUTColorBar.LabelFontFile = ''
t_meanLUTColorBar.LabelBold = 0
t_meanLUTColorBar.LabelItalic = 0
t_meanLUTColorBar.LabelShadow = 0
t_meanLUTColorBar.LabelFontSize = 16
t_meanLUTColorBar.AutomaticLabelFormat = 1
t_meanLUTColorBar.LabelFormat = '%-#6.3g'
t_meanLUTColorBar.DrawTickMarks = 1
t_meanLUTColorBar.DrawTickLabels = 1
t_meanLUTColorBar.UseCustomLabels = 0
t_meanLUTColorBar.CustomLabels = []
t_meanLUTColorBar.AddRangeLabels = 1
t_meanLUTColorBar.RangeLabelFormat = '%-#6.1e'
t_meanLUTColorBar.DrawAnnotations = 1
t_meanLUTColorBar.AddRangeAnnotations = 0
t_meanLUTColorBar.AutomaticAnnotations = 0
t_meanLUTColorBar.DrawNanAnnotation = 0
t_meanLUTColorBar.NanAnnotation = 'NaN'
t_meanLUTColorBar.TextPosition = 'Ticks right/top, annotations left/bottom'
t_meanLUTColorBar.ReverseLegend = 0
t_meanLUTColorBar.ScalarBarThickness = 16
t_meanLUTColorBar.ScalarBarLength = 0.33

# change scalar bar placement
t_meanLUTColorBar.Orientation = 'Horizontal'
t_meanLUTColorBar.WindowLocation = 'AnyLocation'
t_meanLUTColorBar.Position = [0.34541436464088404, 0.12570184983677934]
t_meanLUTColorBar.ScalarBarLength = 0.33000000000000007

# current camera placement for renderView1
renderView1.CameraPosition = [0.0, -0.037999999010935426, 0.3491043481524701]
renderView1.CameraFocalPoint = [0.0, -0.037999999010935426, 0.0]
renderView1.CameraParallelScale = 0.09035485402996027

# Rescale transfer function
t_meanLUT.RescaleTransferFunction(0.0, 1.0)

# Rescale transfer function
t_meanPWF.RescaleTransferFunction(0.0, 1.0)

# Properties modified on t_meanLUTColorBar
t_meanLUTColorBar.TitleFontSize = 8
t_meanLUTColorBar.LabelFontSize = 8
t_meanLUTColorBar.ScalarBarThickness = 10
t_meanLUTColorBar.ScalarBarLength = 0.5

# current camera placement for renderView1
renderView1.CameraPosition = [0.0, -0.037999999010935426, 0.3491043481524701]
renderView1.CameraFocalPoint = [0.0, -0.037999999010935426, 0.0]
renderView1.CameraParallelScale = 0.09035485402996027

# reset view to fit data
renderView1.ResetCamera()

# save screenshot
SaveScreenshot(dirName+'/T_mean_slice_zNomal_z_Eq_'+zPositionInSaveScreenShot+'.png', renderView1, ImageResolution=[2896, 1835],
    FontScaling='Scale fonts proportionally',
    OverrideColorPalette='',
    StereoMode='No change',
    TransparentBackground=0, 
    # PNG options
    CompressionLevel='5')

print "Finalizing T_mean_zNormal.py " + "@ dir : " + dirName + " " + " @ " + zPositionInSaveScreenShot
import datetime
print datetime.datetime.now().strftime("%Y-%m-%d %H:%M")
print "==============================="
