A minimal python example for a simulation of the 2D Ising model. Implemented algorithms are a local metropolis update, a parallelized red/black or chessboard Metropolis update, and the Wolff cluster algorithm (single cluster algorithm).
Course of the magnetization for different configurations System size: N = 50, Temperature: beta =0.1
Visualization of the changes in the system due to the wolff algorithm.
anim_wolff.mp4
The magnetization is plotted over the inverse temperature showing the existence of a critical temperature.
Step 2 is repeated for several system sizes. At low system sizes finite size effects dominate.