DrawHAWT:

--------------------------------------------------------------------------
   Draw a horizontal axis wind turbine.

   Allows for variable yaw, generator angle, propeller angle and
   blade angles. The length and diameter of the tower and the length
   and chord of the blades can be specified. All other parameters
   are generated automatically.

   To use first initialize
   DrawHAWT( 'initialize', name, lBlade, chordBlade, lTower, dTower, nBlades )

   Then update each time step
   DrawHAWT( 'update', yaw, angleGen, angleProp, angleBlade, windVector )

   When you are done close the window
   DrawHAWT( 'close' )

   Type DrawHAWT for a demo.

--------------------------------------------------------------------------
   Form:
   DrawHAWT( 'initialize', name, lBlade, chordBlade, lTower, dTower, nBlades )
   DrawHAWT( 'update', yaw, angleGen, angleProp, angleBlade, windVector )
   DrawHAWT( 'close' )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   action     (1,:) 'initialize', 'update' or 'close'

   'initialize'
       name       (1,:) Name
       lBlade     (1,1) Length of the blades
       chordBlade (1,1) Chord of the blades
       lTower     (1,1) Length of the tower
       dTower     (1,1) Diameter of tower
       nBlades    (1,1) Number of blades

   'update'
       yaw        (1,1) Yaw angle (rad)
       angleGen   (1,1) Generator angle (rad)
       angleProp  (1,1) Propeller angle (rad)
       angleBlade (n,1) Blade pitch angles (rad)
       windVector (3,1) Wind vector

   'close'
       none

   -------
   Outputs
   -------
   none

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

Children:

Common: Graphics/Extrude
Common: Graphics/Frustrum
Common: Graphics/NewFig
Math: Linear/DupVect
Math: Linear/Unit