/isingmodel

The Ising model is a model of ferromagnetism. It consists of discrete variables that represent magnetic dipole moments of atomic spins that can be +1 or −1. The spins are arranged in a lattice, allowing each spin to interact with its neighbors. This simulation allows you to see an animation, where the spins are represented by white and black squares.

Primary LanguageC

isingmodel

  • Prerequisites:

    • Install glfw3:

      • "sudo apt-get install libglfw3-dev"
    • Install gcc:

      • "sudo apt-get install gcc"

To run:

gcc ising.c -lm

chmod +x DynSim.sh

./a.out | ./DynSim.sh -l 100

#where the last number is the side of the lattice, which by default is 100