Magnetic Holding Force#

This example demonstrates how to compute the magnetic holding force experienced by a permanent magnet attached to a soft-ferromagnetic plate. The holding force represents the minimum pull force required to detach the magnet from the surface—a critical parameter for engineering applications involving magnetic fasteners, sensors, and actuators.

Sketch of holding force.

Sketch of holding force F that must be overcome to detach the magnet from a soft-magnetic plate.#

Computational approach:

We calculate the holding force using the method of images. The method states that the magnetic field of a dipole in front of a soft-magnetic surface is equivalent to the field produced by two dipoles: the original one and its mirror image, which mirrors both position and charge across the surface. For permanent magnets this means that the normal component of the magnetization remains the same, while the tangential component is flipped in the mirror image

The following code shows how to compute the holding force for a cubical magnet attached to a permeable surface.

Hide code cell source

import magpylib as magpy

print('HOLDING FORCE COMPUTATION\n')

# Create magnet and mirror image
cube = magpy.magnet.Cuboid(
    dimension=(5e-3, 2.5e-3, 1e-3),
    polarization=(0, 0, 1.33),
    meshing = 100
)
mirror_image = cube.copy(position=(0, 0, 1e-3))

# Compute force
F,_ = magpy.getFT(mirror_image, cube)
print(f"Holding Force: {F[2]*100:.3e} g")
HOLDING FORCE COMPUTATION

Holding Force: 3.492e+02 g

Validation: The magnet dimensions and N45 material properties in this example are based on a commercial product from Supermagnete. N45 neodymium material has a remanence between 1.32 and 1.36 T (see the “Modeling a real magnet” tutorial for details). Our computed value of 349 g matches the manufacturer’s specification of approximately 350 g.

Hint

Accuracy of this approach: The method of images provides excellent results even for moderately permeable materials (μᵣ > 50) and finite plate thicknesses comparable to the magnet dimensions.