Simulate particles inside a constant magnetic feld.
code/main.py
: Classes with methods to do the simulationcode/utils.py
: Utility functions.code/plot_utils.py
: Utility functions for plotting.code/magnetic_dipole.ipynb
: Notebook with an example simulation.
Use the code/magnetic_dipole.ipynb
notebook as a reference.
Numpy, matplotlip and numba
I used this notebook for reference: https://uio-ccse.github.io/computational-essay-showroom/essays/exercises/essayseeds/MagneticBottle_Numpy.html
Distributed under the MIT License. See LICENSE
for more information.