- Python package for calculating static magnetic fields of magnets, currents and other sources.
- The fields are computed using analytical solutions (very fast, simple geometries and superpositions thereof, no material response)
- The field computation is coupled to a geometry interface (position, orientation, paths) which makes it convenient to determine relative motion between sources and observers.
Python3.7+, Numpy, Matplotlib, Scipy
Please check out our documentation for installation, examples and detailed information!
Installing this project using pip
pip install magpylib
or conda
conda install magpylib
Installing this project locally:
- Clone this repository to your machine.
- In the directory, run
pip install .
in your (conda) terminal.