-
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
Not getting the converged values #2
Comments
Encountering the same on macOS 10.14.3. Noticed that the max thickness, chord, LE, and TE values differ from those given in README.md. >>> xf.airfoil = naca0012
Number of input coordinate points: 160
Clockwise ordering
Max thickness = 0.000000 at x = 0.000
Max camber = 0.000000 at x = 0.000
LE x,y = -0.06001 -0.06001 | Chord = 0.08487
TE x,y = 0.00000 0.00000 | What the README.md indicates I should be getting: >>> xf.airfoil = naca0012
Number of input coordinate points: 160
Counterclockwise ordering
Max thickness = 0.120008 at x = 0.308
Max camber = 0.000000 at x = 0.033
LE x,y = -0.00000 0.00000 | Chord = 1.00000
TE x,y = 1.00000 0.00000 | Seeing that the thickness, among other values, is computed from the airfoil coordinates, perhaps there is an issue with how the naca0012 coordinate array in test.py is being parsed by the fortran routines? Seems to work just fine on Ubuntu 18.04, though >>> a, cl, cd, cm, co = xf.aseq(-20, 20, 0.5) This project is fantastic! |
@ninfinity How did you install xfoil module it in ubuntu. I am trying to install in ubuntu but I am getting a bunch of errors. |
Try my fork of the project. I’ve submitted a pull request that includes a minor edit that lowers the minimum cmake version requirement to 3.10, which seems to be the current default in Ubuntu 18.04. |
@ninfinity : can you give me instructions on how to install your version. I am trying but I am getting error.
|
@maidmentdaniel @ckesanapalli @ninfinity The problem you're having is resulted from an improper call to self._lib.get_airfoil() in xfoil.py. Somehow the memory buffer used for x and y are entangled and the function gets same array for x and y. If you check xf.airfoil you'll see xf.airfoil.x is actually set to the values of xf.airfoil.y. I suspect this is a bug with ctypes library, and by changing platform I believe @ninfinity switched to a different version of ctypes, which fixed the problem. I have a fix in my fork of this library and I have absolutely no idea why it works. If you come across this issue, my version may help you. |
Excuse me,I also encountered this problem(NAN). Have you solved it? |
Nope. |
I tried to run the demo code in the ReadMe file, but for the command
But for the following command,
a, cl, cd, cm, co = xf.aseq(0, 1, 0.5)
I got the output as
The values are
print(a, cl, cd, cm, co)
May I know how to resolve this issue
@daniel-de-vries: Your python code is really great and looks really apt for my project. I would really appreciate if you could help me resolving this issue.
The text was updated successfully, but these errors were encountered: