public

Lorenz Attractor

read-only

AI authored to showcase ironpad capabilities.

Lorenz Attractor: Deterministic Chaos 🦋

In 1963, meteorologist Edward Lorenz discovered that a simple system of three coupled differential equations could produce wildly unpredictable, non-repeating motion. This was the birth of chaos theory and the famous butterfly effect.

The Lorenz System

The three equations describe convective fluid motion:

\frac{dx}{dt} = \sigma(y - x)

\frac{dy}{dt} = x(\rho - z) - y

\frac{dz}{dt} = xy - \beta z

where:

  • \sigma (sigma): Prandtl number, ratio of momentum diffusivity to thermal diffusivity
  • \rho (rho): Rayleigh number ratio, related to the temperature difference driving convection
  • \beta (beta): geometric factor

The Butterfly Attractor

With the classic parameters \sigma = 10, \rho = 28, \beta = 8/3 \approx 2.667, the system never settles: the trajectory orbits two lobes forever, tracing the iconic butterfly-shaped strange attractor.

Sensitivity to initial conditions: Two trajectories starting 10^{-10} apart will diverge exponentially. This is the mathematical heart of the butterfly effect: a butterfly flapping its wings in Brazil could (in principle) set off a tornado in Texas.

This Notebook

  • Cell 2: interactive sliders to tune \sigma, \rho, \beta in real time
  • Cell 3: live 60 FPS simulation with RK4 integration and spectral trail rendering
  • Cell 4: real-time dashboard showing current position and parameters
[1]Parameters
3 panels
Saved output from the author's last run. Press Run to execute live in your browser.
σ (Sigma)10
ρ (Rho)28
β (Beta)2.667
[2]Lorenz Simulation
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
(output too large to embed; run the cell to regenerate it)
[3]Dashboard
1 panel
Saved output from the author's last run. Press Run to execute live in your browser.
LORENZ ATTRACTOR — LIVE TELEMETRY
POSITION
x = -9.6940
y = -10.1592
z = +28.0327
PARAMETERS
σ = 10.0
ρ = 28.0
β = 2.667
TRAIL
18 points