Augustin Grudet

Diffusion-limited aggregation: drunken walkers that grow trees

The generator behind the specimens of the projects tag: Witten and Sander's model, its fractal dimension close to 1.71, stickiness, its physical analogues and the tricks that make the simulation cheap.

  • 8 min read
  • #specimens
  • #projects

This post was machine-translated from the original version.

Contents

The specimen of posts tagged projects is a branching cluster built particle by particle, each one arriving at random and sticking where it first touched. The model is diffusion-limited aggregation (DLA), proposed by Thomas Witten and Leonard Sander in 1981.

specimen 0x551b · dla · floor s=0.78 fill=0.206
Interactive specimen: the sliders change its parameters and the drawing is recomputed in the browser.

The model

Place a fixed particle, the seed, at the centre of a grid. Then repeat:

  1. release a particle far from the cluster;
  2. let it walk at random, one step at a time to a neighbouring cell drawn uniformly;
  3. as soon as it touches a particle of the cluster, fix it there for good.

Only one particle walks at a time. That is what “diffusion-limited” means: transport is the slow step, sticking is instantaneous. Paul Bourke gives a more colourful picture: drunks stagger out of the taverns around a square until they trip over a sleeper and fall asleep in turn; by morning, seen from above, the crowd forms tendrils.

Witten and Sander were looking for a model of aggregates of metal particles, whose density correlations followed an experimentally measured power law. Their simulation reproduces that law: the cluster has no characteristic scale.

Why branches

A particle released far from the cluster approaches it from the outside. To reach the bottom of a fjord between two branches, it has to cross the whole opening without touching the sides, which is unlikely. The tips, on the other hand, are exposed: they catch most arrivals, grow longer and become even more exposed. The hollows, screened, almost stop growing.

This mechanism has a continuous form. In the steady state, the mean density of walkers ϕ\phi obeys Laplace’s equation outside the cluster, with an absorbing condition on the cluster:

∇2ϕ=0,ϕ∣cluster=0,ϕ→ϕ∞ far from the cluster\nabla^2 \phi = 0, \qquad \phi\big|_{\text{cluster}} = 0, \qquad \phi \to \phi_\infty \text{ far from the cluster}

The probability that a point on the boundary receives the next particle is proportional to the flux ∂ϕ/∂n\partial \phi / \partial n at that point. Like the electric field around a lightning rod, this flux is stronger at the tips. A flat interface growing by this rule is unstable: any bump grows faster than its neighbours and ends up splitting in two. DLA is the discrete, noisy version of it.

A fractal dimension close to 1.71

The compactness of a cluster is measured by counting its particles NN as a function of its radius RR:

N(R)∝RDN(R) \propto R^{D}

A filled disc would have D=2D = 2, a line D=1D = 1. For planar DLA, simulations give D≈1.71D \approx 1.71: Tolman and Meakin’s large off-lattice simulations (1989), on clusters of a million particles, measure D=1.715±0.004D = 1.715 \pm 0.0041. The mean density at distance rr from the centre therefore decreases as rD−2≈r−0.29r^{D - 2} \approx r^{-0.29}: the bigger the cluster, the emptier it is.

This number is universal, in the sense that it depends neither on the exact form of the walk nor on the size of the particles, as long as the anisotropy of a lattice does not take over. On a square grid and for very large clusters, the branches end up aligning with the lattice axes; at the size of a specimen, the effect is not visible.

Stickiness

The sticking rule can be softened: on contact, the particle only sticks with probability s<1s < 1, and otherwise keeps walking. It then has a chance to slip further, including into the hollows. Bourke shows the visual effect: with low stickiness, the cluster becomes bushier and fuller. Meakin measured in 1983 that for 0.1≤s≤10.1 \le s \le 1 the clusters are denser, but the exponent linking radius to number of particles does not change. Stickiness changes the look at small scales, not the geometry at large scales.

In nature

The same screening governs several physical phenomena:

  • Electrodeposition. In 1984 Matsushita and coauthors grew zinc leaves in a flat cell and measured a dimension D=1.66±0.03D = 1.66 \pm 0.03, in agreement with DLA as known at the time.
  • Dielectric breakdown. Discharges in an insulator, Lichtenberg figures, branch in the same way. The model of Niemeyer, Pietronero and Wiesmann (1984) grows the discharge with a probability proportional to a power η\eta of the local field; for η=1\eta = 1, it is DLA again. Lightning has a tree structure of the same kind.
  • Mineral dendrites. The black branching patterns of manganese or iron oxides on limestone look like DLA clusters. Chopard, Herrmann and Vicsek (1991) show, however, that their dimension varies from one sample to another and propose a reaction-diffusion model instead: resemblance is not enough to identify the mechanism.
  • Corals. Kaandorp and coauthors (1996) model the growth of stony corals as an aggregation in which a nutrient diffuses and is carried by the flow. When diffusion dominates, the aggregate is thin and branching; when flow dominates, it becomes compact.

A cheap simulation

Released too far away, a particle can wander for a very long time: in two dimensions a random walk always comes back, but the return time is unbounded. Classic simulations rely on three tricks.

The launch circle. By symmetry, a particle coming from infinity first hits a circle around the cluster at a uniformly distributed point. It can therefore be born on a circle of radius rmax⁡+δr_{\max} + \delta, where rmax⁡r_{\max} is the current radius of the cluster and δ\delta a small margin, without changing the statistics. The circle grows with the cluster.

The kill radius. If the particle wanders beyond a radius rkillr_{\text{kill}}, a few times rmax⁡r_{\max}, it is dropped and another one is launched. This shortcut introduces a slight bias, negligible if rkillr_{\text{kill}} is large enough. An exact version puts the particle back on the launch circle according to the distribution of its first return.

Long steps. Far from the cluster, a particle cannot touch anything within a disc whose radius is its distance to the nearest neighbour, minus one. It can jump straight to a uniform point on the edge of that disc, which replaces hundreds of small steps. This requires keeping a map of distances to the cluster up to date.

Bourke also mentions the first two on his page: give birth to particles close to the structure, drop them if they stray too far.

What the engine does

The dla generator only uses a simplified form of the third trick, and departs from the classic model on two points.

First, the domain is not infinite. The cluster grows in a closed box, the character grid with each row split in two (cells of 0.6 × 0.5, almost square). Its edges are reflecting walls: a walker that hits them bounces back. There is neither a launch circle nor a kill radius. On the large full-screen frames, such as the home page’s, the box is the grid minus its margins, and growth stops as soon as a particle sticks right next to one of its edges: the whole cluster stays on screen, with space around it.

Second, walkers are not launched from far away. Each walker is born on a free cell drawn at random from the whole box. The engine first looks for a cell far from the cluster (no particle in an 8 × 8 block of cells or in its neighbours), then settles for any free cell that does not touch the cluster. A walker can therefore be born at the bottom of a fjord, which classic DLA makes very unlikely: hollows are screened less, and nothing guarantees that the 1.71 dimension holds for this variant. The branching mechanism is still at work, though: a walker born far from the cluster still approaches it by its tips.

Otherwise, the rule is that of DLA with stickiness. The walker takes one-cell steps, drawn uniformly among its four neighbours, never entering an occupied cell. As long as no particle is within eight cells, it takes long jumps, up to seven cells on each axis, which cannot touch anything. As soon as one of its four neighbours belongs to the cluster, it sticks there with probability ss; otherwise it keeps going. Beyond a step cap, it is dropped and another one sets off. Each unit of work is a complete particle, walked until it sticks; the number of particles is a fraction of the box’s area.

The seed takes one of three shapes: one to three points, a line on the floor (the bottom of the box) or a line across the middle. The ink depends on the age of the particles: the first ones, the trunk, are drawn dense; the last ones, at the tips, light. The growth replayed in the browser lays the particles down in their order of arrival.

This post’s banner label, specimen 0xd9de · dla · 2pt s=0.57 fill=0.169, reads as follows: two starting points, stickiness 0.57, and particles for 16.9% of the box.

Why the projects tag

A DLA cluster keeps a record of its history: the first particles are at the centre, the last ones at the tips, and each branch is the result of a series of accidents that reinforced one another. The specimen makes this history visible by inking each particle according to its age. A project often grows the same way, less by carrying out a plan than through a growth in which whatever moves forward attracts what comes next.

Notes

  1. In 1981 Witten and Sander gave a first estimate from density correlations. In 1983 Meakin found that, on a lattice and in dimensions 2 to 6, DD roughly follows 5d/65d/6, about 1.67 in the plane; Tolman and Meakin’s more precise off-lattice value is slightly higher. ↩

Sources

  1. T. A. Witten, L. M. Sander, "Diffusion-Limited Aggregation, a Kinetic Critical Phenomenon", Physical Review Letters 47(19), 1981, pp. 1400-1403 (Nov 25, 2026)
  2. T. A. Witten, L. M. Sander, "Diffusion-limited aggregation", Physical Review B 27(9), 1983, pp. 5686-5697 (Nov 25, 2026)
  3. Paul Meakin, "Diffusion-controlled cluster formation in 2-6-dimensional space", Physical Review A 27(3), 1983, pp. 1495-1507 (Nov 25, 2026)
  4. S. Tolman, P. Meakin, "Off-lattice and hypercubic-lattice models for diffusion-limited aggregation in dimensionalities 2-8", Physical Review A 40(1), 1989, pp. 428-437 (Nov 25, 2026)
  5. M. Matsushita, M. Sano, Y. Hayakawa, H. Honjo, Y. Sawada, "Fractal Structures of Zinc Metal Leaves Grown by Electrodeposition", Physical Review Letters 53(3), 1984, pp. 286-289 (Nov 25, 2026)
  6. L. Niemeyer, L. Pietronero, H. J. Wiesmann, "Fractal Dimension of Dielectric Breakdown", Physical Review Letters 52(12), 1984, pp. 1033-1036 (Nov 25, 2026)
  7. B. Chopard, H. J. Herrmann, T. Vicsek, "Structure and growth mechanism of mineral dendrites", Nature 353, 1991, pp. 409-412 (Nov 25, 2026)
  8. J. A. Kaandorp, C. P. Lowe, D. Frenkel, P. M. A. Sloot, "Effect of Nutrient Diffusion and Flow on Coral Morphology", Physical Review Letters 77(11), 1996, pp. 2328-2331 (Nov 25, 2026)
  9. Paul Bourke, "DLA: Diffusion Limited Aggregation" (Nov 25, 2026)