GithubHelp home page GithubHelp logo

vivekhsridhar / potts_model Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 25 KB

2D potts model implementation (equals a 2D ising model when spins are limited to 2 states)

C++ 99.29% Makefile 0.71%
potts-model ising-model collective-behavior criticality

potts_model's Introduction

About

The Potts model is a generalisation of the Ising model. The key distinction of the Potts model from the Ising model is that it allows individuals to exist in more than two states. Usually, the spins are arranged in a square lattice where they interact with other spins within a defined neighbourhood. In this implementation, spins exist in one of three states and interact with their four closest neighbours. The implementation however is generalisable to n states.

Use

The above code is written using C++11 and tested on MacOS Sierra 10.12.5. The visualisation is executed using OpenCV 3.2.0. In case of troubles installing OpenCV / linking it to the C++ project, visualisation can be turned off by silencing OpenCV headers and the graphics function in main.cpp. The rest of the code should still work on naked C++.

potts_model's People

Contributors

vivekhsridhar avatar xif-fr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.