Ising Model Simulator

A simulation of magnetism. Each cell is a tiny magnet (a "spin") that points up or down. Turn up the temperature and watch the order fall apart — it shows why magnets lose their magnetism when they get hot.

2D Lattice
1D Chain

Parameters

Critical Tc ≈ 2.269 (for J=1)
J>0 ferromagnetic · J<0 antiferromagnetic
spin +1 (↑) spin −1 (↓) paramagnetic
Magnetization ⟨M⟩
0.00
Energy / site
0.00
|M| (order)
0.00
Sweeps
0

Parameters

1D has no phase transition (Tc=0)
Space–time view: each new row is the chain one sweep later (top = now, scrolling down).
Magnetization ⟨M⟩
0.00
Energy / site
0.00
|M| (order)
0.00
Sweeps
0
What is this?

This is the Ising model — a simple simulation of a magnet. Each square is a tiny magnet ("spin") pointing up or down, and neighbours prefer to point the same way.

Why it's cool: from this one simple rule you get real magnetism, and you can watch order appear and disappear on screen.

The main idea: when it's cold, the spins line up and the material is magnetic. Turn up the temperature and the heat randomly flips spins until they no longer agree — the alignment breaks and the magnetism goes away. That's why magnets lose their magnetism when they get hot. In 2D this happens suddenly around T ≈ 2.27; in 1D the magnetism never survives at any temperature above zero.