Equivalent Charge and Current Method#
The magnetic field of a prism-shaped permanent magnet with uniform magnetization \(\vec{M}\) oriented normal to its top and bottom surfaces can be computed using replacement models instead of directly integrating over the magnet’s volume.
Two commonly used approaches are:
Equivalent Surface Charge Method: This method models the magnet as a pair of fictitious magnetic surface charges located on its top and bottom faces. By analogy with electrostatics, a constant magnetization \(\vec{M}\) gives rise to a uniform surface magnetic charge density of \(\sigma = \vec{M}\cdot \vec{n}\), where \(\vec{n}\) is the outward-pointing normal vector of each side face. The resulting magnetic field is computed similarly to the electric field of charged surfaces.
Equivalent Current Method: This method replaces the magnetization with equivalent bound surface currents flowing around the prism’s side faces. The surface current density is given by \(\vec{j} = \vec{M} \times \vec{n}\). This is analogous to using the Biot–Savart law for current distributions.
We demonstrate and compare these modeling techniques by computing the magnetic field of a cube magnet using three representations: First we use the Cuboid solution offered by Magpylib with a magnetization of 10 kA/m.
Then we construct a cube with the equivalent charge method by combining four Triangle surfaces to make up charged top and bottom of a cube. The surface charge density is 10 kA/m (Magpylib automatically projects the magnetization vector of Triangle onto the triangle plane).
Finally we realize the equivalent current method creating a TriangleStrip current that flows along the edges of the cube.
Notice that all three representations yield the same magnetic field, confirming the physical equivalence of the models.
It is also worth noting that many of the analytical expressions found in the literature—and those used in Magpylib, including the one for Cuboid—were originally derived using these replacement pictures.