🧲 Ising Model

The Ising model (Ernst Ising, 1925) is the canonical model of statistical mechanics. A lattice of spins (±1) interact via nearest-neighbour coupling J; each spin aligns or anti-aligns with its neighbours and an external field H. The Metropolis–Hastings algorithm samples the Boltzmann distribution: a spin-flip is always accepted if ΔE ≤ 0, otherwise with probability e^(−ΔE/kT). Below the Curie temperature T_c ≈ 2.27 J/k spontaneous magnetisation appears: a second-order phase transition. Watch large spin domains form and melt as you sweep temperature. 🇺🇦 Українська

Ising Model

Parameters

Lattice

Magnetisation ⟨m⟩
Energy/spin ⟨E⟩
Susceptibility χ
Steps (×N²)0

Physics of the Ising Model

The Hamiltonian is H = −J Σ sᵢsⱼ − h Σ sᵢ (sum over nearest-neighbour pairs). The exact 2D critical temperature is k_BT_c = 2J/ln(1+√2) ≈ 2.269 J. At T_c the correlation length diverges (ξ → ∞), giving scale-free spin clusters and critical slowing-down. The plot tracks magnetisation |⟨m⟩| over time; susceptibility χ = N(⟨m²⟩ − ⟨m⟩²)/kT peaks sharply at T_c.

About Ising Model Simulator

The Ising model is a mathematical model of ferromagnetism in statistical mechanics, originally proposed by Wilhelm Lenz in 1920 and solved in one dimension by Ernst Ising in 1925. The model represents a lattice of magnetic spins, each taking a value of +1 (up) or −1 (down), with interactions between neighbouring spins and an optional external magnetic field. Despite its simplicity, it captures the essential physics of phase transitions and has become a paradigmatic model in statistical physics.

The energy of a configuration is given by H = −J Σᵢⱼ sᵢsⱼ − h Σᵢ sᵢ, where J is the coupling constant (J > 0 favours alignment, ferromagnetism; J < 0 favours anti-alignment, antiferromagnetism), sᵢ are the spins, and h is the external field. At low temperatures, thermal fluctuations are small and spins align, producing net magnetisation. Above the critical Curie temperature Tc, fluctuations dominate and the system becomes disordered — a phase transition from ferromagnetic to paramagnetic behaviour.

The Ising model is simulated using Monte Carlo methods, most commonly the Metropolis–Hastings algorithm: propose a spin flip, accept if it lowers energy, or accept with probability exp(−ΔE/kT) if it raises energy. The 2D Ising model has an exact analytical solution derived by Lars Onsager in 1944, confirming a phase transition at Tc = 2J/(k ln(1+√2)). Beyond magnetism, the Ising model is applied to neural networks (Hopfield networks), protein folding, opinion dynamics, and lattice gauge theories.

Frequently Asked Questions

What does the Ising model simulate?

The Ising model simulates the collective behaviour of discrete magnetic spins on a lattice, capturing how microscopic interactions produce macroscopic phenomena like spontaneous magnetisation and phase transitions. Each spin interacts with its neighbours, and the competition between coupling energy and thermal disorder drives the ferromagnetic-to-paramagnetic transition.

What is the critical temperature in the Ising model?

The critical temperature Tc is the temperature at which the system transitions from an ordered (magnetised) ferromagnetic phase to a disordered paramagnetic phase. In the 2D Ising model, kTc/J = 2/ln(1+√2) ≈ 2.269. Near Tc, physical quantities like magnetisation, susceptibility, and correlation length diverge or vanish with universal power-law exponents.

What is the Metropolis algorithm and how is it used?

The Metropolis algorithm is a Monte Carlo method for sampling from the Boltzmann distribution. For the Ising model: randomly select a spin, compute the energy change ΔE from flipping it, accept the flip if ΔE ≤ 0, and otherwise accept with probability exp(−ΔE/kT). Iterating this procedure generates configurations distributed according to thermal equilibrium at temperature T.

Why is the Ising model important beyond magnetism?

The Ising model is mathematically equivalent to many other systems: lattice gases (particles present/absent), binary alloys (A/B atoms on sites), and neural networks (active/inactive neurons in Hopfield models). Its phase transition mathematics applies universally to any system with a two-state variable and short-range interactions, making it a cornerstone of statistical mechanics far beyond its magnetic origin.

What are universality classes in the context of the Ising model?

Near a critical point, the way physical quantities scale with temperature (power-law exponents like β for magnetisation, γ for susceptibility) depends only on the symmetry of the order parameter and the spatial dimension, not on microscopic details. The 2D Ising model and many seemingly unrelated systems share the same critical exponents — they belong to the same universality class — a deep result of renormalisation group theory.