Repository navigation
Releases
Airflow Lab 0.7.0
Heat pumps can now be set from their maker's data sheet, and a unit can run on and off, start by start.
▶ 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.
A heat pump from its data sheet
Until now a heat pump was a size and a typical efficiency. Click a heat pump or an air handler and tick Set from its data sheet:
- A small table for each outdoor temperature the maker publishes: the heat (or cooling) the unit gives and the watts it draws, at the least it turns down to, at its rated point and at its most. Fill in what the sheet has and leave the rest empty.
- The unit then gives and draws that. What it can give follows the weather, so it has less in the cold, as the sheet says. Between the sheet's points the app draws straight lines; colder than the sheet goes, the most it can give keeps falling along its last two points.
- Fill in an example puts in the figures of a real 15,000 BTU/h cold-climate ductless unit, to see how a sheet is filled in.
- Two new readings in its panel: the most it can give right now, and the heat it moves for each watt.
Running on and off
Set Runs to On and off and the unit starts and stops like a single-speed one:
- It runs in turns, as on a thermostat set for so many starts an hour (3 is usual for a heat pump): that many when it is needed half the time, fewer when it is needed more or less. It rests at least three minutes before any start.
- A start costs something. The heat takes about a minute to come up while the electricity is drawn in full, so short runs give less heat for each watt.
- While on, of its most sets the level it runs at, for a unit that bursts at part of its output.
- At 1× to Max you see every start, and a sensor on the chart shows the room swing with it. Fast-forward works with the average, from the same two rules.
Where this came from
The apartment in the Examples list is a real one. Its heat pump's label gave the make and model, and its recordings at full detail showed it starting about every fifteen minutes all night instead of holding a low steady output. The example's heat pump is now set from that unit's data sheet and runs the way the recordings show. With that it draws about a fifth more than the real one is estimated to have used. With the typical heat pump it had drawn a seventh less: that one was too efficient at part load, which hid that the model's building loses somewhat more heat than the real one.
How far to trust it
265 checks against known answers run on every change. The 13 new ones:
- the sheet's own points come back as published, and the straight lines between them match hand sums;
- a real sheet cut off at 5 °F lands within 1% of the maker's own figure at −13 °F;
- the start-up time gives the rating standards' loss in their own on-and-off test, and turns and starts together give the standards' straight line within 3% at every load;
- a room run start by start draws the same as the Fast-forward sum for the same heat (123 W against 122 W).
Not counted yet: defrosting, and what a unit draws while resting. A sheet's cooling figure includes drying the air; here all of it cools. What a start costs is the rating standards' figure, not a measurement of any one unit.
Airflow Lab 0.6.0
Fans now move what the building lets through, rooms have a real pressure, and the last of the made-up air is gone.
▶ 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.
Fans against a closed building, and room pressure
Until now a fan in a shut room moved its set air no matter what, and the missing air was made up evenly through the room at the outdoor temperature. That was a convention, not physics. Now:
- Every shut room settles at a pressure where its fans and the cracks of its shell balance.
- A fan's flow falls as the pressure against it rises, in a straight line, down to nothing at the most it can make: about 40 Pa for a window fan, 50 for a through-wall fan, 125 for a bath fan, 175 for a range hood, 15 for a chimney's draught.
- The cracks pass air by the blower-door law the Air leaks setting is sized by, shared out by each room's length of outside wall. That air comes in, or goes out, along the outside walls, as outdoor air.
- So: in an airtight room a fan moves nothing. In a leaky room a bath fan moves 78 of its 80 CFM and pulls the room a few pascals below outdoors. In the Home example the range hood pulls the house about 35 Pa down, and the bath fan drops to 58 of its 80 CFM.
- Pressurise or depressurise a space: a supply fan into a shut room raises its pressure, an exhaust lowers it. Click a room for its Pressure against outdoors and the air through its cracks. Click a fan for what it really moves and the pressure it works against. A fan with no way for air to follow says so on the picture.
- Flat air and 3D air follow the same rules. A fan set through a wall in flat air now moves exactly what the pressures allow (it used to deliver 70 to 88% of its setting against a small vent).
Also more real
-
Air that leaks in through the floor over a crawl space or basement arrives at that space's temperature, not the outdoor temperature, so the leaks carry off 5 to 25% less heat.
-
A room's wall area comes from the drawing. The surface a room's stored heat shows its air is now its own floor, ceiling and walls as drawn, plus one floor's worth for furnishings, instead of one figure for every room. A small room is held more tightly than a large one.
-
Fast-forward keeps its pace. A small room whose fan draws cold air through its own cracks one moment and warm air from next door the next can flicker a few tenths of a degree between long steps. Fast-forward now goes by where each room is heading, not by that flicker.
Several things at once: the rest
- R turns everything picked a quarter turn about its middle (Shift+R the other way).
- Box select in the Side view (Shift+drag) and in 3D (Ctrl+drag).
- A window, door or opening by itself: copy it, point at any wall on the floor plan, and paste. Ctrl+D puts another beside it on the same wall.
What changes in layouts you already have
A layout with an exhaust fan, bath fan, range hood, wood stove or window fan in a shut, airtight building will now show that fan moving nothing, with a warning. Set Air leaks under Conditions to how leaky the building is, or open a vent, window or door.
How far to trust it
252 checks against known answers run on every change. The new ones set fans against hand sums: a window fan in a leaky room (118.9 L/s at 16.2 Pa by hand and by the model), a bath fan (78 of 80 CFM), fan air and weather air adding by squares, and an airtight room sitting exactly at its fan's limit with no air made up. They agree to within 1% in flat air and 3D air.
Still not real physics, and said so in the app's notes: each kind of fan has one typical pressure limit and a straight-line curve; pressure pushes air through cracks between a room and the outdoors but not yet between two rooms; a duct register blowing into a shut airtight room still has its air spread through the room; a heat pump's efficiency and the moisture furnishings hold are published figures.
Airflow Lab 0.5.0
Openings with no door, several things picked at once with copy and paste, damp ground under the floor, and fans that say so when they cannot move their air.
▶ 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.
New
- Opening (Build, key I): a way through a wall with no door in it. A doorway, an archway, or a pass-through once you raise its bottom above the floor. It is always open, and it is drawn in the floor plan, the Side view and 3D.
- Several things at once. Shift+click or Ctrl+click adds a thing to what is picked or takes it out; Shift+drag over empty floor draws a box around more; Ctrl+A picks everything. In 3D use Ctrl+click (Shift slides the view there). Drag one of them, or use the arrow keys, and they all move. Delete removes them.
- Copy, cut and paste. Ctrl+C, Ctrl+X and Ctrl+V work on walls (with their windows, doors and openings), things and ducts. A paste lands under the pointer on the floor plan, and works into another layout too. Ctrl+D duplicates. Ctrl+Z and Ctrl+Y undo and redo all of it. The copy stays in your browser.
- Damp ground under the floor (Conditions, for a crawl space or a basement): over damp bare earth, about half of the air that leaks in comes up through the floor carrying the ground's moisture. The rooms then stay damp through a dry winter, as homes over a dirt crawl space do. Set the ground's temperature beside it: the deep ground sits near the year's average outdoor temperature.
Fixed
- A new vent was shut. The Vent tool placed a vent closed, so a fan relying on it had no way to get air and moved none. A new vent is now open.
- A fan through a wall now says what it really moves. With flat air its panel shows the air crossing its hole beside what it is set to. When no air can follow it, the panel and its label on the picture say so and say what to open.
- 3D air made up air for a fan between two shut rooms. The fan kept moving its set air, and the missing air appeared at the outdoor temperature: a sealed room full of servers cooled down. Such a fan is now held still and says it moves nothing, and the room heats up as it does in flat air.
How far to trust it
240 checks against known answers run on every change, 14 of them new: an opening against an open door of the same size, damp ground against the hand sum, and a fan between two shut rooms moving nothing and making up no air.
The damp-ground figure comes from one home's readings over thirteen months, where indoor moisture on cold days followed 6.1 g/kg plus 0.40 of the outdoor moisture, not the outdoor moisture itself. With it and ordinary household moisture the model came within 2 points of relative humidity of that home's sensors in a cold snap. It is one share (half) for every building, and it changes the moisture only: the leaking air's heat is still reckoned from the outdoor temperature.
Still not right: against a small vent, a fan through a wall in flat air delivers 70 to 88% of its setting, and in 3D air its panel says only whether it moves its air or nothing. A fan in an outside wall of a shut building moves its air in 3D air and none in flat air. Several things cannot be turned together yet, a box cannot be drawn in the Side view or 3D, and a window or door is copied only with its wall.
Airflow Lab 0.4.0
Rooms now behave like lived-in rooms: what is in them holds heat and moisture, so the air stays steady when the heating stops and humidity takes hours to change. Heat pumps pay for running on and off.
▶ 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.
All three changes came from running a real home hour by hour through a recorded winter day and setting the result against its room sensors.
Changed
- Rooms hold on to their air. The heat stored in a room used to be tied to its air through one floor's worth of surface. When the heating stopped, the air fell 8 °F in five minutes. A room now shows its air 5.5 m² of surface for every m² of floor: the floor and the furnishings on it, the ceiling, and the wall linings, each through a still-air film. A 1,000 W heater stopping in a 240 sq ft room now costs the air about 2 °F at once; after that the air follows the building down slowly. With 3D air, the floor and furnishings sit in the air at the floor, the ceiling in the air under it, and the wall linings at every level.
- Humidity moves over hours, not minutes. Wood, plaster, fabric and paper take up water vapour when the air turns damp and give it back when it dries. Each room now has that store: 6 g of water for every m² of floor and 1 %RH, about fifteen times what the room's own air holds, half filled in eight hours. It works in flat air and 3D air, at any speed. The totals show Water held by furnishings.
- The setting under Conditions is now Rooms hold heat and moisture like. Pick Nothing for bare air, as before.
- A heat pump asked for little runs on and off, and pays for it. Below about 30% of its size a unit used to get more and more efficient. It now uses more electricity for the same heat there, up to a third more as the load nears nothing (the rating standards' rule). Its panel says "on and off" when that happens.
- The apartment example has its refrigerator and laundry where they really stand.
Layouts saved before open as they did, but run differently where they have stored heat (the default): rooms answer more slowly and more steadily, and humidity lags.
How far to trust it
226 checks against known answers run on every change, 13 of them new: the size of each store against the hand sum, the sag of a room's air when a heater stops, the water in a sealed room adding up to the milligram, damp air and dry furnishings settling where their two shares say, and a heat pump's electricity at part load.
The real home, after these changes: five of its six rooms within about 2 °F of their sensors through the day (most within 1 °F), one room 5 °F too warm, the bedroom's CO₂ within about 140 ppm, and the heat pump within about 6% of what the real one is estimated to have used. Its air still comes out too dry, and the first minutes after the heating stops have not been checked against a measured room yet. The rule for a heat pump running on and off is the standard one; field studies find ductless units doing worse than that in mild weather.
Airflow Lab 0.3.0
Buildings now leak air and lose heat through the floor, the way real ones do, and the first building checked against its own sensors is in the Examples list.
▶ 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.
New
- Air leaks (Conditions): Airtight, Tight, Average, Leaky or Very leaky, sized the way a blower-door test sizes a building (3 to 20 air changes an hour at 50 Pa). The outdoor air that really comes in follows from the weather, by the LBL model: more when it is colder or windier outdoors, about a twentieth of the blower-door number on a winter day. It trades places with the room air along the outside walls and takes heat, moisture, CO₂ and smoke with it.
- Under the floor (Conditions): a heated room, a crawl space with or without floor insulation, an unheated basement, or a slab on the ground, which loses its heat around its edge.
- Both work in flat air and 3D air, at any speed. A room's panel and the totals show what goes out through the walls, the ceiling, the floor and the leaks. Both are off in a new layout and in layouts saved before, so those run as they did.
- A real apartment, checked against its sensors (Examples): a one-bedroom apartment drawn from its floor plan, with one heat pump head and a sensor in every room. With how leaky it is and what its head really holds picked to fit, the model puts all six rooms within about 2 °F of a night of real readings and draws about what the real heat pump is estimated to have used (it has no meter of its own). One night, two fitted settings: a fit, not a proof.
Fixed
- A heat pump head hung flat on a wall lost heat and moisture in 3D air. The wall magnet of 0.2.0 puts a head flat against the wall, where its cells had the wall behind them and set air speeds on every other side. They sent out air they never got, and the solver made that air up with no heat or moisture in it: the room dried out and the unit ran flat out without warming it. Such cells now draw in at the top, as a real head does, or at the side when the ceiling is right above. Flat air was not affected. The apartment check found this.
- Fast-forward in flat air let a whole room drift far too slowly. A room cooling back down, or drying out, lagged behind when the steps were long: one check room read 72.3 °F six hours on where the right answer, and the answer with short steps, is 69.1 °F. Its long steps now correct each room as a whole, as the 3D solver's did, and give the same answer at any step length.
How far to trust it
209 checks against known answers run on every change, 22 of them new: leaks against the handbook numbers and a hand sum of the heat they carry, a room drying at the rate of its leaks, CO₂ from a person settling where the leaks carry it off, each kind of floor against its hand sum, and a wall-hung heat pump keeping its room's heat and water. Still not modelled: the draught in at the floor and out at the ceiling that leaks make in winter, and the spaces under the floor as rooms of their own. The README lists the limits, and the roadmap has a new chapter on turning the lab into a planning tool: tracing a blueprint, typed sizes, a room-by-room heat-loss report, industrial buildings.
Airflow Lab 0.2.0
Building and moving things now works the same in the floor plan, the Side view and 3D, and the list of things you can place reads like a walk through a real house.
▶ 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.
New
- Build in every view. Walls, rooms, windows, doors, ducts and equipment can be placed, moved, turned and raised in 3D as well as in the floor plan. A preview shows where a thing will go before you click, and what you point at is outlined. The Side view places and moves equipment the same way.
- Things go where real ones go. A heat pump head, a baseboard or a range hood clicks flat onto a wall; a wall vent, a window air conditioner or a window fan sets into it; a bath fan, a light or a ceiling fan goes on the ceiling. Hold Alt to place freely.
- Ducts where ducts go. A new duct runs in the ceiling, or in the attic when the building has one; "hung in the room" is there for a warehouse. An air handler has buttons to start a supply or a return run from it.
- The everyday things, by name, each with real default numbers: bath fan (80 CFM), range hood, whole-house fan, window fan, through-wall fan, radiator, space heater, hot-water baseboard, electric baseboard, fireplace, window and portable air conditioners, shower, range, refrigerator, dishwasher, washer, dryer, water heater, lights, TV, computer. 39 things in seven groups you can fold away.
- Fans through walls. A window fan or a fan between two rooms has its own hole through the wall it sits in and moves its rated air through it, in flat air and in 3D air alike.
- A card for the tool in hand: what the thing is, how to place it, and what to do next. Tips on what you point at now work in 3D and in the Side view too.
- A new example: a small home with the everyday things, in 3D air.
How far to trust it
187 checks against known answers run on every change. It is still a model on a coarse grid: a tool for learning and exploring. New limits worth knowing: a shut door passes no air (there is no gap under it), a dryer's vent run is not drawn, and hot-water heating has no boiler or pipes yet. The README lists the rest, and the roadmap what comes next: air quality and weather physics.
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.






