Index Error in Designing propeller

48 views
Skip to first unread message

Yash Thummar

unread,
Oct 19, 2022, 8:40:39 AM10/19/22
to SUAVE FORUM
Hello,

Today I reinstalled the SUAVE 2.5.2 and then I am trying to run eVTOL tutorial of 2.5.2 version only there I got the error in Designing propeller part.
 
I tried uninstall and install the SUAVE 3 times but still the same error is occurre.
tut_mission_B737_800 working fine without any error but while designing the propeller this error occurs.

Here is the error:
Designing propeller
Traceback (most recent call last):
  File "c:\Users\ADMIN\OneDrive\Projects\capstone_project\Download\Tutorials-2.5.2\Tutorials-2.5.2\tut_eVTOL.py", line 592, in <module>
    main()
  File "c:\Users\ADMIN\OneDrive\Projects\capstone_project\Download\Tutorials-2.5.2\Tutorials-2.5.2\tut_eVTOL.py", line 35, in main
    vehicle = setup_vehicle()
  File "c:\Users\ADMIN\OneDrive\Projects\capstone_project\Download\Tutorials-2.5.2\Tutorials-2.5.2\tut_eVTOL.py", line 351, in setup_vehicle    
    propeller                        = propeller_design(propeller)
  File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Methods\Propulsion\propeller_design.py", line 130, in propeller_design
    airfoil_data    = compute_airfoil_polars(a_geo, a_pol,npoints = number_of_airfoil_section_points)  
  File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Methods\Geometry\Two_Dimensional\Cross_Section\Airfoil\compute_airfoil_polars.py", line 155, in compute_airfoil_polars
    CL2, CD2 = post_stall_coefficients(state,settings,geometry)
  File "C:\Users\ADMIN\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Methods\Aerodynamics\AERODAS\post_stall_coefficients.py", line 87, in post_stall_coefficients
    CL2[con3] = -0.032*(alpha[con3]/Units.deg-92.0) + RCL2*((alpha[con3]-92.*Units.deg)/(51.0*Units.deg))**N2
IndexError: too many indices for array: array is 1-dimensional, but 2 were indexed

Does anyone know why I am getting this error?

Thank you,
Yash

Mohamed Hetta

unread,
Oct 21, 2022, 12:00:31 AM10/21/22
to SUAVE FORUM
Hi,

I got the same error a week ago and I think it's related to updated version for one of SUAVE's dependencies probably numpy. So, I managed to solve the issue by rolling back to an earlier version.

The following environment setup works for me [so far]:

Python 3.9
numpy 1.20.3
scipy 1.7.1
scikit-learn 0.24.2
matplotlib 3.4.3
plotly 5.6.0

Yash Thummar

unread,
Oct 21, 2022, 5:34:09 AM10/21/22
to SUAVE FORUM
Thank you so much for your response, now it working fine.
Reply all
Reply to author
Forward
0 new messages