Skip to content

KuramotoSivashinsky

Systems / ODEs / Chaotic attractors

The canonical 1-D model of spatiotemporal chaos — flame fronts and falling films, chaotic in space and time.

continuous · ODE32 dimensionsspatiotemporal

Start here

Python
import tsdynamics as ts

system = ts.systems.KuramotoSivashinsky()
traj = system.run(final_time=150.0, dt=0.5, seed=0)
ts.plot(traj)

traj.t contains the sample times and traj.y the state array; system.info shows the defaults. In a notebook the last line displays the plot. In a Python script, call .show() on it to open a window, or .save("trajectory.svg") to export it.

With an adaptive ODE solver, dt sets the output spacing; rtol and atol control local integration error. For a fixed-step solver, reduce dt to check numerical convergence.

Illustration: N=32 · simulation window: 0–150 · forward playback

Evolving spatial field — press play to follow the snapshots

This finite simulation illustrates one initial condition and view. The diagnostics below report their own inputs and observation windows.

Dynamics at the default parameters

Lyapunov exponents measure separation rates along an orbit. The Kaplan–Yorke dimension is derived from those rates, not a direct geometric measurement. Finite runs depend on the initial condition, transient and observation window; a value near zero needs a convergence check.

Lyapunov spectrum
Finite-time / numerical estimate
$+0.03392,\; +0.01284,\; +0.01103,\; -0.002581,\; -0.008758,\; -0.1894$
per time unit
leading exponents only
Method and evidence

Benettin QR tangent dynamics

Finite-time estimate, not a convergence certificate. Only the leading directions were computed.

Settings

{
  "backend": "jit",
  "k": 6,
  "final_time": 400.0,
  "transient": 100.0,
  "dt": 0.1,
  "ic": [
    -0.08139637266114158,
    0.0677746560340061,
    0.0003025984184520159,
    -0.007244615271076627,
    -0.0012288206434719396,
    -0.03883444379968024,
    -0.07414923656407635,
    0.07257730228651756,
    0.020183579544619315,
    -0.05057710815948957,
    -0.03616940480266375,
    0.0010281553430687707,
    -0.05745647817382622,
    0.008497176875960744,
    0.030486139738435104,
    -0.08782426295391994,
    -0.061509589946873125,
    0.0636511877591478,
    0.06554368647907186,
    0.0618289816937812,
    0.04265863185823715,
    -0.021404086228906508,
    -0.05248194910950663,
    0.04761495772928046,
    0.07659180393354562,
    -0.06558947858562784,
    -0.025394681976389458,
    -0.03290523904236733,
    -0.09236829358456307,
    0.0418839933400343,
    -0.07521077471470866,
    -0.08726816533285242
  ],
  "rtol": 1e-09,
  "atol": 1e-12,
  "solver": "bdf"
}

Preparation

{
  "seed": 804983208,
  "ic_policy": "declared/in-basin start, else seeded small ball"
}

Full_spectrum_attempt

{
  "reason": "Computation exceeded 180s (worker stopped).",
  "settings": {},
  "timeout_seconds": 180.0
}

Estimator runtime in the recorded environment: 51.6358 s.

Kaplan–Yorke dimension
Finite-time / numerical estimate
$D_{KY} = 5.245$
Method and evidence

Kaplan–Yorke interpolation of the recorded spectrum

Lyapunov dimension estimate; equality with a fractal or information dimension requires additional dynamical assumptions.

Settings

{
  "backend": "jit",
  "k": 6,
  "final_time": 400.0,
  "transient": 100.0,
  "dt": 0.1,
  "ic": [
    -0.08139637266114158,
    0.0677746560340061,
    0.0003025984184520159,
    -0.007244615271076627,
    -0.0012288206434719396,
    -0.03883444379968024,
    -0.07414923656407635,
    0.07257730228651756,
    0.020183579544619315,
    -0.05057710815948957,
    -0.03616940480266375,
    0.0010281553430687707,
    -0.05745647817382622,
    0.008497176875960744,
    0.030486139738435104,
    -0.08782426295391994,
    -0.061509589946873125,
    0.0636511877591478,
    0.06554368647907186,
    0.0618289816937812,
    0.04265863185823715,
    -0.021404086228906508,
    -0.05248194910950663,
    0.04761495772928046,
    0.07659180393354562,
    -0.06558947858562784,
    -0.025394681976389458,
    -0.03290523904236733,
    -0.09236829358456307,
    0.0418839933400343,
    -0.07521077471470866,
    -0.08726816533285242
  ],
  "rtol": 1e-09,
  "atol": 1e-12,
  "solver": "bdf"
}
Divergence ∇·f
Symbolic summary
$\frac{89201.7777777778}{L^{2}} - \frac{313174698.666667}{L^{4}}$ (constant part of $\nabla\!\cdot f$)
+ per-node nonlinear terms (over 32 nodes)
Method and evidence

+ per-node nonlinear terms (over 32 nodes)

Equilibria / fixed points
Finite-time / numerical estimate
none found in this search
Method and evidence

A seeded numerical search, not a completeness proof. Stability means linear asymptotic stability. Marginal/nonhyperbolic roots have no nonlinear stability verdict from this linearisation.

max Re(eigenvalue) for flows; max |multiplier| - 1 for maps. Boundary band: 1e-7 * max(1, max |eigenvalue|).

Settings

{
  "method": "newton",
  "n_seeds": 80,
  "seed": 0
}

Estimator runtime in the recorded environment: 0.2057 s.

Recorded parameters and software
{
  "parameters": {
    "N": 32,
    "L": 22.0
  },
  "parameter_expressions": {},
  "state_dimension": 32,
  "explicit_time": false,
  "library_version": "6.0.3",
  "python": "3.14.8",
  "numpy": "2.4.4",
  "scipy": "1.17.1",
  "protocol_version": 1
}

Definition

Python
@staticmethod
def _equations(Y, t, *, N, L):
    # 7-point central weights (Trefethen-style) for periodic, equispaced grid.
    # First derivative (6th-order): D1 * f / dx
    w1 = (
        -1.0 / 60.0,
        3.0 / 20.0,
        -3.0 / 4.0,
        0.0,
        3.0 / 4.0,
        -3.0 / 20.0,
        1.0 / 60.0,
    )
    # Second derivative (6th-order): D2 * f / dx^2
    w2 = (
        1.0 / 90.0,
        -3.0 / 20.0,
        3.0 / 2.0,
        -49.0 / 18.0,
        3.0 / 2.0,
        -3.0 / 20.0,
        1.0 / 90.0,
    )
    # Fourth derivative (7-point central, 4th-order accurate): D4 * f / dx^4
    w4 = (-1.0 / 6.0, 2.0, -6.5, 28.0 / 3.0, -6.5, 2.0, -1.0 / 6.0)
    offsets = (-3, -2, -1, 0, 1, 2, 3)

    dx = L / N
    inv_dx = 1.0 / dx
    inv_dx2 = inv_dx * inv_dx
    inv_dx4 = inv_dx2 * inv_dx2

    rhs = []
    for j in range(N):
        # Nonlinear term: -u * u_x (structure-preserving)
        ux = 0.0
        for r, c in zip(offsets, w1, strict=True):
            idx = (j + r) % N
            ux += c * Y(idx)
        ux *= inv_dx

        nonlinear = -Y(j) * ux

        # u_xx: 6th-order central
        uxx = 0.0
        for r, c in zip(offsets, w2, strict=True):
            idx = (j + r) % N
            uxx += c * Y(idx)
        uxx *= inv_dx2

        # u_xxxx: 7-point central
        uxxxx = 0.0
        for r, c in zip(offsets, w4, strict=True):
            idx = (j + r) % N
            uxxxx += c * Y(idx)
        uxxxx *= inv_dx4

        rhs.append(nonlinear - uxx - uxxxx)
    return rhs

Parameters

Symbol Default Role
N 32 number of grid modes
L 22 domain length (sets the number of unstable modes)

Explore further

Reference

Kuramoto & Tsuzuki (1976), Prog. Theor. Phys. 55, 356-369; Sivashinsky (1977), Acta Astronaut. 4, 1177-1206
doi:10.1143/ptp.55.356

BibTeX
BibTeX
@misc{kuramotosivashinsky,
  title = {KuramotoSivashinsky system},
  note = {Kuramoto & Tsuzuki (1976), Prog. Theor. Phys. 55, 356-369; Sivashinsky (1977), Acta Astronaut. 4, 1177-1206},
  doi = {10.1143/ptp.55.356}
}