Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 1.49 KB

README.md

File metadata and controls

42 lines (22 loc) · 1.49 KB

Reaction diffusion

Reaction–diffusion systems are mathematical models which correspond to several physical phenomena: the most common is the change in space and time of the concentration of one or more chemical substances: local chemical reactions in which the substances are transformed into each other, and diffusion which causes the substances to spread out over a surface in space.

Equation

How to compile

g++ -std=c++17 -Wall -Wpedantic -Wextra -O2 Gray_Scott.cpp -o GrayScott.exe

How to use

./GrayScott.exe  <D_a> <D_b> <Food> <Kill> <Resolution> <Iterations> <filename>

Variables that you can try

D_u D_v F k Output 0.2 0.1 0.02 0.048 0.2 0.1 0.03 0.0545 0.2 0.1 0.03 0.06 0.2 0.1 0.01 0.05 0.2 0.1 0.02 0.06

A better explanation

https://www.youtube.com/watch?v=alH3yc6tX98