GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devashishtiwa/Cluster_algorithms_Ising_model: Solving Ising model in 2D using Metropolis, Swensden Wang, and Wolff algorithms. The Ising model is a classi example of phase transition, nd many belives this to be the very first system to be numerically solvable while studying phase transition. I compared the traditional metropolis algorithm with the advacned SW & Wolff algos, and critical expo.

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
Graphs_obtained_from_code
Graphs_obtained_from_code
 
 
References_or_supportive_documents
References_or_supportive_documents
 
 
Tex
Tex
 
 
cluster_algos
cluster_algos
 
 
.gitattributes
.gitattributes
 
 
CP_Ising.pdf
CP_Ising.pdf
 
 
Presentation_theory.pdf
Presentation_theory.pdf
 
 
README.md
README.md
 
 
cluster_moves_hard_spheres.gif
cluster_moves_hard_spheres.gif
 
 

Repository files navigation

The 2D Ising model stands as a momentous model in physics, showcasing a genuine phase transition. It was solved exactly by Ernst Ising (1D) in 1920 and in 2D analytically solved by Onsager(2D)4 in 1944. We here present the methods to solve Ising model using three different approaches. Due to its lack of intrinsic dynamical evolution, its simulation relies on Monte Carlo algorithms. Particularly near its phase transi- tion, the Metropolis algorithm’s efficiency declines sharply, a limitation circumvented by the SW and Wolff method. Critical exponents describe this phase transition, their determination and comparison to theo- retical values form the bases of this report. Finally, the performance of all three algorithms is compared. We then apply the use of these cluster algorithms to Hard sphere model, and presented its comparison with theoritical description, concluding this study which is conducted as part of the Computational Physics course (PHY612N) taught by Dr. Sunil Pratap Singh at the Department of Physics, IISER Bhopal.

Programming language : Python

Dependencies

  • Python 3.x
  • NumPy
  • Matplotlib
  • Numba

Overview

The 2D Ising model consists of a lattice of spins that can take values of +1 or -1. Each spin interacts with its nearest neighbors, and the system evolves according to the Metropolis algorithm. The simulation computes various physical quantities such as energy, magnetization, and specific heat as a function of temperature.

The Hamiltonian $H$ for the 2D Ising model in the presence of an external magnetic field $B$ is given by the following expression:

$$ H = -J \sum_{\langle i, j \rangle} s_i s_j - \mu B \sum_i s_i $$

Here, $s_i$ represents the spin at site $i$, which can take values of +1 or -1. $J$ is the interaction strength between nearest neighbor spins $\langle i, j \rangle$, $\mu$ is the magnetic moment of each spin, and $B$ is the strength of the external magnetic field. The first sum runs over all nearest neighbor pairs of spins, while the second sum runs over all spins in the lattice.

$Features$

  • Implements the Metropolis algorithm for efficient Monte Carlo sampling
  • Compares the sampling with both the Wolff and SW Algorithm
  • Utilizes Numba JIT compilation for accelerated performance
  • Computes energy, magnetization, and specific heat of the system
  • Allows customization of lattice size, number of Monte Carlo sweeps, temperature range, and external magnetic field strength
  • Provides visualizations of the computed physical quantities

About

Solving Ising model in 2D using Metropolis, Swensden Wang, and Wolff algorithms. The Ising model is a classi example of phase transition, nd many belives this to be the very first system to be numerically solvable while studying phase transition. I compared the traditional metropolis algorithm with the advacned SW & Wolff algos, and critical expo.

Topics

clusterisingswensdenwangwolff

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.