RHSACFlatEarth:

Path: ACPro/ModelCreation

% Dynamics model for an aircraft on a flat Earth
 This uses the data structure generated by CreateAircraftModel.
 The default data structure is from the Gulfstream model.
 +z is normal to the Earth's surface. 

 You can add your own lift, drag and thrust models of the form:

 lift   = Lift( q, alpha, mach, d );
 Drag   = Drag( q, alpha, mach, d );
 Thrust = Thrust( mach, rho, d );

 Enter as pointers in the data structure.

 v is in the body frame.

 This function does not have provision for actuator lags.

--------------------------------------------------------------------------
   Form:
   d = RHSACFlatEarth;   % data structure
   [xDot, force, torque, lift, drag] = RHSACFlatEarth( x, ~,  d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x       (13,1) State vector [r;v;q;omega;thrust] (m,m/s,~,rad/s)
   t       (1,1)  Time (s) (not used)
   d       (.)    Data structure

   -------
   Outputs
   -------
   xDot    (13,1) State vector derivative [r;v;q;omega] (m,m/s,~,rad/s)
   force   (3,1)  Force (N)
   torque	(3,1)  Torque (Nm)
   lift    (1,1)  Lift force (N)
   drag    (1,1)  Drag force (N)

--------------------------------------------------------------------------

Children:

AC: ACCoord/AlphBeta
AC: ACData/Gulfstream
ACPro: ACProAerodynamics/DragPolar
ACPro: ACProAerodynamics/InducedDragCoeff
ACPro: ModelCreation/LiftCoeffStall
AerospaceUtils: AeroData/AtmData
AerospaceUtils: Coord/QIToBDot
Common: Atmosphere/StdAtm
Common: CommonData/SwooshWatermark
Common: Control/C2DZOH
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Quaternion/QForm
Common: Quaternion/QTForm
Math: Linear/Cross
Math: Linear/Mag
Math: Linear/SkewSymm
Math: Linear/Unit
Math: Trigonometry/CosD

Back to the ACPro Module page