Source: github.com/Ceyron/machine-learning-and-simulation,
english/simulation_scripts/(cloned locally to/Users/matt/Github/machine-learning-and-simulation). Reference CFD/ spectral-method implementations (Python/JAX/Julia) from Felix Köhler's YouTube series — not GPU shader code, but the reference math/algorithm is directly relevant to thef_vf_advect/vecfield family. Status: first-pass notes, read but not yet discussed against production code in detail (no scratch patches, no architecture decisions made). Flagging what's worth a real session.
Files actually read this pass
Fully read: stable_fluids_python_simple.py, kolmogorov_turbulence.jl, taylor_green_turbulence.jl. Headers/docstrings only (confirmed domain, not full algorithm): lattice_boltzmann_method_python_jax.py, smoothed_particle_hydrodynamics_simple_python.py, kuramoto_sivashinsky_2d_and_3d_no_videos.ipynb, stable_fluids_fft.jl.
Not read this pass (lower expected relevance, flagged for later if wanted): stable_fluids_fft_3d.jl (almost certainly the 3D version of the FFT technique already confirmed 2D via kolmogorov_turbulence.jl — low priority, same "no fit" 3D pattern would likely apply), flow_over_a_step.py, lid_driven_cavity_python_simple.py, pipe_flow_with_inlet_and_outlet_python.py, pressure_driven_pipe_flow_python.py (internal channel/pipe-flow CFD demos — walls, inlets, outlets; f_ has no channel/duct concept, these are likely a "no fit" architecturally but not confirmed), the six lorenz_* files (chaotic ODE attractor, not a field — a stretch as a scalar/vector modulation source, not vecfield-shaped, lowest priority).
1. FFT-based Stable Fluids — real, significant finding
File: kolmogorov_turbulence.jl (2D, forced turbulence variant), confirmed general-purpose in stable_fluids_fft.jl (2D, arbitrary forcing).
This directly reopens the "deliberate non-goal" framing in ideas/vorticity_confinement.md and the HANDOFF summary of GPU Gems 1 Ch. 38 — the reasoning there was: diffusion and pressure projection each need 20-80 Jacobi iterations per timestep, too expensive for real-time multi-module live use, so f_vf_advect correctly implements only the advection step and skips both.
That cost assumption doesn't hold if FFT is available. In the spectral formulation, both steps become single elementwise operations in Fourier space, no iteration at all:
- Diffusion:
w = exp(-k^2 v dt) * w_hat— one multiply per frequency bin. - Pressure projection:
q = w_hat . k / |k|, thenw_hat - q*k/|k|— a divergence and a subtract, both elementwise in Fourier space, no Poisson solve.
So the real question isn't "is projection too expensive" — it's whether a 2D GPU FFT is available anywhere in this pipeline at all.
Checked this session (2026-07-03): jit.fft exists, but it's not GL-space. Searched the full Max/Jitter reference doc set (/Applications/Max.app/Contents/Resources/C74/docs/refpages/) for fft/fourier/spectral. Findings:
jit.fftis real and does exactly the right math — 2D matrix FFT/IFFT, 2-plane complex input (plane 0 real, plane 1 imaginary), up to 32 dimensions,inverseattribute for direction. But it's a CPU-sidejit.matrixobject (category="Jitter Analysis"), not ajit.gl.textureoperation.- Everything else with "fft" in the docs (
fft~,ifft~,pfft~,mc.fft~,fftin~/fftout~,windowed-fft~) is MSP audio-rate, 1D — irrelevant. - No
jit.gl.fftor any GL-prefixed fft/fourier/spectral object exists anywhere in the reference docs.
This reframes the question rather than closing it. Using jit.fft on vecfield data means: GPU→CPU readback (jit.gl.asyncread or similar) of the texture into a jit.matrix, run jit.fft on CPU, re-upload the result as a texture — a full round-trip every frame. That's exactly the "no CPU-GPU round trip anywhere in the pipeline" constraint that ruled out several GPU Gems techniques already (persistent-particle-state methods, etc.) — this would be the first place in f_ breaking that invariant.
Not a closed door, but now a cost question, not an availability question. Whether a per-frame readback→FFT→upload round trip for a 640×640 (or whatever the working resolution is) 2-plane matrix is fast enough to be worth it at live-performance framerates is unmeasured. Next step if pursued: a scratch-patch fps test of the round-trip alone (readback → jit.fft → upload, no actual field math yet) — measure before deciding anything architectural, same "experiment before building" discipline as everywhere else in this library.
If it turns out to be available: this would mean actual incompressible fluid flow (not just advection-only) becomes cheap enough for live use, which is a materially different f_vf_advect than what exists today — currently explicitly non-incompressible/non-diffusing by design. Worth a real "is this true incompressibility even a thing we want" architecture discussion before chasing it, independent of the feasibility question — advection-only already has a specific "excitable/amplifying" character (per HANDOFF, decay > 1.0) that true incompressible flow might remove.
Smaller, always-available idea regardless of FFT availability: the Kolmogorov-forcing scenario itself (sinusoidal forcing along one axis, periodic domain, self-sustaining turbulence) is a clean, well-understood forcing pattern worth trying against the existing advection-only f_vf_advect even without projection — periodic sinusoidal forcing plus pure advection (no projection) won't be incompressible or physically "correct," but might still produce an interesting self-sustaining flow character worth a quick empirical test, since it needs zero new code — just a specific forcing-field input to what already exists.
2. 2D Lattice Boltzmann (D2Q9) with obstacle bounce-back — reopens a
previously closed question
File: lattice_boltzmann_method_python_jax.py (header/docstring only, not the full step-by-step code).
GPU Gems 2 Ch. 47 was already read and ruled "no fit" — but that chapter was specifically 3D D3Q19 (19 channels/node, 3D voxel domain, depth-peel obstacle voxelization). This script is 2D D2Q9 (9 channels/node, flat 2D domain, flow around a cylinder producing a von Karman vortex street) — a categorically lighter, 2D-native version of the same method family that was never actually evaluated on its own terms.
Why this might actually fit f_'s architecture, unlike the 3D case:
- 9 distribution values per cell could plausibly pack into ~3 RGBA textures (or fewer with a reduced lattice, e.g. D2Q5).
- BGK collision is a per-cell local computation — same shape as everything else in a
jit.gl.pixcodebox. - The streaming step (each cell reads its neighbor's pre-collision value offset by
-e_i) is a gather, not a scatter — directly expressible as a directional texture sample, the same idiom already used throughout the vecfield family (f_vf_streak,f_vf_glow, etc.). - Obstacle bounce-back (no-slip on a 2D shape) could plausibly be driven by a mask texture — same idiom as the mod-texture inlets already used elsewhere in the library.
Not evaluated: whether this is actually cheaper or more useful than what exists. f_vf_repulse already produces obstacle-like behavior via a much simpler mechanism (16-sample ring accumulation, luma threshold) — HANDOFF explicitly notes GPU Gems 2 Ch. 47 confirmed f_vf_repulse's approach is "a completely different, much cheaper mechanism" than LBM. The open question this file reopens isn't "should we replace f_vf_repulse" — it's whether a genuine obstacle-aware incompressible-ish 2D flow (which f_vf_repulse doesn't actually produce — it's a repulsion pattern, not a flow solve) is worth the real complexity of a multi-texture, multi-pass collision+stream architecture. This would be a materially bigger build than anything currently in f_ — worth a real architecture discussion, not a quick add, if pursued.
ARCHITECTURE EVALUATED 2026-10-12 (tests/records/spike_lbm_d2q9_architecture.py, NumPy, full D2Q9 pipeline in the pix-chain stage shape): fits the chained-jit.gl.pix-objects pattern — no slab/GLSL track needed. The streaming step is a pure gather (roll by +e_i = one directional texture sample per lattice direction, same idiom as f_vf_streak), BGK collision/equilibrium/macro fuse into one local codebox, obstacle bounce-back is a mask-driven local swap (the mod-texture inlet pattern), and 9 channels/cell pack into 3 RGBA planes ping-ponged through the same pass feedback idiom f_vf_fluid uses. Roughly 2 solver codeboxes + encode vs fluid's 7 stages, at 3x the state bandwidth. Two correctness traps found and recorded in the spike (stream-direction sign; bounce- back must read pre-collision values — both silently produce garbage rather than loud failures). Two real constraints surfaced: (1) a periodic domain with an obstacle is genuinely unstable at the reference's omega ~ 1.97 (stable only to omega ~ 1.8, i.e. lower Re) — the reference's channel in/outflow BCs are load-bearing for stability at Re 80, so a module wanting the vortex street needs open-boundary edge handling, not the periodic wrap fluid gets for free; (2) shedding is slow to develop at performance resolutions (weak wake after 12k steps at 300x50 — the reference skips its first 5000 of 15000 steps before plotting). Whether the build is worth it vs f_vf_repulse fakery is unchanged — still Matt's judgment call — but "does it need a new architecture" is now answered: no.
3. Kuramoto-Sivashinsky (2D) — a candidate for a genuinely new
generator module
File: kuramoto_sivashinsky_2d_and_3d_no_videos.ipynb (intro cell only).
A chaotic, spatio-temporally turbulent PDE — balances a destabilizing 2nd-order term, a convective nonlinearity, and 4th-order dissipation — that self-organizes into organic, worm-like/fingerprint-like patterns from noise, with no external forcing needed (unlike Kolmogorov flow, which needs continuous forcing to sustain turbulence). The notebook uses a JAX spectral solver (exponax), but the underlying PDE doesn't strictly require FFT — a real-space finite-difference scheme (explicit timestep, local stencil for the Laplacian and biharmonic terms) is a legitimate alternative, just needs a wider stencil (biharmonic is roughly a 13-point stencil in 2D) than anything currently in f_'s codeboxes.
Why this might be a genuinely new module, not an extension: none of f_'s existing generators are self-sustaining chaotic feedback systems — f_chladni is a fixed modal/wave pattern (deterministic, not chaotic), the noise-based generators are per-frame stochastic (no memory). A KS generator would need the same feedback-loop mechanism already proven and understood (per HANDOFF's resolved jit.gl.pix feedback-loop findings — the one-frame delay from closing a loop is expected and usable here, not a bug), continuously evolving via its own dynamics rather than being driven by external time-varying input. Closer in spirit to f_vf_advect's temporal accumulation than to any purely reactive module.
Not evaluated: whether an explicit finite-difference timestep for a 4th-order PDE is numerically stable enough at real-time framerates without adaptive timestepping (KS is famously stiff) — this is the kind of thing that would need an "experiment before building" scratch test, not a reasoning-from-the-couch answer.
SCRATCH TEST RUN 2026-10-12 (tests/records/spike_ks_stability.py, NumPy, N=256, L=50 — the notebook's own parameters): the stiffness question has a decisive two-part answer. (1) Real-space explicit FD is dead on arrival for a per-frame module: the biharmonic term bounds the timestep at dt ~ 5e-5 (measured, matching the O(dx^4) theory bound) — ~2000 substeps to match the notebook's dt=0.1 of evolution per frame. No stencil variant rescues this; the 4th-order term is the wall. (2) The spectral treatment fits f_vf_fluid's exact stage shape and runs one step per frame: linear part (lap + lap^2) exactly integrated per Fourier bin — the same per-bin exp() decay spec already does, with rate K2(K2-1) (growth below the KS band, decay above) — and only the |grad u|^2 nonlinearity explicit in real space. The simple scheme holds dt ~ 0.076 (600-step soak) vs the notebook's ETDRK 0.1, and at safe dt the field self-sustains chaotically with zero forcing (measured: evolving, bounded, unfrozen over 600 frames). One mandatory containment found: the |grad u|^2 nonlinearity integrates domain-negative, so the field mean drifts secularly (measured -0.2 to -15 over 200 steps) — the k=0 Fourier bin must be zeroed each step (one bin, trivial inside the spectral stage, same class of fix as fluid's Nyquist zeroing). Cost shape: roughly two codeboxes over fluid's chain (a gradient-nonlinearity stage before the DFTs; spec generalizes directly). The stiffness question is closed: buildable in the chained-pix pattern, real-time, no slab track, no adaptive stepping.
4. Confirmations / no-fits, briefly
stable_fluids_python_simple.py(non-FFT, CG-based diffusion + pressure projection): confirms the exact Stam pipelinef_vf_advectalready implements the advection-only part of, and confirms Conjugate Gradient as the standard alternative to Jacobi iteration for the implicit solves — doesn't change the "too expensive without FFT" verdict, CG still needs multiple full-Laplacian evaluations per solve, same cost category as Jacobi. No new information beyond what GPU Gems 1 Ch. 38 already established, other than confirming CG-vs-Jacobi is a choice of iterative method, not a way around needing iteration.taylor_green_turbulence.jl(3D pseudo-spectral DNS): same 3D architectural mismatch as everything else 3D in this research line — real voxel domain, 3D FFT. No fit, no new information.smoothed_particle_hydrodynamics_simple_python.py: CPU-side Lagrangian particle simulation (free-surface "pouring beer" scenario, particle-particle neighbor search, not incompressible). Same architectural shape already ruled out via GPU Gems 3 Ch. 7 (persistent per-particle state, no GPU-native neighbor query inf_'s pipeline). No new information, confirms the earlier verdict from a second source.
Where to resume
Three real threads opened, one answered:
- Answered: Max/Jitter has no GL-space 2D FFT —
jit.fftis CPU-matrix-only (see finding #1 above). Next step, if this thread is picked up, is a scratch-patch fps measurement of the readback→jit.fft→upload round-trip cost, before any decision about whether it's usable at all. - 2D LBM (D2Q9) as a possible new obstacle-aware flow module — architecture evaluated 2026-10-12: fits the chained-pix pattern, no slab track (see finding #2 above; two correctness traps and two real constraints recorded there). Value question answered 2026-10-13 (Matt: "spec it") — specced as
f_vf_lbm(working name,.specify/stable/f_vf_lbm/spec.md). Phase 0 (both solver codeboxes on the bench, channel-BC codebox, safe-omega measurement) not started. - Kuramoto-Sivashinsky as a new self-sustaining chaotic generator module — stability scratch test run 2026-10-12: spectral pix-chain shape is real-time-stable, one step per frame, no adaptive stepping (see finding #3 above, incl. the mandatory k=0 zeroing). Specced 2026-10-13 as
f_ks(working name,.specify/f_ks/spec.md), per Matt's "spec it". Phase 0 (spectral step on the GPU bench) not started.
None of these are scheduled. Captured here per Matt's request, ready to pick up whenever.
Addendum (2026-07-03) — GL-domain FFT discussion, and a cheaper alternative to test first
Talked through what it would actually take to hand-build a 2D FFT inside jit.gl.pix/GenExpr, as an alternative to the CPU-roundtrip jit.fft path in finding #1. No code, discussion only.
Correction to an assumption made during that discussion: I'd said the non-power-of-2 resolution problem (radix-2 Cooley-Tukey needs a power of 2, and 640 isn't one) was a constraint imposed by Vsynth's render module. Matt corrected this — Vsynth's render resolution defaults to 640×640 but is user-configurable, not fixed. This actually makes the FFT-module idea a bit more tractable than I'd framed it: an FFT-based module could legitimately run its own internal working resolution (e.g. 512 or 1024, whatever power of 2 fits the performance budget) independent of the overall Vsynth render resolution, resampling at its input/output boundary same as any other module that wants a different internal working size — this is a normal, already-available degree of freedom, not a new architectural accommodation. Doesn't remove the resample-at-the-boundary seam entirely, but it's a much smaller deal than "the whole render chain is stuck at 640×640, non-power-of-2, forever."
Doesn't change the overall recommendation. The pass-count concern (~40 sequential full-screen passes for a forward+inverse 2D FFT round trip at N=1024, vs. 1-4 passes for everything else in f_) and the "doesn't fit the live-tunable philosophy" concern (fixed pass structure, not something you turn a knob on) both stand regardless of resolution configurability. The real open question is still whether this problem even needs FFT at all.
Agreed next step, captured per Matt's request — not started: before building anything FFT-related, scratch-patch a plain Jacobi diffusion/projection loop directly in jit.gl.pix (no FFT, no CPU roundtrip) and measure fps at some iteration count. This tests the actual, specific claim behind the original non-goal (ideas/vorticity_confinement.md, GPU Gems 1 Ch. 38's "20-80 Jacobi iterations, too expensive") empirically in this pipeline, rather than relying on general GPU-literature reasoning. It's also structurally the simplest possible experiment here: no power-of-2 constraint, no complex-number texel packing, no bit-reversal permutation, no CPU-GPU roundtrip — just N repeated passes of the same simple Jacobi-update codebox, exactly the "N-stage forward chain, DRY'd codebox with a stage/iteration-index param" shape f_stereogram already proved out.
If the Jacobi test comes back fast enough: the FFT thread (both the CPU-roundtrip jit.fft version and the hand-built GL-domain version) becomes moot — solved more simply, no need to revisit either. If it comes back too slow: then the FFT discussion above becomes the next real thing to weigh, now armed with an actual iteration-count- vs-fps curve from the Jacobi test to compare against the FFT's fixed ~40-pass cost, rather than comparing a measured number to an unmeasured one.
This — the Jacobi scratch-patch test — is the actual next step for this whole thread, superseding the FFT round-trip fps test from finding #1's "where to resume" item as the higher-priority experiment to run first.
Addendum (2026-09-22) — "Rung 2": self-advected velocity + explicit viscosity, no projection
Discussion only, no code, no scratch patch. Surfaced while reviewing this thread against the September 2026 Navier–Stokes Millennium result (OpenAI's claimed finite-time blowup proof for 3D NS). That result changes nothing here: it's a negative/blowup result (no new solver), it concerns 3D only (2D NS global regularity has been known since the 1960s), and a discretized grid can't represent the fine-scale singular data anyway. The real constraints in this file (Jacobi pass count, no GL-space FFT, curl-on-in3 failure) are all engineering, all unchanged.
The actual finding: f_vf_advect has no velocity state. The vecfield arrives fresh from upstream every frame; only the dye (prev_frame) accumulates. Viscosity acts on velocity, so in the current architecture there's nothing for it to act on — decay fades dye, it doesn't thicken the fluid. This reframes "viscous fluid" as a velocity-state question first, a solver-cost question second.
Three rungs, only two previously recognized:
- Current — dye advected by an external field. Viscous-looking only via decay/blur on the dye.
- New, middle rung (this addendum) — velocity becomes its own feedback state, advected by itself (backward-trace, same idiom as the existing dye advection), plus explicit diffusion:
u = u + nu*dt*laplacian(u)(5-point stencil, one pass). This is roughly viscous Burgers' equation — Navier–Stokes minus the pressure term. Upstream vecfields enter as forces added to the velocity state, not as the velocity itself. - Full Stam — rung 2 plus pressure projection (Jacobi or FFT). Gated on the Jacobi scratch-patch fps test above.
Why rung 2 might be cheap enough: explicit diffusion is stable while nu*dt/dx^2 <= 0.25 (2D, 5-point stencil). For low viscosity that fits in one pass per frame — no Poisson solve, no iteration. Plausible structure: a 2-stage pix_chain (velocity state: self-advect + diffuse + add force; dye state: the existing advection, now sampling the evolved velocity), each with its own state/pass feedback pair per the established f_vf_advect Pattern 1. Velocity state needs float32 (same precision reasoning as the reverted confinement fold-in).
Expected character (reasoned, not observed): without projection the velocity isn't divergence-free, so it forms smoothed shock-like fronts where flow converges, and thins where it diverges — not incompressible swirl. Could be a distinct, useful look in its own right rather than a degraded fluid. Unknown until scratch-tested.
The catch — high viscosity lands back on the Jacobi question. Honey-like, visibly thick flow needs large nu, which breaks the explicit stability bound unless you take multiple explicit substeps per frame or switch to an implicit (Jacobi) diffusion solve. So rung 2 covers low viscosity cheaply; high viscosity shares rung 3's pass-count cost. The Jacobi fps test remains the gating experiment for really thick fluids either way.
Open questions before any spec:
- New module, or an evolution of
f_vf_advect? Rung 2 changes what the vecfield inlet means (force vs. velocity) — arguably a different module, keepingf_vf_advect's current passive-transport character (and itsdecay > 1.0excitable mode) intact. - Does the velocity state get its own vecfield outlet (a producer that evolves, feeding other
f_vf_consumers)? Would be the first self-evolving vecfield producer in the family. - How does force injection interact with
decay-style velocity damping — is damping needed at all once real diffusion exists, or does unbounded forcing run away without it? - Does velocity self-advection hit the same unexplained neighbor-sampling failure that sank curl-on-
in3? Advection-stylesample(in3, src_uv)already works; the 5-point Laplacian is the untested part — the multi-stage split noted inideas/vorticity_confinement.mdmay apply.
Status: scoped option, not scheduled. Cheapest first experiment: scratch-patch the velocity state alone (self-advect + one diffusion pass
- a constant or
f_vf_vortexforce), visualize viaf_vf_split, before wiring any dye stage.
Addendum (2026-09-22) — FFT dive: separable DFT, math verified in NumPy
Two reframes from the discussion, then the first result.
Reframe 1: velocity doesn't need render resolution. Stam-style solvers run velocity coarse (64²–256²) and carry dye/texture at full res. At 128² or 256² the cost picture changes and power-of-2 is a free choice (internal resolution was already established as configurable, above).
Reframe 2: "~40 passes" was one implementation. Options: multi-pass radix-2 Stockham (28 passes at 128², 32 at 256² for a 2D round trip); separable naive DFT (4 passes total, each a fixed-count loop of N nearest() samples per pixel — ~8.4M samples/frame at 128², ~67M at 256², i.e. the same cost class as existing streak/glow loops at 640²); higher-radix hybrid; CPU jit.fft round trip. Separable DFT picked as the first candidate — structurally simplest, fits f_'s 1–4 pass shape. Packing: one float32 RGBA texture = (Re u, Im u, Re v, Im v). A fluid step is one round trip: advect (real space) → forward → diffusion+projection (one elementwise pass) → inverse.
Result: math is correct, verified without a patch. New tests/ directory (see tests/README.md) with a NumPy emulation of the jit.gl.pix execution model; tests/records/fft_separable.py mirrors the planned codeboxes pass-for-pass, float32 throughout. 9/9 pass at N=128 and 256: row DFT and 2D forward match np.fft (~5e-7 rel), forward+inverse nulls (~1e-5 abs), single-mode diffusion decays exactly as exp(-ν·dt·k²), strong viscosity kills high modes in one pass (the honey case), projection deletes a pure gradient field and leaves a pure curl field untouched. Mutation-checked. Codebox findings carried forward: use nearest() at texel centers in the loop; compute the twiddle index as mod(k*n, N) before scaling to an angle (naive angle was ~10× worse even with NumPy's accurate sin — GPU sin will be worse still); signed wavenumber via switch(idx < N*0.5, idx, idx - N) with idx = floor(norm.x * N). Correction (2026-09-22, bench): an earlier version of this line used GenExpr cell as the integer index — wrong on jit.gl.pix, where cell = norm * (dim - 1) (non-integer at texel centers). Caught by the test bench's coordinate probe before any codebox was written.
Still open (Max-only questions): does a 128/256-iteration loop with sample()/nearest() compile in jit.gl.pix (unrolling/instruction limits), fps, GPU trig precision, running a chain at internal 128²/256² (@adapt 0 + @dim believed, unverified), and the periodic-boundary (torus) aesthetic decision. Next step: one reusable test-bench patcher (codebox-file loader, float32 chain, fps readout, asyncread → disk export for numeric diff against the NumPy reference), then T1 on it.
Addendum (2026-09-22) — FFT T1/T2 answered on the GPU via the test bench
The separable-DFT passes now run in jit.gl.pix through the new Max test bench (.specify/test_bench/, tests/records/bench_fft.py) and match NumPy: row pass at N=128 4.8e-7 rel vs np.fft.fft, full 2D forward 1–2e-7 rel vs np.fft.fft2, 2D forward+inverse round trip ~5e-6 abs; N=256 and N=512 also compile and match. So the "does a 128/256-iteration loop compile" question is closed — it does, comfortably. Angle reduction (mod(k*n, N)) confirmed ~12× more accurate on real GPU sin/cos. Codeboxes: tests/bench/codeboxes/dft_x.gen, dft_y.gen. Cost (bench Phase 4, same day): one DFT pass is 2.96 ms at 512² (so a 2D round trip ≈ 11.9 ms), and below the bench's resolution at 256² and 128² (< 0.5 ms/pass; extrapolated from N³ scaling ≈ 0.37 ms at 256²) — a full FFT round trip per frame is comfortably real-time at the 128–256² velocity-grid resolutions this was meant for. Still open: the spectral diffusion/projection pass on the GPU (math verified in NumPy, codebox not yet written), internal-resolution resampling inside a real module, and the torus decision. The Jacobi comparison now looks unnecessary: the FFT path is both exact (any viscosity, exact projection) and cheap enough at the target resolution.
Addendum (2026-09-23) — Specced as f_vf_fluid
The FFT path is now a spec: .specify/stable/f_vf_fluid/spec.md (new velocity-solver module that outputs an evolving vecfield; dye left to existing consumers; 256² periodic first build; project 0–1 covers the rung-2 look). Decisions and open experiments are recorded there; this file remains the research background.