Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 4.05 KB

File metadata and controls

52 lines (34 loc) · 4.05 KB

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: