Giter Site home page Giter Site logo

karpur-shukla / heisenberg_model-py Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 4.0 179 KB

Implementations of the Heisenberg model in statistical mechanics, done in Python 2.7.12 (with NumPy, SciPy, and matplotlib).

License: MIT License

Python 100.00%
ising-model heisenberg-model ising-model-2d statistical-mechanics nearest-neighbour-interactions

heisenberg_model-py's Introduction

heisenberg_model-py

This is a repository for all of my code related to the Heisenberg model in statistical mechanics, as implemented in Python 2.7.12 (using NumPy, SciPy, and matplotlib). This repository contains the following files:

Shukla - Ising Model 0NN.py

This is a two-dimensional (N-by-M) Ising model with no nearest-neighbour interactions. Since we have no nearest-neighbour interactions, the partition function can be directly factorised, and this system is equivalent to NM copies of a single spin.

Shukla - Ising Model 2D.py

This is a two-dimensional (N-by-M) Ising model with first-nearest-neighbour interactions. The script permits anisotropy by specifying distinct values for the x-directional and y-directional couplings.

Shukla - Ising Model 2D Histogram.py

This is a two-dimensional (N-by-M) Ising model with first-nearest-neighbour interactions, which provides histograms of the resulting average total magnetisations and average total energies . This recreates the weighted histogram analysis method (WHAM) seen in A. Ferrenberg & R. Swendsen, Phys. Rev. Lett. 61, 23 (1988) and A. Ferrenberg & R. Swendsen, Phys. Rev. Lett. 63, 12 (1989).

Shukla - Ising Model 2D MCRG.py

This is a two-dimensional (N-by-M) Ising model with first-nearest-neighbour interactions, which performs real-space renormalisations of the lattice and examines the renormalisation group flow of the two-point disconnected Green function G^(2)(i, i+1) = <x_i x_(i+1)> at various temperatures by examining the eigenvalues of the transfer matrix.

heisenberg_model-py's People

Contributors

k-shukla avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

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