This is a simple Java app that simulates the Gray-Scott reaction diffusion equations.
Reaction-diffusion equations are simple mathematical models of how chemicals react. Many exist, but all of them have a few things in common:
- They're parabolic partial differential equations.
- They display complex and lifelike behavior.
- They form wiggly patterns when plotted.
This program plots the Gray-Scott equations, a pair of two partial differential equations:
These equations express the reactions
where f is the rate that chemical A is added to the mix, k is the reaction rate of chemical B becoming chemical C, rA is the rate of chemical A's diffusion, and rB is the rate of chemical B's diffusion.
This Java program solves these equations using Euler integration. A JAR file is supplied in the "bin" folder. You will need to install Java on your computer for this to work. Some examples are located in the "examples" folder.