The solver in Pattern.cpp follows Jos Stam’s “A Simple Fluid Solver Based on the FFT”, on a 128 × 128 grid using the FFTW library, and renders into a 256 × 256 window from “Lewpen's pattern generator” (Main.cpp). A capture of it running is at the top of the page.
Source 4 files
- Pattern.cpp C++ · 469 lines
- Pattern.h C++ header · 25 lines
- Main.cpp C++ · 217 lines
- documentation.txt Text · notes