Press "Run check" for an independent test of the active model.
The science
1. Brownian motion. A particle of diameter d in a fluid of viscosity eta has the Stokes-Einstein diffusion coefficient D = kB T / (3 pi eta d). In 2D the mean squared displacement is MSD(t) = 4 D t, simulated here with exact Gaussian steps of standard deviation sqrt(2 D dt) per axis. Water viscosity uses the Vogel fit eta = 2.414e-5 * 10^(247.8/(T-140)) Pa s (about 1.0 mPa s at 20 C). Limits: the Stokes drag assumes a sphere with a no-slip surface and no inertia; below a few nm slip and hydration shell effects matter.
2. Quantum dots. The Brus effective-mass model gives the first excitonic gap of a sphere of radius R: E(R) = Eg + (hbar^2 pi^2 / 2R^2)(1/me + 1/mh) - 1.786 e^2 / (4 pi eps0 eps_r R) with CdSe values Eg = 1.74 eV, me = 0.13 m0, mh = 0.45 m0, eps_r = 10.6. Emission wavelength is 1239.84/E nm. Size dispersion sigma_R widens the line through dlambda/dR. The Brus model is known to over-estimate the gap for dots below about 2 nm radius (non-parabolic bands), so treat the small-R colours as qualitative.
3. Surface atoms. A cuboctahedral fcc cluster with k complete shells has (10k^3 + 15k^2 + 11k + 3)/3 atoms (13, 55, 147, 309 ...) and 10k^2 + 2 of them have coordination below 12 (the surface). The surface fraction therefore falls roughly as 3/k, which is why small nanoparticles are so reactive and catalytically active. The cluster is generated site by site and neighbours are counted, not looked up from the formula.
Sprites are Blender renders; all numbers come from the JavaScript models above. Simplifications: no hydrodynamic interactions between particles (dilute limit), no surface reconstruction or relaxation of the gold cluster, and an ideal spherical dot.