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). This is a capture of it running:
Source 4 files
- Pattern.cpp C++ · 469 lines
- Pattern.h C++ header · 25 lines
- Main.cpp C++ · 217 lines
- documentation.txt Text · notes