Hi all,
I have sample 3d array here where I can load the data with the Paraview CGNS viewer, pass the arrays and convert to cell center data. However, I would like to spatially average the data in the x, z directions to arrive at mean profiles as function of y and then export this to a dat file. Currently, I am not able to understand how I should be able to perform cell-centered averaging in a given direction/write a macro to export these mean profiles.
I have multiple data sets (which may be more than 1 block unlike this one) which have stretching so I wanted to make an approach to parse the data and have a sample script I was trying to use in a programmable filter but it is not the correct data format. The current grid has dimensions of (2,500,2) cells. If there is an easier way/someone has a better idea, I would appreciate it.
Thank you.
codes_for_filter.py (2.7 KB)
sample_solution.cgns (1.4 MB)