Sophia S. Liau

Reaction Diffusion

April 2025 Algorithmic Systems Personal Project

This project was a just for fun project to model the Gray-Scott reaction-diffusion system. This is a mathematical model that describes how two chemicals interact and diffuse in space, creating complex patterns. Although many of my applications are not fully a product of the Gray-Scott model, I used it as a starting point to explore how reaction-diffusion systems can be used to create interesting visual effects. The project was completed in Python with the usage of Cursor.

1 / 3
Slide 1
2 / 13
Slide 2
3 / 13
Slide 3

Technical Overview

The Reaction Diffusion project was an implementation of the Gray-Scott system. Following the Fisher-KPP equation as follows, ∂u/∂t = D ∂²u/∂x² + ru(1 - u). The simulation calculates the concentration of two chemicals, U and V, over time. The system is governed by two main processes: diffusion, which spreads the chemicals across the grid, and reaction, which determines how the chemicals interact with each other. The project uses a grid-based approach, where each cell represents a point in space with specific concentrations of U and V.