NewtonianAlphaFromCAD:

Path: ACPro/Newtonian

--------------------------------------------------------------------------
   Compute the static angle of attack to balance gravity.

   This routine requires mks units because gravity is defined internally.
   fErr gives you the error at the end of the iterations by fzero.
   lift is optional. If not added it will balance the lift against
   gravity. Lift is defined as along z in the body frame.

   Type NewtonianAlphaFromCAD for a demo of X-15 Flight 91.
   
   The demo uses x15.obj.
   Since version 4.
--------------------------------------------------------------------------
   Form:
   [alpha, fErr] = NewtonianAlphaFromCAD( uMag, rho, g, mass, lift )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   uMag           (1,1)  Magnitude of the velocity (m/s)
   rho            (1,1)  Density (kg/m^3)
   g               (.)   CAD data structure
   mass           (1,1)  Vehicle mass (kg)
   lift           (1,1)  Desired lift (N)

   -------
   Outputs
   -------
   alpha          (1,:)  Angle of attack to balance gravity (rad)
   fErr           (3,1)  Force error
--------------------------------------------------------------------------
   Reference: X-15 Flight 91, http://en.wikipedia.org/wiki/X-15_Flight_91
   http://www.whiteeagleaerospace.com/blog/2009/08/24/the-highest-x-15-flight/
--------------------------------------------------------------------------

Children:

AC: ACCoord/UFromAlphaBeta
ACPro: Newtonian/NewtonianForceFromCAD
AeroUtils: CAD/LoadCAD
Common: Atmosphere/StdAtm

Back to the ACPro Module page