|
[Sponsors] |
August 25, 2017, 06:17 |
Running SU2 in python
|
#1 |
New Member
Join Date: May 2017
Posts: 3
Rep Power: 8 |
I'm a beginner to SU2 and just get started with its tutorials.
I've seen that there're some python files in SU2, I wounder if there's some python functions wrappers that could be called to run SU2 in python. like passing a CGNS mesh and some configuration options to a function like 'run_SU2' to automatically generate a relative .cfg file and run the code. Is there any way to do this? |
|
September 2, 2017, 22:48 |
|
#2 |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
SU2 has been wrapped in python and it is possible to call the most important C++ subroutines from Python. This implementation was done to be sure that the CFD software can communicate with other software using memory and not hard-drive. In other to do so you need to activate --enable-PY_WRAPPER in the compiling process.
You can also take a look at https://github.com/su2code/SU2/wiki/Execution Best, Francisco |
|
Tags |
python script |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2 process was terminated by signal '11' | tomp1993 | SU2 Shape Design | 5 | March 1, 2018 05:32 |
Calling external Python Subroutine from SU2? | Vino | SU2 | 0 | July 3, 2017 04:43 |
Python for postprocessing output of SU2 | juanbaus | SU2 | 2 | May 2, 2017 00:59 |
SU2 installation succesful but failure when running | rfadlika | SU2 | 3 | November 2, 2015 19:42 |
Official Release of SU2 V3.2 | economon | SU2 News & Announcements | 6 | April 18, 2015 00:28 |