From b8fefd011a3f944b22aad570bb23cb82f0192cc6 Mon Sep 17 00:00:00 2001 From: rachealerhard Date: Mon, 24 May 2021 18:18:26 -0700 Subject: [PATCH] small fixes --- Solar_UAV_Optimization/Optimize.py | 2 +- Solar_UAV_Optimization/Procedure.py | 2 +- tut_mission_B737.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Solar_UAV_Optimization/Optimize.py b/Solar_UAV_Optimization/Optimize.py index a75801e..f7477e5 100644 --- a/Solar_UAV_Optimization/Optimize.py +++ b/Solar_UAV_Optimization/Optimize.py @@ -50,7 +50,7 @@ def setup(): # [ tag , initial, [lb,ub], scaling, units ] problem.inputs = np.array([ - [ 'wing_area' , 0.5, 0.1, 1.5 , 0.5, 1*Units.meter ], + [ 'wing_area' , 0.5, 0.1, 1.5 , 0.5, 1*Units.meter**2 ], [ 'aspect_ratio' , 10.0, 5.0, 20.0 , 10.0, 1*Units.less ], [ 'dynamic_pressure', 125.0, 1.0, 2000.0 , 125.0, 1*Units.pascals ], [ 'solar_ratio' , 0.0, 0.0, 0.97, 1.0, 1*Units.less ], diff --git a/Solar_UAV_Optimization/Procedure.py b/Solar_UAV_Optimization/Procedure.py index 805546c..54dafa8 100644 --- a/Solar_UAV_Optimization/Procedure.py +++ b/Solar_UAV_Optimization/Procedure.py @@ -66,7 +66,7 @@ def simple_sizing(nexus): # Pull out the vehicle vec = nexus.vehicle_configurations.base - # Change the dynamic pressure based on the, add a factor of safety + # Change the dynamic pressure, add a factor of safety vec.envelope.maximum_dynamic_pressure = nexus.missions.mission.segments.cruise.dynamic_pressure*1.2 # Scale the horizontal and vertical tails based on the main wing area diff --git a/tut_mission_B737.py b/tut_mission_B737.py index 5a784fa..7a86926 100644 --- a/tut_mission_B737.py +++ b/tut_mission_B737.py @@ -58,7 +58,7 @@ def main(): weights = analyses.configs.base.weights breakdown = weights.evaluate() - # Performance a mission analysis + # Perform a mission analysis mission = analyses.missions.base results = mission.evaluate()