https://github.com/dlqqq/ising-model
cool simulation of magnetic lattices and their phase transitions
https://github.com/dlqqq/ising-model
ising-model-2d monte-carlo simulation
Last synced: 3 months ago
JSON representation
cool simulation of magnetic lattices and their phase transitions
- Host: GitHub
- URL: https://github.com/dlqqq/ising-model
- Owner: dlqqq
- Created: 2019-12-11T03:55:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-12T20:44:04.000Z (about 5 years ago)
- Last Synced: 2025-01-12T13:50:09.992Z (5 months ago)
- Topics: ising-model-2d, monte-carlo, simulation
- Language: Jupyter Notebook
- Homepage:
- Size: 382 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ising-model
A collection of small Monte Carlo simulations of the Ising model.
## C++/Arduino Implementation
See `ising.ino`. This is the most accurate, optimized, and fully-featured
simulation thus far. This is meant to be flashed on a Peggy 2LE LED matrix
board. The buttons can toggle ferromagnetic/anti-ferromagnetic simulation,
temperature, and the external magnetic field.## Jupyter/Python3
The Jupyter notebook contains a brief overview of the Ising model and explains
the simulation. However, the code in both the python and jupyter script is not
entirely correct, as it includes an extraneous term (explained in the jupyter
notebook). This leads to the same observations (temperature-dependent phase
transitions, ferromagnetic/anti-ferromagnetic patterns, etc.), but is not
precise enough for numerical analysis. I have corrected the equations in the
introduction, but will not finish correcting and re-compiling all the code.