CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Python for postprocessing output of SU2

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2017, 15:33
Default Python for postprocessing output of SU2
  #1
New Member
 
Juan
Join Date: Apr 2017
Posts: 2
Rep Power: 0
juanbaus is on a distinguished road
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,
juanbaus is offline   Reply With Quote

Old   May 1, 2017, 23:43
Default
  #2
Member
 
C
Join Date: Apr 2013
Posts: 37
Rep Power: 12
whizkid is on a distinguished road
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
whizkid is offline   Reply With Quote

Old   May 1, 2017, 23:59
Default
  #3
New Member
 
Juan
Join Date: Apr 2017
Posts: 2
Rep Power: 0
juanbaus is on a distinguished road
Quote:
Originally Posted by whizkid View Post
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

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,
juanbaus is offline   Reply With Quote

Reply

Tags
julia, plots, post-processing, pyhton, su2 gui


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
[swak4Foam] outputTime in Swak function immortality OpenFOAM Community Contributions 20 October 6, 2022 12:08
wrong SU2 calculation for lift and drag coefficient for NAC4421 mechy SU2 7 January 9, 2017 05:18
SU2 output reordered mesh lwilhelm SU2 5 January 30, 2016 07:45
best setting for SU2 mechy SU2 3 April 20, 2014 19:13
writing execFlowFunctionObjects immortality OpenFOAM Post-Processing 30 September 15, 2013 06:16


All times are GMT -4. The time now is 22:36.