DrawVAWT:

--------------------------------------------------------------------------
   Draw a vertical axis wind turbine.

   Allows for variable 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
   DrawVAWT( 'initialize', name, lBlade, lArm, chordBlade, lTower, dTower, nBlades )

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

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

   Type DrawVAWT for a demo.

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

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

   'initialize'
       name       (1,:) Name
       lBlade     (1,1) Length of the blades
       lArm       (1,1) Length of the blade support arms
       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'
       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