Back to Experiments

Shell-model experiment: Sweep-rate acceleration as a dual number

Overview

The system is the six-shell cubic ODE with independent velocity-shell and vorticity-shell variables \(u_k\) and \(\omega_k\), stretching coefficients \(\lambda\), \(\lambda_2\), feedback coefficient \(\sigma\) and viscous damping \(\nu k^2\). It is not a Galerkin truncation of Navier–Stokes. The time to threshold crossing \(T\) is a finite-window excursion quantity that depends on the integration window, the excursion threshold and the solver. The oscillating-viscosity sweep on this system has a resonance at period ~10,000 steps; how fast \(\nu\) is swept determines whether the trajectory passes through or dwells in that resonance. This run makes the sweep acceleration \(d^2\nu / dt^2\) a dual number, giving \(\partial(\text{enstrophy response}) / \partial(\text{acceleration})\) and \(\partial T / \partial(\text{acceleration})\) by forward-mode automatic differentiation, so that the sweep schedule can be adjusted from the gradient.

Results

MeasurementValueWhat was measured
Meta-gradient sign changeAt resonance period\(\partial T / \partial(\text{accel})\) switches from positive to negative
Acceleration maximising \(T\)0.1Longest time to threshold crossing within the window
Positive accelerationSweeps past resonanceFast sweep spends little time in the resonance zone
Negative accelerationLingers near resonanceSlow-down raises the enstrophy peak

Chirp Sweep

A chirp sweep (linearly increasing frequency) of \(\nu\) shows the resonance structure. As the sweep frequency passes through the natural frequency at period ~10,000, the shell-enstrophy response peaks sharply and then decays. The meta-gradient changes sign at this crossing:

Sweep PhaseMeta-GradientGradient step
Below resonance (slow sweep)PositiveIncrease acceleration
At resonanceZero (sign change)Transition point
Above resonance (fast sweep)NegativeDecrease acceleration
Observation. The sign change of the meta-gradient at the resonance is the result of this run: the gradient tells a controller to accelerate through the resonance zone and decelerate outside it, and an acceleration of 0.1 gives the longest \(T\) within the window. This completes the ten-level differentiable hierarchy on this ODE, from system state (L0) to sweep control (L10).

The Hierarchy

LevelsWhat They Measure
L0–L3System state and convergence score
L4–L7Stability margin and perturbation probing
L8Run parameters as dual numbers
L9Coupling coefficients as dual numbers
L10Sweep trajectory through parameter space

Reproducibility

../simplex/build/sxc exp_ns_level10.sx -o build/exp_ns_level10.ll

OPENSSL_PREFIX=$(brew --prefix openssl)
clang -O2 build/exp_ns_level10.ll \
  ../simplex/runtime/standalone_runtime.c \
  -o build/exp_ns_level10 \
  -lm -lssl -lcrypto -L${OPENSSL_PREFIX}/lib

./build/exp_ns_level10

Related