-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting transition position XTR does not work #25
Comments
To start with, the proper way to assign the property is: But you are right that there is problem on the property side of the wrapper (not on the setter). What is happening:You are setting Line 126 in 0a8c2fc
That line should be changed to: For now you can set xtr like this: Your code will run, and the wrapper will set xtr values for xfoil solver. But if you try to access the xf.xtr property from python code you will still get the error, until next PR. BTW, check out https://github.com/aerosense-ai/panel-codes-service wrapper to run xfoil as a service (locally or on your own server/cloud). The service takes inputs and configurations as JSON files and produces JSON outputs. |
Thank you very much for the reply! Setting the transition position the way you described works. I had the same idea of changing aerosense ai looks very promising, will look into it, thanks for the hint! |
Thanks for posting the query and thanks for the solution hint! I had this problem a few months ago too, but never had time (or ctypes wrapping knowledge) to debug it. I'll try this out and report back, unless a PR will go through soon? Thanks. |
@timjim333 I have not managed to get in contact with the repo authors / maintainers. Will probably fork, for more active development. |
Hi there,
first of all, it`s really great to have this module.
I tried to set the transition position, but got the following error:
`>>> xf.xtr((1.0, 0.95))
Traceback (most recent call last):
File "", line 1, in
File "/home/moritz/.local/lib/python3.10/site-packages/xfoil/xfoil.py", line 126, in xtr
return float(xtr_top), float(xtr_bot)
ValueError: could not convert string to float: c_float(1.0)
`
I used the included naca0012 airfoil.
Thanks in advance,
Moritz
The text was updated successfully, but these errors were encountered: