Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.46 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.46 KB

Heisenberg model in two dimensions

CI Binder

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.

Installation

Using Jupyter Notebooks is preferred. Necessary Python packages can be installed with:

pip install -r requirements.txt

Usage

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.