Related Experiment Video
Updated: Jul 29, 2025

Electric and Magnetic Field Devices for Stimulation of Biological Tissues
Published on: May 15, 2021
MagTetris: A simulator for fast magnetic field and force calculation for permanent magnet array designs
Ting-Ou Liang1, Yan Hao Koh1, Tie Qiu1
1Singapore University of Technology and Design, 8 Somapah Road, 487372, Singapore.
Abstract:
In this paper, a simulator named "MagTetris" is proposed for fast magnetic field (B-field) and force calculation for permanent magnet arrays (PMAs) designs consisting of cuboid and arc-shaped magnets (approximated by cuboids) with arbitrary configurations. The proposed simulator can compute the B-field of a PMA on arbitrary observation planes and the magnetic force acting on any magnet/group of magnets. An accelerated calculation method for B-fields of PMAs is developed based on the current model of permanent magnet, which is further extended to magnetic force calculation. The proposed method and the associated codes were validated with numerical simulation and experimental results. The calculation speed of "MagTetris" is at least 500 times higher than that using finite-element method (FEM)-based software with uncompromised accuracy. Compared with a freeware in Python, Magpylib, "MagTetris" has a calculation acceleration of greater than 50% using the same language. "MagTetris" has a simple data structure, which can be easily migrated to other programming languages maintaining similar performances. This proposed simulator can accelerate a PMA design and/or allow designs with high flexibility considering the B-field and force simultaneously. It can facilitate and accelerate innovations of magnet designs to advance dedicated portable MRI in terms of compactness, weight, and performance.
Related Concept Videos
Magnetic Field Of A Current Loop
Magnetic Force
The magnetic force acting on a moving charge...
Magnetic Force On A Current-Carrying Conductor
Consider a compass placed near a current-carrying wire. The wire experiences a force that aligns the needle of the compass tangentially around the wire. Thus, the current-carrying wire produces concentric circular loops of magnetic field. The magnetic field generated by a wire can be...
Magnetic Force Between Two Parallel Currents
The force exerted by the magnetic field due to the first conductor over a finite length of the second conductor is given as the product of the current in the second conductor and the vector product of the length vector along the current element and the field due to the first conductor. According to the...
Magnetic Field due to Moving Charges
Consider a point charge moving with a constant velocity. Like the electric field, the magnetic field at any point is directly proportional to the magnitude of the charge and inversely proportional to the square of the distance between the source point and the field point. However, unlike the electric field, the magnetic field is always perpendicular to the plane containing the line...
Magnetic Flux
Suppose a surface is divided into elements of area dA. For each element, the component of the magnetic field that is normal to the...

