Skip to content

Python implementation of the Ising model in 2 dimensions

Notifications You must be signed in to change notification settings

rmadar/isingmodel2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ising Model at Two Dimension

This repository hots a python implementation of the Ising model in 2 dimensions, exploring phase transition physics. The simulation allows for:

  • external magnetic field
  • anisotropy between x and y direction
  • more interacting neighboors
  • distance-dependant interaction, based on a user-defined function V(r)
Magnetization(T) 2-points correlation

The following shows a 500x500 spin lattice with some perturbations in the four corners. Below the critical temperature, the domains where spins are aligned tend to grow while they tend to disappear above the critical temperature.

T<Tc T>Tc

The following shows a 500x500 spin lattice evolving under a temperature T=2.1 for different number of interacting neighbours. The '1 neighbour' system correpond to the usual Ising model while 3 and 10 neighbours correponds longer range interactions.

1 neighbour 3 neighbours 10 neighbours

About

Python implementation of the Ising model in 2 dimensions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages