2D Spin Lattice (2D Canvas): Heisenberg Ferromagnet
Canvas-2D Ising/Heisenberg spin lattice: run Metropolis Monte Carlo below and above the Curie temperature and watch spontaneous magnetisation form and vanish.
This 2D companion runs the same Ising/Heisenberg spin-lattice Hamiltonian as the 3D version on a plain canvas grid instead of a rendered scene: temperature, exchange coupling J, an external field and the lattice size are all live controls, a Metropolis Monte Carlo loop flips spins with the correct Boltzmann acceptance probability every frame, and a strip chart tracks magnetisation over time so the ferromagnetic phase transition around T ≈ 2.269 J/k is directly visible as the lattice snaps from disordered noise into large aligned domains.
Canvas-2D Ising/Heisenberg spin lattice with Metropolis Monte Carlo sampling, live magnetisation and energy readouts, and a mouse-paintable seed domain.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install