Repository navigation
Airflow Lab 0.1.0
The first public version of Airflow Lab: a sandbox for the physics of a building that runs in the browser.
▶ Open it in your browser: nothing to install. To run it on your own computer, download Airflow-Lab.zip below, unzip it and start node serve.mjs (on Windows, double-click Start Airflow Lab.cmd). It needs Node.js 20 or newer, only to hand the files to the browser.
What is in it
- Draw a building: walls in twelve constructions and glass in four with their real R-values; windows, doors and vents at their own heights; feet and inches or metres.
- Equipment: heater, air conditioner, heat pump, baseboard, heated floor, wood stove, fans, supply and exhaust vents, humidifier and dehumidifier, people, a range, a server rack, with thermostats.
- Air that moves, flat or in 3D. 3D air runs on the graphics card (WebGL2), on 8 in cells or 4 in cells, and falls back to the processor where the browser cannot do it.
- Heat and moisture: conduction by R-value, heat stored in walls, floors and furnishings, humidity, condensation and frost on cold glass and walls.
- Ducts: an air handler with supply and return runs, sized by the program or by hand, balanced by pressure (Darcy-Weisbach, fitting losses, the blower's curve), with duct heat loss.
- Roofs, attics and snow: gable, hip, shed or flat; an attic whose air moves; snow that insulates, melts from underneath and refreezes into ice dams at the eaves.
- Weather and sun: wind, a day and night cycle, sun through the windows and on the roof, snowfall and rain; fast-forward covers hours in seconds.
- Three views of one building: floor plan, side view and 3D, with the air drawn through the rooms in 3D and equipment drawn as what it is.
- Measuring: sensors with a live chart and CSV, room readings (square feet, CFM, air changes, heat loss), estimated watts and kWh, and colours for temperature, air speed, humidity, smoke, CO₂ and pressure.
- Ten example layouts, a guide, and tips on everything you point at.
How far to trust it
176 checks against known answers run on every change (energy books, heat through a wall, two-way flow through a doorway, an attic's balance, the roof's heat and water). It is still a model on a coarse grid: a tool for learning and exploring, best for seeing why and for comparing this against that. The README lists the known limits, and the roadmap what comes next.
Made and tested in Chrome and Edge on a desktop. It is built for a mouse and a wide screen.
