This repository contains source code for a computational project on the classical Heisenberg model in two dimensions using a standard Monte Carlo Metropolis algorithm for the Ising model.
Project is done for the Aalto University course PHYS-E0415 Statistical Mechanics.
Using Jupyter Notebooks is preferred. Necessary Python packages can be installed with:
pip install -r requirements.txt
heisenberg_2d.py
contains the implementation, which can be run using the analysis.ipynb
notebook.
Simulations can be run independently with e.g.
python3 run_heisenberg.py --N 10 --H 0 0.25 0.75 --steps 4000 --temp 0.3 10.5 500
The parameters can in turn be effortlessly swept with something like the Bash-script given as an example run_simulations.sh
:
chmod a+x run_simulations.sh
./run_simulations.sh
Link to (private) Overleaf here.