Halbach_two_point_oh: Optimize Uniform Fields with Permanent Magnets (V2.0.0)
Description
Overview
This Python program enables interactive exploration of the magnetic fields produced by rings of permanent magnets. It provides a Graphical User Interface (GUI) for investigating magnet geometries and field homogeneity.
The physical background is described in the article:
Analytic approach to creating homogeneous fields with finite-size magnets Ingo Rehberg and Peter Blümler
Phys. Rev. Applied 23, 064029 – Published 11 June, 2025, https://doi.org/10.1103/9nnk-jytn preprint: arXiv:2502.18262
Version History
v1.0.1
This version includes a configuration inspired by:
Sumit Tewari, Thomas O'Reilly, Andrew Webb
Improving the Field Homogeneity of Fixed- and Variable-Diameter Discrete Halbach Magnet Arrays for MRI via Optimization of the Angular Magnetization Distribution
Journal of Magnetic Resonance, Volume 324, 2021, 106923
https://doi.org/10.1016/j.jmr.2021.106923
v1.1.0
Adds functionality to export STL files for 3D printing custom magnet holders.
v2.0.0
Adds magnets in the form of cuboids and spheres to the point- and line dipoles.
Technical info (English)
How to get started:
-
Unzip the file
Halbach_two_point_oh_2_0_0.zip. - Take a look at the User Guide.pdf
-
Launch the interactive program by running
main.py.
Using the program:
-
To rotate the ring cluster, check one of the buttons labeled
r_e,r_a, orr_r. -
Important: To stop the rotation, activate the
stpcheckbox.
Preparing for 3D printing:
-
Click the
STLbutton and follow the provided instructions for exporting the model.
Files
User Guide.pdf
Files
(1.5 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:2dd8e6c39c815b432fc76c418ee981ef
|
732.6 kB | Preview Download |
|
md5:652259fc2e30fd2c71cb6c5afc026af2
|
726.6 kB | Preview Download |
Additional details
Additional titles
- Subtitle (English)
- Rings of Magnetic Cuboids and Spheres
Related works
- Is cited by
- Publication: 10.1103/9nnk-jytn (DOI)
- Is described by
- Event: https://www.dpg-verhandlungen.de/year/2025/conference/regensburg/part/ma/session/38/contribution/6?lang=en (Other)
- Conference paper: 10.5281/zenodo.16883991 (DOI)
- Is supplement to
- Software: 10.5281/zenodo.10084573 (DOI)
- Preprint: arXiv:2502.18262 (arXiv)
Dates
- Updated
-
2025-07-22
Software
- Programming language
- Python
References
- Halbach 2.0 -- Creating homogeneous fields with finite size magnets, Ingo Rehberg and Peter Blümler (https://arxiv.org/abs/2502.18262)
- Sumit Tewari, Thomas O'Reilly, Andrew Webb, Improving the field homogeneity of fixed- and variable-diameter discrete Halbach magnet arrays for MRI via optimization of the angular magnetization distribution, Journal of Magnetic Resonance, Volume 324, 2021, 106923, https://doi.org/10.1016/j.jmr.2021.106923.
- Ingo Rehberg and Peter Blümler, Analytic approach to creating homogeneous fields with finite-size magnets, Phys. Rev. Applied 23, 064029 https://journals.aps.org/prapplied/abstract/10.1103/9nnk-jytn
- https://aps.altmetric.com/details/174641821