magpylib
A simple, user friendly Python 3 toolbox for calculating magnetic fields from permanent magnets and current distributions.
A simple, user friendly Python 3 toolbox for calculating magnetic fields from permanent magnets and current distributions.
To install this package, run one of the following:
magpylib provides simple and easy to use classes for calculating magnetic fields depending only on numpy and matplotlib. The core of the library is the source class which can represent permanent magnets, current distributions or magnetic moments in a 3D space. The library provides simple ways to generate such source objects, to manipulate them geometrically, to group several sources into a Collection system and to calculate the resulting fields of such systems. The systems may also be quickly visualized with a matplotlib based 3D plot method.
Summary
A simple, user friendly Python 3 toolbox for calculating magnetic fields from permanent magnets and current distributions.
Information Last Updated
Apr 22, 2025 at 14:57
License
AGPL-3.0-or-later
Total Downloads
80.6K
Platforms
GitHub Repository
https://github.com/magpylib/magpylibDocumentation
https://magpylib.readthedocs.io/en/latest/