- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| analysis_code | ||
| sample_data/Ip90_In05_R10_time1000_num100_0 | ||
| simulation_code | ||
| LICENSE | ||
| README.md | ||
schooling_extreme
Schooling of thousands of fish following vision and flow interactions
Dependence and Installation
The code reqiures standard python packages, such as numpy, scipy, numba, matplotlib, which can be install using
pip install numpy scipy matplotlib numba tqdm pickle
The installation would typiclaly take within a minute for isntallltation.
Demo
Simulations are performed using scirpt code. Parameters can be changed within code, and the runtime depends on number of swimmers N in the code. For 100 swimmer, run time is about several minutes on a "normal" desktop, and runtime scale with N^2. When scaling to 10,000 fish, simulation would reqiure a high performance workstation.
One sample dataset of 100 fish is given in data.
Data are then analyzed using scripts in analysis_code, e.g. code calculates order parameter, code identifies clusters when the school is fragmented, code identifies correlation function and correlation length, code evaluates information transfer speed.
The expected output are reported in our manuscript.