qCriterion, lambda2, stretchingHow fluid dynamicists see a flow's skeleton: split the velocity gradient into strain
S and rotation Ω, then ask where rotation wins. Q = ½(‖Ω‖²−‖S‖²)
is the classic test; λ₂ is the stricter one (it ignores swirl that is really shear); and
stretching ξ̂·S·ξ̂ says whether a vortex is being spun up or squashed. All three
come straight from field.sampleGrad() — the analytic velocity gradient, one
closed-form term per wave, so there is no finite-difference step to tune and no truncation error
in the picture. Marching cubes extracts the isosurface, tinted by helicity sign
(teal right / amber left).
Raise coherence and watch a formless tangle condense into distinct tubes. Drag to orbit.
The Q-criterion is the standard way to visualize a flow's vortex skeleton: it isolates the
regions where rotation Ω beats strain S. Because Helix Noise gives an analytic,
divergence-free velocity field, computing Q on a grid and extracting its isosurface
is cheap and exact — a direct window onto the coherent structures the coherence
knob builds.