2
2
#
3
3
# Created: Aug 2014, SUAVE Team
4
4
# Modified: Aug 2017, SUAVE Team
5
+ # Mar 2020, E. Botero
5
6
6
7
# ----------------------------------------------------------------------
7
8
# Imports
@@ -235,13 +236,34 @@ def vehicle_setup():
235
236
# ------------------------------------------------------------------
236
237
# Flaps
237
238
# ------------------------------------------------------------------
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
+
243
265
# add to vehicle
244
- vehicle .append_component (wing )
266
+ vehicle .append_component (wing )
245
267
246
268
# ------------------------------------------------------------------
247
269
# Horizontal Stabilizer
@@ -547,8 +569,8 @@ def configs_setup(vehicle):
547
569
# ------------------------------------------------------------------
548
570
config = SUAVE .Components .Configs .Config (base_config )
549
571
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
552
574
config .max_lift_coefficient_factor = 1.
553
575
554
576
configs .append (config )
@@ -558,9 +580,9 @@ def configs_setup(vehicle):
558
580
# ------------------------------------------------------------------
559
581
config = SUAVE .Components .Configs .Config (base_config )
560
582
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.
564
586
565
587
configs .append (config )
566
588
@@ -571,9 +593,9 @@ def configs_setup(vehicle):
571
593
config = SUAVE .Components .Configs .Config (base_config )
572
594
config .tag = 'landing'
573
595
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.
577
599
578
600
configs .append (config )
579
601
@@ -584,9 +606,9 @@ def configs_setup(vehicle):
584
606
config = SUAVE .Components .Configs .Config (base_config )
585
607
config .tag = 'short_field_takeoff'
586
608
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.
590
612
591
613
configs .append (config )
592
614
0 commit comments