Implementation of Ising Model using NumPy and Matplotlib. Used the Metroplis algorithm to update states. Can customize lattice size, lattice intial state, temperature, coupling constant, and external field.
Can generate .gifs of states over time and temperature.
- Python 3.x
- NumPy
- Matpotlib
- Imageio
-
Clone the repository:
git clone https://github.com/SeaUrc/IsingModel.git -
Install dependencies
pip install numpy matplotlib imageio -
Run the script
python main.py
Over time with 1.0 temperature, 0 external field, random initialization
Over time with 1.5 temperature, 1.0 external field, all down initialization
Over temperature (1.0-4.0) with 0 external field, steady state
Over time with 1.7 temperature, 0 external field, all down initialization



