This repository includes:
- pdf with an analytic analysis of the model and an exploration of the Monte Carlo simulation results.
- Python code to run MC simulations of the model (for the case of zero field).
This was initally developed as a project for my Statistical Physics course, with a later revision to improve it.
- Simply run main.py. Input the number of spins and the number of Monte Carlo steps to perform. I recommend starting with 50 spins and 10000 steps.
- Once finished, a folder is created with the results of the run: A file with the mean magnetization per spin and total energy of each of the MC samples, for each of the temperatures. Be careful with over-writing previous results.
An example of the output is found in the folder N50.
Some of the relevant equations found in the project: