FI226: Magnetic trapΒΆ

Simulation of the magnetic field generated by a anti-helmholtz coil done as a homework of FI226 (IFGW-Unicamp).

coil_utils.py module is intended to calculates the magnetic field of coils. The parameters of the function are illustrated in fig. 1 and 2 for an arbitrary current loop and for anti-helmholtz coil, respectively.

coilSimulation_exact.py and coilSimulation_real.py simulates the helmholtz coil given some parameters.

_images/field_loop.svg

Fig 1.

_images/field_anti_helmholtz.svg

Fig 2.

Figures 3 and 4 shows the simulated results of a anti-helmholtz coil together with measured data using a gaussimeter. The coils had 150 turns and R=2.5 cm, D=2.45 cm, I=1 A. The default values of coilSimulation_exact.py and coilSimulation_real.py reproduce these results.

_images/Bz.svg

Fig 3.

_images/dBz_raw.svg

Fig 4.

The derivative of measured data does not seem really good due to the small number of measured points. To correct that we may artificially increase the number of measured by. Two methods are presented. The script /data/comparisson.py reproduce the results below.

  1. To interpolate the data, then average each 100 point to smooth the curve:

_images/Bz_interp.svg

Fig 5.

_images/dBz_interp.svg

Fig 6.

  1. Fitting the data using a 5 order polynomial.

_images/Bz_fit.svg

Fig 7.

_images/dBz_fit.svg

Fig 8.