Skip to content
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

Error when running the VTOL #33

Open
jjxx2 opened this issue Jun 8, 2024 · 0 comments
Open

Error when running the VTOL #33

jjxx2 opened this issue Jun 8, 2024 · 0 comments

Comments

@jjxx2
Copy link

jjxx2 commented Jun 8, 2024

Optimum motor design failed. Using slack constraints
Traceback (most recent call last):
File "c:\Users\soren\Downloads\tut_eVTOL.py", line 592, in
main()
File "c:\Users\soren\Downloads\tut_eVTOL.py", line 48, in main
results = mission.evaluate()
^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Mission\Segments\Segment.py", line 180, in evaluate
self.process(self)
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Process.py", line 96, in call
return self.evaluate(*args,**kwarg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Process.py", line 67, in evaluate
result = step(*args,**kwarg)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Methods\Missions\Segments\Common\Sub_Segments.py", line 137, in sequential_sub_segments
sub_segment.evaluate()
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Mission\Segments\Segment.py", line 180, in evaluate
self.process(self)
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Process.py", line 96, in call
return self.evaluate(*args,**kwarg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Process.py", line 65, in evaluate
result = step.evaluate(*args,**kwarg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Process.py", line 67, in evaluate
result = step(args,**kwarg)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Methods\Missions\Segments\converge_root.py", line 50, in converge_root
unknowns,infodict,ier,msg = root_finder( iterate,
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\scipy\optimize_minpack_py.py", line 166, in fsolve
res = _root_hybr(func, x0, args, jac=fprime, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\scipy\optimize_minpack_py.py", line 232, in _root_hybr
shape, dtype = _check_func('fsolve', 'func', func, x0, args, n, (n,))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\scipy\optimize_minpack_py.py", line 29, in _check_func
res = atleast_1d(thefunc(
((x0[:numinputs],) + args)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Methods\Missions\Segments\converge_root.py", line 99, in iterate
segment.process.iterate(segment)
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Process.py", line 96, in call
return self.evaluate(*args,**kwarg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Process.py", line 65, in evaluate
result = step.evaluate(*args,**kwarg)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Process.py", line 67, in evaluate
result = step(*args,**kwarg)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Methods\Missions\Segments\Common\Energy.py", line 87, in update_thrust
results = energy_model.evaluate_thrust(segment.state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Analyses\Energy\Energy.py", line 65, in evaluate_thrust
results = network.evaluate_thrust(state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Components\Energy\Networks\Network.py", line 143, in evaluate_thrust
results_p = net.evaluate_thrust(state)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.egg\SUAVE\Components\Energy\Networks\Lift_Cruise.py", line 167, in evaluate_thrust
volts = battery.compute_voltage(state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.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\soren\AppData\Local\Programs\Python\Python311\Lib\site-packages\suave-2.5.2-py3.11.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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant