q-state Potts model on a 2D square lattice
What you are seeing: a generalization of the Ising model where each site holds one of colors (instead of just two spin values). Like-colored neighbors bind with energy ; the system minimizes this energy by forming large monochromatic patches at low temperature and disordering into salt-and-pepper noise at high temperature.
The transition temperature is . For this reduces to the Ising model and the transition is second-order: the order parameter drops smoothly to zero at . For the transition becomes first-order and you see latent-heat jumps in the energy across . The and cases sit in between with a marginal second-order behavior.
Below: the left panel is the current spin configuration; the right panel is the order parameter trace (red horizontal: zero; yellow: current value).
WHAT TO TRY
- Vary each control and watch the rail readouts respond.
- Compare the diagnostic plot against the live scene.