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

Seeking Assistance with Enabling Python Wrapper in SU2 and Applying Variable Tempera

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2024, 08:02
Default Seeking Assistance with Enabling Python Wrapper in SU2 and Applying Variable Tempera
  #1
Member
 
Sean
Join Date: May 2023
Posts: 52
Rep Power: 3
bgulzar22 is on a distinguished road
Dear SU2 CFD Online Community,

I am currently working on a project involving the use of SU2 for CFD simulations. I have successfully installed SU2 on my system, but I am facing challenges in enabling the Python wrapper to enhance the functionality.

If any of you have experience with enabling the Python wrapper in an already installed SU2 system, I would greatly appreciate your guidance and insights. Specifically, I am looking for step-by-step instructions or best practices to ensure a smooth integration.

Additionally, I am interested in applying variable temperature along the boundary in my simulations. Could anyone provide assistance on how to achieve this within the SU2 framework? Any information regarding relevant configurations or input parameters would be immensely helpful.

Thank you in advance for your time and assistance. I look forward to your valuable insights.

Best regards
bgulzar22 is offline   Reply With Quote

Old   January 30, 2024, 10:34
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 654
Rep Power: 19
bigfootedrockmidget is on a distinguished road
The first step is to add pywrapper support by adding this to the meson options:
Code:
-Denable-pywrapper=true
Then you should be able to run the pywrapper testcases in Testcases/py_wrapper



https://github.com/su2code/TestCases...ter/py_wrapper

https://github.com/su2code/SU2/tree/...ses/py_wrapper


or from python you should be able to do
Code:
import pysu2
Note that pysu2.py is in the bin/ folder so you have to make sure that the folder is added to PYTHONPATH

bigfootedrockmidget is offline   Reply With Quote

Reply

Tags
installataion, python wrapper


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



All times are GMT -4. The time now is 03:10.