Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
ca_gray_scott_example.cc File Reference

Phase 9 example: Gray-Scott reaction-diffusion with PPM export. More...

#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include <ah-errors.H>
#include <ca-kernels.H>
#include <ca-rng.H>
#include <ca-traits.H>
#include <tpl_ca_continuous_rules.H>
#include <tpl_ca_engine.H>
#include <tpl_ca_lattice.H>
#include <tpl_ca_neighborhood.H>
#include <tpl_ca_storage.H>
Include dependency graph for ca_gray_scott_example.cc:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Detailed Description

Phase 9 example: Gray-Scott reaction-diffusion with PPM export.

Builds a continuous 2-D cellular automaton over a square Neumann lattice and runs the Gray-Scott model with the common "mitosis-like" preset:

F = 0.0367, K = 0.0649, Du = 0.16, Dv = 0.08, dt = 1

The initial condition is u=1, v=0 everywhere plus a deterministic noisy square in the centre. The final v field is exported as a PPM image. Defaults match the Phase 9 acceptance scenario:

./ca_gray_scott_example [output.ppm] [steps] [size]

Example:

./ca_gray_scott_example gray_scott.ppm 5000 256

Definition in file ca_gray_scott_example.cc.

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)