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
Unable to Run Example Script #52
Comments
Hello, I have the same issue here, have you been able to solve it ? |
The readme seems to still be referring to code from AeroSandbox V2. If you just want to run the readme code, simply install version 2.4.2 with its dependencies autograd and pyvista:
Then you can just run it with legacy code as per Peter's suggestion for this issue. The code should then run as-is. For the v3 code: I think the V3 code might need a few fixes before this works as expected though feel free to experiment. I quickly looked into it but it seems the wing sections also need to be slightly modified on top of the If you've already gotten past those issues, the opti that is required should simply be an I'll try and look into this if Peter or someone else hasn't done so already. |
Version 2.3.5 works. Its only a few commits behind the legacy but the example code for the legacy runs on it. Imo this might be a better hash than the current legacy branch. https://github.com/peterdsharpe/AeroSandbox/tree/40b5c15b6dddddcb8118585aea3eff09d632da5c |
@AerodynamicBrick I tried the recommended hash using the README code from that hash and changing the initial import line to aerosandbox_legacy_v0. The analysis ran but it could not draw. Installing the hash:
Output from run:
|
It was an issue with how AeroSandbox is using pyvista. One of the arrays needs to be an integer array. See pyvista/pyvista#810. The latest version of pyvista enforces this while previous versions did not. If you use 0.24.3 of pyvista then you are able to pass this point. Since pyvista is deprecated in 3.x then it really doesn't matter? |
If I understand correctly, from version 2 to 3, pyvista was replaced with plotly but the syntax for creating the airplane structures is similar. |
Hi all, Closing this issue, as this has been fixed. For syntax, see this tutorial. |
Bug Description
Trying to run example script from the readme
Steps to Reproduce
Install package (either local or with pypi, tried both)
Copy script from readme
Run program
Expected Behavior
Produce images from readme, instead there is some incompatibility with WingXSec, these are easily fixed.
However, VLM3 is not found, and the existing example uses only airplane and op_point, while the current implementation also expects an "opti" param. I'm not sure how to incorporate this?
System Information
Other Information
Thanks! Would love to experiment with this program more, but need a basis to work off. I am trying to do some analysis for different car wing setups (single + dual element). Mostly interested in doing L/D analysis for various airfoil designs.
Anything to get me in the right direction would be appreciated! Thanks!
The text was updated successfully, but these errors were encountered: