|
[Sponsors] |
[General] Advice on post processing compressor blade data in paraview |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 4, 2016, 18:16 |
Advice on post processing compressor blade data in paraview
|
#1 |
Member
Jack
Join Date: May 2015
Posts: 98
Rep Power: 11 |
I have a large data set of a 3D compressor blade that I wish to analyse. I am using paraview python scripting and I can see the data which is contained in a vtkMultiBlockDataSet object. This contains CellData arrays like:
- 'xCoord' - 'yCoord' - 'zCoord' - 'pressure' Now the problem is that these data points aren't ordered in any meaningful way. What I would like to do is to be able to select spanwise locations (constant radius) and chord wise locations (either suction side or pressure side) and plot the pressure there! I have been able to achieve this using python functions, but with great computational expense and data space! Basically what I do is convert the vtk data to numpy arrays using Code:
vtk_to_numpy Code:
reader = OpenDataFile(filename) tsteps = reader.TimestepValues for t in tsteps[0:1]: UpdatePipeline(time = t) multiBlock = servermanager.Fetch(reader) cellData = multiBlock.GetBlock(0).GetCellData() ctop = vtk.vtkCellDataToPointData() ctop.SetInputDataObject(multiBlock) ctop.Update() cpData = ctop.GetOutputDataObject(0).GetBlock(0) pointData = cpData.GetPointData() X = vtk_to_numpy(pointData.GetArray('CoordX')) Y = vtk_to_numpy(pointData.GetArray('CoordY')) Z = vtk_to_numpy(pointData.GetArray('CoordZ')) Pavg = vtk_to_numpy(pointData.GetArray('Pr')) tslice = np.vstack((X,Y,Z,Pavg)).T |
|
Tags |
paraview, python |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Post processing alternatives to Paraview? | NadineHS | Visualization & Post-Processing | 2 | February 9, 2019 17:43 |
Post Processing Fluent Data | Jonathan Vogt | FLUENT | 2 | August 18, 2017 03:58 |
[General] Ordering XYZ data in Paraview | ellenvdveer | ParaView | 8 | July 3, 2016 22:04 |
[General] 2 datas on one plot | Akuji | ParaView | 46 | December 1, 2013 15:06 |
help: data format - post processing | Pei-Ying Hsieh | FLUENT | 1 | January 10, 2001 14:25 |