Coder Social home page Coder Social logo

bintruekenobi / ising-model Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.86 MB

Ising model, Glauber dynamics, Metropolis-Hastings algorithms, and renormalization.

Python 87.62% C++ 12.38%
glauber-dynamics ising-model metropolis-hastings renormalization-group

ising-model's Introduction

ising-model

glauber dynamics and metropolis-hastings algorithm

gifs below are from the glauber.py TLI2 TLI

n is set to 1 for ideal simulation running, setting n>1 for an animated plot will result in more squares updated per frame, so more computation per frame and longer evolution. for a final picture of the grid as the end product, comment out the animation script and put plot_grid2(grid) where the "#return grid" line is kept (line 73), giving a grid of coloured squares/rectangles (which may need to be full screened if there are hundreds of grid points per row/column as there is a black line between the squares which results in the grid looking like a single solid rectangle). This is the 2d case, so it is directly from Kramers-Wannier duality that the curie temperature of the 2d system is approximately 2/ln(1+rt(2)), or 2.2692, it's interesting to try e.g. T=2.3 and T=2.2 to see how they differ over large times.

ising-model's People

Contributors

bintruekenobi avatar

Watchers

 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.