Using python for post-processing: pythonFlu, swak4foam, ... ?
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, ....
I would like to replace Paraview + python scripts by my own Scipy/Matplotlib scripts
Thanks for sharing your experiences. :)
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)
|All times are GMT -4. The time now is 02:51.|