|
8 | 8 |
|
9 | 9 | # SUAVE Imports |
10 | 10 | import SUAVE |
11 | | -assert SUAVE.__version__=='2.5.0', 'These tutorials only work with the SUAVE 2.5.0 release' |
| 11 | +assert SUAVE.__version__=='2.5.2', 'These tutorials only work with the SUAVE 2.5.2 release' |
12 | 12 |
|
13 | | -from SUAVE.Core import Data, Units |
| 13 | +from SUAVE.Core import Units |
14 | 14 | from SUAVE.Plots.Performance.Mission_Plots import * |
15 | 15 | from SUAVE.Methods.Propulsion.turbofan_sizing import turbofan_sizing |
16 | | -from SUAVE.Methods.Geometry.Two_Dimensional.Cross_Section.Propulsion import compute_turbofan_geometry |
17 | | -from SUAVE.Input_Output.Results import print_parasite_drag, \ |
18 | | - print_compress_drag, \ |
19 | | - print_engine_data, \ |
20 | | - print_mission_breakdown, \ |
21 | | - print_weight_breakdown |
22 | 16 |
|
23 | 17 | # Python Imports |
24 | 18 | import numpy as np |
@@ -113,15 +107,16 @@ def base_analysis(vehicle): |
113 | 107 | # Aerodynamics Analysis |
114 | 108 | aerodynamics = SUAVE.Analyses.Aerodynamics.AVL() |
115 | 109 | aerodynamics.process.compute.lift.inviscid.settings.filenames.avl_bin_name = 'CHANGE ME TO YOUR DIRECTORY' |
116 | | - #aerodynamics.process.compute.lift.inviscid.settings.spanwise_vortex_density = 3 |
| 110 | + #aerodynamics.settings.number_spanwise_vortices = 5 |
| 111 | + #aerodynamics.settings.number_chordwise_vortices = 3 |
117 | 112 | aerodynamics.geometry = vehicle |
118 | 113 | analyses.append(aerodynamics) |
119 | 114 |
|
120 | 115 | # ------------------------------------------------------------------ |
121 | 116 | # Stability Analysis |
122 | 117 | stability = SUAVE.Analyses.Stability.AVL() |
123 | 118 | stability.settings.filenames.avl_bin_name = 'CHANGE ME TO YOUR DIRECTORY' |
124 | | - #stability.settings.spanwise_vortex_density = 3 |
| 119 | + |
125 | 120 | stability.geometry = vehicle |
126 | 121 | analyses.append(stability) |
127 | 122 |
|
@@ -179,22 +174,6 @@ def vehicle_setup(): |
179 | 174 | vehicle.systems.control = "fully powered" |
180 | 175 | vehicle.systems.accessories = "medium range" |
181 | 176 |
|
182 | | - # ------------------------------------------------------------------ |
183 | | - # Landing Gear |
184 | | - # ------------------------------------------------------------------ |
185 | | - # used for noise calculations |
186 | | - landing_gear = SUAVE.Components.Landing_Gear.Landing_Gear() |
187 | | - landing_gear.tag = "main_landing_gear" |
188 | | - |
189 | | - landing_gear.main_tire_diameter = 1.12000 * Units.m |
190 | | - landing_gear.nose_tire_diameter = 0.6858 * Units.m |
191 | | - landing_gear.main_strut_length = 1.8 * Units.m |
192 | | - landing_gear.nose_strut_length = 1.3 * Units.m |
193 | | - landing_gear.main_units = 2 #number of main landing gear units |
194 | | - landing_gear.nose_units = 1 #number of nose landing gear |
195 | | - landing_gear.main_wheels = 2 #number of wheels on the main landing gear |
196 | | - landing_gear.nose_wheels = 2 #number of wheels on the nose landing gear |
197 | | - vehicle.landing_gear = landing_gear |
198 | 177 |
|
199 | 178 | # ------------------------------------------------------------------ |
200 | 179 | # Main Wing |
|
0 commit comments