JS Ising





Your browser does not support the HTML5 canvas tag.

This is my first JavaScript project. The goal is to make an interactive implementation of the Ising model that can run in browser. It simulates the behavior of magnetic materials in various environments.

MCMC Sampling

The Ising model is a 2D grid of cells, each with a value of spin that can be either up or down. The energy in a specific cell is related to its spin, the spins of its nearest neighbors, and the external field. The entire system is immersed in a heat bath. Throughout the evolution, cells are chosen at random and allowed to flip spin probabilistically, according to the Metropolis-Hastings acceptance criterion. The total system energy will tend to minimize.

Features