The exchange energy and its field
Neighbouring spins in a ferromagnet prefer to be parallel. In the continuum this becomes an energy density (Abert 2019, Eq. 10), where the exchange stiffness is measured in joules per metre. A uniform magnetization costs nothing; a twist costs more the shorter it is.
The effective field that enters the Landau-Lifshitz-Gilbert equation is minus the derivative of the energy with respect to the magnetization, divided by . For exchange this gives : a field that pulls each moment toward the average of its neighbours.
Worked example
The same field on a chain of cells
Cut a strip into cells of length along , with one direction per cell. Replace the gradient by the difference between neighbours. Per unit cross-section the energy is , since each bond spans a length and the squared gradient is about .
Cell appears in two bonds. Differentiating gives . Dividing by , the volume factor of one cell, gives the field below. It is the continuum field with the second derivative replaced by a central difference.
The domain-wall Lab is built exactly this way, and its first check differentiates the discrete energy numerically: the field agrees with minus the gradient to 9 parts in a billion. The skyrmion Lab does the same on a two-dimensional grid.
Lengths that exchange sets
Exchange alone would make everything uniform. It competes with energies that prefer the magnetization to bend. Against the stray field the balance length is the exchange length ; against a perpendicular anisotropy it is the wall-width parameter .
For the standard-problem element, with and , the exchange length is 5.69 nm. For the Pt/Co film of the later chapters, with , and , it is 4.59 nm, and . Walls and skyrmions in these films turn over lengths of this order, which tells you how small the cells must be.
What the cells get wrong, and by how much
Expand in a Taylor series. The odd powers cancel in the central difference, which leaves . The leading error is proportional to and to the fourth derivative, which is large where the texture bends over a few nanometres. So the relative error scales roughly as .
Miltat and Donahue reached the same practical rule from a demanding test problem: cells well below the exchange length are needed for adequate convergence. This course quotes that conclusion from the chapter’s abstract, the only part we have read.
Worked example
Halve the cells and read the order
If the error is , then , and the observed order is . A second-order method gives ratios near 4.
The domain-wall Lab checks the energy of a static Bloch wall against the exact . With cells of 2, 1, 0.5 and 0.25 nm the energy is low by 0.54, 0.133, 0.033 and 0.0083 per cent. The ratios are 4.06, 4.01 and 4.00, so , 2.01 and 2.00. The wall is resolved, and you know how large the mesh error is.
A gap that does not shrink is not a mesh error. In the skyrmion benchmark at the relaxed skyrmion is 10.0 per cent smaller than the isolated profile on 2 nm cells and 9.1 per cent smaller on 1 nm cells. Halving the cells moved it by 1 per cent. The rest comes from the model: the film repeats every 60 nm across the track, and a skyrmion with a free radius of 17.3 nm feels its own periodic copies.
Why the community shares test problems
A converged answer shows only that the discrete model approaches its own continuum. It does not show that two codes solve the same continuum problem, or that the continuum model describes a device. That is why NIST publishes micromagnetic standard problems and keeps a public reference code, OOMMF: different groups run the same specified problem and compare. This course’s Labs borrow the geometry and constants of one of those problems and check themselves against analytic limits.