Skip to content

Instantly share code, notes, and snippets.

View mikeskaug's full-sized avatar

Mike Skaug mikeskaug

View GitHub Profile
@mikeskaug
mikeskaug / README.md
Last active June 29, 2022 14:13 — forked from vasturiano/README.md
Brownian motion

Simulation of particles immersed in fluid at some temperature, using the d3-force physics engine.

This is was inspired by this block.

The velocities of the fluid particles are drawn from the Maxwell-Boltzman velocity distribution and scale with temperature like sqrt(T).

This illustrates the origin of Brownian motion, which is the random motion of particles suspended in a fluid due to collisions with the fast moving fluid particles or molecules.