1#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2#
3# Aircraft:
4#
5# ASW 20
6#
7# File
8# asw20-v1-nl-uiuc
9#
10# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11#
12# Authors:
13#
14# Michael Selig
15# http://www.uiuc.edu/~m-selig
16#
17# 2002/05/27   Initial workup
18# 2002/11/03   Many more refinements
19# 2002/11/08   Refinements before first release
20# 2003/06/08   More updates.  See README.asw20.html for details.
21#
22#
23#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
24#
25# References:
26#
27# - Johnson, R.H., "A Flight Test Evaluation of the ASW 20,"
28#   Soaring Magazine, May 1978
29#
30# - aero data from various sources and methods
31#
32# - Additional models and updates
33#   http://www.aae.uiuc.edu/m-selig/apasim.html
34#
35#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36#
37# Notes:
38#
39# Performace specs:
40# - Max L/D 41.7 @ approx 60 kts and 759 lbs w/ flaps at -6 deg
41#   (flaps are not yet modeled)
42#
43# Todo items:
44# [] obtain control deflection limits for ASW 20, using ASW 27 for now.
45# [] include water ballast
46# [] change moments of inertia w/ water ballast
47# [] add in ground effect
48# [x] model flaps         [/] flaps    to raise/drop
49# [x] add in spoilers     j/k spoilers to close/open
50# [x] include air sounds
51# [] include nonlinear Cn_beta for high side slip
52# [] stick to elevator throw is likely nonlinear, unlike what I have now
53# [] update included drag due to rudder deflection, aileron deflection, and side slip.
54#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55
56# various "init" FGFS settings
57init use_V_rel_wind_2U
58init use_dyn_on_speed_curve1
59init dyn_on_speed  2
60init dyn_on_speed_zero 1
61init use_Alpha_dot_on_speed 7   # [ft/sec] speed below which Alpha_dot is set to zero
62init use_gamma_horiz_on_speed 15 # [ft/sec] speed above which Gamma_horiz_deg is used in chase view [1]
63
64# downwash terms
65init downwashMode 100
66init downwashCoef 0.0114      # [1/ft] see asw20 notes 021026 p 1
67
68# geometry
69geometry bw   49.2       # [ft]   [x] see asw20 notes 021011
70geometry cbar  2.297     # [ft]   [x] see asw20 notes 021011
71geometry Sw  113         # [ft^2] [x] see asw20 notes 021011
72
73# estimates for now, based partly on ASW 27 maintenance manual
74controlSurface de 25 22 # [deg] max/min: 22 deg (nose up), -20 (nose down)
75controlSurface da 25 25 # [deg]
76controlSurface dr 31 31 # [deg]
77
78controlSurface flap_max  40 # [deg] max flap deflection, positive down
79controlSurface flap_rate 10 # [deg/sec] rate of flap deflection movement once commanded to move
80
81controlSurface spoiler_max   90 # [deg] max spoiler deflection (vertical)
82controlSurface spoiler_rate  30 # [deg/sec] rate of spoiler deflection movement once commanded to move
83
84
85# mass and moment of inertia data
86mass Weight 	728.736    # [lb]        [x] see asw20 notes 021011
87mass I_xx   	950.478	   # [slug-ft^2] [x] see asw20 notes 021011
88mass I_yy   	396.277	   # [slug-ft^2] [x] see asw20 notes 021011
89mass I_zz   	1295.657   # [slug-ft^2] [x] see asw20 notes 021011
90mass I_xz   	0          # [slug-ft^2] [x] see asw20 notes 021011
91
92# Apparent mass terms
93mass Mass_appMass_ratio  0.230         # [x] see asw20 notes 021011
94mass I_xx_appMass_ratio  0.103         # [x] see asw20 notes 021011
95mass I_yy_appMass_ratio  0.014         # [x] see asw20 notes 021011
96
97# simulates tow plane line tension for aero tows
98engine simpleSingle  110  # [lb]
99# simulates spoilers on throttle
100#engine simpleSingle  -100  # [lb]
101# for getting up in a hurry (unrealistic of course)
102#engine simpleSingle  780  # [lb]
103
104######################
105# Longitudinal terms #
106######################
107
108# Lift curve
109# wing and fuse CL for +-180 deg
110CL CLfa CLfa-01.dat 0 1      #
111CL CL_adot  0.347       # [/rad] [x] asw20 notes 021026 p 3 (see spreadsheet)
112CL CL_q     4.337       # [/rad] [x] asw20 notes 021026 p 1 (see spreadsheet)
113CL CL_de    0.195       # [/rad] [x] asw20 notes 021026 p 1 (see spreadsheet)
114CL CL_df    0.20        # [ ] lift due to flaps
115
116# parasite drag polar from +-180 deg for wing and tail
117CD CDfa CDfa-01.dat 0 1      #
118# base parasite drag coef
119CD CDo 0.0125                 # [] placeholder ........
120CD CD_de  0.0002              # [] placeholder ........
121
122CD CD_dr   0.0004             # [] placeholder ........
123CD CD_da   0.0003             # [] placeholder ........
124CD CD_beta 0.0150             # [] placeholder ........
125
126
127# Induced drag
128#CD CDK 0.0149                 # [-] [x] asw20 notes 021026 p 3 (see spreadsheet)
129CD CDK 0.0152                  # [-] [x] asw20 notes 021026 p 3 (see spreadsheet)
130                               #     [x] includes all CL^2 components (approx), including profile CL^2 drag
131CD CLK .1                      #         offset in parabolic drag polar
132
133CD CD_ds .025                  # [ ] spoiler drag
134
135# wing/fuse moment curve from +-180 deg
136Cm Cmfa   Cmfa-01.dat 0 1       # [-]     [x] Cmarc
137Cm Cmfade Cmfade-01.dat  0 1 1  # [-]     [x] see spreadsheet
138Cm Cm_q     -24.098             # [/rad]  [x] asw20 notes 021026 p 1 (see spreadsheet)
139Cm Cm_adot -1.928               # [/rad]  [x] asw20 notes 021026 p 1 (see spreadsheet)
140
141###########################
142# Lateral Direction terms #
143###########################
144
145# rudder dr terms
146CY CY_dr     0.158      # [/rad] [x] see asw20 notes 021026 p 4  (see spreadsheet)
147Cl Cl_dr     0.0065     # [/rad] [x] see asw20 notes 021026 p 4  (see spreadsheet)
148Cn Cn_dr    -0.041      # [/rad] [x] see asw20 notes 021026 p 4  (see spreadsheet)
149
150# yaw rate r terms
151CY CY_r      0.164      # [/rad] [x] see asw20 notes 021026 p 4  (see spreadsheet)
152Cl Cl_r      0.1551     # [/rad] [x] Cmarc result, see asw20 notes 021030 p 3 (see spreadsheet)
153                        #        [x] 0.0068 from vert fin, see asw20 notes 021026 p 4  (see spreadsheet)
154Cn Cn_r     -0.05389    # [/rad] [x] Cmarc result, see asw20 notes 021030 p 2  (see spreadsheet)
155                        #        [x] -.042 from vert fin,  see asw20 notes 021026 p 4  (see spreadsheet)
156
157# beta terms
158CY CY_beta  -0.316      # [/rad] [] Cmarc contribution
159                        #        [x] -.316 vert fin contribution
160Cl Cl_beta  -0.0693     # [/rad] [x] see asw20 notes 021030 p 4
161Cn Cn_beta   0.1007     # [/rad] [x] -.0045 Cmarc contribution, see asw20 notes 021030 p 4
162                        #        [x] 0.082 vert fin contribution
163                        #            Net is 0.0775, but this does not seem to provide
164                        #            enough damping.  Assume that the fuse produces
165                        #            some Cn_beta (30%) --> 0.1007
166
167# aileron da terms
168CY CY_da    -.0456      # [/rad] [] placeholder
169Cl Cl_da    -0.214      # [/rad] [] placeholder, see asw20 notes 021026 p 5
170Cn Cn_da    -0.017      # [/rad] [] placeholder
171
172# roll rate p terms
173#CY CY_p    -0.2        # [/rad]
174Cl Cl_p     -0.6843     # [/rad] [x] see asw20 notes 021030 p 1
175Cn Cn_p     -0.08591    # [/rad] [x] see asw20 notes 021030 p 1
176
177# nose wheel (must be position 0 if present)
178gear Dx_gear     0     3.2      # x-offset from CG [ft]
179gear Dy_gear     0     0        # y-offset from CG [ft]
180gear Dz_gear     0     2.2      # z-offset from CG [ft]
181gear cgear       0   350        # damping [lbs/ft/sec]
182gear kgear       0   700        # springiness [lbs/ft]
183gear muGear      0     0.01     # rolling coefficient
184gear strutLength 0     -.5      # gear travel [ft] (not yet used)
185
186# right gear (must be position 1 if present)
187gear Dx_gear     1     0.2      # [ft]
188gear Dy_gear     1     0.05     # [ft]
189gear Dz_gear     1     3.10     # [ft]
190gear cgear       1   200        # [lbs/ft/sec]
191gear kgear       1   400        # [lbs/ft]
192gear muGear      1     0.01     # rolling coefficient
193gear strutLength 1     -.5      # gear travel [ft] (not yet used)
194
195# left gear (must be position 2 if present)
196gear Dx_gear     2     0.2      # [ft]
197gear Dy_gear     2    -0.05     # [ft]
198gear Dz_gear     2     3.10     # [ft]
199gear cgear       2   200        # [lbs/ft/sec]
200gear kgear       2   400        # [lbs/ft]
201gear muGear      2     0.01     # rolling coefficient
202gear strutLength 2     -.5      # gear travel [ft] (not yet used)
203
204
205# right wing
206gear Dx_gear     3     0        # [ft]
207gear Dy_gear     3    26        # [ft]
208gear Dz_gear     3    -1.7      # [ft]
209gear cgear       3   150        # [lbs/ft/sec]
210gear kgear       3   300        # [lbs/ft]
211gear muGear      3     0.01     # rolling coefficient
212gear strutLength 3     -.5      # gear travel [ft] (not yet used)
213
214# left wing
215gear Dx_gear     4     0        # [ft]
216gear Dy_gear     4   -26        # [ft]
217gear Dz_gear     4    -1.7      # [ft]
218gear cgear       4   150        # [lbs/ft/sec]
219gear kgear       4   300        # [lbs/ft]
220gear muGear      4     0.02     # rolling coefficient
221gear strutLength 4     -.5      # gear travel [ft] (not yet used)
222
223# tail
224gear Dx_gear     5   -10        # [ft]
225gear Dy_gear     5     0        # [ft]
226gear Dz_gear     5    1.3       # [ft]
227gear cgear       5   400        # [lbs/ft/sec]
228gear kgear       5   800        # [lbs/ft]
229gear muGear      5     0.02     # rolling coefficient
230gear strutLength 5     -.5      # gear travel [ft] (not yet used)
231
232# ahead
233gear Dx_gear     6     5        # [ft]
234gear Dy_gear     6     0        # [ft]
235gear Dz_gear     6    2.6       # [ft]
236gear cgear       6    25        # [lbs/ft/sec]
237gear kgear       6    50        # [lbs/ft]
238gear muGear      6     0.0      # rolling coefficient
239gear strutLength 6     -.5      # gear travel [ft] (not yet used)
240
241# way ahead
242gear Dx_gear     7    10        # [ft]
243gear Dy_gear     7     0        # [ft]
244gear Dz_gear     7    0.3       # [ft]
245gear cgear       7    25        # [lbs/ft/sec]
246gear kgear       7    50        # [lbs/ft]
247gear muGear      7     0.0      # rolling coefficient
248gear strutLength 7     -.5      # gear travel [ft] (not yet used)
249
250*
251
252
253