Skip to main content

Crate henad_models

Crate henad_models 

Source
Expand description

Example models for the Henad engine.

example_models returns all ten models as a ModelSet, the set that the app and the CLI offer. Each module holds one model, and the model reference lists their parameters and actions.

Modules§

ants
Ant foraging as an AgentModel over a pheromone ScalarField.
boids
Boids flocking as an AgentModel on a torus, with neighbours found through a SpatialHash.
game_of_life
Conway’s Game of Life as a GridModel on a torus.
gpu_ants
GPU ants, crate::ants with its population and pheromone field in GPU buffers.
gpu_boids
GPU boids, crate::boids with its population in GPU buffers.
gpu_game_of_life
Game of Life as a GpuGridModel, with the rules of crate::game_of_life and the grid in a storage buffer.
gpu_sir
The SIR epidemic as a GpuGridModel, with the rules of crate::sir and the grid in a storage buffer.
sir
The SIR (susceptible, infected, recovered) epidemic as a GridModel on a torus.
team_assembly
NetLogo’s Team Assembly model, after Guimerà, Uzzi, Spiro and Amaral (2005).
virus_network
NetLogo’s Virus on a Network model, extended with rewiring and a directed variant.

Functions§

example_models
Returns the ten example models, with henad-models’ own build as their source.