propeller noise Index Error

132 views
Skip to first unread message

Yash Thummar

unread,
Jun 10, 2022, 4:42:49 PM6/10/22
to SUAVE FORUM
Hello all,

I am trying to Read the VTOL geometry and perform Hover Climb Segment. But I am facing some errors.

I used the same script as given in tut_eVTOL and slightly modify it to read the same openvsp VTOL geometry without propellers where I want to only read the wing, fuselage, vertical and horizontal tail wing and booms. and the Propellers and motors append in this vehicle with the help of a script.

But after running the code I received the following error and also faced the problem of converging.

Designing propeller

Designing lift_rotor

 Optimum motor design failed. Using slack constraints
VSPAERO solver not found in C:\Users\ADMIN\AppData\Local\Programs\Python\Python39.
VSPAERO viewer not found in C:\Users\ADMIN\AppData\Local\Programs\Python\Python39.
VSPAERO slicer not found in C:\Users\ADMIN\AppData\Local\Programs\Python\Python39.
VSP geometry IDs:
main_wing: LLCWSXGZFP
horizontal_tail: ITNULKMHMH
vertical_tail: WVCJZHREIA
fuselage: GLPGTYEPOR
boom_R: YZQFOFUQMS
boom_L: SRMADCZEXH
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Segment did not converge. Segment Tag: hover_climb
Error Message:
The iteration is not making good progress, as measured by the
  improvement from the last ten iterations.
Rotor BEVW did not converge to a solution (Stall)
Rotor BEVW did not converge to a solution (Stall)
Traceback (most recent call last):
  File "c:\Users\ADMIN\OneDrive\Projects\capstone_project\Download\Pra\1tut_eVTOL.py", line 337, in <module>
    main()
  File "c:\Users\ADMIN\OneDrive\Projects\capstone_project\Download\Pra\1tut_eVTOL.py", line 49, in main
    results = mission.evaluate()
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Mission\Segments\Segment.py", line 180, in evaluate
    self.process(self)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Process.py", line 96, in __call__
    return self.evaluate(*args,**kwarg)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Process.py", line 67, in evaluate
    result = step(*args,**kwarg)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Methods\Missions\Segments\Common\Sub_Segments.py", line 137, in sequential_sub_segments
    sub_segment.evaluate()
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Mission\Segments\Segment.py", line 180, in evaluate
    self.process(self)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Process.py", line 96, in __call__
    return self.evaluate(*args,**kwarg)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Process.py", line 65, in evaluate
    result = step.evaluate(*args,**kwarg)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Process.py", line 65, in evaluate
    result = step.evaluate(*args,**kwarg)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Process.py", line 67, in evaluate
    result = step(*args,**kwarg)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Methods\Missions\Segments\Common\Noise.py", line 26, in compute_noise
    noise_model.evaluate_noise(segment)
  File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python39\lib\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Noise\Fidelity_One.py", line 228, in evaluate_noise
    source_SPLs_dBA[:,si,:]      = propeller_noise.SPL_dBA
IndexError: index 4 is out of bounds for axis 1 with size 4

Here I attached a python script file and an openvsp geometry file which I want to read.

I would really appreciate it if some of you can help me solve this because it is really important for my project.

Thank you and regards,
Yash 
eVTOL.vsp3
1tut_eVTOL.py

Tim Schuhmann

unread,
Aug 29, 2022, 2:50:32 AM8/29/22
to SUAVE FORUM
Hello, 

I am getting the same error message. It would be great if someone could help. Or did you already solve this issue in a private chat?

All the best!

Yash Thummar

unread,
Aug 29, 2022, 3:45:32 PM8/29/22
to SUAVE FORUM
Hello Tim,
Here in my case, I don't want to read the vsp file anymore. And I use the vehicle setup function specifying the vehicle using parameters.

But you can try to remove the following line from the hover segment:
segment.process.iterate.unknowns.mission                 = SUAVE.Methods.skip

That might help you.

Yash

Tim S

unread,
Aug 29, 2022, 4:38:35 PM8/29/22
to SUAVE FORUM
Hello Yash,

thanks for your quick response. I tried removing that line but then I get the following error: AttributeError: 'Unknowns' object has no attribute 'throttle'

Is there a reason why you dont want to read in the vsp file? Possibly because you want to manipulate the parameters directly from the code as it is faster I pressume.

All the best,
Tim

Matthew Clarke

unread,
Aug 30, 2022, 3:33:34 PM8/30/22
to SUAVE FORUM
Hi Tim and Yash,

There are 5 rotor objects (1 propeller and 4 rotors) on the aircraft so in indexing is correct. That means the bug  is the bookkeeping on the noise sources in the  source_SPLs_dBA datastructure. I will take a look and get back to you shortly

Reply all
Reply to author
Forward
0 new messages