stephenbrooks.orgWork-Related ThingsHalbachArea Tool
Up

HalbachArea Tool

This program tries to automatically design a Halbach-style permanent magnet.  It outputs the coordinates of the magnet blocks, their magnetisation vectors, magnet harmonics and a PostScript diagram of the magnet.

This currently works on Windows at the commandline.  If ps2pdf is installed and in the path it will also try to convert the diagram to PDF.

The manufacture, tuning and design method for several examples these magnets is given in this paper.

- - - [Commandline Switches Help] - - -

Usage:
halbacharea R=30e-3 dipole=0.2 quad=30

Other switch examples:
gfr=0.025 good field region radius (m) (default 2R/3)
sext=66, oct=888 set higher poles (T/m2, T/m3)
Br=1.3 set remnant field (T) (default 1.07)
wedges=24 set initial number of angular wedges (default 16)
symmetry=1(none),2(top/bottom),4(quad) set symmetry type (default 2)
halfoff=1 offset segments by half a width (default 1 if open midplane, else 0)
ymidplane=0.002 open midplane half-height (m) (default 0), enables:
  midplanes=1(left),2(horiz),4(cross) number of midplanes to remove (default 2)
  removeadjacent=1 remove wedges adjacent to open midplane (default 1)
name=ABC set filename base (default 'magnet')

- - - [Download] - - -

HalbachArea Tool (.7z file, 59KB; Zip file, 70KB).
Use 7-Zip to open .7z files, WinZip files (less compression) provided for compatibility.

- - - [Screenshot] - - -

HalbachArea Tool

- - - [Examples] - - -

    // CBETA 4-energy fixed-field ERL return loop

halbacharea name=QF quad=-11.5624 R=43.1e-3 gfr=25e-3 symmetry=4 Br=1.15791
halbacharea name=BD dipole=-0.3081 quad=11.1475 R=40.1e-3 gfr=25e-3 Br=1.15791
halbacharea name=BDT2 dipole=-0.2543 quad=11.1475 R=44.938e-3 gfr=25e-3 Br=1.15791
halbacharea name=BDT1 dipole=-0.1002 quad=11.1475 R=49.085e-3 gfr=25e-3 Br=1.15791
halbacharea name=QD quad=11.1434 R=40.1e-3 gfr=25e-3 symmetry=4 Br=1.15791

    // ILC damping ring

halbacharea dipole=0.14 R=35.5e-3 gfr=10e-3 ymidplane=15e-3 Br=1.12
halbacharea quad=15 R=35.5e-3 gfr=10e-3 ymidplane=15e-3 Br=1.12
halbacharea sext=75 R=35.5e-3 gfr=10e-3 ymidplane=15e-3 Br=1.12

    // Low-emittance light source

halbacharea dipole=0.26 quad=250 R=5e-3 gfr=2e-3 Br=1.12 ymidplane=2e-3 wedges=18 midplanes=1
halbacharea dipole=0.49 quad=-250 R=5e-3 gfr=2e-3 Br=1.12 ymidplane=2e-3 wedges=18 midplanes=1

    // PETRA-IV magnets attempt

halbacharea name=PSD1A R=18e-3 sext=3300 gfr=7.9e-3 ymidplane=5e-3 Br=1.15791 halfoff=0 removeadjacent=0 wedges=24
halbacharea name=PSD1D R=15.5e-3 sext=4150 gfr=7.9e-3 ymidplane=3e-3 Br=1.15791 halfoff=0 removeadjacent=0 wedges=24
halbacharea name=PSF2A R=15.5e-3 sext=4200 gfr=7.9e-3 ymidplane=3e-3 Br=1.15791 halfoff=0 removeadjacent=0 wedges=24
halbacharea name=PQF1 R=15.5e-3 quad=60 gfr=7.9e-3 ymidplane=5e-3 Br=1.15791
halbacharea name=PQD2 R=15.5e-3 quad=70 gfr=7.9e-3 ymidplane=5e-3 Br=1.15791
halbacharea name=PQD3 R=15.5e-3 quad=50 gfr=7.9e-3 ymidplane=5e-3 Br=1.15791
halbacharea name=PQF6 R=15.5e-3 quad=95 gfr=7.9e-3 ymidplane=3e-3 Br=1.15791 halfoff=0 removeadjacent=0
halbacharea name=PQF8 R=15.5e-3 quad=92 gfr=7.9e-3 ymidplane=3e-3 Br=1.15791 halfoff=0 removeadjacent=0
halbacharea name=PDQ1 R=15.5e-3 dipole=0.2861 quad=38.94 gfr=7.9e-3 ymidplane=5e-3 Br=1.15791
halbacharea name=PDQ2 R=15.5e-3 dipole=0.1976 quad=25.83 gfr=7.9e-3 ymidplane=5e-3 Br=1.15791
halbacharea name=PDLmin R=15.5e-3 dipole=0.2 gfr=7.9e-3 ymidplane=5e-3 Br=1.15791
halbacharea name=PDLmax R=15.5e-3 dipole=0.4 gfr=7.9e-3 ymidplane=5e-3 Br=1.15791
halbacharea name=POF R=15.5e-3 oct=300000 gfr=7.9e-3 ymidplane=3e-3 Br=1.15791 halfoff=0 removeadjacent=0 wedges=32
: contact : - - -
E-mail: sbstrudel characterstephenbrooks.orgTwitter: stephenjbrooksMastodon: strudel charactersjbstrudel charactermstdn.io19.33millionaccesses