This repository contains a Python3 implementation of the reaction-diffusion simulation. You can learn more about the nature of the simulation from karlsim's tutorial. I referred to this repository for creating the animation for the simulation.
reac-diff.py
contains an implementation of the code along with the animation.
Reaction-Diffusion-no-Animation.ipynb
contains an implementation of the code without the animation function, but simply outputs the plot every 10 iterations. The images can then be stitched together to form a GIF/video.
The code requires the following dependencies:
Numpy
Matplotlib
Scipy
ffmpeg
orPillow
for the animation
Based on the feed and kill rate values, different patterns emerge in the simulations. Some outputs are shown here:
- Coral Growth
- Mitosis
- Maze
- Solitons
These outputs are in the outputs
folder and the corresponding initial conditions are listed in the Initial Conditions
folder.
This code is licensed by the GNU General Public License v3.0. You can read more about it here.