experience and innovation

Now Hiring!

-------------------------------------------------------------------------------
   Computes lift and drag coefficients for a vehicle using simple formulas. 
   You will have to call this routine for the wing, fuselage and tail
   separately using different characteristic lengths. The wing and tail use
   the mean chord and the fuselage uses the length. cL is the optimal.
   Altitude and velocity must be the same length.
-------------------------------------------------------------------------------
   Form:
   y = LiftAndDrag( d, altitude, velocity )
-------------------------------------------------------------------------------

   ------
   Inputs
   ------
   d              (1,1)  Aircraft parameters
                         .length      (1,1) Representative length (e.g. mean chord) (m)
                         .oswaldEff   (1,1) Oswald efficiency factor (0.9 to 1.0)
                         .aspectRatio (1,1) Aspect ratio for wing
                         .thickness   (1,1) Ratio of length to thickness
                         .s           (1,1) Area
   altitude       (1,n)  Altitude (m)
   velocity       (1,n)  Velocity at altitude (m/sec)

   -------
   Outputs
   -------
   y              (1,1)  Output data structure
                         .reynoldsNumber (1,n)
                         .skinFriction   (1,n)
                         .formDrag       (1,n)
                         .kInduced       (1,n)
                         .parasiticDrag  (1,n)
                         .cD0            (1,n)
                         .cL             (1,n) Optimal lift coefficient.
                         .lift           (1,n) Lift
                         .drag           (1,n) Drag
                         .loading        (1,n) Wing loading

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