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 calculate the magnetic field of metal wire coils. The parameters of the function are illustrated in fig. 1 and 2 for an arbitrary current loop and for an anti-helmholtz coil, respectively.
coilSimulation_exact.py and coilSimulation_real.py simulate a anti-helmholtz coil given some parameters.
See https://cwgaldino.github.io/FI226-Magnetic-trap/ for more information.