In statistical physics, Glauber dynamics[1] is a way to simulate the Ising model (a model of magnetism) on a computer.[2]