Skip to content

gharib85/Ising-Model

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python code to simulate the Ising model of a Ferromagnet. For a discussion of the theory, visit my blog post.

The initial conditions of the ising lattice can be specifited by the tempature, initial state, and size parameters of the model.

Running the simulation will output a video of system as it changes through out the run steps.

Example execution:

from ising import IsingLattice
lattice = IsingLattice(tempature=.50, initial_state="r", size=(100,100))
lattice.run(video=True)

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%