|
[Sponsors] |
April 30, 2017, 16:33 |
Python for postprocessing output of SU2
|
#1 |
New Member
Juan
Join Date: Apr 2017
Posts: 2
Rep Power: 0 |
Hi SU2 Community,
I am new user of SU2 and I am learning to use the software by doing the quick start case from the web page. The simulation went well and I am trying to reproduce the plots from the web page. I was able to plot the NACA 0012 airfoil profile and the Cp coefficient extracting the information from the surface_flow.dat file, however I am no quite sure if I can reproduce the Far-field of the computational mesh plot and the pressure contour plot by using just python. I have read in the documentation that ParaView or Tecplot is suggested like post processing tool. However I would like to use python and maybe Julia like post-processing tool, has anybody experience or recommendations using these post-processing tools? Thanks for your feedback, |
|
May 2, 2017, 00:43 |
|
#2 |
Member
C
Join Date: Apr 2013
Posts: 37
Rep Power: 13 |
Hello,
You may read every single line of the surface_flow.dat using python and then you can plot any variables using matplotlib. If you, for example, analyze an airfoil at different angles of attack, then you may read every single forces_breakdown.dat files using python, store CL CD CM values and again plot them with matplotlib. Cheers |
|
May 2, 2017, 00:59 |
|
#3 | |
New Member
Juan
Join Date: Apr 2017
Posts: 2
Rep Power: 0 |
Quote:
Hi Whizkid, Thanks for your reply, in fact I have plotted some of the coefficients that you mention. However to create a surface plot is not that easy, I tried to create the contour plot for the pressure given in the QuickStart test case and the output vector for the pressure is a column vector which I think is not associated with the (x,y) grid coordinate in a contour plot. Namely I am not quite sure how this vector represents the pressure contour surfaces in the contour plot. I am using the data of flow.dat to create the plots, and the create a grid using the x and y coordinates. Thanks, |
||
Tags |
julia, plots, post-processing, pyhton, su2 gui |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] outputTime in Swak function | immortality | OpenFOAM Community Contributions | 20 | October 6, 2022 13:08 |
wrong SU2 calculation for lift and drag coefficient for NAC4421 | mechy | SU2 | 7 | January 9, 2017 06:18 |
SU2 output reordered mesh | lwilhelm | SU2 | 5 | January 30, 2016 08:45 |
best setting for SU2 | mechy | SU2 | 3 | April 20, 2014 20:13 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 07:16 |