Skip to content

Commit 42a916a

Browse files
committed
fixed tutorials
1 parent 5647e80 commit 42a916a

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

B737_AVL_Tutorial/tut_mission_B737_AVL.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -213,17 +213,8 @@ def vehicle_setup():
213213
wing.symmetric = True
214214
wing.high_lift = True
215215
wing.dynamic_pressure_ratio = 1.0
216-
217-
# ------------------------------------------------------------------
218-
# Flaps
219-
# ------------------------------------------------------------------
220-
wing.flaps.chord = 0.30 # 30% of the chord
221-
wing.flaps.span_start = 0.10 # 10% of the span
222-
wing.flaps.span_end = 0.75
223-
wing.flaps.type = 'double_slotted'
224216

225-
# add to vehicle
226-
vehicle.append_component(wing)
217+
vehicle.append_component(wing)
227218

228219
# ------------------------------------------------------------------
229220
# Horizontal Stabilizer
@@ -242,8 +233,6 @@ def vehicle_setup():
242233
wing.chords.tip = .955 * Units.meter
243234
wing.chords.mean_aerodynamic = 8.0 * Units.meter
244235
wing.areas.reference = 32.488 * Units['meters**2']
245-
wing.areas.exposed = 199.7792 * Units['meters**2']
246-
wing.areas.wetted = 249.724 * Units['meters**2']
247236
wing.twists.root = 3.0 * Units.degrees
248237
wing.twists.tip = 3.0 * Units.degrees
249238
wing.origin = [32.83,0,1.14] # meters
@@ -262,7 +251,7 @@ def vehicle_setup():
262251
wing.tag = 'vertical_stabilizer'
263252

264253
wing.aspect_ratio = 1.91
265-
wing.sweeps.quarter_chord = 40. * Units.deg
254+
wing.sweeps.quarter_chord = 25. * Units.deg
266255
wing.thickness_to_chord = 0.08
267256
wing.taper = 0.25
268257
wing.span_efficiency = 0.9

Solar_UAV_Optimization/Procedure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,7 @@ def simple_sizing(nexus):
105105

106106
# Resize the motor
107107
motor = vec.propulsors.network.motor
108-
kv = motor.speed_constant
109-
motor = size_from_kv(motor, kv)
108+
motor = size_from_kv(motor)
110109

111110
# diff the new data
112111
vec.store_diff()

Solar_UAV_Optimization/Vehicles.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def base_setup():
5252
# Main Wing
5353
# ------------------------------------------------------------------
5454

55-
wing = SUAVE.Components.Wings.Wing()
55+
wing = SUAVE.Components.Wings.Main_Wing()
5656
wing.tag = 'main_wing'
5757

5858
wing.areas.reference = vehicle.reference_area
@@ -84,7 +84,7 @@ def base_setup():
8484
# Horizontal Stabilizer
8585
# ------------------------------------------------------------------
8686

87-
wing = SUAVE.Components.Wings.Wing()
87+
wing = SUAVE.Components.Wings.Horizontal_Tail()
8888
wing.tag = 'horizontal_stabilizer'
8989

9090
wing.aspect_ratio = 10.
@@ -116,7 +116,7 @@ def base_setup():
116116
# Vertical Stabilizer
117117
# ------------------------------------------------------------------
118118

119-
wing = SUAVE.Components.Wings.Wing()
119+
wing = SUAVE.Components.Wings.Vertical_Tail()
120120
wing.tag = 'vertical_stabilizer'
121121

122122
wing.aspect_ratio = 10.
@@ -181,8 +181,8 @@ def base_setup():
181181

182182
# Component 4 the Motor
183183
motor = SUAVE.Components.Energy.Converters.Motor_Lo_Fid()
184-
kv = 800. * Units['rpm/volt'] # RPM/volt is standard
185-
motor = size_from_kv(motor, kv)
184+
motor.speed_constant = 800. * Units['rpm/volt'] # RPM/volt is standard
185+
motor = size_from_kv(motor)
186186
motor.gear_ratio = 1. # Gear ratio, no gearbox
187187
motor.gearbox_efficiency = 1. # Gear box efficiency, no gearbox
188188
motor.motor_efficiency = 0.825;

0 commit comments

Comments
 (0)