Skip to content

Blasius

Systems / ODEs / Physical systems

A three-level food chain with Holling type-II responses whose chaotic "teacup" attractor is a landmark of ecological chaos.

continuous · ODE3 dimensionschaotic

Start here

Python
import tsdynamics as ts

system = ts.systems.Blasius()
traj = system.run(final_time=20.0, dt=0.01, 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.

state projection (x, y, z); playback follows arc length, not physical speed. Interactive: drag to rotate; use the play/pause control in the viewer.

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.0685,\; +0.00183,\; -2.882$
per time unit
Method and evidence

Benettin QR tangent dynamics

Finite-time estimate, not a convergence certificate. All state-space directions were computed.

Settings

{
  "backend": "jit",
  "k": 3,
  "final_time": 400.0,
  "transient": 100.0,
  "dt": 0.1,
  "ic": [
    4.031713,
    5.1113788,
    0.016508812
  ],
  "rtol": 1e-09,
  "atol": 1e-12,
  "solver": "rk45"
}

Preparation

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

Estimator runtime in the recorded environment: 0.0278 s.

Kaplan–Yorke dimension
Finite-time / numerical estimate
$D_{KY} = 2.024$
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": 3,
  "final_time": 400.0,
  "transient": 100.0,
  "dt": 0.1,
  "ic": [
    4.031713,
    5.1113788,
    0.016508812
  ],
  "rtol": 1e-09,
  "atol": 1e-12,
  "solver": "rk45"
}
Divergence ∇·f
Symbolic
$\nabla\!\cdot f = a + \frac{\alpha_{1} k_{1} x y}{k_{1}^{2} x^{2} + 2 k_{1} x + 1} + \frac{\alpha_{1} x}{k_{1} x + 1} - \frac{\alpha_{1} y}{k_{1} x + 1} + \frac{\alpha_{2} k_{2} y z}{k_{2}^{2} y^{2} + 2 k_{2} y + 1} + \frac{\alpha_{2} y}{k_{2} y + 1} - \frac{\alpha_{2} z}{k_{2} y + 1} - b - c$
state-dependent
Equilibria / fixed points
Finite-time / numerical estimate
4 equilibria found
0 stable · 4 unstable · 0 marginal / undetermined
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.0517 s.

Recorded parameters and software
{
  "parameters": {
    "a": 1,
    "alpha1": 0.2,
    "alpha2": 1,
    "b": 1,
    "c": 10,
    "k1": 0.05,
    "k2": 0,
    "zs": 0.006
  },
  "parameter_expressions": {},
  "state_dimension": 3,
  "explicit_time": false,
  "library_version": "6.0.3",
  "python": "3.14.8",
  "numpy": "2.4.4",
  "scipy": "1.17.1",
  "protocol_version": 1
}

Definition

\[ \begin{aligned} \dot{x} &= a x - \frac{\alpha_{1} x y}{k_{1} x + 1} \\ \dot{y} &= \frac{\alpha_{1} x y}{k_{1} x + 1} - \frac{\alpha_{2} y z}{k_{2} y + 1} - b y \\ \dot{z} &= \frac{\alpha_{2} y z}{k_{2} y + 1} - c \left(z - zs\right) \end{aligned} \]

Parameters

Symbol Default Role
a 1 resource growth / interaction rate
alpha1 0.2 half-saturation constant of the lower response
alpha2 1 half-saturation constant of the upper response
b 1 predator-prey interaction rate
c 10 top-predator interaction rate
k1 0.05 predator mortality rate
k2 0 top-predator mortality offset
zs 0.006 top-predator baseline (immigration) level

State variables: x, y, z

Explore further

Reference

Blasius, Huppert & Stone (1999), Nature 399, 354-359
doi:10.1038/20676

BibTeX
BibTeX
@misc{blasius,
  title = {Blasius system},
  note = {Blasius, Huppert & Stone (1999), Nature 399, 354-359},
  doi = {10.1038/20676}
}