Skip to content

Two-species Vicsek model. Codes for numerical simulations.

License

Notifications You must be signed in to change notification settings

MatthieuM64/TSVM2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Two-species Vicsek model

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).

About

Two-species Vicsek model. Codes for numerical simulations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published