Skip to content

A highly modular simulation framework of Monte-Carlo methods, based on the Ising Model in a 2D spin lattice. Producing results for the macroscopic properties of the system via simulation and bootstrapping. A few commonly used algorithms are built-in. Model generalizations and additional algorithms can be implemented.

License

Notifications You must be signed in to change notification settings

OrHostezky/monte-carlo-methods-in-2D-spin-lattice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monte-Carlo methods - 2D spin lattice

This repository applies a Monte-Carlo simulation scheme, involving a system of spins arranged in a 2D-lattice, using different algorithms. Dynamics are based on the basic Ising-model Hamiltonian:

$$H_0 = - J \sum_{\langle i,\; j \rangle} s_i s_j \; , \quad \langle i, j \rangle: i ,\; j \quad \text{are nearest neighbors} ,$$

including only nearest-neighbor interactions between spins, and no external magnetic field (which can be easily included).

The scheme is flexible regarding both the possible spin values and the used algorithm, such that additional algorithms can be easily added to the modeling framework (by adding new step__*.m functions and including them in sim_basic.m. Furthermore, wide generalizations can be made with just a few steps (for example, an external field or higher order interactions can be included via slight modifications to the coupling or interaction functions, respectively). Introducing different models to it (such as higher-dimension lattices or angular spin directions) is reasonably achievable too, making this framework quite useful.

Hopefully, you'll find it useful too! 🙏

OR HOSTEZKY

Script Index

Note

Here, the general structure of this repository's Code section is described. For a more specific description, look at each script specifically.

General repository scheme:

$\quad$ Apply scripts $\quad \longmapsto \quad$ Simulation functions $\quad \longmapsto \quad$ Step functions $\quad \longmapsto \quad$ Basic interaction functions

Data and plots

Data and corresponding figures are automatically saved with easily identifiable, corresponding file names (including the simulation type, important parameter values, and used algorithm), in the Data and Plots directories, respectively.

A few basic examples are already included in the repository, inside these two directories. Here are the two figure types that are currently produced by this repository:

About

A highly modular simulation framework of Monte-Carlo methods, based on the Ising Model in a 2D spin lattice. Producing results for the macroscopic properties of the system via simulation and bootstrapping. A few commonly used algorithms are built-in. Model generalizations and additional algorithms can be implemented.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages