CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] reading data from paraview -> Python.paraview -> numpy example?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2022, 11:13
Wink reading data from paraview -> Python.paraview -> numpy example?
  #1
Member
 
Patti Michelle Sheaffer
Join Date: Sep 2018
Posts: 55
Rep Power: 7
pattim is on a distinguished road
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 20:35. Reason: clarify
pattim is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 18:28
[OpenFOAM] How to get the coordinates of velocity data at all cells and at all times vidyadhar ParaView 9 May 20, 2020 20:06
What‘s wrong with my cvg case? WUJT CONVERGE 8 October 13, 2017 12:19
Parallel Block Size Issue ChiefSeaBiscuit CONVERGE 5 July 22, 2016 14:03
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 10:45


All times are GMT -4. The time now is 16:15.