HalbachField:

Path: Electrical/Motor

% Compute the field of a Halbach Segment

 Uses ideal dipoles to plot a Halbach field. The dipoles are in the
 xy-plane along x and at y = 0
 The segment number is:

 0: All up
 1: left down right up left 5 
 2: add a 45 degree dipole between each
 3: add 22.5, 45, 77.5 dipoles between each etc.

 Type HalbachField for a demo.

--------------------------------------------------------------------------
   Form:
   HalbachField( n, gap, xW, yW )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   n      (1,1) Segment number (see above)
   gap    (1,1) Gap at y = 0 to prevent infinite fields
   xW     (1,1) Plot width in x (m)
   yW     (1,1) Plot width in y (m)

   -------
   Outputs
   -------
   None

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

Children:

Common: General/DeBlankLT
Common: Graphics/NewFig
Common: Graphics/PltStyle
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Math: Linear/Mag

Back to the Electrical Module page