Skip to content

About

A 2D Ising Model simulation using Wolff/Metropolis algorithms in C.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

38 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Ising Model

A 2D Ising Model simulation using Wolff/Metropolis algorithms in C.
Report Bug · Request Feature

Table of content

  1. About The Project
  2. Getting Started
  3. License

About The Project

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.

Getting Started

To run locally the project, we've included a basic Makefile to shorten the compilation process.

Prerequisites

  • Python C-API
  1. Change Python C-API include directory in Makefile
    PYTHON := -I/path -lpython3.12
    
    Change python3.12 to your corresponding python's version.

Installation

  1. Clone directory and cd into it

    git clone https://github.com/Duffy-y/IsingModel. && cd ./IsingModel
  2. Run included Makefile

    make

Usage

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.

License

Distributed under the GNU-GPLv3 License. See LICENSE for more information.

About

A 2D Ising Model simulation using Wolff/Metropolis algorithms in C.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages