tadeuscalvin / 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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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.


Languages

Language:C 97.0%Language:Shell 3.0%