Beyond the syllabus · Phase transitions

The Ising model of a magnet

Each square is an atom's spin, up or down. Neighbours prefer to agree, and heat jostles them out of agreement. Below a critical temperature agreement wins and the whole lattice is magnetised; above it the spins are a flickering patchwork. Slide the temperature across 2.27 and watch it change character.

or open it full screen → Free, in your browser, nothing to install. Topic: the Ising model and the Metropolis algorithm.

The textbook's answers

At the starting settings. As it runs, the simulation measures each of these and shows its value beside the textbook's.

Critical temperature, 2/ln(1 + √2) (J/k)2.269
Magnetisation per spin, Onsager's formula0.9113
Energy per spin, Onsager's formula (J)-1.746

What you can change

Every slider changes the physics, not just the picture: the engine works it all out again.

SettingRangeStarts at
Temperature0.5 to 5 J/k2 J/k
Field-1 to 1 J0 J
Spins along a side16 to 9648

More in Phase transitions