Hi Christian, Did you identify where the performance bottleneck occurs? Does it perform well if you take out the writing or Fetch?
Best, -berk On Fri, Feb 20, 2015 at 8:05 AM, Thomas, Christian <[email protected]> wrote: > Hi > > I'm writing a python script that uses several paraview filters. I then > extract data from the final filter for further analysis in python. However, > I'm having a problem with the speed of the data extraction (can take > several minutes). I have tried writing to a file (createwriter) and then > reading the file. I have also tried servermanager.Fetch() and GetPoints… > Although I am able to get data with both methods, they are both very slow. > I was wondering if there was anything obvious in my paraview/python script > that was slowing the process or if anyone has a suggestion at how I may > speed things up. > (I realise this could just be down to the size of my initial input, for > small data files Mesh - 15MB, solution - 50MB). > > The script is below. Any suggestions would be greatly appreciated. > > Regards > Christian > > > > TBR = TAUMeshReader( FileName=Dir+'Mesh' ) > TBR.SurfaceMeshOnly = 0 > TBR.SolutionFileName = Dir+'solution' > MB = MergeBlocks(Input = TBR) > T1 = Transform(Input = MB) > T1.Transform.Rotate = [-float(Rot/2.0), 0.0, Sweep] > ISO = IsoVolume(Input = T1) > ISO.ThresholdRange = [MIN_Tot_Pre, BLE_Tot_Pre] > ISO.InputScalars = ['POINTS','total_pressure'] > SL = Slice(Input = T1) > SL.SliceType="Plane" > SL.SliceOffsetValues = n > SL.SliceType.Origin = Inboard > SL.SliceType.Normal = Normal > Con = Contour(Input = SL) > Con.PointMergeMethod = "Uniform Binning" > Con.ContourBy = ['POINTS', 'total_pressure'] > Con.Isosurfaces = [BLE_Tot_Pre] > Pass = PassArrays(Con) > Pass.PointDataArrays = ['wall_distance'] > h=CreateWriter(Dir+'Edge.csv',Pass) > h.FieldAssociation = "Points" > h.Precision = 15 > h.UpdatePipeline() > > ….read Edge.csv file for further analysis > > > > > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
