Skip to content

q-state active clock model and active XY model. Codes for numerical simulations.

License

Notifications You must be signed in to change notification settings

MatthieuM64/ACM2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Active clock model and active XY model

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.

q-state active clock model

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

active XY model

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

About

q-state active clock model and active XY model. Codes for numerical simulations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages