JSBSim External forces
Jump to navigation
Jump to search
JSBSim provides a framework for external reactions, or rather "arbitrary forces", because this feature can be used to model a wide variety of forces that act on a vehicle. Some examples include: parachutes, catapult, arresting hook, pushback, moorings and hydrodynamic reactions for seaplanes.
Frames
JSBSim incorporates several frame of reference. For external forces the chosen frame of reference is (only) used to determine the direction of the force. The location of the force, i.e. it's point of application, is always defined in the structural frame.
- Body XYZ The body frame uses the X axis for forward and aft, with + to the front. The Y axis is side to side with + to the right. The Z axis is up and down, with + being down. The origin of this frame is the Center of Gravity (CG), about which the aircraft forces and moments are summed and the resulting accelerations are integrated to get velocities.
- LOCAL XYZ The local frame is a world-based frame, with X positive north, Y positive east and Z completing the right handed system positive down towards the center of the Earth.
- Wind XYZ The wind frame X-axis points directly into the relative wind. The Z-axis is perpendicular to the X-axis, and remains within the aircraft body axis XZ plane (also called the reference plane). The Y-axis completes a right hand coordinate system. The origin of this frame is the AeroRP.
Configuration file format:
<external_reactions>
<force name="{string}" frame="{BODY | LOCAL | WIND}">
<location unit="{FT | M | IN}">
<x> {number} </x>
<y> {number} </y>
<z> {number} </z>
</location>
<direction>
<x> {number} </x>
<y> {number} </y>
<z> {number} </z>
</direction>
</force>
</external_reactions>
Notes
- You can adjust the magnitude of the external force by setting the /fdm/jsbsim/external_reactions/{name}/magnitude property. This value is in pounds.
- Direction of the force can also be adjusted on the fly, by adjusting the /fdm/jsbsim/external_reactions/{name}/{x|y|z} properties.
- Multiple forces can be added.
Usage examples
External forces can be used to model many phenomena. Some examples:
- Modelling of added mass effects of buoyant airships and balloons. For use see e.g. Zeppelin NT.
- Modelling of exhaust thrust for piston engines. For use see e.g. North American P-51 Mustang.
- Modelling of brake-chutes, spin-chutes etc. For use see e.g. Vostok 1 spacecraft.
- Modelling of mooring of airships and flying boats. For use see e.g. Zeppelin NT.
- Modelling of airport push-back services. For use see e.g. Boeing 747-200.
- Modelling of hydrodynamics. For use see e.g. Short Empire.
- Modelling of propulsion for ground vehicles. For use see e.g. Followme.
- Modelling of marine propulsion. For use see e.g. https://github.com/andgi/FlightGear-UB_I.
- Modelling of weight shifting for jumping out parachutists. For use see e.g. C182s.
- Modelling of ground handling towbar. For use see e.g. C172p and C182s.