A heated house under ten inches of snow. The attic warms, the snow melts from underneath, and the water freezes again over the cold eaves.
See why a building does what it does
Where does the warm air go? Which room stays cold, and why? Why is the attic hot in July, and where does an ice dam come from? Airflow Lab is a sandbox for questions like these. Everything in the picture is worked out from the physics, in real units, as you watch.
Draw a building
Walls in twelve constructions and glass in four, each with its real R-value. Windows, doors, vents and doorless openings at their own heights. How leaky it is, and what is under the floor. In feet and inches, or in metres.
Put things in it
Radiators and baseboards, a heat pump, window AC, a wood stove; a ceiling fan, a bath fan, a range hood; a range, a shower, a refrigerator, people. Each goes where a real one does.
Air that really moves
Warm air rises off a radiator, spreads under the ceiling and sinks along a cold window. In 3D the air is drawn through the room, and it runs on your graphics card.
Ducts that balance
Run supply and return ducts from an air handler. The program sizes them and works out the CFM, speed and pressure drop of every run, and the static pressure of the system.
Roofs, attics and snow
Put a roof on: the attic gets its own air, vents and insulation. Snow lies on the roof, melts where the deck is warm and freezes into ice at the eaves.
Weather, sun and time
Wind, humidity, a day and night cycle, sun through the windows and on the roof, snowfall and rain. Fast-forward covers hours in seconds.
One building, three views



Measure what you see


Real equations, checked
Every piece of the physics is checked against a known answer before it counts as done, and 265 checks run on every change:
- the energy books of a sealed box, and heat through a wall against the hand sum;
- the textbook two-way flow of warm and cold air through an open doorway;
- duct flow from Darcy-Weisbach friction, fitting losses and the blower's curve;
- an attic's temperature against a hand balance, and the roof's books of heat and meltwater;
- air leaks against the blower-door handbook numbers, and each kind of floor against its hand sum;
- fans against a shut building: what a fan moves and the room's pressure, against hand sums;
- the graphics-card solver against the processor solver, side by side;
- and one real building: an apartment with a sensor in every room, in the Examples list. With two settings fitted to one night, its six rooms come within 1 to 3 °F, and the heat pump, set from the real unit's data sheet and running on and off as it does, draws about a fifth more than the real one is estimated to have used.
It is still a model on a coarse grid: best for seeing why, and for comparing this against that. It is a tool for learning and exploring, not for sizing equipment. The README lists the known limits and the roadmap what comes next.
Run it
- Open Airflow Lab in Chrome or Edge on a desktop or laptop.
- Pick a layout from Examples at the top, or draw a room with the Room tool and click a heater into it.
- Point at anything to see what it is and its reading. The Guide button explains the rest.
Layouts are kept in your browser and in the files you save. To run it from your own computer, download Airflow-Lab.zip, unzip it and start node serve.mjs (on Windows, double-click Start Airflow Lab.cmd). It needs Node.js only to hand the files to the browser: there is nothing to install and no build step.