Ising model simulation using terra.js
The simulation is running in real time, and certain parameters can be adjusted:
- temperature is used to calculate the probability of a domain flip (bigger temperature means bigger termal noise, which means more chaotic flipping)
- external magnetic field favors domains aligned in the same direction as the field (positive field favors "up" domains, negative "down" domains).
- friction: when the change of energy is calculated for the Metropolis criterion, the friction parameter is always added to it (to prevent artificial continous domain flipping or to simulate histeresis).
ising.html, ising.css and metropolis.gif constitute the webpage, on which the script is placed. terra.min.js is the terra library downloaded from http://rileyjshaw.com/terra/, and the ising.js is the script itself (the most important file).
Installation is simple: copy all the files to one folder and open ising.html. The content of the gh-pages branch can be viewed online at adress: http://crawfy48.github.io/Ising-model/ising.html Polish version is hosted here: http://students.mimuw.edu.pl/~lm320319/ising.html