FGAerodynamics

class jsbsim.FGAerodynamics

Encapsulates the aerodynamic calculations.

This class owns and contains the list of force/coefficients that define the aerodynamic properties of an aircraft. Here also, such unique phenomena as ground effect, aerodynamic reference point shift, and maximum lift curve tailoff are handled.

Configuration File Format for <aerodynamics> Section:

<aerodynamics>
   <alphalimits unit="{RAD | DEG}">
     <min> {number} </min>
     <max> {number} </max>
   </alphalimits>
   <hysteresis_limits unit="{RAD | DEG}">
     <min> {number} </min>
     <max> {number} </max>
   </hysteresis_limits>
   <aero_ref_pt_shift_x>  
     <function>
       {function contents}
     </function> 
   </aero_ref_pt_shift_x>  
   <function>
     {function contents}
   </function>
   <axis name="{LIFT | DRAG | SIDE | ROLL | PITCH | YAW}">
     {force or moment definitions}
   </axis>
   {additional axis definitions}
</aerodynamics>

Optionally two other coordinate systems may be used.

  1. Body coordinate system:

<axis name="{X | Y | Z}">
  1. Axial-Normal coordinate system:

<axis name="{AXIAL | NORMAL | SIDE}">

Systems may NOT be combined, or a load error will occur.

get_forces() ndarray

Gets the aerodynamic force for an axis.

Parameters:

n – Axis index. This could be 0, 1, or 2, or one of the axis enums: eX, eY, eZ.

Returns:

the force acting on an axis

get_moments_MRC() ndarray

Gets the aerodynamic moment about the Moment Reference Center for an axis.

Returns:

the moment about a single axis (as described also in the similar call to GetForces(int n).