Skip to content

Gray-Scott reaction-diffusion system in 3D using CUDA

License

Notifications You must be signed in to change notification settings

ifilot/wavefuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wavefuse

Purpose

Perform a time-integration of a reaction-diffusion system in 3D using the FTCS algorithm on a GPU. Currently, only Gray-Scott kinetics are implemented.

Example

Gray-Scott reaction-diffusion system

Setting Value
Type Gray-Scott
Size 2563
dt 0.25
dx 0.50
f 0.0625
k 0.0416
Da 0.16
Db 0.08

Compilation instructions

Assuming that you have CUDA installed, the compilation is roughly as follows:

mkdir build
cd build
cmake ../src
make -j9

CMake should automagically detect your CUDA installation.

Usage

./wavefuse -i ../path/to/inputfile

Example:

./wavefuse -i ../examples/gray_scott_spots.in