This Monte Carlo simulation program provides a numerical implementation of Lévy Flights, also known as long-range random walks (LR-RW).
A Lévy flight is a type of random walk where the step lengths follow a heavy-tailed probability distribution. Unlike ordinary (short-range) random walks, in which steps are typically of similar magnitude, Lévy flights occasionally include extremely long jumps, allowing the walker to explore space in a nonlocal manner.
Mathematically, the step-length distribution of a Lévy flight in
where
Lévy flights play an important role in various physical and biological systems, such as anomalous diffusion, turbulent transport, and search processes.
-
src_demo: Fix the distance$R$ , and measure how many steps are taken. -
src_n_site: Fix the number of steps$N$ , and measure the end-to-end distance as well as the range of the random walk (i.e., how many sites are visited after$N$ steps). -
src_chi_k: Use a lattice with periodic boundary conditions (PBC). Fix the number of steps to$L^d$ , and measure the effective susceptibility$\chi_k$ .
-
Clone the repository:
git clone https://github.com/Tensofermi/LR_RW cd LR_RW -
Configure model selection in the
Makefile:SRC_DIR := src_chi_k # SRC_DIR := src_demo # SRC_DIR := src_n_site
Uncomment the desired model and comment out the others.
-
Set parameters in
input.txtand run the simulation:./run.sh
-
For advanced simulations, including job submissions on HPC systems, refer to the
/lsub,/qsub, and/datadirectories in our related project: Zoo_of_Classical_ON_Spin_Model