2D Ising model. Order out of noise, atOnsager's point.
A 32×32 lattice with a second-order phase transition at Onsager's exact critical point. Above it: flickering disorder. Below it, cooling triggers spontaneous symmetry breaking — the lattice picks a side and domains form. Drag β across the line and watch it happen, live.
◐ Critical — β ≈ βcFractal clusters at every scale. Fluctuations never settle.
❄ Ordered — β > βcSymmetry breaks. One spin direction takes the whole lattice.
Run it yourself
uv run thrml-bench run --exp 2
Runs the published sweep for Experiment 2. The lattice on this page is a separate, live Metropolis simulation in your browser — same model, same critical point, so you can feel the transition before you run the benchmark.
How to play
Drag the β slider through 0.4407 · tap Run the sweep to replay the published cooling run · click or drag on the lattice to paint a domain and watch its neighbours respond · hit Quench to drop straight into the ordered phase.
Live lattice — 32 × 32 spins · tap to paint a domain
β 0.30 · T 3.33 DISORDERED
spin up ↑ 50%spin down ↓ 50%Sweeps: 0Largest domain: —
Control deck — inverse temperature β
Synthetic 2D Onsager · J=1, h=0
0.300β = 1 / T
T = 3.333
Tc = 2.269 · βc = 0.4407
0.05 · hot▲ βc 0.44070.80 · cold
Live readouts — from the lattice above
0.00
0 = perfect disorder 1 = fully magnetised
+0.00
Which side the lattice picked
0.00
−2.00 is the perfect crystal
—
Share of proposed flips accepted
Disordered
Above Tc — entropy wins
1.00
Autocorrelation window (W ≥ 5τ)
—
Effective samples in trace
Magnetisation trace — |M| as you cross the critical point
live |M| (rolling)sweep average |M| at each β┆ dashed line = βc 0.4407
Press Run the sweep and the teal curve fills in left to right — flat near zero while hot, then climbing steeply once β passes Onsager's point. That steep climb is the second-order transition: no jump, no latent heat, just order condensing out of critical fluctuations.
Published benchmark — Exp 2
Critical point βc≈ 0.4407
|⟨M⟩| across the sweep0.0434 → 0.9417disordered → ordered
Sweep runtime5.812 s
Lattice32 × 32
Label: simulated benchmark result, results may vary (not customer results). Every figure in this panel is the published Exp 2 ledger result — your live lattice above will land near these numbers, not exactly on them.
Live-sim note: at βc the trace jitters hardest — on a finite 32×32 lattice the transition is rounded, which is exactly the finite-size behaviour Onsager's infinite-lattice solution predicts you should see.
1Neighbours want to agree. Each aligned pair lowers the energy by J. Left alone, the whole lattice would freeze into one domain.
2Heat wants chaos. At high T, entropy overwhelms that preference and spins flip almost freely — |M| ≈ 0.
3At βc they balance exactly. Lars Onsager solved this balance in closed form in 1944 — the first exact solution of an interacting many-body system, and still the reference every sampler is checked against.
4Cool past it and symmetry breaks. Nothing tells the lattice to choose up or down — it picks one anyway. That spontaneous choice, and the domains that grow from it, is what the benchmark measures.
Three things to try in 60 seconds
ASit exactly on βc. Tap At Onsager and watch for a full minute: clusters of every size appear and dissolve, and |M| refuses to settle. That restlessness is criticality.
BPaint against the majority. Quench to the cold phase, then drag a stripe of the opposite spin across the lattice. Surface tension shrinks it — small painted domains evaporate, big ones fight back.
CRace the sweep. Run the sweep, then compare the teal curve's endpoints with the published panel: 0.0434 → 0.9417(simulated benchmark result, results may vary (not customer results)).
uv run thrml-bench run --exp 2
Station 2 of 16 · 2D Ising model, Onsager criticality · βc ≈ 0.4407, |⟨M⟩| 0.0434 → 0.9417, 5.812 s — simulated benchmark result, results may vary (not customer results).