Lorenz Strange Attractor
In this project I explore the Lorenz Strange Attractor in 3D using ThreeJS. The Lorenz Attractor is a dynamical system that exhibits chaotic behavior and is named after Edward Lorenz who discovered it in 1963 while studying weather patterns.
Open demoThe Equations Behind the Attractor
The Lorenz Attractor formula is a set of three ordinary differential equations. These equations define the rate of change of a point in a three-dimensional space. The equations are as follows:
Or in a more programatic way:
Where
- : The Prandtl number, think of it as comparing how fast a pot of water heats up (heat transfer) to how quickly you stir the water (fluid flow)
- : The Rayleigh number, imagine you're heating water from the bottom. A higher temperature difference between the bottom and top makes the water start to boil and circulate faster.
- : The geometric factor, consider trying to stir honey versus water. Honey, being thicker, resists movement more. That resistance is captured by this parameter.
In Lorenz original paper, the values were chosen as:
These values produce the iconic butterfly shape that characterizes the dynamical system. This is what makes the Lorenz Attractor truly fascinating is its shape: Nobody would expect such shape to come out of such simple equations.
Closing Thoughts
For me, the Lorenz attractor is a perfect example of how something that seems so chaotic can still have an underlying sense of order. It’s fascinating to think that tiny shifts in initial conditions can spiral into entirely different outcomes, yet still, everything remains bound by the same set of rules. This blend of unpredictability and structure really hits home—it's a reminder that what looks random on the surface often has more depth to it.