- Real-time interactive simulation of 2D classical XY model on a square lattice using
matplotlib
- Real-time visualisation of vorticity and vortex-antivortex pair creation and annihilation
- Computation of macroscopic variables to demonstrate KT transition
- Support for single-flip Metropolis algorithm (thermalizes faster on average) and cluster-flip Wolff algorithm (avoids critical slowing down by reducing autocorrelation)
- Usage of
numba
JIT compilation andjoblib
parallelization for extra speed
> git clone https://github.com/nkarve/xy-kt.git
> cd src
> python xy_realtime.py
When the temperature is raised above 1 J/kB the unbinding transition occurs and vortex-antivortex pairs proliferate the system.