f_cgl — complex Ginzburg–Landau generator (working name)
Status: 🟡 built and benched, not closed (per .specify/plan.md, 2026-11-28; record .specify/f_cgl/tasks.md). Written as: ⚪ concept only. Captured 2026-11-27 (Claude offline, docs only) after Matt named f_ks as a favorite for demo patches and asked what else is like it. Not specced, not prototyped, not tried in Max. Everything below about solver behavior is inferred from the equation and from the f_ks spike, not observed.
Why this one
f_ks works for demos because it is self-sustaining (no forcing), never settles, and has one intuitive scale dial. The complex Ginzburg–Landau equation (CGLE) is its parent: Kuramoto derived KS as the phase-only limit of CGLE-type dynamics. So it is the nearest relative that looks different, not a rerun of KS.
dA/dt = A + (1 + i c1) lap(A) - (1 + i c3) |A|^2 A (A complex)
Checked 2026-11-27 against the Wikipedia page "Ginzburg–Landau equation" (Claude offline, via a fetch subagent; not Matt live, not run). The equation above matches the page with c1 = its alpha and c3 = its beta. The page also gives the Benjamin–Feir threshold for a traveling plane wave, k^2 > (1 + alpha beta) / (2 beta^2 + alpha beta + 3), which agrees with the 1 + c1 c3 < 0 line below at k = 0. The page does not mention spirals, defect or phase turbulence, Nozaki–Bekki holes, or any Kuramoto–Sivashinsky phase limit. Those, and the "parent of KS" claim, are from memory and still unverified; the regime list below is likewise unverified. Page content is listed in "From the page".
Update 2026-11-27: a NumPy spike has since checked this list; see "Spike result" below. Short version: PT, DT and the KS link are confirmed (PT only in a narrow band past the BF line, and only from a smooth start); "defect turbulence needs the BF-unstable side" and "frozen spirals at small |c1 c3|" are not what the runs show.
Regimes (from memory, not on that page), set mostly by c1 and c3:
- Frozen or slowly rotating spirals (small |c1 c3|, stable side).
- Defect turbulence: spiral cores nucleate and annihilate forever. The most "alive" regime, and the one never-settles demos want.
- Phase turbulence (past the Benjamin–Feir line, 1 + c1 c3 < 0): smooth amplitude, chaotic phase. The most KS-like look.
From the page (2026-11-27)
- Real GL,
A_t = lap(A) + A - A|A|^2: one dial-free case for a stationary bifurcation. Steady solutions: plane wavessqrt(1 - k^2) e^{ikx}for |k| < 1 (Eckhaus-unstable for k^2 > 1/3) and a tanh front,tanh(x / sqrt2), against an absorbing wall. - Complex GL (oscillatory bifurcation): the equation above. Traveling waves
sqrt(1 - k^2) e^{i(kx - w t)}withw = beta + (alpha - beta) k^2, group velocity2 (alpha - beta) k. - Hocking–Stewartson pulse: a localized 1D
sech-shaped pulse with a phase chirp (exact solution, constants fixed by alpha and beta). - Amplitude and phase form: with A = R e^{i Theta} the page writes separate R and Theta equations. That is the same split a hue-and-luma output would use.
- Limits and relatives: homogeneous (no space) reduces to the Stuart–Landau oscillator; Swift–Hohenberg is said to yield GL (so SH is the parent near onset, GL the slow envelope); Davey–Stewartson and Gross–Pitaevskii are only in "See also".
- No numerics, no figures. The page is theory only, so it says nothing about what the equation looks like on screen.
What it adds over what f_ has
- A different look from
f_ks. Spiral waves and point defects, not worm-like cells. - A natural color output. Phase to hue, amplitude to luma.
f_ksis luma only. - Two coupled outputs for free (phase, amplitude), the way
f_chladniandf_quasioffer extra outlets.
Overlap check (docs/f-reference/module-inventory.md): nothing in f_ is a complex-field oscillator medium. f_wc is a neural-field labyrinth (real, driven by a pulse); f_wave_field is linear and driven; f_ks is real-valued. Vsynth: Vsynth overlap checked 2026-11-27 (Claude, offline: docs/vsynth-reference/module-inventory.md, plus vs_chemical_osc.maxpat and its help in the installed package; nothing run in Max). No Vsynth module is a PDE solver, a complex-field generator or a tensor source. Closest: vs_chemical_osc (named for the Belousov-Zhabotinsky reaction, but by its object list a feedback video loop: slide, hue+sat, blur x2, rota, luma_key, fixed_sine; the pix code was not read), vs_feedback / vs_filter_temp / vs_frame_delay (frame memory, no spatial dynamics), the WFG and sources_* family (authored, stateless), and the vector subsystem (audio-rate XY, not textures). Verdict: no overlap found; vs_chemical_osc is the one to look at next to any reaction-type generator, as a feedback-loop look rather than a solver. jit.fx checked 2026-11-27 (jit_fx.md and jit_fx_vs_ideas.md, an offline read, not a run in Max): no jit.fx object is a PDE solver or a complex-field generator. conway (Life only), wake and slide are one-slab feedback loops, and cf.kuwahara contains a structure-tensor pass; none is relevant to CGL.
Solver shape (inferred)
- Split-step spectral, same stage shape as
f_ks(ideas/ceyron_simulation_scripts_notes.mdfinding 3 and its 2026-10-12 spike): the linear part,A + (1 + i c1) lap(A), is exactly integrable per Fourier bin; the cubic term is explicit or pointwise in real space. One step per frame, no substeps. CGLE's linear part is not stiff the way KS's biharmonic is, so a real-space stencil may also work (unmeasured). - Open: does the existing DFT chain take a complex field?
f_kstransforms one real channel;f_vf_fluidtransforms two (a vecfield). Treating A as RG may map onto the fluid chain, but it needs a complex-in, complex-out transform, not two independent real ones. Checkdocs/f-reference/f_vf_fluid.mdfirst. - Mean mode:
f_ksneeded k=0 zeroed. CGLE does not obviously need it (the cubic term bounds |A|); unverified.
Candidate controls
c1 (diffusive dispersion), c3 (nonlinear dispersion), scale (domain size, as in f_ks), rate, reset, and an output menu (Hue+Luma, Phase, Amplitude, Gradient). Names are placeholders.
Open questions
- Hue from phase needs
atan2; see thejit-gen-codeboxskill (atan2 NaN symptom) before writing it. - Phase is undefined at a defect core (|A| near 0); luma from amplitude hides it, but a phase-gradient vecfield would be singular there. Instability is the point, so decide whether the core is a feature.
- Do
c1/c3map to dials that stay in the interesting regimes, or does most of the plane settle to a frozen state? Needs a NumPy spike over the (c1, c3) plane, in the style oftests/records/spike_ks_stability.py. - Seeding: noise on load and
reset, asf_ksdoes.
Follow-up threads
Added 2026-11-27 (Claude offline). All speculative; none checked or tried.
- Verify the regimes. Either a NumPy spike over the (c1, c3) plane (does it show spirals, defect turbulence, phase turbulence, and where does it freeze?) or read a review that covers them (Aranson & Kramer, Rev. Mod. Phys. 2002; Cross & Hohenberg 1993, which the Wikipedia page cites). Settles open question 3 and the "parent of KS" claim.
- Real GL as a second mode.
A_t = lap(A) + A - A|A|^2has no free coefficients and an exact tanh front. It would be the tamer sibling (probably coarsening to settled domains rather than staying alive; unverified). Worth a Mode only if the spike shows it is visually useful. - Stuart–Landau lattice, a coupled-oscillator module. One oscillator per pixel with no spatial coupling, then add coupling back in a controllable way (local, or nonlocal for chimera-style states). The CGLE is the local-coupling limit, so this may be a continuum between "independent oscillators" and CGLE. Check against
ideas/entrainment.mdandideas/cross_synthesis.mdfirst for overlap. - Pin the field with a texture.
f_wave_fieldalready takes a force or outline texture. A texture on an inlet could hold A at a fixed value (a wall) or inject a phase (a seed), so you could plant spirals where a shape is. The real-GL front suggests walls behave sensibly. Untested. - Seed with a traveling wave. Start from the page's plane-wave solution (or several with different k) instead of noise, so the pattern begins ordered and breaks down, or starts orderly and stays that way inside its stability limit.
- Phase and amplitude as separate modulation outlets. Two scalar outlets for phase and amplitude (like
f_quasi's extra outlets) would let each drive a different consumer, e.g. phase tof_vf_warpor hue and amplitude tof_weave's across scalar. Phase wraps, so a consumer needs cos/sin of phase, not raw phase. - Swift–Hohenberg as GL's parent. The page says SH yields GL. An SH mode on a spectral module would give the stripe pattern whose envelope GL describes. Worth a look as a pair: same solver shape, different
lapoperator per bin. - Audio tie-in. A CGLE field is a medium of coupled oscillators, so the phase field or a row profile (
f_util_profile) could drive control signals. Entirely speculative.
As a demo source (added 2026-11-27)
Context: Matt asked what a new module near f_ks could be if its job is to give other modules something good to show off. f_ks is a good demo input because it is self-sustaining, needs no input and has a scale dial, but it only outputs luma. What other modules need, inferred from docs/f-reference/module-inventory.md descriptions, not from the module docs:
| Downstream modules | What they need | f_ks gap | Does CGL fill it? |
|---|---|---|---|
f_hue_processor, f_channel_grader, f_separate, f_vf_prism | color variation | luma only | Yes in principle: phase to hue |
f_vf_lk, f_dynamics, f_vf_advect, f_mosh (idea) | coherent motion | evolves in place, does not drift | Possibly: traveling waves and rotating spirals (regime-dependent, unverified) |
f_tf_* (hatch, aniso_blur, glyph) | strongly oriented structure, high coherence | closer to cells and worms | Weakly; see f_nematic.md |
f_crossover | several spatial scales at once | one dominant band | No (single scale); a turbulence-like field would |
f_vf_seeds, f_stipple, f_vf_lbm, f_vf_erode | discrete shapes, masks, terrain | continuous tone | Partly: spirals and defect cores; a threshold mask would help |
f_ngon, f_droste, f_poincare | structured, symmetric input | statistically uniform | Spirals suit droste and mobius |
CGL fills three of these (color, motion, spirals), which is why it leads the list. The others are covered by the parked ideas below and by f_nematic.md.
Design ideas that cut across any candidate (all untried):
- One solver, several outlets: see f_solver_outlets.md.
- Dials that set properties modules care about:
f_ksalready does this for scale. Others: orientation coherence, spectral slope, drift speed, color richness. A demoer turns one dial and a downstream module gets something new to show. - Slide the "source" axis: let an input texture seed or modulate the system so the pattern grows from an image (emergent toward derived). See axes_of_investigation.md.
- No dead zones: a demo source should look alive across its whole dial range, and a warm start would remove
f_ks's near-flat first second afterreset(per the inventory entry). Gray–Scott in particular would need curated dials.
Related pattern-forming ideas (parked, same family)
Captured so the shortlist is not lost. None is specced; Matt has not decided on any (2026-11-27, "don't know yet").
- Excitable media (Barkley or FitzHugh–Nagumo). Rotating, breaking, re-forming spirals. Local stencil rather than FFT, so a different cost shape. Dies out unless kicked; would need a faint noise or periodic pulse.
- Gray–Scott reaction–diffusion. Spots, worms, mitosis. Some parameter regimes stay lively, many settle, so the dials would need curating. The most familiar look.
- Swift–Hohenberg. Labyrinths, stripes, hexagons. Mostly settles; best as a mode of a spectral module, weak alone.
- Cyclic cellular automata (rock-paper-scissors spirals). Belongs as a rule in f_ca.md, not a module.
- Nonlinear wave modes (sine-Gordon solitons, Gross–Pitaevskii vortices): modes of
f_wave_field, not new modules. - Strange-attractor density plots (Clifford, de Jong): nonrepeating shapes by accumulation, not a field.
f_causticalready splats additively; whether that is a usable precedent is not checked. - Not worth pursuing: Lenia (creatures die out or stay isolated), forced turbulence (
f_vf_fluidcovers it).
Spike result (2026-11-27, Claude offline: NumPy on the CPU, no Max, no GPU, not Matt live)
Script: f_cgl_spike.py (run uv run --no-project --with numpy --with matplotlib python3 ideas/f_cgl_spike.py PASS). Raw numbers, fields and plots are in scratch/experiments/cgle_spike/ (gitignored): runs_*.json/csv, regime_map.png, gallery.png, ks_compare.json, linear_check.json. Everything below is observed in those runs unless it says inferred. Labels are my post-hoc thresholds (see Method), a summary of measured numbers and not a pre-registered test.
Method
- Equation and integrator.
dA/dt = A + (1 + i c1) lap A - (1 + i c3)|A|^2 A, periodic, N = 128 x 128 (the brief's start size, not changed), L = 100 (dx = 0.78), dt = 0.1. Strang split-step: linear half step exact per Fourier bin, the cubic step solved exactly per texel (A / sqrt(1 + 2|A|^2 dt) * exp(-i c3/2 ln(1 + 2|A|^2 dt))). 0.8 ms per step on one CPU core. The five KS-comparison CGLE runs used dt = 0.2. - Validation of the integrator. Small plane perturbation of the uniform state vs the closed-form linear eigenvalue (from my own hand derivation, matrix
[[-(2+k^2), c1 k^2], [-(c1 k^2 + 2 c3), -k^2]]): 7 of 8 cases agree to 1e-6 to 7e-5 absolute in growth rate (rates from -0.024 to +0.031); the eighth case (c1 = 0, c3 = 1) was lost to a log of zero and replaced in the script by (0.5, 1). A topological check also passed: in all 308 sweep runs the counts of + and - defects were equal at every sample (a periodic box must have zero net winding), and no run diverged. - Symmetry.
(c1, c3) -> (-c1, -c3)is complex conjugation, so c1 >= 0 covers the plane. Checked on the one pair available: c1 = 0, c3 = +2 and -2 gave 59 to 63 and 56 to 58 defects (two seeds each). - Starts. white:
A0 = 0.5 (n1 + i n2), white Gaussian per texel, many initial defects. near1:A0 = 1 + 0.05 (n1 + i n2), no initial defects. Seeds 1 and 2 (numpydefault_rng). Single seed 1 only for the long and KS runs. - Measures (over the last 25% of each run, sampled every 5 time units): defect count from the winding sum over each 2x2 plaquette, mean, std and min of |A|, rms of the wrapped nearest-neighbor phase gradient,
act= rms change of |A| over the last 50 time units divided by mean |A| (a rigidly rotating spiral has a static |A|, soact~ 0 means "frozen or ordered"), number of times the defect count changed in the window, and the time of the last change over the whole run. - Labels (thresholds set after seeing the coarse numbers): no defects in the window and
act> 2e-3 is phase turbulence; no defects and quiet is uniform / plane wave; defects with at least 3 count changes in the window, oract> 0.1 with mean count >= 5, is defect turbulence (sustained); defects with smallactbut a change in the last 100 time units is still evolving; defects, quiet and no recent change is frozen defects.actthresholds and the "last 100 time units" rule are judgment calls.
Runs, grid, cost (written before the sweep in the script header; totals observed)
| Pass | Grid | Start | Seeds | Steps (T) | Runs | Wall |
|---|---|---|---|---|---|---|
| linear check | 8 cases | uniform + 1e-6 | n/a | 600 (60) | 8 | 3 s |
| coarse | c1 in {0, .5, 1, 2, 3, 4} x c3 in | white | 1, 2 | 6000 (600) | 120 | 55 s |
| refine near | eps = 1 + c1 c3 in {.2, 0, -.1, -.2, -.3, -.5, -.75, -1, -1.5} at c1 = 1, 2, 3, 4 | near1 | 1, 2 | 6000 (600) | 72 | 39 s |
| refine white | same 36 points | white | 1, 2 | 6000 (600) | 72 | 37 s |
| refine fine | eps steps of .05 around the PT / DT edge, c1 = 1..4 (14 points) | near1 | 1, 2 | 6000 (600) | 28 | 15 s |
| long near | eps = -.1 (c1 = 1..4), -.2 (c1 = 2, 3), -.3 (c1 = 3) | near1 | 1 | 20000 (2000) | 7 | 12 s |
| long white | 9 weak-regime points from the coarse map | white | 1 | 20000 (2000) | 9 | 23 s |
| KS comparison | 5 points, eps from -.2 to -1 | near1 | 1 | 10000-30000 at dt .2 (2000-6000) | 5 CGLE + 5 KS | 18 s |
308 sweep runs plus 5 + 5 comparison runs, about 3.5 minutes of wall time on 8 worker processes (the 10-minute cap was not close). The coarse pass is the first pass and the other four sweeps are the refinement, done after reading the coarse map.
Claims, one by one
| Claim in these notes | Verdict | What was observed |
|---|---|---|
Benjamin-Feir line 1 + c1 c3 = 0 bounds the stable uniform state | Confirmed | Linear eigenvalue formula matches the integrator (above). From a near-uniform start the uniform state stayed uniform at all 8+ points with eps >= 0 (c1 = 1..4). Linear band edge, from my derivation: unstable for k^2 < -2 eps / (1 + c1^2). |
| Phase turbulence exists past the line (eps < 0): smooth amplitude, chaotic phase | Confirmed, with two qualifiers | 34 of the near1 runs (32 in refine passes, 2 long) show it: zero defects in every sample, mean |A| 0.97 to 1.00, min |A| 0.54 to 0.99, phase-gradient rms 0.01 to 0.14, act 3e-3 to 0.12. (1) It is a narrow band just past the line, up to about -c1/3. Upper edge (PT to DT) at eps between -0.30 and -0.35 for c1 = 1, -0.60 and -0.65 for c1 = 2, -0.95 and -1.0 for c1 = 3 (the two seeds split at -0.95), -1.2 and -1.4 for c1 = 4 (split at -1.3). The lower edge is only time-limited: near the line the growth is slow, and eps = -0.1 to -0.3 stayed uniform at T = 600 in several columns (c1 = 2, 3, 4) and eps = -0.1 was still uniform at T = 2000 (all four c1), while eps = -0.2 (c1 = 2) and -0.3 (c1 = 3) had turned to PT by T = 2000. The -c1/3 rule is a fit through four columns, steps of 0.05 in eps: observed, not a theory. (2) Only from a defect-free start: the same parameters from a white start give defects (below). |
| Past the PT band the field breaks into defect turbulence (spiral cores nucleate and annihilate forever) | Confirmed to T = 600, not past it | 60 coarse and 43 refine-white runs labeled sustained: up to 174 defects at once (max in the coarse pass), mean |A| 0.5 to 0.93, min |A| ~0 (cores), act 0.1 to 0.8, count changing in typically 20 to 30 of the 29 window intervals. Stronger |c3| gives more defects and lower mean |A|. The longest runs are T = 2000 and only for the weak end. "Forever" is not tested. |
| Defect turbulence needs the BF-unstable side | Contradicted (the notes did not claim it, but a reader would assume it) | Sustained defect turbulence from a white start inside the BF-stable region: c1 = 0 with c3 = -3, -2, +2 (eps = 1), c1 = 0.5 with c3 = -1.5, -1, c1 = 1 with c3 = -0.5, -0.3, c1 = 2 with c3 = 0. At T = 2000, (1, -0.8) with eps = +0.2 still changes count 3 times in the last 500 time units. It is bistable with the uniform state: the same points are uniform from a near1 start. |
| Frozen or slowly rotating spirals on the stable side at small |c1 c3| | Partly confirmed, partly contradicted | Spirals show up (gallery: one large spiral plus four corner defects at (3, 0), act 8e-5, last change at t = 485 of 2000; 2 frozen labels in the coarse pass, 4 in refine-white, 1 in long-white). But "small |c1 c3|" is not the condition: at c1 <= 0.5 with c3 near 0, white starts relax to 0 to 2 defects (many to uniform, e.g. (0, 0) seed 2). Frozen or slow populations sit at large c1 with c3 near 0 or slightly negative (c1 = 2 to 4, c3 in -0.3..0) and at (0, -1), (1, 0), (1, -0.5) where the count (14, 8, 12) had not changed since t = 225, 145 and 555 of the T = 2000 runs. 48 of 60 coarse points gave the same label for both seeds, so this weak end is seed-dependent. |
| Frozen states, in general | Not separately tested | Only the "frozen defects" label above; no stationary non-uniform defect-free state was found (a traveling plane wave with k != 0 was not seeded). |
| KS is the phase-only limit of the CGLE | Confirmed to about 10 to 20 percent at 5 points; mapping is my derivation; Kuramoto's was not consulted | Mapping (phase equation to the f_ks form, hand-derived, leading order in eps): phi_t = -|eps| lap phi - a lap^2 phi + g |grad phi|^2, a = (1 + c1^2)/2, g = c3 - c1, lengths scaled by ell^2 = a/|eps|, time by tau = a/eps^2. Linear part is checked by the eigenvalue test. Compared a defect-free CGLE run against the same 2D KS as f_ks (exact linear step, explicit nonlinear step, k = 0 zeroed, dt .05) at 5 points, eps -0.2 to -1.0, c1 1 to 4, one seed: rms wavenumber of the gradient spectrum times ell 0.85 to 0.88 (CGLE) vs 0.92 to 0.94 (KS); <|grad phi|^2> rescaled to KS units 4.9 to 5.7 vs 6.3 to 6.8 (ratio 0.78 to 0.84). No trend with eps, so the 8 and 20 percent offsets are not explained by "eps not small enough" (cause not tested; next-order corrections or box size are inferred candidates). Zero defects in the comparison runs. |
| Mean mode: CGLE does not obviously need k = 0 zeroed | Confirmed | Never zeroed; the cubic term kept |A| bounded in all 308 runs, no drift or NaN. |
| Open question 3: do (c1, c3) dials stay in interesting regimes, or does most of the plane freeze? | Answered for this box and these ranges | Of 60 coarse points: 6 uniform in both seeds, all with c1c3 > 0 or small ((1,1) (2,1) (2,2) (3,2) (4,1) (4,2)), 32 with at least one sustained-defect-turbulence label, 22 with defects that are still evolving or frozen. The upper right (positive c3 with c1 >= 1) is mostly a dead zone from white noise; the left side (c1 <= 1) and the BF edge are lively. See "What this implies". |
| Real GL as a second mode (thread 2) | Not tested | Only c1 = c3 = 0 with a complex field was run: seed 1 kept a defect pair at T = 600, seed 2 reached uniform. The real-valued GL was not run. |
| Open: does the existing DFT chain take a complex field? | Not tested (no Max or code read) |
Not tested at all: other N, other L (the scale dial), dt above 0.2, nonrandom starts (plane waves, textures), Nozaki-Bekki holes, the rest of the plane at c1 > 4 or c3 < -3, negative c1 (covered by symmetry only), more than 2 seeds at any point, any run longer than T = 2000.
What this implies for an f_ module (inferred from the above; nothing tried in Max)
- The (c1, c3) rectangle is a poor dial pair. From a near-uniform start everything with eps >= 0 (every point with c1 c3 > -1, about half of it) stays uniform; from a white start only 6 of 60 points were uniform in both seeds, all upper right. PT is a thin sliver. A dial pair like
c1andeps = 1 + c1 c3(soc3 = (eps - 1)/c1) puts the BF line at one end and keeps the interesting part contiguous: eps above 0 is uniform unless a seed plants defects, eps from just below 0 down to about-c1/3is phase turbulence (slow to grow near 0), below that defect turbulence, with the defect count rising with |eps|. That is a design suggestion, not tested as a dial. - A seed choice matters as much as the dials. PT needs a smooth near-uniform seed (growth from 5% noise: eps = -0.2 to -0.3 showed within 600 time units at c1 = 1 and within 2000 at c1 = 2, 3; eps = -0.1 not within 2000; linear e-folding time from the eigenvalue runs from about 110 time units (c1 = 1, eps = -0.2) to over 1000 near eps = -0.1). DT works from white noise within roughly 100 time units. So
resetwants two seed modes (noise, smooth), or a warm start. By analogy tof_ks(near-flat after reset) this is the same dead-start problem, worse for PT. Inferred: at 60 frames per second and one dt = 0.2 step per frame, 600 time units is about 50 seconds. - Dials worth having:
c1,eps(orc3), asize(domain L, whatf_kscallsscale; not tested here, only L = 100 at N = 128),rate(dt per frame; 0.1 and 0.2 held in these runs, no ceiling found or looked for),resetwith a seed-mode choice. - Outlets worth having:
|A|: shows cores as black dots in DT and spiral states (gallery); nearly flat (0.9 to 1.0) in PT, so it needs a contrast stretch there.- Phase as hue works for spirals but not PT: the PT gallery frame spans a narrow blue band (no winding, small phase range). For PT a phase-gradient magnitude or a hue scaled by a gain is the informative output; its rms is 0.01 to 0.14 in PT, so cells are visible there. (Phase wraps; downstream modules want cos and sin of phase, per thread 6.)
- Phase-gradient vecfield: smooth with no singularities in PT, singular at every core in DT (10 to 170 cores). Probably emit it with a note, or only in a mode.
- Defect marks (the 2x2 winding sum) are cheap to compute (inferred: four neighboring reads per texel) and, in a DT frame, mark 10 to 170 points: usable as
f_vf_seedsorf_stippleinput. Core positions ride the cores, so they move.
- Rough GPU cost by analogy to
f_ks(inferred; nothing measured on the GPU).f_ksruns 2.39 ms per frame at 256 x 256 (DFT passes about 0.5 ms each, fromf_ks.md). CGLE has the same stage shape (forward DFT x2, per-bin step, inverse DFT x2, a pointwise stage, an encode stage), so a first guess is about 2.4 ms if two channels (re, im) cost the same as one in the DFT passes, up to about 4 ms if they double. The spike ran at 128 x 128, not 256; whether 128 is enough on the GPU, and whether the DFT passes accept complex input, are open (see Solver shape). Extra outlets: |A|, phase and winding come from the same state read, probably cheap; unmeasured. - Does the module earn its place? Observed: CGLE gives color-capable (phase), spiral and moving-defect material that
f_ksdoes not, and the KS relationship holds to 10 to 20 percent, so a "phase turbulence" setting really is a KS-like texture with a hue output. Whether it looks good next tof_ksin a patch is a live-look question for Matt.
Not checked against a source
The Aranson and Kramer review and Kuramoto's derivation were not read. The agreement of the observed regime ordering (BF line, PT band, DT beyond, bistability) with the literature is recalled, not verified; the -c1/3 edge and the 0.78 to 0.84 gradient ratio are this spike's numbers only.
Related
ideas/ceyron_simulation_scripts_notes.md (the f_ks spike), f_ca.md, f_wc.md, docs/f-reference/f_ks.md.