Back to Experiments

Shell-model experiment: Coupling coefficients as dual numbers

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. Level 8 of the differentiable hierarchy makes the run parameters (\(A\), \(\nu\), \(\text{dt}\)) dual numbers; this run (level 9) makes the coupling coefficients \(\lambda\), \(\lambda_2\) and \(\sigma\) dual numbers as well, giving the full gradient \(\nabla T = (\partial T / \partial A, \partial T / \partial \nu, \partial T / \partial \lambda, \partial T / \partial \lambda_2, \partial T / \partial \sigma)\) and the Hessian diagonal \(\partial^2 T / \partial x_i^2\) for each parameter by forward-mode automatic differentiation.

Results

Full Gradient (Sensitivity Ranking)

Parameter\(\partial T / \partial x\)SignReading
\(A\) (amplitude)Largest magnitudeNegativeLarger amplitude → earlier threshold crossing
\(\nu\) (viscosity)Second largestPositiveMore damping → later threshold crossing
\(\lambda\) (stretching)ThirdNegativeLarger \(\lambda\) → earlier threshold crossing
\(\lambda_2\) (quadratic)FourthNegativeLarger \(\lambda_2\) → earlier threshold crossing
\(\sigma\) (feedback)SmallestWeakly negativeFeedback effect is secondary

Hessian Diagonal (Curvature)

Parameter\(\partial^2 T / \partial x^2\)CurvatureReading
\(\lambda\)PositiveConvexIncreasing \(\lambda\) shortens \(T\) at an increasing rate
\(\lambda_2\)PositiveConvexQuadratic term compounds super-linearly
\(\sigma\)NegativeConcaveFeedback effect saturates at high coupling
\(\nu\)NegativeConcaveDiminishing returns from added damping
\(A\)PositiveConvexLarge amplitudes shorten \(T\) disproportionately

Cross-Derivatives

Cross-DerivativeBounded within the window?Reading
\(\partial^2 T / \partial \lambda \, \partial A\)YesThe \(A\)-dependence of \(T\) changes smoothly with \(\lambda\)
\(\partial^2 T / \partial \lambda_2 \, \partial A\)YesThe \(A\)-dependence of \(T\) changes smoothly with \(\lambda_2\)
Observation. The Hessian diagonal is convex in the parameters that shorten \(T\) (\(\lambda\), \(\lambda_2\), \(A\)) and concave in those that lengthen it (\(\nu\), \(\sigma\)). The cross-derivatives with \(A\) are bounded within the window, and the sensitivity ranking places amplitude first. These are properties of the finite-window quantity \(T\) for this ODE.

Reproducibility

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

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

./build/exp_ns_level9

Related