Numeric validation of both views · 13 November 2026 · 65 checks, all passing
Every number and every graph in the Room sizer and the Workflow view was recomputed by a second, separately written calculation and compared with what the simulator produces. The two agree to within 1 % everywhere, and the CO₂ and ice balances close exactly. The check found one inaccuracy in a constant (0.006 %, now corrected) and confirmed where the simulator's own rounding sits.
This validates the arithmetic: that the simulator computes and draws what its stated model says. It does not validate the model's assumptions against measurements. Those are listed at the bottom of this page and at the bottom of each view.
The whole validation is one script in the project, scripts/validate-model.mjs, run with npm run validate. It takes a few minutes and fails loudly if any check does not hold, so it can be rerun after every change to the model.
| Quantity | Formula |
|---|---|
| Gas from ice | 1 kg dry ice → R·T / (P·M) = 0.5466 m³ CO₂ at 20 °C and 1 atm |
| Open pellets, or a box with its lid off | loss rate = k · m2/3 kg/h, with k chosen so 3 kg loses 1.5 kg/h |
| Box with its lid on | loss rate = 2 % of the remaining ice per hour |
| Gas above the ice in a closed box | (box volume − ice at 1 litre per kg) × 293.15 / 194.65, released over the first minute after the lid comes off and taken from the ice |
| Room | change in CO₂ = release − (air changes per hour + release ÷ room volume) × CO₂ in the room |
| Level shown | 420 ppm + CO₂ in the room ÷ room volume |
| 15-minute and 8-hour figures | highest running average over 30 and 960 half-minute samples; a stay shorter than 8 hours is completed with outdoor air |
| Check | Coverage | Result |
|---|---|---|
| Constants and figures quoted on the pages | 0.547 m³/kg, 1.5× expansion, 1.5 / 2.4 / 0.7 kg/h, 6 hours for 3 kg of pellets, 48 L for a 35 L box | all agree |
| Ice mass against closed-form solutions | open pellets (3 kg and 20 kg), closed boxes, 24 hours | within 0.6 g |
| Room sizer, CO₂ curve | 315 scenarios: 4, 13 and 60 m³ × ventilation off, 8 and 20 × open pellets, closed boxes and boxes in use; 1 to 10 containers; containers alike and set one by one (0.5 to 20 kg, 5 to 200 L) | largest deviation 0.97 % |
| Room sizer, ice left | same 315 scenarios | within 2 g |
| CO₂ and ice balances | all scenarios in both views | close to 13 decimal places |
| Exposure figures (tiles, limits table) | 630 scenario × time-span cases in the Room sizer, 20 workflows | identical |
| Room sizer graphs as drawn | time graph, peak marker, limit lines, axis labels, room fill level; three scenarios up to 2,881 points | within 0.25 % of the reference |
| “Highest CO₂ by room size” graph | all 57 room sizes, numbers and plotted log-scale positions, two scenarios | within 0.25 % |
| Workflow plan | four hand-worked schedules: durations, clock times with leaving and coming back, “only while lids are off”, open pellets | identical |
| Workflow, both rooms and the person | 20 workflows: box sizes 10 to 200 L, 0.5 to 20 kg, up to 10 containers, ventilation off to 20, rooms 4 to 60 m³, overlapping openings, leaving with boxes, containers set one by one, open pellets | largest deviation 0.54 % |
| Workflow graphs as drawn | three curves on the playback time axis, both room fill levels; three workflows up to 1,683 points | within 0.4 % of the reference |
| “Highest the person breathes, by use-room size” graph | all 57 sizes, numbers and plotted positions, two workflows | within 0.72 % |
| Direction of change | room size, ventilation, number of containers, ice per container, box volume | all as expected |
The validation cannot tell whether the model's assumptions match a real room. These remain assumptions, chosen to be cautious:
The limit values and their sources (the Danish limit values, the NIOSH value, the effect levels) were not checked by calculation. The animation of the gas and the exact pixels a browser paints were not checked either; the coordinates handed to the browser were.
Mathias Katballe · November 2026