|
[Sponsors] |
Using python for post-processing: pythonFlu, swak4foam, ... ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 11, 2013, 10:26 |
Using python for post-processing: pythonFlu, swak4foam, ... ?
|
#1 |
Senior Member
Francois Beaubert
Join Date: Mar 2009
Location: Lille, France
Posts: 147
Rep Power: 17 |
Hi all,
I would like to know if it's possible to use pythonFlu/swak4foam for post-processing data from an already computed case or is it only available at solver run time level ? When the run is finished, is pythonFlu/swak4foam suited to do things like that: * get scalar, vector fields into numpy arrays to be able to manipulate them later * get cell/face center coordinates, faces surfaces, normals to faces ... * sample data over line/plane/surface (something like OpenFOAM sample utility) * compute gradient, integral, .... * etc I would like to replace Paraview + python scripts by my own Scipy/Matplotlib scripts Thanks for sharing your experiences. Regards Francois |
|
July 11, 2013, 12:03 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
In swak4Foam something like a hybrid of funkyDoCalc and the pythonIntegration-functionObject would be possible: calculate some swakVariables then inject the values into the Python-space and drop the user to the Python-shell or execute his script. The problem with this approach is that all the actual OF-specific work (gradients, sampling etc) has to be done in the first (swak)-part. But thanks for the idea. I might consider implementing such a thing. Feature requests in http://sourceforge.net/apps/mantisbt...?page_number=1 might speed up that decision process. Or maybe someone feels like implementing it (contributions most welcome)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |
pythonFlu - Python wrapping for OpenFOAM C++ API | alexey2petrov | OpenFOAM Announcements from Other Sources | 13 | December 21, 2012 12:43 |
How to get Python Shell into ParaView 3.8.1? | blaise | OpenFOAM Installation | 3 | July 24, 2012 05:58 |
CentFOAM Python Script Installation: Error | socon009 | OpenFOAM Installation | 2 | May 26, 2012 10:36 |
Post Processing in FEM | Abhijit Tilak | Main CFD Forum | 0 | April 26, 2004 12:59 |