# trace generated using paraview version 5.6.2 # # 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() # create a new 'OpenFOAMReader' a3d10meshfinefoam = OpenFOAMReader(FileName='E:\\BlueCFD\\blueCFD-Core-2020\\week 3\\3d-10mesh-fine-20210611T044901Z-001\\3d-10mesh-fine\\3d-10mesh-fine.foam') a3d10meshfinefoam.MeshRegions = ['internalMesh'] a3d10meshfinefoam.CellArrays = ['U', 'alpha.water', 'k', 'nut', 'p', 'p_rgh', 'vorticity'] # create a new 'Slice' slice1 = Slice(Input=a3d10meshfinefoam) slice1.SliceType = 'Plane' slice1.SliceOffsetValues = [0.0] # init the 'Plane' selected for 'SliceType' slice1.SliceType.Origin = [24.5, 0.6000000238418579, 0.05000000074505806] # Properties modified on slice1.SliceType slice1.SliceType.Origin = [24.5, 0.6000000238418579, 0.01] slice1.SliceType.Normal = [0.0, 0.0, 1.0] # Properties modified on slice1.SliceType slice1.SliceType.Origin = [24.5, 0.6000000238418579, 0.01] slice1.SliceType.Normal = [0.0, 0.0, 1.0] n=43 animationScene1 = GetAnimationScene() tk = GetTimeKeeper() timesteps = tk.TimestepValues animationScene1.AnimationTime = timesteps[n] i=38.00 while(i<=38.20): # create a new 'Plot Over Line' plotOverLine1 = PlotOverLine(Input=slice1, Source='High Resolution Line Source') # init the 'High Resolution Line Source' selected for 'Source' plotOverLine1.Source.Point1 = [0.0, 0.0, 0.009999999776482582] plotOverLine1.Source.Point2 = [49.0, 1.2000000476837158, 0.009999999776482582] # Properties modified on plotOverLine1.Source plotOverLine1.Source.Point1 = [i, 0.0, 0.009999999776482582] plotOverLine1.Source.Point2 = [i, 1.2000000476837158, 0.009999999776482582] SaveData('E:/BlueCFD/blueCFD-Core-2020/week3/DATA_0.01/%f.csv'%i, proxy=plotOverLine1) i=i+0.02