"Fluid" simulation

Опубликовано: 17 Июль 2026
на канале: Ben Andrew
486
13

Messed up an implementation of the Lattice-Boltzmann method for fluid dynamics simulation, leading to strange geometric behaviour.

"The method used involves a "propagation" step, where the fluid pressure is propagated outwards in eight directions, and a "collision" step working out the pressure changes due to the collisions between molecules. I forgot to add the collision step, and so the initial pressure wave propagates outwards infinitely in the eight directions (wrapping at the edges), giving the strange overlapping patterns seen in the video."

GitHub repo: https://github.com/benmandrew/lattice...