Skip to main content
100%

Brownian Motion Constrained in Rectangle

✓ Published0🌍 Public
PPhilippe Rivière
Last edited Nov 18, 2016
Created on Nov 18, 2016

A canvas displays 200 particles performing Brownian motion inside a rectangle, bouncing elastically off its boundaries. The simulation uses d3.forceSimulation with custom forces for random motion and container collision, plus d3.forceCollide to prevent overlaps. A Voronoi diagram, computed with d3.voronoi, generates an Urquhart graph—its edges are drawn as thick gray lines beneath thin black ones, with white-stroked yellow dots marking each particle. Clicking drags the first node, restarting the simulation.

AI-generated description

A mixed bag of forces:

  • Brownian motion

  • Elastic Bounce on a container’s edge

  • Collide

Displayed as an Urquhart graph just because.

forked from <a href='http://bl.ocks.org/Fil/'>Fil</a>'s block: <a href='http://bl.ocks.org/Fil/56c02237d9951c4bb12ed41cf64d6e4c'>Urquhart Force Mesh</a>

forked from <a href='http://bl.ocks.org/Fil/'>Fil</a>'s block: <a href='http://bl.ocks.org/Fil/75f14da692354b49a88b9c015324eaae'>Brownian Motion Urquhart</a>

gpl-3.0 Licensed

Similar vizzes