๐ฅ Phase Transition Explorer โ 2D Ising Model¶
This simulation demonstrates the most fundamental phenomenon in statistical physics: a phase transition between order and disorder.
๐ง Idea¶
A 2D lattice of magnetic spins (each +1 or โ1) interacts with its nearest neighbours. The Hamiltonian is:
At low temperature, spins align spontaneously (ferromagnetic order, |M| โ 1). At high temperature, thermal noise destroys correlations (disorder, |M| โ 0).
The transition happens sharply at the Onsager critical temperature:
Why this matters for the repository¶
| Concept | Connection |
|---|---|
| Edge of Chaos | At T_c, correlations diverge โ the system is maximally sensitive and complex |
| Repo Axiom 2 | H(X) is neither 0 (frozen) nor maximal (noise) โ life happens at the edge |
| Self-Organized Criticality | The Ising model shows why criticality is special; SOC shows how systems reach it |
| System Intelligence | Near T_c: P (prediction) is maximal, R (regulation) is fragile, A (adaptation) peaks |
๐ฎ Controls¶
| Key | Action |
|---|---|
โ / โ |
Decrease / increase temperature by 0.1 |
r |
Reset the spin grid |
ESC |
Exit |
๐ What You See¶
The display shows four panels:
- Spin grid โ Red/blue for ยฑ1 spins. Watch domains form and dissolve.
- Magnetisation |M| โ Order parameter. Drops from ~1 to ~0 at T_c.
- Energy per spin โ Rises from ~โ2 (ordered) towards 0 (disordered).
- Phase diagram โ Your current (T, |M|) overlaid on Onsager's exact solution.
- Energy fluctuations โ Proxy for specific heat C_v. Peaks at T_c.
โถ Run¶
Experiment ideas¶
- Start at T = 0.5 (deep order) and slowly sweep to T = 4.0 โ watch the transition
- Start above T_c and cool down โ observe spontaneous symmetry breaking
- Stay at T_c and watch scale-free fluctuations (large correlated domains appear and disappear)
- Reset the grid at T_c and watch how long it takes to reach equilibrium (critical slowing down)