Skip to content

2D simulation of the Ising model using Metropolis algorithm. Exercise for "Dynamical and Extended Systems" course @ University of Cantabria (in Spanish). C++11 implementation interfaced with Python using Cython libraries.

Notifications You must be signed in to change notification settings

pablodecm/ising_model

Repository files navigation

Ising Model

The IPython Notebook with the results can be viewed directly on GitHub.

Requisites

In order to build and execute the simulator and interactively explore the results these tools are required:

  • C++11 compatible compiler
  • Python 2.7
  • IPython
  • Cython
  • numpy
  • matplotlib

Cloning the repository

git clone https://github.com/pablodecm/ising_model.git

Compiling and linking the simulator

The Ising 2D simulator is implemented in C++ and linked using Cython, a C+11 compatible compiler is required. To compile the extension as a shared library in the same folder use:

python setup.py --build-dir .

Check the Ising.pyx file to see the functions implemented on the Python interface.

Exporting to Latex PDF

Execute in the root of the repository:

ipython nbconvert

About

2D simulation of the Ising model using Metropolis algorithm. Exercise for "Dynamical and Extended Systems" course @ University of Cantabria (in Spanish). C++11 implementation interfaced with Python using Cython libraries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published