Cellular Automata (CA) extension for dissmodel.
This library provides a collection of cellular automata models implemented using the dissmodel engine. It showcases the power of the framework's dual-substrate architecture, offering both vector (GeoDataFrame) and raster (NumPy) versions of classic and research models.
- Classic & Research Models: Game of Life, Forest Fire (Probabilistic), Anneal, Snow, and more.
- Dual Substrate: Seamlessly switch between vector precision and raster performance.
- Interactive Dashboards: Built-in Streamlit apps for real-time parameter exploration.
- Jupyter Notebooks: 15+ educational notebooks with step-by-step scientific explanations.
pip install .For a quick run with default parameters and visual output:
python examples/cli/ca_game_of_life.pyExplore all models via a reactive web interface:
streamlit run examples/streamlit/ca_all.pyThe best way to learn about each model is through our educational notebooks in Portuguese:
jupyter lab examples/notebooks/ca_game_of_life.ipynbsrc/dissmodel_ca/models/: Core CA implementations (the "Science" layer).examples/notebooks/: 15+ didactic notebooks (Intro, Concepts, Rules, Execution).examples/cli/: Simplified, self-contained scripts for quick testing.examples/streamlit/: Reactive UI components and apps.
| Model | Substrate | Description |
|---|---|---|
GameOfLife |
Vector / Raster | Classic Conway's simulation. |
FireModel |
Vector / Raster | Forest fire spread with probabilistic regrowth. |
Snow |
Vector | Snowfall accumulation and gravity dynamics. |
Growth |
Vector | Stochastic radial growth. |
Anneal |
Vector | Binary system relaxation via majority-vote rule. |
Excitable |
Vector | Excitable medium waves (spiral/ring patterns). |
Parasit |
Vector | Host-parasit spatial dynamics. |
Interspecific |
Vector | Grass species competition model. |