|
[Sponsors] |
[OpenFOAM] reading data from paraview -> Python.paraview -> numpy example? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 18, 2022, 12:13 |
reading data from paraview -> Python.paraview -> numpy example?
|
#1 |
Member
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 8 |
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!!! Last edited by pattim; December 18, 2022 at 21:35. Reason: clarify |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? | EternalSeekerX | SU2 | 3 | October 9, 2020 19:28 |
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times | vidyadhar | ParaView | 9 | May 20, 2020 21:06 |
What‘s wrong with my cvg case? | WUJT | CONVERGE | 8 | October 13, 2017 13:19 |
Parallel Block Size Issue | ChiefSeaBiscuit | CONVERGE | 5 | July 22, 2016 15:03 |
[Other] How to create an MRF zone ? | aminem | OpenFOAM Meshing & Mesh Conversion | 2 | December 8, 2014 11:45 |