SimpleLiftAndDrag:

Path: ACPro/ACPointMass

% Lift and drag for the drag polar.

   The standard atmosphere fields must have the same dimension as Mach.

   Type SimpleLiftAndDrag for a demo at constant altitude.

--------------------------------------------------------------------------
   Form:
   [lift, drag] = SimpleLiftAndDrag( m, d )
-------------------------------------------------------------------------

   ------
   Inputs
   ------
   m          (1,:)   Mach
   d          (1,1)   Data structure
                      .cLAlpha (1,1) Lift coefficient
                      .cD0     (1,1) Drag coefficient
                      .k       (1,1) Induced drag coefficient
                      .s       (1,1) Area
                      .p       (1,1) Standard atmosphere
                      .alpha   (1,1) Angle of attack

   -------
   Outputs
   -------
   lift       (1,1)   Lift force
   drag       (1,1)   Drag force
   qCL        (1,1)   Dynamic pressure times the lift coefficient

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

Children:

Common: Atmosphere/StdAtm
Common: Graphics/Plot2D

Back to the ACPro Module page