Remove debug messages, more adjustments to 3d model. Small revisions to YASim config.
[fg:toms-fgdata.git] / Aircraft / Spitfire / spitfireIIa.xml
1 <?xml version="1.0"?>
2 <!--
3 ************************************************************************
4 YASim aerodynamic model for a Spitfire IIa 
5
6 Author: Vivian Meazza
7
8 Version 1.1 
9
10 Use latest YASim engine config
11
12 The reference datum for measurements is the nose.
13 ************************************************************************
14 -->
15 <!-- Weight of everything but fuel  (4873 empty) -->
16 <airplane mass="5200">
17         <!-- Approach configuration -->
18         <approach speed="85"
19                                                 aoa="7"
20                                                 fuel="0.2">
21                 <control-setting axis="/controls/engines/engine[0]/throttle"
22                                                                                  value="0.25"/>
23                 <control-setting axis="/controls/engines/engine[0]/mixture"
24                                                                                  value="1.0"/>
25                 <control-setting axis="/controls/engines/engine[0]/propeller-pitch"
26                                                                                  value="1"/>
27                 <control-setting axis="/controls/engines/engine[0]/boost"
28                                                                                  value="1"/>
29                 <control-setting axis="/controls/flight/flaps"
30                                                                                  value="1.0"/>
31                 <control-setting axis="/controls/gear/gear-down"
32                                                                                  value="1"/>
33                 <solve-weight idx="0"
34                                                                         weight="200"/>
35         </approach>
36         <!-- Cruise configuration -->
37         <cruise speed="308"
38                                         alt="17550"
39                                         fuel="0.5">
40                 <control-setting axis="/controls/engines/engine[0]/throttle"
41                                                                                  value="1.0"/>
42                 <control-setting axis="/controls/engines/engine[0]/mixture"
43                                                                                  value="1.00"/>
44                 <control-setting axis="/controls/engines/engine[0]/boost"
45                                                                                  value="1"/>
46                 <control-setting axis="/controls/engines/engine[0]/propeller-pitch"
47                                                                                  value="1"/>
48                 <control-setting axis="/controls/flight/flaps"
49                                                                                  value="0.0"/>
50                 <control-setting axis="/controls/gear/gear-down"
51                                                                                  value="0"/>
52                 <solve-weight idx="0"
53                                                                         weight="200"/>
54         </cruise>
55
56         <!-- pilot's eyepoint -->
57         <cockpit x="-3.86"
58                                          y="0"
59                                          z="0.55"/>
60         <fuselage
61                 ax="0.0"
62                 ay="0.0"
63                 az="0.0"
64                 bx="-9.13"
65                 by="0.0"
66                 bz="0.0"
67                 width="1.0"
68                 taper="0.38"
69                 midpoint="0.4"
70 />
71         <!--
72 NACA airfoil section 2213  
73 stall aoa not available
74 flap drag not available
75 -->
76         <wing
77                 x="-2.99"
78                 y="0.77"
79                 z="-0.81"
80                 taper="0.3"
81                 incidence="2"
82                 twist="-2.0"
83                 length="4.580"
84                 chord="2.845"
85                 sweep="0"
86                 camber="0.0569"
87                 dihedral="6"
88                 effectiveness="1.3" >
89                 <stall aoa="24"
90                                          width="4"
91                                          peak="1.5"/>
92                 <flap0 start="0.00"
93                                          end="0.437"
94                                          lift="1.4"
95                                          drag="1.6"/>
96                 <flap1 start="0.437"
97                                          end="0.90"
98                                          lift="1.25"
99                                          drag="1.30"/>
100                 <control-input axis="/controls/flight/flaps"
101                                                                          control="FLAP0"/>
102                 <control-output control="FLAP0"
103                                                                                 prop="/surface-positions/flap-pos-norm"/>
104                 <control-speed control="FLAP0"
105                                                                          transition-time="10"/>
106                 <control-input axis="/controls/flight/aileron"
107                                                                          control="FLAP1"
108                                                                          split="true"
109                                                                          square="true"/>
110                 <control-output control="FLAP1"
111                                                                                 side="left"
112                                                                                 prop="/surface-positions/left-aileron-pos-norm"/>
113                 <control-output control="FLAP1"
114                                                                                 side="right"
115                                                                                 prop="/surface-positions/right-aileron-pos-norm"/>
116                 <control-speed control="FLAP1"
117                                                                          transition-time="2"/>
118         </wing>
119         <!-- tailplane -->
120         <hstab
121                 x="-8.22"
122                 y="0.25"
123                 z="0.0"
124                 taper="0.639"
125                 effectiveness="1.25"
126                 length="1.215"
127                 chord="1.246"
128                 sweep="5" >
129                 <stall aoa="22"
130                                          width="4"
131                                          peak="1.5"/>
132                 <flap0 start="0.0"
133                                          end="1"
134                                          lift="1.5"
135                                          drag="1.5"/>
136                 <control-input axis="/controls/flight/elevator"
137                                                                          control="FLAP0"
138                                                                          square="true"/>
139                 <control-input axis="/controls/flight/elevator-trim"
140                                                                          control="FLAP0"/>
141                 <control-output control="FLAP0"
142                                                                                 prop="/surface-positions/elevator-pos-norm"/>
143                 <control-speed control="FLAP0"
144                                                                          transition-time="1"/>
145         </hstab>
146         <!-- tail -->
147         <vstab x="-8.52"
148                                  y="0"
149                                  z="-0.29"
150                                  taper="0.386"
151                                  effectiveness="1.25"
152                                  incidence="-0.25"
153                                  length="1.65"
154                                  chord="0.994"
155                                  sweep="5" >
156                 <stall aoa="20"
157                                          width="4"
158                                          peak="1.5"/>
159                 <flap0 start="0"
160                                          end="1"
161                                          lift="1.5"
162                                          drag="1.5"/>
163                 <control-input axis="/controls/flight/rudder"
164                                                                          control="FLAP0"
165                                                                          invert="true"
166                                                                          square="true"/>
167                 <control-input axis="/controls/flight/rudder-trim"
168                                                                          control="FLAP0"
169                                                                          invert="true"/>
170                 <control-output control="FLAP0"
171                                                                                 prop="/surface-positions/rudder-pos-norm"
172                                                                                 min="1"
173                                                                                 max="-1"/>
174                 <control-speed control="FLAP0"
175                                                                          transition-time="1"/>
176         </vstab>
177         <!-- stub wing left -->
178         <vstab x="-2.99"
179                                  y="0.32"
180                                  z="-0.81"
181                                  taper="0"
182                                  incidence="-2"
183                                  twist="0"
184                                  chord="2.845"
185                                  sweep="0"
186                                  camber="0.0569"
187                                  dihedral="90"
188                                  length="0.503"  >
189                 <stall aoa="15"
190                                          width="4"
191                                          peak="1.5"/>
192                 <flap0 start="0.00"
193                                          end="1"
194                                          lift="1.4"
195                                          drag="1.6"/>
196                 <control-input axis="/controls/flight/flaps"
197                                                                          control="FLAP0"/>
198                 <control-output control="FLAP0"
199                                                                                 prop="/surface-positions/flap-pos-norm"/>
200                 <control-speed control="FLAP0"
201                                                                          transition-time="10"/>
202         </vstab>
203         <!-- stub wing right -->
204         <vstab x="-2.99"
205                                  y="-0.32"
206                                  z="-0.81"
207                                  taper="0"
208                                  incidence="-2"
209                                  twist="0"
210                                  chord="2.845"
211                                  sweep="0"
212                                  camber="0.0569"
213                                  dihedral="-90"
214                                  length="0.503"  >
215                 <stall aoa="15"
216                                          width="4"
217                                          peak="1.5"/>
218                 <flap0 start="0.00"
219                                          end="1"
220                                          lift="1.4"
221                                          drag="1.6"/>
222                 <control-input axis="/controls/flight/flaps"
223                                                                          control="FLAP0"/>
224                 <control-output control="FLAP0"
225                                                                                 prop="/surface-positions/flap-pos-norm"/>
226                 <control-speed control="FLAP0"
227                                                                          transition-time="10"/>
228         </vstab>
229         <!-- radiator 'wing' right -->
230         <vstab x="-3.23"
231                                  y="-0.51"
232                                  z="1.02"
233                                  taper="0"
234                                  incidence="0"
235                                  twist="0"
236                                  chord="1.114"
237                                  sweep="0"
238                                  camber="0.0"
239                                  dihedral="-84"
240                                  length="0.63"  >
241                 <stall aoa="20"
242                                          width="4"
243                                          peak="1.5"/>
244                 <flap0 start="0.00"
245                                          end="1"
246                                          lift="1.4"
247                                          drag="1.6"/>
248                 <control-input axis="/controls/engines/engine/cowl-flaps-norm"
249                                                                          control="FLAP0"
250                                                                          src0="0"
251                                                                          src1="1"
252                                                                          dst0="0.0"
253                                                                          dst1="0.25"/>
254                 <control-output control="FLAP0"
255                                                                                 prop="/engines/engine/cowl-flaps-norm"/>
256                 <control-speed control="FLAP0"
257                                                                          transition-time="3" />
258         </vstab>
259         <!-- propeller and engine -->
260         <!-- moment = radius(m)* propeller mass(kg)/2 - equation provided by Andy Ross -->
261         <!--  cruise-rpm documented gear ratio of 0.477  min-rpm="1500" max-rpm="3000"
262     gear-ratio = "0.477" moment = 37.15 
263     "80"-->
264         <propeller   x="-1.42"
265                                                          y="0"
266                                                          z="-0.25"
267                                                          mass="2055"
268                                                          moment="80"
269                                                          radius="1.638"
270                                                          cruise-speed="300"
271                                                          cruise-rpm="1431"
272                                                          cruise-power="1150"
273                                                          cruise-alt="17550"
274                                                          min-rpm="715"
275                                                          max-rpm="1431"
276                                                          gear-ratio="0.477"
277                         >
278                 <actionpt x="-0.75"
279                                                         y="0"
280                                                         z="0"/>
281                 <control-input axis="/controls/engines/engine[0]/propeller-pitch"
282                                                                          control="ADVANCE"/>
283                 <piston-engine
284                         eng-power="880"
285                         eng-rpm="3000"
286                         displacement="1649"
287                         compression="6"
288                         turbo-mul="3.15"
289                         wastegate-mp="55.3715"
290                         supercharger="1"
291                                         >
292                         <control-input axis="/controls/engines/engine[0]/throttle"
293                                                                                  control="THROTTLE"/>
294                         <control-input axis="/controls/engines/engine[0]/boost-control"
295                                                                                  src0="-1"
296                                                                                  src1="1"
297                                                                                  dst0="-1"
298                                                                                  dst1="1"
299                                                                                  control="THROTTLE"/>
300                         <control-input axis="/controls/engines/engine[0]/starter"
301                                                                                  control="STARTER"/>
302                         <control-input axis="/controls/engines/engine[0]/magnetos"
303                                                                                  control="MAGNETOS"/>
304                         <control-input axis="/controls/engines/engine[0]/mixture"
305                                                                                  control="MIXTURE"/>
306                         <control-input axis="/controls/engines/engine[0]/boost"
307                                                                                  control="BOOST"/>
308                 </piston-engine>
309         </propeller>
310         <!-- simulate MG recoil -->
311         <thruster x="3.5"
312                                                 y="0"
313                                                 z="0.4"
314                                                 vx="-1"
315                                                 vy="0"
316                                                 vz="0.05"
317                                                 thrust="2000">
318                 <control-input axis="/sim/ai/recoil"
319                                                                          control="THROTTLE"
320                                                                          src0="0"
321                                                                          src1="1"
322                                                                          dst0="0"
323                                                                          dst1="1"/>
324         </thruster>
325
326         <thruster x="3.5"
327                                                 y="0"
328                                                 z="0.4"
329                                                 vx="1"
330                                                 vy="0"
331                                                 vz="-0.05"
332                                                 thrust="1000">
333                 <control-input axis="/sim/ai/runout"
334                                                                          control="THROTTLE"
335                                                                          src0="0"
336                                                                          src1="1"
337                                                                          dst0="0"
338                                                                          dst1="1"/>
339         </thruster>
340
341         <!-- left main spring="0.7" damp="3.0"-->
342         <gear
343                 x="-2.20"
344                 y="0.87"
345                 z="-2.00"
346                 compression="0.25"
347                 upx="-0.31"
348                 upy="-0.07"
349                 upz="0.95"
350                 spring="0.5"
351                 damp="2.0">
352                 <control-input axis="/controls/gear/brake-left"
353                                                                          control="BRAKE"
354                                                                          transition-time="1"
355                                                                          src0="0"
356                                                                          src1="1"
357                                                                          dst0="0"
358                                                                          dst1="0.75"/>
359                 <control-speed control="BRAKE"
360                                                                          transition-time="1"/>
361                 <control-input axis="/controls/gear/brake-parking"
362                                                                          control="BRAKE"/>
363                 <control-input axis="/controls/gear/chock-left"
364                                                                          control="BRAKE"
365                                                                          split="true"/>
366                 <control-input axis="/controls/gear/gear-down"
367                                                                          control="EXTEND"/>
368                 <control-speed control="EXTEND"
369                                                                          transition-time="9"/>
370                 <control-output control="EXTEND"
371                                                                                 prop="/gear/gear/position-norm"/>
372         </gear>
373
374         <!-- right main spring="0.7" damp="3.0" -->
375         <gear
376                 x="-2.20"
377                 y="-0.87"
378                 z="-2.00"
379                 compression="0.25"
380                 upx="-0.31"
381                 upy="0.07"
382                 upz="0.95"
383                 spring="0.5"
384                 damp="2.0"
385 >
386                 <control-input axis="/controls/gear/brake-right"
387                                                                          control="BRAKE"
388                                                                          transition-time="1"
389                                                                          src0="0"
390                                                                          src1="1"
391                                                                          dst0="0"
392                                                                          dst1="0.75"/>
393                 <control-speed control="BRAKE"
394                                                                          transition-time="1"/>
395                 <control-input axis="/controls/gear/brake-parking"
396                                                                          control="BRAKE"/>
397                 <control-input axis="/controls/gear/chock-right"
398                                                                          control="BRAKE"/>
399                 <control-input axis="/controls/gear/gear-down"
400                                                                          control="EXTEND"/>
401                 <control-speed control="EXTEND"
402                                                                          transition-time="7"/>
403                 <control-output control="EXTEND"
404                                                                                 prop="/gear/gear[1]/position-norm"/>
405         </gear>
406         <!-- Tail wheel -->
407         <!-- tail wheel casters freely in Spitfire -->
408         <gear x="-8.48"
409                                 y="0"
410                                 z="-0.66"
411                                 compression="0.15"
412                                 castering="1">
413                 <control-input axis="/controls/gear/tailwheel-lock"
414                                                                          src0="0"
415                                                                          src1="1"
416                                                                          dst0="1"
417                                                                          dst1="1"
418                                                                          control="CASTERING"/>
419         </gear>
420         <!-- dummy Tail wheel - add a little friction to make it flyable! -->
421         <gear x="-8.48"
422                                 y="0"
423                                 z="-0.66"
424                                 compression="0.15"
425                                 dfric="0.4"
426                                 sfric ="0.5">
427                 <control-input axis="/controls/gear/brake-parking"
428                                                                          control="BRAKE"
429                                                                          transition-time="0"
430                                                                          src0="0"
431                                                                          src1="1"
432                                                                          dst0="0.15"
433                                                                          dst1="0.15"/>
434         </gear>
435         <!-- Canopy -->
436         <gear x="-3.90"
437                                 y="0.0"
438                                 z="0.7"
439                                 compression="1">
440                 <control-input axis="/controls/flight/canopy-slide"
441                                                                          control="EXTEND"/>
442                 <control-speed control="EXTEND"
443                                                                          transition-time="2"/>
444                 <control-output control="EXTEND"
445                                                                                 prop="/gear/canopy/position-norm"/>
446         </gear>
447
448         <!-- Fuselage tanks. 
449 Weight of contents calculated using 100 octane AVGAS density of 695 kg/m3 @ 15degC -->
450         <tank x="-2.80"
451                                 y="0"
452                                 z="0.17"
453                                 capacity="335"/>
454         <!-- upper 48 imp gals -->
455         <tank x="-2.56"
456                                 y="0"
457                                 z="-0.45"
458                                 capacity="258"/>
459         <!--  lower 37 imp gals -->
460
461         <!-- Ballast and Weights -->
462         <!-- cockpit, radio, oxygen tanks etc-->
463         <ballast x="-4.3"
464                                          y="0"
465                                          z="-0.3"
466                                          mass="500"/>
467
468         <!-- 5 x 17.5 lbs lead ballast weights fitted in tail-->
469         <ballast x="-8.50"
470                                          y="0"
471                                          z="-0.15"
472                                          mass="87.5"/>
473
474         <!-- armament -->
475         <!-- 8 x .303 guns 253.5lbs 
476         2800 rnds 186 lbs say 60 lbs per installation-->
477         <ballast x="-3.0"
478                                          y="3.85"
479                                          z="-0.48"
480                                          mass="60"/>
481         <ballast x="-3.0"
482                                          y="-3.85"
483                                          z="-0.48"
484                                          mass="60"/>
485         <ballast x="-3.0"
486                                          y="2.91"
487                                          z="-0.57"
488                                          mass="60"/>
489         <ballast x="-3.0"
490                                          y="-2.91"
491                                          z="-0.57"
492                                          mass="60"/>
493         <ballast x="-3.0"
494                                          y="2.67"
495                                          z="-0.60"
496                                          mass="60"/>
497         <ballast x="-3.0"
498                                          y="-2.67"
499                                          z="-0.60"
500                                          mass="60"/>
501         <ballast x="-3.0"
502                                          y="2.07"
503                                          z="-0.65"
504                                          mass="60"/>
505         <ballast x="-3.0"
506                                          y="-2.07"
507                                          z="-0.65"
508                                          mass="60"/>
509 <!--Oil Cooler-->
510         <ballast x="-3.2"
511                                          y="2.07"
512                                          z="-0.88"
513                                          mass="2.75"/>
514         <!-- pilot -->
515         <weight x="-3.95"
516                                         y="0"
517                                         z="-0.2"
518                                         mass-prop="/yasim/spitfire/pilot-lb"/>
519 </airplane>