Loading the engineShared by all simulations, so the next one opens instantly.
The physics

The Kuramoto-Sivashinsky equation was found twice in the 1970s. Yoshiki Kuramoto and Toshio Tsuzuki derived it in 1976 for phase waves in oscillating chemical reactions, and Gregory Sivashinsky in 1977 for the wrinkled front of a laminar flame. It is one of the simplest equations with spatiotemporal chaos: a single field in one dimension whose solutions stay bounded but never settle down. On a short domain the same equation produces steady cells instead, and the chaos grows with the length of the domain, which made it a standard test case for the study of chaotic attractors in extended systems.

What you see

The picture is a kymograph. Each row is the profile u(x) across the periodic domain at one moment; the newest row is added at the bottom and older rows move up. Red is positive u, blue negative, and black lies in the middle of the range, which is fitted to the smallest and largest value in the picture. A new row is drawn every 0.05 time units, four rows per frame, so at 60 frames per second the simulation advances 12 time units per second and the 512 rows span the last 25.6 time units, about 2 seconds.

On long domains the profile breaks up into cells, crests and troughs about 9 units apart, that wander sideways. Where two cells drift apart a new one grows between them, and where two come close they merge, which gives the kymograph its branching look. Every run starts from the same sum of eight long sine waves, so a reset repeats the same run.

Governing equation

ut+uux+uxx+uxxxx=0,0≤x<L periodic.

A small wave eikx grows at the rate σ(k)=k2−k4: the term uxx, a negative diffusion, amplifies all waves with 0<k<1, while uxxxx damps the short ones. The fastest growing wavelength is 2π2≈8.9. On a periodic domain only the wavenumbers k=2πm/L fit, so the number of unstable modes is the largest integer below L/2π. The nonlinear term uux moves energy from the unstable long waves to the short, damped ones and keeps the solution bounded. The mean of u is conserved and stays zero.

In the chaotic state the statistics hardly depend on L. For every domain measured from L=60 to 400 the mean square ⟨u2⟩ settles at 1.8 to 1.9 and the number of cells is about L/9 (12 at L=100, 45 at L=400). From L=100 up, the strongest wavenumber in the spectrum lies between 0.69 and 0.75, close to the fastest growing 1/2≈0.71.

The grid has spacing Δx≤0.39 and at least 64 points, so a long domain gets more points (1024 at L=400). Derivatives are second-order central differences and time steps explicit Euler with Δt=0.05Δx4, well below the stability limit Δx4/8 of the fourth derivative.

Presets

Steady cells (L = 18): two unstable modes. Within about 6 seconds the profile locks into two cells that no longer move, and the kymograph shows straight vertical stripes. Every length measured between 14 and 18 ends in such a steady state; at L=12 a single cell drifts sideways at constant speed, which draws diagonal stripes.

Minimal chaos (L = 22): three unstable modes. The domain is small enough to study in detail and already chaotic, and Cvitanović, Davidchack and Siminos (2010) used it to map the structure of the attractor. Two or three cells merge and split irregularly, and ⟨u2⟩ fluctuates by about a third around its mean of 1.5.

Chaos (L = 100): 15 unstable modes and about 12 cells, the default.

Wide domain (L = 400): 63 unstable modes and about 45 cells. The starting waves are long and grow slowly, so the chaos takes about 220 frames (4 seconds) to fill the domain.

Parameters

Domain length L: the length of the periodic domain, 12 to 400 (default 100). It takes effect when the simulation is reset or a preset is chosen.