Skip to content

๐Ÿ•ท๏ธ Ising spin

JavaScriptThree.js
Source

๐Ÿง  Inspired by Ising Model in Python
๐Ÿ A VPython demo is available as well, see ising_spin.py

  • The model walks through a temperature range between 0.1 and 4.9. Per temperature the programs executes 50 relaxation sweeps after which it determines the average of 100 measurements are being averaged.
  • Spins evolve with the Metropolis-algorithm, including periodic boundary conditions.
  • The plot depicts the average absolute magnetization per spin as function of the temperature.
  • State is reinitialized at every new temperature, not after every sweep!
Source

๐Ÿง  Inspired by isingHTML5.html by Daniel V. Schroeder (Weber State University)
๐Ÿ‘‰ Original demo for usage in An Introduction to Thermal Physics