The element’s own field
Magnetization that ends at a surface leaves magnetic poles there, and the poles make a field inside the element that points back against the magnetization. It is called the demagnetizing field; in general it is a convolution over the whole body (Abert 2019, Sec. 2.3). For a uniformly magnetized rectangular prism it reduces to three numbers, the demagnetizing factors, one per edge direction.
Aharoni gave the factors of a prism in closed form. We evaluated them with the formula reproduced on the magpar calculator page; for the standard-problem element they are along the 500 nm edge, along the 125 nm edge and through the 3 nm thickness. They add to 1, as they must. The energy per volume is then a weighted sum of the squared components.
Two stiffnesses, one easy axis
Keep the moment in the film plane, at angle from the long edge. With and the energy becomes a constant plus , with . The minima are at and : the long axis is easy, and the two directions along it are the two stored states.
The stiffness is easiest to read as a field. Tilting the moment toward meets a restoring field , which is 29.1 mT. Tilting it out of the plane meets , which is 948 mT, about 33 times stiffer.
Worked example
The ringing frequency of the element
Let the moment sit near , so with small and . The effective field is . Keeping first-order terms in gives and .
Differentiate the first and insert the second: with . The ringing frequency is set by the geometric mean of the two stiffnesses, 166 mT, which gives 4.66 GHz. The orbit is a flat ellipse: swings only times as far as .
This is the Kittel formula for the element. The Lab computes it for the well the moment ends in; the free-ringing preset reads 4.65 GHz from the trajectory itself. In the benchmark, small oscillations at three bias fields match the formula to better than 3 parts in 100 000.
A slow field reverses it on the astroid
Now apply a field slowly, at angle from the direction opposite to the moment, and keep the moment in the plane. In units of , with , the energy is . The moment stays in its well until the well disappears, which happens when the first and second derivatives of the energy vanish together.
Solving the two conditions gives the Stoner-Wohlfarth switching field, whose plot against angle is the astroid. We give the derivation here and did not open the 1948 paper. At it is half the stiffness field, 14.6 mT; along the axis it is the full 29.1 mT. The Lab ramps the field slowly at angles from 5 to 80 degrees and finds the reversal at most 0.006 above the astroid, in units of .
A short pulse uses precession instead
The default pulse in the Lab is 25 mT along for 140 ps. A field across the axis never reaches the astroid on its own: a slow 25 mT field would only pull the moment part of the way toward . The pulse instead makes the moment precess. Its first effect, from , is to tip the moment slightly out of the plane.
That small tilt meets the 948 mT out-of-plane stiffness, and the moment precesses quickly about the resulting field, which turns it within the plane. In the default run the tilt never exceeds 7.6 degrees, yet the moment crosses the hard axis after 90 ps. If the pulse ends then, damping brings the moment down into the opposite well. If it lasts 350 ps, the moment completes the turn and falls back where it started.
The switching map in the Lab is built from 1280 full trajectories, one per pulse field and length, each decided by whether its energy drops below the saddle in the start well or in the other. The map’s bands come straight from this half-turn timing.