-
boid.py contains code for simulating a boid (variables for position and velocity, functions for calculating new velocity/position and static parameters to control behaviour)
-
boidContainerList.py manages all existing boids in a list (initial approach) and provides functions for adding boids
add
, getting the neighborhood of a boidgetNeighborhood
and calling the step-function on all contained boidsstep
. Other implementations of more efficient datastructure should provide the same interface. -
boidContainerOctree.py uses an Octree to manage boids and efficiently calculate neighborhoods.
-
data_structures/octree.py contains an Octree implementation that was copied from https://github.com/jcummings2/pyoctree/blob/master/octree.py and adapted for the boid-swarm scenario (search for neighborhood based on boid and it's radius)
-
boidContainerHashtable contains a spatial Hashtable implementation for efficient neighborhood calculation
-
main.py can be used to start the simulation and set parameters for the visualization
-
evaluation.py calls the code in main.py for varying number of boids and environment-implementations and generates a plot that compares performances
-
Notifications
You must be signed in to change notification settings - Fork 0
GitianOberhuber/Modelling_and_Simulation_TU_Wien_WS2022
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published