22#
33# Created: Aug 2014, SUAVE Team
44# Modified: Aug 2017, SUAVE Team
5+ # Mar 2020, E. Botero
56
67# ----------------------------------------------------------------------
78# Imports
@@ -235,13 +236,34 @@ def vehicle_setup():
235236 # ------------------------------------------------------------------
236237 # Flaps
237238 # ------------------------------------------------------------------
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-
239+
240+ flap = SUAVE .Components .Wings .Control_Surfaces .Flap ()
241+ flap .tag = 'flap'
242+ flap .span_fraction_start = 0.10
243+ flap .span_fraction_end = 0.75
244+ flap .deflection = 0.0 * Units .degrees
245+ flap .configuration_type = 'double_slotted'
246+ flap .chord_fraction = 0.30
247+ wing .append_control_surface (flap )
248+
249+ slat = SUAVE .Components .Wings .Control_Surfaces .Slat ()
250+ slat .tag = 'slat'
251+ slat .span_fraction_start = 0.324
252+ slat .span_fraction_end = 0.963
253+ slat .deflection = 0.0 * Units .degrees
254+ slat .chord_fraction = 0.1
255+ wing .append_control_surface (slat )
256+
257+ aileron = SUAVE .Components .Wings .Control_Surfaces .Aileron ()
258+ aileron .tag = 'aileron'
259+ aileron .span_fraction_start = 0.7
260+ aileron .span_fraction_end = 0.963
261+ aileron .deflection = 0.0 * Units .degrees
262+ aileron .chord_fraction = 0.16
263+ wing .append_control_surface (aileron )
264+
243265 # add to vehicle
244- vehicle .append_component (wing )
266+ vehicle .append_component (wing )
245267
246268 # ------------------------------------------------------------------
247269 # Horizontal Stabilizer
@@ -547,8 +569,8 @@ def configs_setup(vehicle):
547569 # ------------------------------------------------------------------
548570 config = SUAVE .Components .Configs .Config (base_config )
549571 config .tag = 'takeoff'
550- config .wings ['main_wing' ].flaps . angle = 20. * Units .deg
551- config .wings ['main_wing' ].slats . angle = 25. * Units .deg
572+ config .wings ['main_wing' ].control_surfaces . flap . deflection = 20. * Units .deg
573+ config .wings ['main_wing' ].control_surfaces . slat . deflection = 25. * Units .deg
552574 config .max_lift_coefficient_factor = 1.
553575
554576 configs .append (config )
@@ -558,9 +580,9 @@ def configs_setup(vehicle):
558580 # ------------------------------------------------------------------
559581 config = SUAVE .Components .Configs .Config (base_config )
560582 config .tag = 'cutback'
561- config .wings ['main_wing' ].flaps . angle = 20. * Units .deg
562- config .wings ['main_wing' ].slats . angle = 20. * Units .deg
563- config .max_lift_coefficient_factor = 1. #0.95
583+ config .wings ['main_wing' ].control_surfaces . flap . deflection = 20. * Units .deg
584+ config .wings ['main_wing' ].control_surfaces . slat . deflection = 20. * Units .deg
585+ config .max_lift_coefficient_factor = 1.
564586
565587 configs .append (config )
566588
@@ -571,9 +593,9 @@ def configs_setup(vehicle):
571593 config = SUAVE .Components .Configs .Config (base_config )
572594 config .tag = 'landing'
573595
574- config .wings ['main_wing' ].flaps . angle = 30. * Units .deg
575- config .wings ['main_wing' ].slats . angle = 25. * Units .deg
576- config .max_lift_coefficient_factor = 1. #0.95
596+ config .wings ['main_wing' ].control_surfaces . flap . deflection = 30. * Units .deg
597+ config .wings ['main_wing' ].control_surfaces . slat . deflection = 25. * Units .deg
598+ config .max_lift_coefficient_factor = 1.
577599
578600 configs .append (config )
579601
@@ -584,9 +606,9 @@ def configs_setup(vehicle):
584606 config = SUAVE .Components .Configs .Config (base_config )
585607 config .tag = 'short_field_takeoff'
586608
587- config .wings ['main_wing' ].flaps . angle = 20. * Units .deg
588- config .wings ['main_wing' ].slats . angle = 20. * Units .deg
589- config .max_lift_coefficient_factor = 1. #0.95
609+ config .wings ['main_wing' ].control_surfaces . flap . deflection = 20. * Units .deg
610+ config .wings ['main_wing' ].control_surfaces . slat . deflection = 20. * Units .deg
611+ config .max_lift_coefficient_factor = 1.
590612
591613 configs .append (config )
592614
0 commit comments