2D Ising ferromagnet

Simulated on a square grid with Metropolis single-spin-flip algorithm and Periodic Boundary Conditions.

Colors:

White: spin up.

Black: spin down.

Red: spin ill-defined.

Green: background.

Legend:

m: intensive magnetization.

e: intensive energy.

Controls:

T, temperature: 2.269
H, magnetic field: 0.0
L, points per side: 128

Suggestion 1: periodically and quasi-statically vary H (e.g. with keyboard arrows) --> hysteresis cycle.

Suggestion 2: quickly vary H at low T --> nucleation and growth.

Suggestion 3: quickly decrease T below 2.269 while H=0 --> spinodal decomposition.

Suggestion 4: set T<2.269 and H=0 and reduce at minimum the size L --> flip flop.

Inspired by Lorenzo Rovigatti's web app and Nils Berglund's YouTube channel.

IDEE: Usa algoritmo a cluster per basse T. Implementa condizioni libere/fisse al bordo.