There is a newer version of the record available.

Published March 21, 2025 | Version 1.1.0
Software Open

Halbach_two_point_oh: Optimize Uniform Fields with Permanent Magnet Arrays (V1.1.0)

  • 1. ROR icon University of Bayreuth

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 based on:

Halbach 2.0 — Creating Homogeneous Fields with Finite Size Magnets
Ingo Rehberg and Peter Blümler
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.

Technical info (English)

How to get started:

  1. Unzip the file Halbach_two_point_oh.zip.

  2. Launch the interactive program by running halbach_two_point_oh.py.

Using the program:

  • To rotate the ring cluster, check one of the buttons labeled r_e, r_a, or r_r.

  • Important: To stop the rotation, activate the stp checkbox.

Preparing for 3D printing:

  • Click the STL button and follow the provided instructions for exporting the model.

Files

Readme.pdf

Files (1.5 MB)

Name Size Download all
md5:8df2c16033499a02da0c9f395b150c12
1.1 MB Preview Download
md5:1126ad6c25bf4be26f7c16e7da0d2726
447.8 kB Preview Download

Additional details

Additional titles

Subtitle (English)
Optimizing Homogeneous Fields with Permanent Magnet Configurations

Related works

Is described by
Event: https://www.dpg-verhandlungen.de/year/2025/conference/regensburg/part/ma/session/38/contribution/6?lang=en (Other)
Is supplement to
Software: 10.5281/zenodo.10084573 (DOI)
Preprint: arXiv:2502.18262 (arXiv)

Dates

Updated
2025-03-21

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.