def main(): vehicle = vehicle_setup() analyses = base_analysis(vehicle) mission = mission_setup(vehicle, analyses) analyses.mission = mission analyses.finalize() payload_range = electric_payload_range(vehicle, mission, 'cruise', display_plot=True) payload_range_r = [0., 104049.96644079, 110756.36739684] assert (np.abs(payload_range.range[1] - payload_range_r[1]) / payload_range_r[1] < 1e-6), "Payload Range Regression Failed at Max Payload Test" assert (np.abs(payload_range.range[2] - payload_range_r[2]) / payload_range_r[2] < 1e-6), "Payload Range Regression Failed at Ferry Range Test" return
def full_setup(): # vehicle data vehicle = vehicle_setup() # vehicle analyses analyses = base_analysis(vehicle) # mission analyses mission = mission_setup(analyses,vehicle) analyses.mission = mission return vehicle, analyses
def full_setup(): # vehicle data vehicle = vehicle_setup() plot_vehicle(vehicle, plot_control_points=False) # vehicle analyses analyses = base_analysis(vehicle) # mission analyses mission = mission_setup(analyses, vehicle) analyses.mission = mission return vehicle, analyses
def full_setup(): # vehicle data vehicle = vehicle_setup() configs = configs_setup(vehicle) plot_vehicle(vehicle,plot_control_points = False) # vehicle analyses configs_analyses = analyses_setup(configs) # mission analyses mission = mission_setup(configs_analyses,vehicle) missions_analyses = missions_setup(mission) analyses = SUAVE.Analyses.Analysis.Container() analyses.configs = configs_analyses analyses.missions = missions_analyses return configs, analyses