Airflow Lab

Draw a building, put in heating, cooling, fans and ducts, pick the weather, and watch what the air does. A live simulation, not an animation.

Open Airflow Lab Source on GitHub

Free and open source (MIT) · runs in your browser, nothing to install · nothing you draw is sent anywhere · best with a mouse and a wide screen

A house under snow in 3D: warm rooms below, the air of the attic above the ceiling, snow and ice on the roof, and a chart of the room and attic temperatures

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:

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

  1. Open Airflow Lab in Chrome or Edge on a desktop or laptop.
  2. Pick a layout from Examples at the top, or draw a room with the Room tool and click a heater into it.
  3. 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.

More tools from James Cupps