Giter Club home page Giter Club logo

orhostezky / monte-carlo-methods-in-2d-spin-lattice Goto Github PK

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

A highly modular simulation framework of Monte-Carlo methods, based on the Ising Model in a 2D spin lattice. Producing results for the macroscopic properties of the system via simulation and bootstrapping. A few commonly used algorithms are built-in. Model generalizations and additional algorithms can be implemented.

License: MIT License

MATLAB 100.00%
cluster-algorithm ising-model monte-carlo-methods potts-model spin-lattice wolff-algorithm heat-bath-algorithm metropolis-algorithm

monte-carlo-methods-in-2d-spin-lattice's Introduction

Monte-Carlo methods - 2D spin lattice

This repository applies a Monte-Carlo simulation scheme, involving a system of spins arranged in a 2D-lattice, using different algorithms. Dynamics are based on the basic Ising-model Hamiltonian:

$$H_0 = - J \sum_{\langle i,\; j \rangle} s_i s_j \; , \quad \langle i, j \rangle: i ,\; j \quad \text{are nearest neighbors} ,$$

including only nearest-neighbor interactions between spins, and no external magnetic field (which can be easily included).

The scheme is flexible regarding both the possible spin values and the used algorithm, such that additional algorithms can be easily added to the modeling framework (by adding new step__*.m functions and including them in sim_basic.m. Furthermore, wide generalizations can be made with just a few steps (for example, an external field or higher order interactions can be included via slight modifications to the coupling or interaction functions, respectively). Introducing different models to it (such as higher-dimension lattices or angular spin directions) is reasonably achievable too, making this framework quite useful.

Hopefully, you'll find it useful too! ๐Ÿ™

OR HOSTEZKY

Script Index

Note

Here, the general structure of this repository's Code section is described. For a more specific description, look at each script specifically.

General repository scheme:

$\quad$ Apply scripts $\quad \longmapsto \quad$ Simulation functions $\quad \longmapsto \quad$ Step functions $\quad \longmapsto \quad$ Basic interaction functions

Data and plots

Data and corresponding figures are automatically saved with easily identifiable, corresponding file names (including the simulation type, important parameter values, and used algorithm), in the Data and Plots directories, respectively.

A few basic examples are already included in the repository, inside these two directories. Here are the two figure types that are currently produced by this repository:

monte-carlo-methods-in-2d-spin-lattice's People

Contributors

orhostezky 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.