The two-dimensional Ising model is used to study the phase transition of ferromagnets. To
simulate the model, we use a parallelized version of the Metropolis-Hastings algorithm. First, we
calculate the analytical solution of a model with a square
- Sophus B Gullbekk (sophusbg@math.uio.no)
- Erlend Kristensen (erlek@math.uio.no)
- Tov Uberg Tyvold (tovut@math.uio.no)
- Jonathan Larsen (jonathel@math.uio.no)
For Linux users, in the file src write $make OMP
For Mac users, in the file src write $make omp
To recreate the results we found in our report the laticeSizeComp function in main.cpp has to be run with 8 threads.
All the code for the project is located in the src folder.
The code for implementing the Ising model is located in the IsingModel.cpp and IsingModel.hpp files.
Other helpful functions for the Ising model is located in the utilities.cpp and utilities.hpp files.
The random number generator is located in the omp_rng.cpp and omp_rng.hpp files.
The code for generating results is located in the main.cpp file.
The code for plotting the figures used in the report is located in plot.py.
The data from our simulations is stored in the textfiles folder.
