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 formula | 0.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.
| Setting | Range | Starts at |
|---|---|---|
| Temperature | 0.5 to 5 J/k | 2 J/k |
| Field | -1 to 1 J | 0 J |
| Spins along a side | 16 to 96 | 48 |