Skip to content

Commit fca9f11

Browse files
committed
B737
1 parent dc8409f commit fca9f11

File tree

1 file changed

+35
-14
lines changed

1 file changed

+35
-14
lines changed

tut_mission_B737.py

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -235,13 +235,34 @@ def vehicle_setup():
235235
# ------------------------------------------------------------------
236236
# Flaps
237237
# ------------------------------------------------------------------
238-
wing.flaps.chord = 0.30 # 30% of the chord
239-
wing.flaps.span_start = 0.10 # 10% of the span
240-
wing.flaps.span_end = 0.75
241-
wing.flaps.type = 'double_slotted'
242-
238+
239+
flap = SUAVE.Components.Wings.Control_Surfaces.Flap()
240+
flap.tag = 'flap'
241+
flap.span_fraction_start = 0.10
242+
flap.span_fraction_end = 0.75
243+
flap.deflection = 0.0 * Units.degrees
244+
flap.configuration_type = 'double_slotted'
245+
flap.chord_fraction = 0.30
246+
wing.append_control_surface(flap)
247+
248+
slat = SUAVE.Components.Wings.Control_Surfaces.Slat()
249+
slat.tag = 'slat'
250+
slat.span_fraction_start = 0.324
251+
slat.span_fraction_end = 0.963
252+
slat.deflection = 0.0 * Units.degrees
253+
slat.chord_fraction = 0.1
254+
wing.append_control_surface(slat)
255+
256+
aileron = SUAVE.Components.Wings.Control_Surfaces.Aileron()
257+
aileron.tag = 'aileron'
258+
aileron.span_fraction_start = 0.7
259+
aileron.span_fraction_end = 0.963
260+
aileron.deflection = 0.0 * Units.degrees
261+
aileron.chord_fraction = 0.16
262+
wing.append_control_surface(aileron)
263+
243264
# add to vehicle
244-
vehicle.append_component(wing)
265+
vehicle.append_component(wing)
245266

246267
# ------------------------------------------------------------------
247268
# Horizontal Stabilizer
@@ -547,8 +568,8 @@ def configs_setup(vehicle):
547568
# ------------------------------------------------------------------
548569
config = SUAVE.Components.Configs.Config(base_config)
549570
config.tag = 'takeoff'
550-
config.wings['main_wing'].flaps.angle = 20. * Units.deg
551-
config.wings['main_wing'].slats.angle = 25. * Units.deg
571+
config.wings['main_wing'].control_surfaces.flap.deflection = 20. * Units.deg
572+
config.wings['main_wing'].control_surfaces.slat.deflection = 25. * Units.deg
552573
config.max_lift_coefficient_factor = 1.
553574

554575
configs.append(config)
@@ -558,8 +579,8 @@ def configs_setup(vehicle):
558579
# ------------------------------------------------------------------
559580
config = SUAVE.Components.Configs.Config(base_config)
560581
config.tag = 'cutback'
561-
config.wings['main_wing'].flaps.angle = 20. * Units.deg
562-
config.wings['main_wing'].slats.angle = 20. * Units.deg
582+
config.wings['main_wing'].control_surfaces.flap.deflection = 20. * Units.deg
583+
config.wings['main_wing'].control_surfaces.slat.deflection = 20. * Units.deg
563584
config.max_lift_coefficient_factor = 1. #0.95
564585

565586
configs.append(config)
@@ -571,8 +592,8 @@ def configs_setup(vehicle):
571592
config = SUAVE.Components.Configs.Config(base_config)
572593
config.tag = 'landing'
573594

574-
config.wings['main_wing'].flaps.angle = 30. * Units.deg
575-
config.wings['main_wing'].slats.angle = 25. * Units.deg
595+
config.wings['main_wing'].control_surfaces.flap.deflection = 30. * Units.deg
596+
config.wings['main_wing'].control_surfaces.slat.deflection = 25. * Units.deg
576597
config.max_lift_coefficient_factor = 1. #0.95
577598

578599
configs.append(config)
@@ -584,8 +605,8 @@ def configs_setup(vehicle):
584605
config = SUAVE.Components.Configs.Config(base_config)
585606
config.tag = 'short_field_takeoff'
586607

587-
config.wings['main_wing'].flaps.angle = 20. * Units.deg
588-
config.wings['main_wing'].slats.angle = 20. * Units.deg
608+
config.wings['main_wing'].control_surfaces.flap.deflection = 20. * Units.deg
609+
config.wings['main_wing'].control_surfaces.slat.deflection = 20. * Units.deg
589610
config.max_lift_coefficient_factor = 1. #0.95
590611

591612
configs.append(config)

0 commit comments

Comments
 (0)