I did a vehicle import from OpenVSP (the vehicle was already designed in openvsp) and running SUAVE analyses on it. Here I am sharing the problems I faced and solutions I found so it may help others.
Problem 1: Following the tutorial of basic eVTOl, trying to initialize battery using initialize_from_mass didn't work.
Cause: Going through the output of print(vehicle) I found, I had two battery networks name battery_propeller and battery_propeller1. I guess importing vehicle using vsp_read creates a network by default and then I was creating a second one. One had battery initialized, one didn't, that made the battery component NoneType, ultimately failing initialize_from_mass.
Solution: Delete unitentional battery network (if exists) before creating new one.
# *******************************************************Network**********************************************************************************
# Remove the auto-created network
if 'battery_propeller' in vehicle.networks:
del vehicle.networks['battery_propeller']
net = SUAVE.Components.Energy.Networks.Battery_Propeller()
net.number_of_lift_rotor_engines = 0
net.number_of_propeller_engines = 6
net.identical_lift_rotors = True
net.identical_propellers = True
net.voltage = 400.
# *******************************************************Battery*********************************************************************************
bat = SUAVE.Components.Energy.Storages.Batteries.Constant_Mass.Lithium_Ion_LiNiMnCoO2_18650()
bat.mass_properties.mass = 800. * Units.kg
bat.max_voltage = net.voltage
initialize_from_mass(bat)
net.battery = bat