Fly like a bird ------------------- * **Topic:** agent-based models, emergence, flocking, input files * **Task:** 1. Implement calculation of the cohesion force. 2. Run the simulation and check that you get reasonable flocking behaviour. 3. Try changing some simulation parameters and see how that changes the motion. 4. Also add a few predators in the simulation. * **Template:** `flocking.py `_ * **Data:** - `flock_system.txt `_ - `flock_dynamics.txt `_ * **Further reading:** - https://en.wikipedia.org/wiki/Agent-based_model - https://en.wikipedia.org/wiki/Boids - https://www.red3d.com/cwr/boids/ flocking.py ################# .. automodule:: flocking :members: :undoc-members: