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

Running SU2 in python

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 25, 2017, 06:17
Post Running SU2 in python
  #1
New Member
 
Join Date: May 2017
Posts: 3
Rep Power: 8
FlyWill is on a distinguished road
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?
FlyWill is offline   Reply With Quote

Old   September 2, 2017, 22:48
Default
  #2
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
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
fpalacios is offline   Reply With Quote

Reply

Tags
python script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 11:05.