How the numbers were checked

Numeric validation of both views · 13 November 2026 · 65 checks, all passing

In short

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.

Method

  1. The simulator's own code, unchanged. The two scripts that run in the browser are loaded as they are into a test harness with a stand-in page. Nothing is copied or re-typed, so what is tested is what is served.
  2. An independent reference. The model was written a second time from its description, with a different numerical method:
    • closed-form solutions where they exist (ice mass over time, the balance point of a ventilated room);
    • otherwise a fourth-order Runge–Kutta integration at 1-second steps for the Room sizer and a 0.25-second step for the Workflow. The simulator itself steps every 2 seconds (10 seconds for the room-size graphs).
  3. Every point compared. For each scenario all points of each curve are compared (one every 30 seconds; 2,881 points for 24 hours), not only the peak.
  4. Balances. For each scenario: CO₂ in the room + CO₂ removed = CO₂ released, and CO₂ released = ice lost × 0.547 m³/kg, including the gas let out when a lid is opened.
  5. Exposure figures recomputed. Highest level, time of the peak, worst 15-minute and 8-hour averages, time above each limit and first crossing are recomputed from the curve with a deliberately simple method and must match exactly.
  6. Graphs read back. The stand-in page records every drawing instruction. The plotted coordinates of each curve, limit line, axis label, peak marker and room fill level are converted back to ppm and compared with the reference. This covers the time graphs, the log-scale room-size graphs and the room views.
  7. Schedules by hand. For the Workflow, the timing of example workflows (filling, waiting, transport, which box is opened when, when the person is present) was worked out by hand and compared with the simulator's plan.
  8. Direction of change. A bigger room, more ventilation, fewer containers, less ice and a smaller box must each never raise the peak.

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.

The model that was checked

QuantityFormula
Gas from ice1 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 offloss rate = k · m2/3 kg/h, with k chosen so 3 kg loses 1.5 kg/h
Box with its lid onloss 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
Roomchange in CO₂ = release − (air changes per hour + release ÷ room volume) × CO₂ in the room
Level shown420 ppm + CO₂ in the room ÷ room volume
15-minute and 8-hour figureshighest running average over 30 and 960 half-minute samples; a stay shorter than 8 hours is completed with outdoor air

What was covered, and the result

CheckCoverageResult
Constants and figures quoted on the pages0.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 boxall agree
Ice mass against closed-form solutionsopen pellets (3 kg and 20 kg), closed boxes, 24 hourswithin 0.6 g
Room sizer, CO₂ curve315 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 leftsame 315 scenarioswithin 2 g
CO₂ and ice balancesall scenarios in both viewsclose to 13 decimal places
Exposure figures (tiles, limits table)630 scenario × time-span cases in the Room sizer, 20 workflowsidentical
Room sizer graphs as drawntime graph, peak marker, limit lines, axis labels, room fill level; three scenarios up to 2,881 pointswithin 0.25 % of the reference
“Highest CO₂ by room size” graphall 57 room sizes, numbers and plotted log-scale positions, two scenarioswithin 0.25 %
Workflow planfour hand-worked schedules: durations, clock times with leaving and coming back, “only while lids are off”, open pelletsidentical
Workflow, both rooms and the person20 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 pelletslargest deviation 0.54 %
Workflow graphs as drawnthree curves on the playback time axis, both room fill levels; three workflows up to 1,683 pointswithin 0.4 % of the reference
“Highest the person breathes, by use-room size” graphall 57 sizes, numbers and plotted positions, two workflowswithin 0.72 %
Direction of changeroom size, ventilation, number of containers, ice per container, box volumeall as expected

Findings

  1. Gas constant rounded. The simulator used R = 8.314 instead of 8.314462618, making every CO₂ volume 0.006 % too low. Corrected; no displayed figure changed.
  2. Lid-opening gas was a fixed, hidden figure. Reviewing a steep jump in the curve showed that opening a box added a fixed 50 litres in one instant, regardless of the box, and that this gas was not taken from the ice. It is now derived from the box volume, released over a minute, shown next to the control and included in the balance. The validation confirms the balance closes.
  3. Step size. The simulator's 2-second steps cost at most 0.97 % against the reference, in the most extreme case tested (ten boxes opened at once in 4 m³ with 20 air changes per hour). In ordinary cases the difference is about 0.2 %. The room-size graphs use 10-second steps and stay within 0.72 %.
  4. Sampling. Curves are stored every 30 seconds. A second-by-second look finds no peak more than 0.01 % above the stored one, because the lid-opening gas is now spread over a minute.
  5. Time resolution of “time above” and “passed after”. These are counted in half-minute samples, so they are exact to ±30 seconds, not to the second.
  6. Reading the graph. Lines are straight between half-minute points and the hover label rounds to whole minutes, so two readings labelled with the same minute can differ during a fast rise.
  7. A level thinner than half a pixel is not drawn in the room view. On a scale of 750,000 ppm that is a few hundred ppm; the number above the room is still exact.

What this does not show

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