Expand description
Simulation systems: cellular automata, N-body physics, reaction-diffusion, epidemiological models, and traffic simulation.
Structs§
- Belousov
Zhabotinsky - Simplified 3-variable BZ reaction model on a 2D grid.
- Body
- A gravitational body.
- Brians
Brain - BzParams
- Parameters for the Belousov-Zhabotinsky oscillator.
- Cellular
Automaton - Generic 2D cellular automaton grid.
- Fitz
Hugh Nagumo - FitzHugh-Nagumo excitable medium — models action potentials and spiral waves.
- Forest
Fire - Probabilistic forest fire cellular automaton.
- Game
OfLife - Conway’s Game of Life.
- Gray
Scott - Gray-Scott reaction-diffusion system. Models Turing pattern formation.
- Gray
Scott Preset - Preset parameters for Gray-Scott system.
- Intelligent
Driver Model - Intelligent Driver Model (IDM) parameters.
- Langtons
Ant - Langton’s Ant — universal Turing machine on a 2D grid.
- NBody
Simulation - N-body simulation state.
- Nagel
Schreckenberg - Nagel-Schreckenberg cellular automaton traffic model.
- Orbital
Elements - Classical orbital elements.
- Seird
Model - SEIRD model with Exposed and Deceased compartments.
- SirCell
- Per-cell state for spatial SIR model.
- SirGrid
- Spatial SIR model on a 2D grid.
- SirModel
- Susceptible-Infected-Recovered (SIR) model.
- Totalistic1D
- Wolfram elementary 1D cellular automaton (256 rules).
- Vec3
- Vehicle
- Vehicle in the IDM model.
- Wire
World - WireWorld cellular automaton — simulates digital electronic circuits.
Enums§
- AntDir
- Brian
Cell - Brian’s Brain 3-state automaton.
- Forest
Cell - Cell states for forest fire model.
- Octree
Node - Node in the Barnes-Hut octree.
- Wire
World Cell - WireWorld cell states.
Functions§
- barnes_
hut_ step - Barnes-Hut O(n log n) gravity step.
- direct_
gravity_ step - Direct O(n²) gravity calculation and Euler step.
- from_
state_ vectors - Compute orbital elements from state vectors.
- leapfrog_
step - Leapfrog (Störmer-Verlet) symplectic N-body step.
- solve_
kepler_ equation - Solve Kepler’s equation M = E - e*sin(E) for eccentric anomaly E.
- to_
state_ vectors - Convert orbital elements to state vectors.