Skip to main content
Sandbox Physics

Fluid dynamics · interfacial stability workbench

Kelvin–Helmholtz Shear-Layer Instability

A two-dimensional workbench links counterflowing layers, interface, vorticity, and velocity vectors to a Fourier spectrum and growth-rate audit. Five cases separate the roles of density, gravity, surface tension, viscosity, and seed spectrum.

Interactive modelKelvin–Helmholtz Shear-Layer Instability
Shear time tΔU/Lt\,\Delta U/L0.0000.000
Mode gain ηk/ηk(0)|\eta_k|/|\eta_k(0)|1.0001.000
Linear prediction γth\gamma_{\mathrm{th}}0s10\,\mathrm{s}^{-1}
Measured fit γfit\gamma_{\mathrm{fit}}0s10\,\mathrm{s}^{-1}
Fastest resolved mode nn_*11
Active model phaselinear\mathrm{linear}

Physics tutorial

Kelvin–Helmholtz Instability: from perturbation growth to sheet roll-up

BackgroundTwo incompressible layers counterflow along a horizontal interface. A small corrugation with wavenumber kk is amplified by the velocity jump while stable density stratification, gravity, and surface tension resist deformation. The workbench predicts each Fourier mode, then visibly changes models when the small-amplitude assumption fails.

Why it mattersCloud decks, ocean internal waves, jet edges, and astrophysical plasmas can all show shear-driven billows, but visual resemblance alone does not establish one model. Growth rate and validity bounds are the testable physics.

Start with the essentials

Focus question
When does amplification from the velocity difference overcome gravity, surface tension, and viscous damping?
One-sentence intuition
Each wavenumber competes independently in the linear phase. A positive rate γk>0\gamma_k>0 only establishes exponential perturbation growth. Roll-up introduces mode coupling and geometric nonlinearity, so the linear line must stop.

Core mathematical model

Two-layer gravity–capillary dispersion relation

ω=kρuUu+ρUρu+ρ±(ρρu)gk+σk3ρu+ρρuρ(ρu+ρ)2(ΔU)2k2\omega=k\frac{\rho_u U_u+\rho_\ell U_\ell}{\rho_u+\rho_\ell}\pm\sqrt{\frac{(\rho_\ell-\rho_u)gk+\sigma k^3}{\rho_u+\rho_\ell}-\frac{\rho_u\rho_\ell}{(\rho_u+\rho_\ell)^2}(\Delta U)^2k^2}

The first radicand term restores a stably stratified capillary interface; the second is shear drive. A negative radicand gives frequency an imaginary part and produces exponential growth.

Teaching corrections for thickness and damping

γk=max ⁣[0,ρuρ(ρu+ρ)2(ΔU)2k2sech(kδ)(ρρu)gk+σk3ρu+ρ2νk2]\gamma_k=\max\!\left[0,\sqrt{\frac{\rho_u\rho_\ell}{(\rho_u+\rho_\ell)^2}(\Delta U)^2k^2\operatorname{sech}(k\delta)-\frac{(\rho_\ell-\rho_u)gk+\sigma k^3}{\rho_u+\rho_\ell}}-2\nu k^2\right]

Thickness attenuation and viscous damping are transparent low-order teaching proxies, not a viscous Orr–Sommerfeld eigenvalue solution. They expose short-wave and dissipation sensitivity.

Linear amplitude audit

ηk(t)=ηk(0)eγkt,γfit=ddtlnηk\eta_k(t)=\eta_k(0)e^{\gamma_k t},\qquad \gamma_{\mathrm{fit}}=\frac{\mathrm{d}}{\mathrm{d}t}\ln|\eta_k|

The growth panel fits the log-amplitude slope and compares it with prediction. The theory line terminates at the marked model switch.

Regularized vortex-sheet phase

zt=12πiPV ⁣γ(α)z(α)z(α)dα\frac{\partial \overline{z}}{\partial t}=\frac{1}{2\pi i}\operatorname{PV}\!\int\frac{\gamma(\alpha')}{z(\alpha)-z(\alpha')}\,\mathrm{d}\alpha'

Birkhoff–Rott velocity feeds sheet-induced flow back into the interface. The implementation uses a periodic vortex-blob kernel and finite core radius rather than presenting a singularity as a resolved physical scale.

Common difficulties

Growth rate is not a formula for the whole animation

Typical misconceptionExponential early growth means the same rate predicts late vortex size, mixing, and breakup.

Better mental modelLinear theory requires amplitude much smaller than wavelength. At a ratio of 0.075, the workbench ends the linear prediction and relabels the late model as a regularized vortex sheet.

A finite layer is not a sharp interface

Typical misconceptionIncreasing thickness merely blurs the picture.

Better mental modelFinite thickness weakens the velocity jump seen by high wavenumbers. This Lab uses sech(kδ)\operatorname{sech}(k\delta) to show the trend; quantitative values require an eigenvalue problem for the specified velocity profile.

Run the experiment

  1. 01

    Measure single-mode exponential growth

    Choose Single-mode seed, pause, and press Step 30 repeatedly while comparing the solid and dashed growth traces.

    What to observe: During small-amplitude evolution, log amplitude is approximately linear and the fitted rate approaches theory. The traces are not forced to agree after the switch.
  2. 02

    Find the stability threshold

    Choose Stable stratification, then raise velocity jump or lower gravity while watching the fastest mode and active phase.

    What to observe: When restoration dominates, the perturbation oscillates and damps. Across the threshold, a growing mode appears and the phase label changes.
  3. 03

    Let a spectrum choose its scale

    Choose Noise spectrum, then increase interface thickness and viscous damping separately while comparing the Fourier bars.

    What to observe: Short waves gain stronger shear drive but suffer stronger thickness, capillary, and viscous penalties. The winning scale emerges from competition.