tut_eVTOL running problem

323 views
Skip to first unread message

ziqing zhao

unread,
Dec 28, 2022, 9:54:16 PM12/28/22
to SUAVE FORUM
hello, there
I am fresh in SUAVE study. When I try to run tut_eVTOL, python reminds me the problem as follows:
Optimum motor design failed. Using slack constraints
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.
So converge is failed, what could result in the problem? have you guys run smoothly on you computer?  Thanks for your help!

Emilio

unread,
Jan 4, 2023, 7:53:08 PM1/4/23
to SUAVE FORUM
Hi,
It runs smoothly with SUAVE 2.5.2 on my Mac machine. I am using Numpy 1.22.4 and SciPy 1.7.3. What versions and OS are you on?

-Emilio

Jinning Zhang

unread,
Aug 13, 2023, 10:21:42 AM8/13/23
to SUAVE FORUM
Hi Emilio,

I re-installed SUAVE 2.5.2 and specify the Numpy and SciPy as yours, but it still doesn't work (as below). I am using OS 13.4.1(c) with Anaconda. Much appreciated if you could kindly help.


Defaulting to scaled DAE51

Defaulting to scaled DAE51


 Optimum motor design failed. Using slack constraints
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)
Segment did not converge. Segment Tag: wing_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)
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: Cruise

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)
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: wing_descent

Error Message:
The iteration is not making good progress, as measured by the
  improvement from the last ten iterations.
Segment did not converge. Segment Tag: hover_descent

Error Message:
The iteration is not making good progress, as measured by the
  improvement from the last ten iterations.

Message has been deleted

Mohamed Hetta

unread,
Oct 17, 2023, 4:22:45 AM10/17/23
to SUAVE FORUM
Hey guys,
 
I have the exact same issue with the eVTOL tutorial.

I'm running SUAVE 2.5.2 on WINDOWS 10 with Python 3.9.18, SciPy 1.7.3 and NumPy 1.22.3. If anyone resolved this problem, it'd be appreciated if you could share :)

Thanks

Goru Saikiran

unread,
Nov 1, 2023, 7:36:27 AM11/1/23
to SUAVE FORUM
Hi ,
I have gone through the evtol tutorials provided in suave platform but when i was executing the code it was returning an attribute value error.This is how it looks:
PS C:\Users\SAIROHITH> & C:/Users/SAIROHITH/AppData/Local/Programs/Python/Python310/python.exe c:/Users/SAIROHITH/Documents/TIHAN_WORK/suave/Tutorials-2.5.2/tut_eVTOL.py


Defaulting to scaled DAE51

Defaulting to scaled DAE51

 Optimum motor design failed. Using slack constraints
Traceback (most recent call last):
  File "c:\Users\SAIROHITH\Documents\TIHAN_WORK\suave\Tutorials-2.5.2\tut_eVTOL.py", line 592, in <module>
    main()
  File "c:\Users\SAIROHITH\Documents\TIHAN_WORK\suave\Tutorials-2.5.2\tut_eVTOL.py", line 48, in main
    results = mission.evaluate()
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Mission\Segments\Segment.py", line 180, in evaluate
    self.process(self)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Process.py", line 96, in __call__
    return self.evaluate(*args,**kwarg)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Process.py", line 67, in evaluate
    result = step(*args,**kwarg)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Methods\Missions\Segments\Common\Sub_Segments.py", line 137, in sequential_sub_segments
    sub_segment.evaluate()
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Mission\Segments\Segment.py", line 180, in evaluate
    self.process(self)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Process.py", line 96, in __call__
    return self.evaluate(*args,**kwarg)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Process.py", line 65, in evaluate
    result = step.evaluate(*args,**kwarg)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Process.py", line 67, in evaluate
    result = step(*args,**kwarg)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Methods\Missions\Segments\converge_root.py", line 50, in converge_root
    unknowns,infodict,ier,msg = root_finder( iterate,
  File "C:\Users\SAIROHITH\AppData\Roaming\Python\Python310\site-packages\scipy\optimize\_minpack_py.py", line 162, in fsolve
    res = _root_hybr(func, x0, args, jac=fprime, **options)
  File "C:\Users\SAIROHITH\AppData\Roaming\Python\Python310\site-packages\scipy\optimize\_minpack_py.py", line 228, in _root_hybr      
    shape, dtype = _check_func('fsolve', 'func', func, x0, args, n, (n,))
  File "C:\Users\SAIROHITH\AppData\Roaming\Python\Python310\site-packages\scipy\optimize\_minpack_py.py", line 25, in _check_func      
    res = atleast_1d(thefunc(*((x0[:numinputs],) + args)))
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Methods\Missions\Segments\converge_root.py", line 99, in iterate
    segment.process.iterate(segment)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Process.py", line 96, in __call__
    return self.evaluate(*args,**kwarg)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Process.py", line 65, in evaluate
    result = step.evaluate(*args,**kwarg)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Process.py", line 67, in evaluate
    result = step(*args,**kwarg)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Methods\Missions\Segments\Common\Energy.py", line 87, in update_thrust
    results   = energy_model.evaluate_thrust(segment.state)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Analyses\Energy\Energy.py", line 65, in evaluate_thrust
    results = network.evaluate_thrust(state)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Components\Energy\Networks\Network.py", line 143, in evaluate_thrust
    results_p = net.evaluate_thrust(state)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Components\Energy\Networks\Lift_Cruise.py", line 167, in evaluate_thrust
    volts = battery.compute_voltage(state)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Components\Energy\Storages\Batteries\Constant_Mass\Lithium_Ion_LiNiMnCoO2_18650.py", line 432, in compute_voltage
    V_ul_cell = compute_NMC_cell_state_variables(battery_data,SOC,T_cell,I_cell)
  File "C:\Users\SAIROHITH\AppData\Local\Programs\Python\Python310\lib\site-packages\suave-2.5.2-py3.10.egg\SUAVE\Methods\Power\Battery\Cell_Cycle_Models\LiNiMnCoO2_cell_cycle_model.py", line 51, in compute_NMC_cell_state_variables
    V_ul           = np.atleast_2d(battery_data.Voltage(pts)[:,1]).T

AttributeError: 'NoneType' object has no attribute 'Voltage'
I would be so delightful if i get some guidance regarding this.
Thankyou 
Reply all
Reply to author
Forward
0 new messages