Ising
This behavior uses the Metropolis algorithm to calculate the exact probability of an atomic spin change occurring. As temperature increases, flipping to a higher energy state becomes increasingly likely, but as the energy to be gained by flipping increases, the likelihood of flipping decreases.
Published by
Shortname
@hash/ising.js
Description

This behavior uses the Metropolis algorithm to calculate the exact probability of an atomic spin change occurring. As temperature increases, flipping to a higher energy state becomes increasingly likely, but as the energy to be gained by flipping increases, the likelihood of flipping decreases.

Spins are represented on an agent as the numbers +1 (up) or - 1 (down).

Agents must have a spin field populated with the number +1 or -1. Globals must have a temperature field with a number between 0 and 10.

Check out this behavior in the Ising Model