Skip to content

Python3 implementation of the reaction-diffusion equation

License

Notifications You must be signed in to change notification settings

drkndl/Reaction-Diffusion

Repository files navigation

Reaction Diffusion Simulation

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.

Dependencies

The code requires the following dependencies:

  • Numpy
  • Matplotlib
  • Scipy
  • ffmpeg or Pillow for the animation

Examples

Based on the feed and kill rate values, different patterns emerge in the simulations. Some outputs are shown here:

  • Coral Growth

coral

  • Mitosis

mitosis

  • Maze

maze

  • Solitons

solitons

These outputs are in the outputs folder and the corresponding initial conditions are listed in the Initial Conditions folder.

License

This code is licensed by the GNU General Public License v3.0. You can read more about it here.

About

Python3 implementation of the reaction-diffusion equation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published