Codes used in the scientific publication:
S. Chatterjee, M. Mangeat, and H. Rieger, Polar flocks with discretized directions: the active clock model approaching the Vicsek model, EPL 138, 41001 (2022). Preprint available on arXiv.
C++ code on numerical simulation of the q-state active clock model.
Exportations: dynamics of flocking; time evolution of the total magnetization and the mean-square displacement; number and magnetization fluctuations.
Compile: g++ active_clock_model.cpp -lgsl -lgslcblas -lm -O3 -s -o active_clock_model.out.
Run: ./active_clock_model.out -parameter=value.
List of parameters: q, beta, epsilon, rho0, LX, LY, init, RAN, tmax (details as comments in the code).
C++ code on numerical simulation of the active XY model.
Exportations: dynamics of flocking; time evolution of the total magnetization and the mean-square displacement; number and magnetization fluctuations.
Compile: g++ active_XY_model.cpp -lgsl -lgslcblas -lm -O3 -s -o active_XY_model.out.
Run: ./active_XY_model.out -parameter=value.
List of parameters: beta, epsilon, rho0, LX, LY, init, RAN, tmax (details as comments in the code).