2D Ising Model

Explore magnetic ordering, thermal fluctuations and phase transitions using a Monte Carlo simulation of the two-dimensional Ising model.

Sweep: 0 T = 2.00

Model Parameters

Live Measurements

Magnetisation —
|m| ⓘ Absolute magnetisation per spin. Values near 1 indicate strong magnetic order, while values near 0 indicate a disordered lattice. —
Energy / spin ⓘ Total Ising interaction energy divided by the number of lattice sites. Using energy per spin allows different lattice sizes to be compared. —
Acceptance ⓘ Percentage of proposed spin flips accepted during the latest update. Higher temperatures generally produce a higher acceptance rate. —
Loading Python...

The Ising Model

The two-dimensional Ising model represents a magnetic material as a square lattice of spins. Each lattice site contains a spin variable

sᵢ = ±1

Neighbouring spins interact through the Hamiltonian

H = -J Σ sᵢsⱼ

When J > 0, neighbouring spins energetically prefer to align. At low temperatures this produces large ordered magnetic domains, while at high temperatures thermal fluctuations dominate and the system becomes disordered.

Periodic Boundaries

The edges of the lattice are connected to the opposite edges, removing artificial boundary effects and approximating an infinite system.

Metropolis Algorithm

Random spin flips are proposed. Energy-lowering flips are accepted automatically, while energy-increasing flips are accepted with probability

P = exp(-ΔE / T)

Simulation Data

Live measurements of the magnetic order and energy will be plotted as the Monte Carlo simulation evolves.

Magnetisation

The absolute magnetisation per spin acts as an order parameter for the magnetic phase.

Energy

The energy per spin changes as local spin configurations evolve towards equilibrium.

Phase Transition Experiment

Automatically simulate the lattice over a range of temperatures and measure the equilibrium magnetisation. The critical temperature of the infinite two-dimensional Ising model is approximately Tc = 2.269.

Ready 0%
Estimated Critical Temperature —

Estimated from the steepest decrease in the simulated magnetisation curve.

Exact 2D Ising Result Tc = 2.269

Onsager solution for the infinite square-lattice Ising model.

Magnetic Susceptibility

Magnetic susceptibility measures fluctuations in the magnetisation. It becomes large near the phase transition, where the system is especially sensitive to magnetic ordering.

Heat Capacity

Heat capacity is related to fluctuations in the energy of the lattice. A peak develops close to the critical temperature.