VisualPDE survey: what it holds, what overlaps f_, and a PDE menu section โ
Status: ๐ต research note, not a spec. Written 2026-11-27 (Claude offline, docs only) from a read of a local clone at /Users/matt/Github/visual-pde (the repo behind visualpde.com/explore) plus src/f_modules/menu.py, docs/f-reference/module-inventory.md, .specify/plan.md and .specify/gates.md. Nothing built, run or tried in Max. Items tagged [inferred] were worked out, not observed. The clone was read in part: README.md, llm-context/what-can-visualpde-solve.md, llm-context/solver.md, species_config.js, the top of simulation_shaders.js, the preset list in presets.js and four presets (Gray-Scott, complex Ginzburg-Landau and the headers of two more). main.js (14k lines) was not read.
What VisualPDE is โ
- A Jekyll site. The engine is
sim/scripts/RD/:main.js(UI and orchestration),simulation_shaders.js(GLSL assembled from the user's equation strings),presets.js(234 presets),species_config.js(channel packing). - It solves
M du/dt = div(D grad u) + fwith up to 8 unknowns, in 1D or 2D. Species are packed four per RGBA texture (two textures at eight). Diffusion can be a full matrix (cross-diffusion), andDandfmay depend on space, time and the unknowns. - Numerics: finite differences, forward Euler by default, also Adams-Bashforth 2, midpoint and RK4. The doc says explicit stability needs
D dt / dx^2small enough (it states the ratio the wrong way round in one sentence; the intent is clear). Boundaries: periodic, Dirichlet, Neumann, Robin, mixed, and implicit (level-set or image) domains. - A preset is data: equation strings plus parameters. Gray-Scott is
reactionStr_1: u^2*v - (a+b)*u,reactionStr_2: -u^2*v + a*(1-v), diffusion 1 and 2,a=0.037,b=0.06, spatial step 3. Complex Ginzburg-Landau is two real speciesu, v(real and imaginary parts) with a rotation-matrix diffusion[[D_r, -D_i],[D_i, D_r]]and cubic reaction terms,dt=0.001. So a curated module needs only the reaction kernel, the diffusion constants and a parameter table taken from the presets. - License: MIT for the software, CC-BY 4.0 for HTML and content (
LICENSE.md). Using the equations and parameter regimes is fine; keep the credit in the doc and helpfile of any module that borrows a regime.
Catalog (preset names, from presets.js; grouped by me) โ
| Family | Presets worth noting | f_ today |
|---|---|---|
| Turing / morphogenesis | GrayScott (+ Pearson classification, gliders, advecting, webcam, stochastic), Brusselator, GiererMeinhardt, Schnakenberg, chemicalBasisOfMorphogenesis, TuringNotEnough* | none |
| Excitable media | FitzHugh-Nagumo (Hopf, 3-species, spirals, heart, noisy), TuringWave*, bistable travelling waves | none |
| Amplitude / instability | swiftHohenberg (+ localised, heterogeneous, advected), complexGinzburgLandau, CoupledCGL, Sofya CGLE (chaos, fireflies, duck pinning), KuramotoSivashinsky (2D and 3D), lambdaOmega | f_ks (spectral); f_cgl specified, not built |
| Conserved / coarsening | CahnHilliard, CahnHilliardNonreciprocal, PeronaMalik | f_vf_ch |
| Waves | waveEquation (ICs, damped, 3D, 1D), plateEquation, stabilizedSchrodinger, KdV, ZKSoliton, nonlinear beams | f_wave_field (spectral) |
| Fluids and transport | NavierStokes, vorticity, shallow water, Burgers, advection | f_vf_fluid, f_vf_lbm, f_vf_vorticity, f_vf_advect |
| Ecology and epidemics | cyclic competition (RPSLS), Keller-Segel, Klausmeier, forest fires, mask and covid models | none; probably out of scope for a texture library [inferred] |
| Dynamical systems | Lorenz, Duffing, Van der Pol, synchroRotors | none (ideas/entrainment.md is nearby) |
Where a PDE menu section landed โ
Done 2026-11-27 (Matt's go; commits 54eeae8, fe7c1a2): a PDE category after Patterns holds Cahn-Hilliard (f_vf_ch), Complex Ginzburg-Landau (f_cgl, built the same day), Fluid (f_vf_fluid), Kuramoto-Sivashinsky, Lattice Boltzmann (f_vf_lbm), Nematic, Wave Field and Wilson-Cowan. f_vf_lk and f_vf_vorticity stayed in โ Fields (an analyzer and an effect, not solvers). Not yet looked at in Max. A new module in this family is placed in PDE by default (menu.py, README table, regenerated menu and launcher). Decisions still Matt's under G-menu.
Candidate named modules (Matt: curated and named, 2026-11-27; promoted to notes 2026-11-28) โ
Ranked 2026-11-28; f_cgl is built and off the list.
| # | Candidate | Note | State | Why here |
|---|---|---|---|---|
| 0 | stepper feasibility spike | f_rd_stepper_spike.md | plan | gates items 1, 3, 4: can a real-space explicit stepper run in a pix chain |
| 1 | f_gs Gray-Scott | f_gs.md | concept | biggest gap, most recognizable RD look; texture-driven parameter map |
| 2 | f_swift Swift-Hohenberg | f_swift.md | concept | cheapest: spectral, same kind of solver as f_ks and f_cgl (inferred); maybe a mode of f_ks |
| 3 | f_excitable | f_excitable.md | concept | spirals and a stimulus inlet, but f_cgl and f_wc overlap |
| 4 | f_turing kinetics | f_turing.md | concept | close to Gray-Scott; probably a menu on the f_gs stepper |
| - | f_perona | f_perona.md | concept | an image processor, not a generator; overlap (Kuwahara, f_tf_aniso_blur) unchecked |
Overlaps with f_ks, f_wave_field and f_vf_ch are by solver method: those are spectral; VisualPDE is real-space finite difference. Neither is better for every case: spectral handles the stiff fourth-order terms (KS, SH, CH), explicit real-space handles reaction kinetics with nonlinear, spatially varying terms. A real-space stepper is a new solver class in the library [inferred]; the spike note says how to find out. f_vf_fluid and f_vf_lbm are real-space solvers already in the library; how they step was not read.
Outlets โ
ideas/f_solver_outlets.md applies. For RD modules: a look, one scalar per species (u and v are useful as separate masks), a gradient vecfield only where exactness matters, and a hue-from-phase look for CGL. A tensor outlet from an RD state is not obviously available; f_nematic is the emergent tensor source.
What VisualPDE does that f_ would not copy โ
- A typed-equation front end. It compiles user strings to GLSL at runtime; whether a
jit.gl.pixcodebox can be rebuilt from text in Max was not checked, and curated modules avoid the question. - Arbitrary domains and boundary condition mixes, 1D plots, probes and kymographs. A texture library has a periodic or clamped grid; implicit domains might arrive as a mask inlet but are not scoped.
- Eight species and the ecology and epidemiology models.
Open questions โ
- Is a real-space explicit stepper at 256ยฒ (or the render size) affordable at the substep count Gray-Scott wants? Needs a bench, not an argument.
- Float32 state, wrap versus clamp at edges (
G-edge-wrapis the known hazard). - Do
f_wcandf_kskeep their names and ids when moved, or do their menu labels change? - Which regime parameters are borrowed (credit needed) and which come from the NumPy spikes.
- Does
f_vf_chbelong in PDE or stay with the vecfield family?
Gates touched โ
G-menu(Matt's menu redesign): the PDE section is inmenu.py; the row is not updated.P-pattern-gen(generators nearf_ks): this note adds RD, excitable and Swift-Hohenberg candidates to the shortlistf_cgl.mdparked. Exact tripwire text was truncated when read; not reconciled beyond that.