Kevin Mok — portfolio / run it yourself
Run the Anderson experiment in your browser
Does a wave spread through a disordered material, or does it stay where it started? Choose a shape, a size and an amount of disorder, and your own machine works out the answer.
Nothing is installed and nothing is sent anywhere: the calculation runs in this tab, on your processor. It is the same model, and the same measurement, that the ecoPrimals project runs at full size on graphics cards.
The experiment
Checking the code on your machine…
Average spacing ratio against disorder
Upper dashed line, 0.5307: waves spread through the whole lattice. Lower dashed line, 0.3863: waves stay put. Bars are one standard error across lattices.
Spacing ratios at one point
Bars: what your machine measured. Green curve: the prediction for spreading waves. Amber curve: the prediction for waves that stay put. Click a row in the table to see its point.
Your results
| Curve | Disorder W | Average ratio | ± | Lattices | Ratios | Seconds |
|---|---|---|---|---|---|---|
| No runs yet. | ||||||
What you are looking at
The lattice is a grid of sites. A wave can hop from a site to its neighbours. Each site is given a random energy between −W/2 and +W/2; W is the disorder. This is the model Philip Anderson published in 1958.
The page builds the lattice, finds every allowed energy of the wave exactly, and looks at the gaps between neighbouring energies near the middle of the range. For each pair of neighbouring gaps it takes the smaller divided by the larger. That ratio is the measurement.
When waves spread through the whole lattice, their energies push each other apart, small gaps are rare, and the average ratio is about 0.5307. When each wave is stuck in its own corner, the energies ignore one another and the average falls to 2 ln 2 − 1, about 0.3863.
In a chain, any disorder at all pins the waves. In a block there is a real transition: published work puts it at a disorder of about 16.5. Below it, larger blocks stay at 0.53. Above it, larger blocks fall towards 0.39 faster than small ones.
What this page can and cannot show
It shows both regimes, with the right limiting values, and it shows the curves for different block sizes separating above the transition. With a few dozen lattices per point the bars are about ±0.005, so differences smaller than that are noise: run more lattices before reading anything into them. With fewer than about twenty lattices the bar itself is only a rough guide.
Two things to expect at the weak end. Below a disorder of about 3 the lattice is nearly a perfect crystal, its energies bunch into groups, and the ratio dips for that reason, not because waves are pinned. And a wave that is pinned over a distance longer than the lattice looks free: a short chain at very weak disorder, or a sheet at moderate disorder, reads as “spread” until you make it bigger. Try it: the same disorder, a longer chain.
It does not pin down where the transition is. That needs much larger blocks and a scaling analysis, which is what the full-size code in wetSpring does on a graphics card. The largest lattice here has about 1,000 sites, because a browser tab solves the whole problem exactly on one processor core.
Why a microbiologist built it
I use this model as a working hypothesis for chemical signalling between cells. Bacteria release signal molecules to coordinate; immune cells do the same. In the model, how mixed the neighbouring cells are plays the part of the disorder, and the shape of the space (a filament, a film on a surface, a solid mass) plays the part of chain, sheet and block. The prediction to test at the bench is that the shape decides whether a signal gets through. That it is a hypothesis is the point: the physics on this page is established, the biology is what the project is testing.
More: the signalling hypothesis · the same question in immune signalling · another experiment to run here: Lenski's long-term evolution experiment, from its published counts · the thesis chapter this leads to
Check the code yourself
These checks ran on your machine when the page opened. The first three compare the code with answers known exactly. The fourth compares your machine's digits with the reference machine's. The last two compare with the two limiting values.
- Running…
The whole calculation is two short files you can read: anderson-core.js (the model and the eigenvalue solver) and anderson-worker.js (the checks). Written by Kevin Mok for ecoPrimals; AGPL-3.0.