Debian Codegraph @

Docs/README.yasim

raw
1 Coordinate system notes: All positions specified are in meters (which
2 is weird, since all other units in the file are English). The X axis
3 points forward, Y is left, and Z is up. Take your right hand, and
4 hold it like a gun. Your first and second fingers are the X and Y
5 axes, and your upwards-pointing thumb is the Z. This is slightly
6 different from the coordinate system used by JSBSim. Sorry. The
7 origin can be placed anywhere, so long as you are consistent. I use
8 the nose of the aircraft.
9
10 XML Elements
11 ------------
12
13 airplane: The top-level element for the file. It contains only one
14 attribute:
15 mass: The empty (no fuel) weight, in pounds.
16
17 approach: The approach parameters for the aircraft. The solver will
18 generate an aircraft that matches these settings. The element
19 can (and should) contain <control> elements indicating pilot
20 input settings, such as flaps and throttle, for the
21 approach.
22 speed: The approach airspeed, in knots TAS.
23 aoa: The approach angle of attack, in degrees
24 fuel: Fraction (0-1) of fuel in the tanks. Default is 0.2.
25
26 cruise: The cruise speed and altitude for the solver to match. As
27 above, this should contain <control> elements indicating
28 aircraft configuration. Especially, make sure the engines
29 are generating enough thrust at cruise!
30 speed: The cruise speed, in knots TAS.
31 alt: The cruise altitude, in feet MSL.
32 fuel: Fraction (0-1) of fuel in the tanks. Default is 0.2.
33
34 cockpit: The location of the cockpit (pilot eyepoint).
35 x,y,z: eyepoint location (see coordinates note)
36
37 fuselage: This defines a tubelike structure. It will be given an even
38 mass and aerodynamic force distribution by the solver. You
39 can have as many as you like, in any orientation you please.
40 ax,ay,az: One end of the tube (typically the front)
41 bx,by,bz: The other ("back") end.
42 width: The width of the tube, in meters.
43 taper: The approximate radius at the "tips" of the fuselage
44 expressed as a fraction (0-1) of the width value.
45 midpoint: The location of the widest part of the fuselage,
46 expressed as a fraction of the distance between A and B.
47 idrag: Multiplier for the "induced drag" generated by this
48 object. Default is one. With idrag=0 the fuselage
49 generates only drag.
50 cx,cy,cz: Factors for the generated drag in the fuselages "local
51 coordinate system" with x pointing from end to front,
52 z perpendicular to x with y=0 in the aircraft coordinate
53 system. E.g. for a fuselage of a height of 2 times the
54 width you can define cy=2 and (due to the doubled front
55 surface) cx=2.
56
57 wing: This defines the main wing of the aircraft. You can have
58 only one (but see below about using vstab objects for extra
59 lifting surfaces). The wing should have a <stall> subelement to
60 indicate stall behavior, control surface subelements (flap0,
61 flap1, spoiler, slat) to indicate what and where the control
62 surfaces are, and <control> subelements to map user input
63 properties to the control surfaces.
64 x,y,z: The "base" of the wing, specified as the location of
65 the mid-chord (not leading edge, trailing edge, or
66 aerodynamic center) point at the root of the LEFT
67 (!) wing.
68 length: The length from the base of the wing to the midchord
69 point at the tip. Note that this is not the same
70 thing as span.
71 chord: The chord of the wing at its base, along the X axis
72 (not normal to the leading edge, as it is
73 sometimes defined).
74 incidence: The incidence angle at the wing root, in degrees.
75 Zero is level with the fuselage (as in an
76 aerobatic plane), positive means that the leading
77 edge is higher than the trailing edge (as in a
78 trainer).
79 twist: The difference between the incidence angle at the
80 wing root and the incidence angle at the wing
81 tip. Typically, this is a negative number so
82 that the wing tips have a lower angle of attack
83 and stall after the wing root (washout).
84 taper: The taper fraction, expressed as the tip chord
85 divided by the root chord. A taper of one is a
86 hershey bar wing, and zero would be a wing ending
87 at a point. Defaults to one.
88 sweep: The sweep angle of the wing, in degrees. Zero is
89 no sweep, positive angles are swept back.
90 Defaults to zero.
91 dihedral: The dihedral angle of the wing. Positive angles
92 are upward dihedral. Defaults to zero.
93 idrag: Multiplier for the "induced drag" generated by this
94 surface. In general, low aspect wings will
95 generate less induced drag per-AoA than high
96 aspect (glider) wings. This value isn't
97 constrained well by the solution process, and may
98 require tuning to get throttle settings correct in
99 high AoA (approach) situations.
100 camber: The lift produced by the wing at zero angle of
101 attack, expressed as a fraction of the maximum
102 lift produced at the stall AoA.
103
104 hstab: These defines the horizontal stabilizer of the aircraft.
105 Internally, it is just a wing object and therefore works the
106 same in XML. You are allowed only one hstab object; the
107 solver needs to know which wing's incidence to play with to
108 get the aircraft trimmed correctly.
109
110 vstab: A "vertical" stabilizer. Like hstab, this is just another
111 wing, with a few special properties. The surface is not
112 "mirrored" as are wing and hstab objects. If you define a
113 left wing only, you'll only get a left wing. The default
114 dihedral, if unspecified, is 90 degrees instead of zero.
115 But all parameters are equally settable, so there's no
116 requirement that this object be "vertical" at all. You can
117 use it for anything you like, such as extra wings for
118 biplanes. Most importantly, these surfaces are not involved
119 with the solver computation, so you can have none, or as
120 many as you like.
121
122 mstab: A mirrored horizontal stabilizer. Exactly the same as wing, but
123 not involved with the solver computation, so you can have none,
124 or as many as you like.
125
126 stall: A subelement of a wing (or hstab/vstab/mstab) that specifies the
127 stall behavior.
128 aoa: The stall angle (maximum lift) in degrees. Note that
129 this is relative to the wing, not the fuselage (since
130 the wing may have a non-zero incidence angle).
131 width: The "width" of the stall, in degrees. A high value
132 indicates a gentle stall. Low values are viscious
133 for a non-twisted wing, but are acceptable for a
134 twisted one (since the whole wing will not stall at
135 the same time).
136 peak: The height of the lift peak, relative to the
137 post-stall secondary lift peak at 45 degrees.
138 Defaults to 1.5. This one is deep voodoo, and
139 probably doesn't need to change much. Bug me for an
140 explanation if you're curious.
141
142 flap0, flap1, slat, spoiler:
143 These are subelements of wing/hstab/vstab objects, and specify
144 the location and effectiveness of the control surfaces.
145 start: The position along the wing where the control
146 surface begins. Zero is the root, one is the tip.
147 end: The position where the surface ends, as above.
148 lift: The lift multiplier for a flap or slat at full
149 extension. One is a no-op, a typical aileron might
150 be 1.2 or so, a giant jetliner flap 2.0, and a
151 spoiler 0.0. For spoilers, the interpretation is a
152 little different -- they spoil only "prestall" lift.
153 Lift due purely to "flat plate" effects isn't
154 affected. For typical wings that stall at low AoA's
155 essentially all lift is pre-stall and you don't have
156 to care. Jet fighters tend not to have wing
157 spoilers, for exactly this reason. This value is
158 not applicable to slats, which affect stall AoA
159 only.
160 drag: The drag multiplier, as above. Typically should be
161 higher than the lift multiplier for flaps.
162 aoa: Applicable only to slats. This indicates the
163 angle by which the stall AoA is translated by the
164 slat extension.
165
166 thruster: A very simple "thrust only" engine object. Useful for
167 things like thrust vectoring nozzles. All it does is map
168 its THROTTLE input axis to its output thrust rating. Does
169 not consume fuel, etc...
170 thrust: Maximum thrust in pounds
171 x,y,z: The point on the airframe where thrust will be
172 applied.
173 vx,vy,vy: The direction of the thrust in airframe
174 coordinates. The vector will be normalized
175 automatically, so any non-zero vector will work
176 fine.
177
178 jet: A turbojet/fan engine. It accepts a <control> subelement to map a
179 property to its throttle setting, and an <actionpt> subelement
180 to place the action point of the thrust at a different
181 position than the mass of the engine.
182 x,y,z: The location of the engine, as a point mass.
183 If no actionpt is specified, this will also
184 be the point of application of thrust.
185 mass: The mass of the engine, in pounds.
186 thrust: The maximum sea-level thrust, in pounds.
187 afterburner: Maximum total thrust with afterburner/reheat,
188 in pounds [defaults to "no additional
189 thrust"].
190 rotate: Vector angle of the thrust in degrees about the
191 Y axis [0].
192 n1-idle: Idling rotor speed [55].
193 n1-max: Maximum rotor speed [102].
194 n2-idle: Idling compressor speed [73].
195 n2-max: Maximum compressor speed [103].
196 tsfc: Thrust-specific fuel consumption [0.8].
197 This should be considerably lower for modern
198 turbofans.
199 egt: Exhaust gas temperature at takeoff [1050].
200 epr: Engine pressure ratio at takeoff [3.0].
201 exhaust-speed: The maximum exhaust speed in knots [~1555].
202 spool-time: Time, in seconds, for the engine to respond to
203 90% of a commanded power setting.
204
205 propeller: A propeller. This element requires an engine subtag.
206 Currently <piston-engine> and <turbine-engine> are
207 supported.
208 x,y,z: The position of the mass (!) of the
209 engine/propeller combination. If the point
210 of force application is different (and it
211 will be) it should be set with an <actionpt>
212 subelement.
213 mass: The mass of the engine/propeller, in pounds.
214 moment: The moment, in kg-meters^2. This has to be
215 hand calculated and guessed at for now. A
216 more automated system will be forthcoming.
217 Use a negative moment value for
218 counter-rotating ("European" -- CCW as seen
219 from behind the prop) propellers.
220 A good guess for this value is the radius of
221 the prop (in meters) squared times the mass
222 (kg) divided by three; that is the moment of
223 a plain "stick" bolted to the prop shaft.
224 radius: The radius, in meters, or the propeller.
225 cruise-speed: The max efficiency cruise speed of the
226 propeller. Generally not the same as the
227 aircraft's cruise speed.
228 cruise-rpm: The RPM of the propeller at max-eff. cruise.
229 cruise-power: The power sunk by the prop at cruise, in horsepower.
230 cruise-alt: The reference cruise altitude in feet.
231 takeoff-power: The takeoff power required by the propeller...
232 takeoff-rpm: ...at the given takeoff RPM.
233 min-rpm: The minimum operational RPM for a constant speed
234 propeller. This is the speed to which the
235 prop governor will seek when the blue lever
236 is at minimum. The coarse-stop attribute
237 limits how far the governor can go into trying
238 to reach this RPM.
239 max-rpm: The maximum operational RPM for a constant speed
240 propeller. See above. The fine-stop attribute
241 limits how far the governor can go in trying
242 to reach this RPM.
243 fine-stop: The minimum pitch of the propeller (high RPM) as a
244 ratio of ideal cruise pitch. This is set to 0.25
245 by default -- a higher value will result in a
246 lower RPM at low power settings (e.g. idle, taxi,
247 and approach).
248 coarse-stop: The maximum pitch of the propeller (low RPM) as
249 a ratio of ideal cruise pitch. This is set to
250 4.0 by default -- a lower value may result in a
251 higher RPM at high power settings.
252 gear-ratio: The factor by which the engine RPM is multiplied
253 to produce the propeller RPM. Optional (defaults
254 to 1.0).
255 contra: When set (contra="1"), this indicates that the
256 propeller is a contra-rotating pair. It
257 will not contribute to the aircraft's net
258 gyroscopic moment, nor will it produce
259 asymmetric torque on the aircraft body.
260 Asymmetric slipstream effects, when
261 implemented, will also be zero when this is
262 set.
263
264 piston-engine: A piston engine definition. This must be a subelement
265 of an enclosing <propeller> tag.
266 eng-power: Maximum BHP of the engine at sea level.
267 eng-rpm: The engine RPM at which eng-power is developed
268 displacement: The engine displacement in cubic inches.
269 compression: The engine compression ratio.
270 turbo-mul: The turbo/super-charger pressure multiplier.
271 Static pressure will be multiplied by this
272 value to get the manifold pressure.
273 wastegate-mp: The maximum manifold pressure. Beyond
274 this, the gate will release to keep the
275 MP below this number. (inHG). This value
276 can be changed at runtime using the
277 WASTEGATE control axis, which is a
278 multiplier in the range [0:1].
279 turbo-lag: Time lag, in seconds, for 90% of a power change
280 to be reflected in the turbocharger boost
281 pressure.
282
283 turbine-engine: A turbine engine definition. This must be a subelement
284 of an enclosing <propeller> tag.
285 eng-power: Maximum BHP of the engine at a suitable
286 cruise altitude.
287 eng-rpm: The engine RPM at which eng-power is
288 developed. Note that this is "shaft" RPM
289 as seen by the propeller. Don't use a
290 gear-ratio on the enclosing propeller, or
291 else you'll get confused. :)
292 alt: The altitude at which eng-power is developed.
293 This should be high enough to be lower (!)
294 than the flat-rating power.
295 flat-rating: The maximum allowed power developed by
296 the engine. Most turboprops are flat
297 rated below a certain altitude and
298 temperature range to prevent engine
299 damage.
300 min-n2: N2 (percent) turbine speed at zero throttle.
301 max-n2: N2 (percent) turbine speed at max throttle.
302 bsfc: Specific fuel consumption, in lbs/hr per
303 horsepower.
304
305
306 actionpt: Defines an "action point" for an enclosing jet or propeller
307 element. This is the location where the force from the thruster
308 will be applied.
309 x,y,z: The location of force application.
310
311 gear: Defines a landing gear. Accepts <control> subelements to map
312 properties to steering and braking. Can also be used to simulate
313 floats. Although the coefficients are still called ..fric, it
314 is calculated in fluids as a drag (proportional to the square
315 of the speed). In fluids gears are not considered to detect
316 crashes (as on ground).
317 x,y,z: The location of the fully-extended gear tip.
318 compression: The distance in meters along the "up" axis that
319 the gear will compress.
320 initial-load: The initial load of the spring in multiples of
321 compression. Defaults to 0. (With this parameter
322 a lower spring-constants will be used for the
323 gear-> can reduce numerical problems (jitter))
324 Note: the spring-constant is varied from 0%
325 compression to 20% compression to get continuous
326 behavior around 0 compression. (could be physically
327 explained by wheel deformation)
328 upx/upy/upz: The direction of compression, defaults to
329 vertical (0,0,1) if unspecified. These are
330 used only for a direction -- the vector need
331 not be normalized, as the length is specified
332 by "compression".
333 sfric: Static (non-skidding) coefficient of
334 friction. Defaults to 0.8.
335 dfric: Dynamic friction. Defaults to 0.7.
336 spring: A dimensionless multiplier for the automatically
337 generated spring constant. Increase to make
338 the gear stiffer, decrease to make it
339 squishier.
340 damp: A dimensionless multiplier for the automatically
341 generated damping coefficient. Decrease to
342 make the gear "bouncier", increase to make it
343 "slower". Beware of increasing this too far:
344 very high damping forces can make the numerics
345 unstable. If you can't make the gear stop
346 bouncing with this number, try increasing the
347 compression length instead.
348 on-water: if this is set to "0" the gear will be ignored if
349 on water. Defaults to "0"
350 on-solid: if this set to "0" the gear will be ignored if
351 not on water. Defaults to "1"
352 speed-planing:
353 spring-factor-not-planing:
354 At zero speed the spring factor is multiplied by
355 spring-factor-not-planing. Above speed-planing this
356 factor is equal to 1. The idea is, to use this for
357 floats simulating the transition from swimming to
358 planing. speed-planing defaults to 0,
359 spring-factor-not-planing defaults to 1.
360 reduce-friction-by-extension: at full extension the friction is
361 reduced by this relative value. 0.7 means 30% friction
362 at full extension. If you specify a value greater
363 than one, the friction will be zero before reaching
364 full extension. Defaults to "0"
365 ignored-by-solver: with the on-water/on-solid tags you can have more
366 than one set of gears in one aircraft, If the solver
367 (who automatically generates the spring constants)
368 would take all gears into account, the result would be
369 wrong. E. G. set this tag to "1" for all gears, which
370 are not active on runways. Defaults to "0". You can
371 not exclude all gears in the solving process.
372
373 launchbar: Defines a catapult launchbar or strop. The default acceleration
374 provided by the catapult is 25m/s^2. This can be
375 modified by the use of the control axis LACCEL.
376 x,y,z: The location of the mount point of the launch bar or
377 strop on the aircraft.
378 length: The length of the launch bar from mount point to tip
379 down-angle: The max angle below the horizontal the
380 launchbar can achieve.
381 up-angle: The max angle above the horizontal the launchbar
382 can achieve.
383 holdback-{x,y,z}: The location of the holdback mount point
384 on the aircraft.
385 holdback-length: The length of the holdback from mount
386 point to tip. Note: holdback up-angle and
387 down-angle are the same as those defined
388 for the launchbar and are not specified in
389 the configuration.
390
391 tank: A fuel tank. Tanks in the aircraft are identified
392 numerically (starting from zero), in the order they are
393 defined in the file. If the left tank is first, "tank[0]"
394 will be the left tank.
395 x,y,z: The location of the tank.
396 capacity: The maximum contents of the tank, in pounds. Not
397 gallons -- YASim supports fuels of varying
398 densities.
399 jet: A boolean. If present, this causes the fuel
400 density to be treated as Jet-A. Otherwise,
401 gasoline density is used. A more elaborate
402 density setting (in pounds per gallon, for
403 example) would be easy to implement. Bug me.
404
405 ballast: This is a mechanism for modifying the mass distribution of
406 the aircraft. A ballast setting specifies that a particular
407 amount of the empty weight of the aircraft must be placed at
408 a given location. The remaining non-ballast weight will be
409 distributed "intelligently" across the fuselage and wing
410 objects. Note again: this does NOT change the empty weight
411 of the aircraft.
412 x,y,z: The location of the ballast.
413 mass: How much mass, in pounds, to put there. Note that
414 this value can be negative. I find that I often need
415 to "lighten" the tail of the aircraft.
416
417 weight: This is an added weight, something not part of the empty
418 weight of the aircraft, like passengers, cargo, or external
419 stores. The actual value of the mass is not specified here,
420 instead, a mapping to a property is used. This allows
421 external code, such as the panel, to control the weight
422 (loading a given cargo configuration from preference files,
423 dropping bombs at runtime, etc...)
424 x,y,z: The location of the weight.
425 mass-prop: The name of the fgfs property containing the
426 mass, in pounds, of this weight.
427 size: The aerodynamic "size", in meters, of the
428 object. This is important for external stores,
429 which will cause drag. For reasonably
430 aerodynamic stuff like bombs, the size should be
431 roughly the width of the object. For other
432 stuff, you're on your own. The default is zero,
433 which results in no aerodynamic force (internal
434 cargo).
435
436 solve-weight:
437 Subtag of approach and cruise parameters. Used to specify a
438 non-zero setting for a <weight> tag during solution. The
439 default is to assume all weights are zero at the given
440 performance numbers.
441 idx: Index of the weight in the file (starting with zero).
442 weight: Weight setting in pounds.
443
444
445 control-input:
446 This element manages a mapping from fgfs properties (user
447 input) to settable values on the aircraft's objects. Note
448 that the value to be set MUST (!) be valid on the given
449 object type. This is not checked for by the parser, and
450 will cause a runtime crash if you try it. Wing's don't have
451 throttle controls, etc... Note that multiple axes may be
452 set on the same value. They are summed before setting.
453
454 axis: The name of the double-valued fgfs property "axis" to
455 use as input, such as "/controls/flight/aileron".
456 control: Which control axis to set on the objects. It can have
457 the following values:
458 THROTTLE - The throttle on a jet or propeller.
459 MIXTURE - The mixture on a propeller.
460 REHEAT - The afterburner on a jet
461 PROP - The propeller advance
462 BRAKE - The brake on a gear.
463 STEER - The steering angle on a gear.
464 INCIDENCE - The incidence angle of a wing.
465 FLAP0 - The flap0 deflection of a wing.
466 FLAP1 - The flap1 deflection of a wing.
467 FLAP[0/1]EFFECTIVENESS - a multiplier for flap lift, but not drag
468 (useful for blown flaps)
469 SLAT - The slat extension of a wing.
470 SPOILER - The spoiler extension for a wing.
471 CYCLICAIL - The "aileron" cyclic input of a rotor
472 CYCLICELE - The "elevator" cyclic input of a rotor
473 COLLECTIVE - The collective input of a rotor
474 ROTORENGINEON - If not equal zero the rotor is rotating
475 WINCHRELSPEED - The relative winch speed
476 LACCEL - The acceleration provided by the catapult.
477 {... and many more, see FGFDM.cpp ...}
478 invert: Negate the value of the property before setting on
479 the object.
480 split: Applicable to wing control surfaces. Sets the
481 normal value on the left wing, and a negated value
482 on the right wing.
483 square: Squares the value before setting. Useful for
484 controls like steering that need a wide range, yet
485 lots of sensitivity in the center. Obviously only
486 applicable to values that have a range of [-1:1] or
487 [0:1].
488 src0/src1/dst0/dst1:
489 If present, these defined a linear mapping from the
490 source to the output value. Input values in the
491 range src0-src1 are mapped linearly to dst0-dst1,
492 with clamping for input values that lie outside the
493 range.
494
495 control-output:
496 This can be used to pass the value of a YASim control axis
497 (after all mapping and summing is applied) back to the
498 property tree.
499
500 control: Name of the control axis. See above.
501 prop: Property node to receive the value.
502 side: Optional, for split controls. Either "right" or "left"
503 min/max: Clamping applied to output value.
504
505 control-speed:
506 Some controls (most notably flaps and hydraulics) have
507 maximum slew rates and cannot respond instantly to pilot
508 input. This can be implemented with a control-speed tag,
509 which defines a "transition time" required to slew through
510 the full input range. Note that this tag is
511 semi-deprecated, complicated control input filtering can be
512 done much more robustly from a Nasal script.
513
514 control: Name of the control axis. See above.
515 transition-time: Time in seconds to slew through input range.
516
517 control-setting:
518 This tag is used to define a particular setting for a
519 control axis inside the <cruise> or <approach> tags, where
520 obviously property input is not available. It can be used,
521 for example, to inform the solver that the approach
522 performance values assume full flaps, etc...
523
524 axis: Name of the control input (i.e. a property name)
525 value: Value of the control axis.
526
527 hitch: A hitch, can be used for winch-start (in gliders) or aerotow (in
528 gliders and motor aircrafts) or for external cargo with helicopter.
529 You can do aerotow over the net via multiplayer (see j3 and bocian
530 as an example).
531
532 name: the name of the hitch. must be aerotow if you want to do
533 aerotow via multiplayer. You will find many properties
534 at /sim/hitches/name. Most of them are directly tied to
535 the internal variables, you can modify them as you like.
536 You can add a listener to the property "broken", e. g. for
537 playing a sound.
538 x,y,z: The position of the hitch
539 force-is-calculated-by-other: if you want to simulate aerotowing
540 over the internet, set this value to "1" in the motor
541 aircraft. Don't specify or set this to zero in gliders.
542 In a LAN the time lag might be small enough to set it on
543 both aircrafts to "0". It's intended, that this is done
544 automatically in the future.
545
546 tow: The tow used for aerotow or winch. This must be a subelement
547 of an enclosing <hitch> tag.
548 length: upstretched length in m
549 weight-per-meter: in kg/m
550 elastic-constant: lower values give higher elasticity
551 break-force: in N
552 mp-auto-connect-period: the every x seconds a towed multiplayer
553 aircraft is searched. If found, this tow is connected
554 automatically, parameters are copied from the other
555 aircraft. Should be set only in the motor aircraft, not
556 in the glider
557
558 winch: The tow used for aerotow or winch. This must be a subelement
559 of an enclosing <hitch> tag.
560 max-tow-length:
561 min-tow-length:
562 initial-tow-length: all are in m. The initial tow length also
563 defines the length/search radius used for the mp-autoconnect
564 feature
565 max-winch-speed: in m/s
566 power: in kW
567 max-force: in N
568
569
570 rotor: A rotor. Used for simulating helicopters. You can have one, two
571 or even more.
572 There is a drawing of a rotor in the Doc-directory
573 (README.yasim.rotor.png) Please find the measures from this drawing
574 for several parameters in square brackets [].
575 If you specify a rotor, you do not need to specify a wing or hstab,
576 the settings for approach and cruise will be ignored then. You have
577 to specify the solver results manually. See below.
578 The rotor generates downwash acting on all stabs, surfaces and
579 fuselages. For all fuselages in the rotor downwash you should
580 specify idrag="0" to get realistic results.
581
582 name: The name of the rotor.
583 (some data is stored at /rotors/name/)
584 The rpm, cone angle, yaw angle and roll angle are stored
585 for the complete rotor. For every blade the position
586 angle, the flap angle and the incidence angle are stored.
587 All angles are in degree, positive values always mean "up".
588 This is not completely tested, but seem to work at least
589 for rotors rotating counterclockwise.
590 A value stall gives the fraction of the rotor in stall
591 (weighted by the fraction the have on lift and drag
592 without stall). Use this for modifying the rotor-sound.
593 x,y,z: The position of the rotor center
594 nx,ny,nz: The normal of the rotor (pointing upwards, will be
595 normalized by the computer)
596 fx,fy,fz: A Vector pointing forward, if not perpendicular to the
597 normal it will be corrected by the computer
598 diameter: The diameter in meter [D]
599 numblades: The number of blades
600 weightperblade: The weight per blade in pounds
601 relbladecenter: The relative center of gravity of the blade. Maybe
602 not 100% correct interpreted; use 0.5 for the start and
603 change in small steps [b/R]
604 chord: The chord of the blade its base, along the X axis
605 (not normal to the leading edge, as it is
606 sometimes defined). [c]
607 twist: The difference between the incidence angle at the
608 blade root and the incidence angle at the wing
609 tip. Typically, this is a negative number so
610 that the rotor tips have a lower angle of attack.
611 taper: The taper fraction, expressed as the tip chord
612 divided by the root chord. A taper of one is a
613 bar blade, and zero would be a blade ending
614 at a point. Defaults to one. [d/c]
615 rel-len-where-incidence-is-measured: If the blade is twisted,
616 you need a point where to measure the incidence angle.
617 Zero means at the base, 1 means at the tip. Typically
618 it should be something near 0.7
619 rel-len-blade-start: Typically the blade is not mounted in the
620 center of the rotor [a/R]
621 rpm: rounds per minute.
622 phi0: initial position of this rotor
623 ccw: determines if the rotor rotates clockwise (="0") or
624 counterclockwise (="1"), (if you look on the top of the
625 normal, so the bo105 has counterclockwise rotor).
626 "true" and "false" are not any longer supported to
627 increase my lifespan. ;-)
628 maxcollective: The maximum of the collective incidence in degree
629 mincollective: The minimum of the collective incidence in degree
630 maxcyclicele: The maximum of the cyclic incidence in degree for
631 the elevator like function
632 mincyclicele: The minimum of the cyclic incidence in degree for
633 the elevator like function
634 maxcyclicail: The maximum of the cyclic incidence in degree for
635 the aileron like function
636 mincyclicail: The minimum of the cyclic incidence in degree for
637 the aileron like function
638 airfoil-incidence-no-lift: non symmetric airfoils produces lift
639 with no incidence. This is is the incidence, where the
640 airfoil is producing no lift. Zero for symmetrical airfoils
641 (default)
642 incidence-stall-zero-speed:
643 incidence-stall-half-sonic-speed: the stall incidence is a function
644 of the speed. I found some measured data, where this is
645 linear over a wide range of speed. Of course the linear
646 region ends at higher speeds than zero, but just
647 extrapolate the linear behavior to zero.
648 lift-factor-stall: In stall airfoils produce less lift. Without
649 stall the c-lift of the profile is assumed to be
650 sin(incidence-"airfoil-incidence-no-lift")*liftcoef;
651 And in stall:
652 sin(2*(incidence-"airfoil-incidence-no-lift"))*liftcoef*...
653 ..."lift-factor-stall";
654 Therefore this factor is not the quotient between lift
655 with and without stall. Use 0.28 if you have no idea.
656 drag-factor-stall: The drag of an airfoil in stall is larger than
657 without stall.
658 Without stall c-drag is assumed to be
659 abs(sin(incidence-"airfoil-incidence-no-lift"))...
660 ..*dragcoef1+dragcoef0);
661 With stall this is multiplied by drag-factor
662 stall-change-over: For incidence<"incidence-stall" there is no stall.
663 For incidence>("incidence-stall"+"stall-change-over") there
664 is stall. In the range between this incidences it is
665 interpolated linear.
666
667 pitch-a:
668 pitch-b: collective incidence angles, If you start flightgear
669 with --log-level=info, flightgear reports lift and needed
670 power for theses incidence angles
671 forceatpitch-a:
672 poweratpitch-b:
673 poweratpitch-0: old tokens, not supported any longer, the result are
674 not exactly the expected lift and power values. Will be
675 removed in one of the next updates.directly.Use "real"
676 coefficients instead (see below) and adjust the lift with
677 rotor-correction-factor.
678
679 The airfoil of the rotor is described as follows:
680 The way is to define the lift and drag coefficients directly.
681 Without stall the c-lift of the profile is assumed to be
682 sin(incidence-"airfoil-incidence-no-lift")*liftcoef;
683 And in stall:
684 sin(2*(incidence-"airfoil-incidence-no-lift"))*liftcoef*...
685 ..."lift-factor-stall";
686 Without stall c-drag is assumed to be
687 abs(sin(incidence-"airfoil-incidence-no-lift"))...
688 ..*dragcoef1+dragcoef0);
689 See above, how the coefficients are defined with stall.
690 The parameters:
691 airfoil-lift-coefficient: liftcoef
692 airfoil-drag-coefficient0: dragcoef0
693 airfoil-drag-coefficient1: dragcoef1
694 To find the right values: see README.yasim.rotor.ods
695 (Open Office file) or README.yasim.rotor.xls (Excel
696 file). With theses files you can generate graphs of the
697 airfoil coefficients and adjust the parameters to match
698 real airfoils. For many airfoils you find data published
699 in the internet. Parameters for the airfoils NACA 23012
700 (main rotor of bo105) and NACA 0012 (tail rotor of bo105?)
701 are included.
702
703 rotor-correction-factor:
704 If you calculate the lift of a heli rotor or even of a
705 propeller, you get a value larger than the real measured
706 one. (Due to vortex effects.) This is considered in the
707 simulation, but with a old theory by Prantl, which is known
708 to give still too large. This is corrected by this token,
709 default: 1
710 flapmin: Minimum flapping angle. (Should normally never reached)
711 flapmax: Maximum flapping angle. (Should normally never reached)
712 flap0: Flapping angle at no rotation, i.e. -5
713 dynamic: this changes the reactions speed of the rotor to an input.
714 normally 1 (Maybe there are rotors with a little faster
715 reaction, than use a value a little greater than one.
716 A value greater than one will result in a more inert,
717 system. Maybe it's useful for simulating the rotor of the
718 Bell UH1
719 rellenflaphinge: The relative length from the center of the rotor
720 to the flapping hinge. Can be taken from pictures of the
721 helicopter (i.e. 0 for Bell206, about 0.05 for most
722 rotors) For rotors without flapping hinge (where the blade
723 are twisted instead, i.e. Bo 105, Lynx) use a mean value,
724 maybe 0.2. This value has a extreme result in the behavior
725 of the rotor [F/r]
726 sharedflaphinge: determines, if the rotor has one central flapping
727 hinge (="1") for the blades (like the Bell206 or the tail
728 rotor of the Bo 105), default is "0".
729 delta3: Some rotors have a delta3 effect, which results in a
730 decreasing of the incidence when the rotor is flapping.
731 A value of 0 (as most helicopters have) means no change in
732 incidence, a value of 1 result in a decreases of one degree
733 per one degree flapping.
734 So delta3 is the proportional factor between flapping and
735 decrease of incidence. I.e. the tail rotor of a Bo105 has
736 a delta3 of 1.
737 In some publications delta3 is described by an angle. The
738 value in YASim is the atan of this angle
739 delta: A factor for the damping constant for the flapping. 1 means
740 a analytical result, which is only a approximation. Has a
741 very strong result in the reaction of the rotor system on
742 control inputs.
743 If you know the flapping angle for a given cyclic input you
744 can adjust this by changing this value. Or if you now the
745 maximum roll rate or ...
746 translift-maxfactor: Helicopters have "translational lift", which
747 is due to turbulence. In forward flying the rotor gets less
748 turbulence air and produces more lift. The factor is the
749 quotient between lift at high airspeeds to the lift at
750 hover (with same pitch).
751 translift-ve: the speed, where the translational lift reaches 1/e of
752 the maximum value. In m/s.
753 ground-effect-constant: Near to the ground the rotor produces more
754 torque than in higher altitudes. The ground effect is
755 calculated as
756 factor = 1+diameter/altitude*"ground-effect-constant"
757 number-of-parts:
758 number-of-segments: The rotor is simulated in "number-of-parts"
759 different directions.
760 In every direction the rotor is simulated at
761 number-of-segments points. If the value is to small, the
762 rotor will react unrealistic. If it is to high, cpu-power
763 will be wasted. I now use a value of 8 for
764 "number-of-parts" and 8 for number-of-segments for the main
765 rotor and 4 for "number-of-parts" and 5 for
766 "number-of-segments" for the tail rotor.
767 "number-of-parts" must be a multiple of 4 (if not, it
768 is corrected)
769 cyclic-factor: The response of a rotor to cyclic input is hard to
770 calculate (its a damped oscillator in resonance, some
771 parameters have very large impact to the cyclic response)
772 With this parameter (default 1) you can adjust the
773 simulator to the real helo.
774 downwashfactor: A factor for the downwash of the rotor, default 1.
775 balance: The balance of the rotor. 1.0: the rotor is 100% balanced,
776 0.0: half of the blades are missing. Use a value near one
777 (0.98 ... 0.999) to add some vibration.
778 tiltcenterx:
779 tiltcentery:
780 tiltcenterz: The center for the tilting of the complete rotorhead/
781 mast. Can be used for simulating of the Osprey or small
782 autogyros.
783 mintiltyaw:
784 mintiltpitch:
785 mintiltroll:
786 maxtiltyaw:
787 maxtiltpitch:
788 maxtiltroll: The limits (in degree) for tilting the rotor head
789
790 All rotor can have <control> subelements for the cyclic
791 (CYCLICELE, CYCLICAIL) and collective (COLLECTIVE) input.
792 and can have <control> subelements for the tilting the whole rotor
793 head around the y-axis (TILTPITCH), the x-axis (TILTROLL) and the
794 z-axis (TILTYAW). ROTORBALANCE is a factor for the balance.
795
796 rotorgear: If you are using one or more rotors you have to define a
797 rotorgear. It connects all the rotors and adds a simple engine.
798 In future it will be possible, to add a YASim-engine.
799 max-power-engine: the maximum power of the engine, in kW.
800 engine-prop-factor: the engine is working as a pd-regulator. This
801 is the width of the regulation-band, or, in other words,
802 the inverse of the proportional-factor of the regulator.
803 If you set it to 0.02, than up to 98% of the rotor-rpm
804 the engine will produce maximum torque. At 100% of
805 the engine will produce no torque. It is planned to use
806 YASim-engines instead of this simple engine.
807 engine-accel-limit: The d-factor of the engine is defined as the
808 maximum acceleration rate of the engine in %/s,
809 default is 5%/s.
810 max-power-rotor-brake: the maximum power of the rotor brake, in kW
811 at normal rpm (most? real rotor brakes would be overheated
812 if used at normal rpm, but this is not simulated now)
813 rotorgear-friction: the power loss due to friction in kW at normal
814 RPM
815 yasimdragfactor:
816 yasimliftfactor: the solver is not working with rotor-aircraft.
817 Therefore you have to specify the results yourself.
818 10 for drag and 140 for lift seem to be good starting
819 values. Although the solve is not invoked for aircraft
820 with at least one rotor, you need to specify the cruise
821 and the approach settings. The approach speed is needed to
822 calculate the gear springs. Use a speed of approx. 50knots.
823 They do not need to match any real value.
824
825 The rotorgear needs a <control> subelement for the engine
826 (ROTORGEARENGINEON) and can have further <control> subelements:
827 ROTORBRAKE: rotor brake
828 ROTORRELTARGET: the target rpm of the engine relative to
829 the "normal" value for the governor. Default is
830 1.
831 ROTORENGINEMAXRELTORQUE: the maximum torque of the engine
832 relative to the torque defined by the engine-
833 power. Default is 1. By setting the rel-target
834 to a large number you get control over the
835 engine by this control.
836 Alternatively you can use these two values for
837 individual start-up sequences (see the s58)
838