Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 696 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 696 Bytes

squares

To install:

  1. git clone
  2. cd squares
  3. git submodule init
  4. git submodule update

Then run squarespeed.py.

What the code does:

  • sets up an array of coils inscribed on a cube
  • sets up an array of fluxgates distributed throughout a smaller cube
  • calculates the matrix in B=M*I by setting each coil current I in turn and measuring B at each sensor position.
  • inverts the matrix, carefully excising the zero mode.
  • selects a target field B_target (uses the Pis library)
  • calculates I_set = M^{-1} B_target and sets those currents on the cube
  • makes graphs of the resultant true field and graphs them in a few views (presently along axes), comparing with the target field.