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:
   d = SimpleLiftAndDrag( 'a' );
   [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:

AerospaceUtils: AeroData/AtmData
Common: Atmosphere/StdAtm
Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle

Back to the ACPro Module page