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

How to use Python wrapper in windows?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2024, 11:47
Default How to use Python wrapper in windows?
  #1
New Member
 
denghong
Join Date: May 2024
Posts: 5
Rep Power: 2
denghong is on a distinguished road
Hello friends:
I am using Windows and have python 3.10 installed.
When I want to run the case in Tutorial:Dynamic Fluid-Structure Interaction (FSI) using the Python wrapper and a Nastran structural model

then I type the following command in powershell:
python.exe E:\SU2\SU2-master\SU2-master\SU2_PY\fsi_computation.py -f fsi.cfg

But display error:
34, in <module>
import pysu2 # imports the SU2 wrapped module
ModuleNotFoundError: No module named 'pysu2'

How can I solve this problem?
Thanks
denghong is offline   Reply With Quote

Old   July 23, 2024, 14:16
Default
  #2
Senior Member
 
bigfoot
Join Date: Dec 2011
Location: Netherlands
Posts: 596
Rep Power: 17
bigfootedrockmidget is on a distinguished road
SU2 needs to be compiled with the python wrapper support included:
https://su2code.github.io/docs_v7/Bu...2-Linux-MacOS/
The best option for you I think is to install a Virtual Machine for linux under windows, and install everything in the VM.
bigfootedrockmidget is offline   Reply With Quote

Old   July 25, 2024, 01:31
Default
  #3
New Member
 
denghong
Join Date: May 2024
Posts: 5
Rep Power: 2
denghong is on a distinguished road
Thanks, i have used VM and install it
denghong is offline   Reply With Quote

Reply


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
Seeking Assistance with Enabling Python Wrapper in SU2 and Applying Variable Tempera bgulzar22 SU2 1 January 30, 2024 09:34
Start CCM+ Macro from Python in Windows vanKey STAR-CCM+ 0 September 1, 2023 12:37
Error in enabling the python wrapper Jinn SU2 Installation 2 April 23, 2022 13:52
Python wrapper set up clacon21 SU2 0 January 19, 2022 03:39
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56


All times are GMT -4. The time now is 20:31.