โ† f_ notebook ยท ideas/visualpde_survey.md

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) + f with 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), and D and f may 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^2 small 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 species u, 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) โ€‹

FamilyPresets worth notingf_ today
Turing / morphogenesisGrayScott (+ Pearson classification, gliders, advecting, webcam, stochastic), Brusselator, GiererMeinhardt, Schnakenberg, chemicalBasisOfMorphogenesis, TuringNotEnough*none
Excitable mediaFitzHugh-Nagumo (Hopf, 3-species, spirals, heart, noisy), TuringWave*, bistable travelling wavesnone
Amplitude / instabilityswiftHohenberg (+ localised, heterogeneous, advected), complexGinzburgLandau, CoupledCGL, Sofya CGLE (chaos, fireflies, duck pinning), KuramotoSivashinsky (2D and 3D), lambdaOmegaf_ks (spectral); f_cgl specified, not built
Conserved / coarseningCahnHilliard, CahnHilliardNonreciprocal, PeronaMalikf_vf_ch
WaveswaveEquation (ICs, damped, 3D, 1D), plateEquation, stabilizedSchrodinger, KdV, ZKSoliton, nonlinear beamsf_wave_field (spectral)
Fluids and transportNavierStokes, vorticity, shallow water, Burgers, advectionf_vf_fluid, f_vf_lbm, f_vf_vorticity, f_vf_advect
Ecology and epidemicscyclic competition (RPSLS), Keller-Segel, Klausmeier, forest fires, mask and covid modelsnone; probably out of scope for a texture library [inferred]
Dynamical systemsLorenz, Duffing, Van der Pol, synchroRotorsnone (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.

#CandidateNoteStateWhy here
0stepper feasibility spikef_rd_stepper_spike.mdplangates items 1, 3, 4: can a real-space explicit stepper run in a pix chain
1f_gs Gray-Scottf_gs.mdconceptbiggest gap, most recognizable RD look; texture-driven parameter map
2f_swift Swift-Hohenbergf_swift.mdconceptcheapest: spectral, same kind of solver as f_ks and f_cgl (inferred); maybe a mode of f_ks
3f_excitablef_excitable.mdconceptspirals and a stimulus inlet, but f_cgl and f_wc overlap
4f_turing kineticsf_turing.mdconceptclose to Gray-Scott; probably a menu on the f_gs stepper
-f_peronaf_perona.mdconceptan 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.pix codebox 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 โ€‹

  1. 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.
  2. Float32 state, wrap versus clamp at edges (G-edge-wrap is the known hazard).
  3. Do f_wc and f_ks keep their names and ids when moved, or do their menu labels change?
  4. Which regime parameters are borrowed (credit needed) and which come from the NumPy spikes.
  5. Does f_vf_ch belong in PDE or stay with the vecfield family?

Gates touched โ€‹

  • G-menu (Matt's menu redesign): the PDE section is in menu.py; the row is not updated.
  • P-pattern-gen (generators near f_ks): this note adds RD, excitable and Swift-Hohenberg candidates to the shortlist f_cgl.md parked. Exact tripwire text was truncated when read; not reconciled beyond that.