reading data from paraview -> Python.paraview -> numpy example?
Hello All - I've been trying to get flat-format arrays of data from my multi-block 2D simulations in OpenFOAM. I can make OF output data, but I am trying to figure out how to read it as a single block. Then I discovered the Python "paraview" package which can manipulate Paraview - and extract data. Since I only have 48 x 126 = 6,048 cells, this should be fairly easy to process as a [48,126] numpy array.
Can anyone point me to an example or short tutorial how to use Python.paraview package to grab all the data from this CFD run? Thank You!! Pattim EDIT: I was in luck today - I found the Python package Openfoamparser. This is not a complex, full-featured OF controller like python.paraview - it's simply a package that reads openfoam output files. I'M SAVED!!! |
All times are GMT -4. The time now is 16:54. |