Codes used in the scientific publication:
S. Chatterjee, M. Mangeat, C.-U. Woo, H. Rieger, and J. D. Noh, Flocking of two unfriendly species: The two-species Vicsek model, Phys. Rev. E 107, 024607 (2023). Preprint available on arXiv.
C++ code on numerical simulation of the two-species Vicsek model.
Exportations: dynamics of flocking; time evolution of the order parameters and the mean-square displacement.
Compile: g++ TSVM.cpp -lgsl -lgslcblas -lm -O3 -s -o TSVM.out.
Run: ./TSVM.out -parameter=value.
List of parameters: v0, eta, rho0, LX, LY, tmax, init, RAN (details as comments in the code).
Generate the movie (rectangle geometry 800x100): python figure_TSVM_dynamics.py -parameter=value (parameters: v0, eta, rho0, LX, LY, DT, tmax, init, ran).
Generate the movie (square geometry 512x512): python figure_TSVM_square_dynamics.py -parameter=value (parameters: v0, eta, rho0, LX, LY, DT, tmax, init, ran).