MattiaVarrone / Ising-Model-Criticality-and-Higher-Dimensions

Simulator of the Ising Model for a Spin Lattice, in any number of dimensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ising-Model-Criticality-and-Higher-Dimensions

This code simulates the Ising Model for a Ferromagnet, by generating an ensemble of lattice configurations through a vectorised version of the Metropolis algorithm (Checkerboard algorithm). Hyper-cubic lattices in any number of dimensions can be used.

Result examples

Evolution of 2D Spin Lattices under the Checkerboard Algorithm

eq_plots

Magnetisation and Specific Heat for different lattice sizes N

pattern2D

Finite size scaling measurement of magnetisation provides a fit for the critical temperature

finite_size

Hysteresis pattern for different temperatures

hysteresis

Magnetisation and Specific Heat in higher dimensions

high_dim

About

Simulator of the Ising Model for a Spin Lattice, in any number of dimensions

License:MIT License


Languages

Language:Jupyter Notebook 99.7%Language:Python 0.3%