Closed asanchez2k22 closed 1 year ago
Hi,
The likely issue is that xfoil.exe
cannot be found in the folders of your PATH environment variable.
You can directly point to the xfoil.exe
by importing the set_xfoilexe function and using the function as shown in the below example.
from pyxfoil import Xfoil, set_workdir, set_xfoilexe
set_workdir('C:/Xfoil_WIP') # Sets the working directory for pyxfoil.
set_xfoilexe('C:/Xfoil-6.99/xfoil.exe') # Sets the path of the xfoil executable.
I hope this resolves your error.
Please let me know if it does or does not.
Hi,
That was exactly the situation, now it runs perfectly.
One more question, when it runs it opens really fast the plots but closes them again, and it generates files .POL and .SES.
Thanks
Hi,
You should be able to plot many of the result plots in Python, so the intent of this package is not to keep the xfoil window open.
One solution to your problem would be to run the session file directly with xfoil through the command line. If you use a session file generated by pyxfoil then you need to remove the last line in that session file that quits xfoil.
Any text editor like notepad or vscode can open .POL or .SES files.
I will close this issue since the original problem is solved.
Hi,
I was trying to follow the steps described in Readme to run an example (see code below) but it throwed me the following error. Could you please help on how to solve it?
Error
Code
Thanks!