Skip to content
← Back to Projects
Wind Tunnel logo

Wind Tunnel

Live

Draw a shape and the air answers. Wind Tunnel runs a real fluid simulation in your browser, the kind engineers use, fast enough to play with: sketch a wing, a car or your name, and watch smoke bend around it, eddies peel off behind it, and the drag and lift numbers move as you change it. Turn up the wind and the wake gets wilder. It works on a phone with a finger, offline, with nothing to sign up for.

Screenshots

What It Does

  • →Lets you draw any shape on the air with a finger or a mouse, or drop in a cylinder, an airfoil, a flat plate, a car or a word in block letters
  • →Shows the flow four ways: smoke, speed, vorticity and pressure
  • →Starts on its own: open it and a vortex street forms behind a cylinder, the same pattern that makes flags flutter and wires hum
  • →Reads out the Reynolds number, drag and lift on your shape as it changes, live
  • →Has wind and viscosity sliders, pause and single step, undo and erase, and saves the current view as an image
  • →Installs on your phone and works offline, with no account and no tracking

What I Built

  • →A real two-dimensional lattice Boltzmann solver (D2Q9) running in a Web Worker, with WebGL2 drawing the smoke and fields on the graphics card
  • →Drag and lift measured on your own shape by momentum exchange at its walls, the way the research codes do it
  • →Proofs against exact solutions: flow between plates within 0.37 percent of the textbook parabola, and a decaying shear wave within 0.09 percent
  • →The cylinder benchmark of Schaefer and Turek run as a test: the shedding frequency lands inside the published range
  • →TypeScript throughout, a type-checked build, an offline service worker and a strict content security policy