A 2D Ising Model simulation using Wolff/Metropolis algorithms in C.
Report Bug
·
Request Feature
As part of the C Programming teaching unit taught in the third year of a bachelor's degree in the Magister of Fundamental Physics at Paris-Saclay's University, we had to develop and implement a physical system in C as our final project. I chose to take advantage of the speed of C/C++ to study a quite simple system, altough requiring a large number of iterations to reach equilibrium (assuming existence ...). Thus, here is my current project on the 2D Ising model, which could be easily generalized to an n-dimensional Ising model since I've took care of making Wolff Algorithm and Metropolis Algorithm as much agnostic as possible about the dimension of the lattice.
To run locally the project, we've included a basic Makefile to shorten the compilation process.
- Python C-API
- Change Python C-API include directory in Makefile
Change
PYTHON := -I/path -lpython3.12python3.12to your corresponding python's version.
-
Clone directory and cd into it
git clone https://github.com/Duffy-y/IsingModel. && cd ./IsingModel
-
Run included Makefile
make
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
Distributed under the GNU-GPLv3 License. See LICENSE for more information.