Window condensation and dew point — computational examples
Executed on 2026-11-09: macOS 27.0.1, arm64, CPython 3.12.14.

Run from the extracted archive:
  python3 window-dew-point-lab.py --svg rerun.svg > rerun.json

The script uses the Python standard library. The optional --svg argument
writes the computed diagram to the supplied path. All inputs are teaching
scenarios. The archive contains the script, recorded JSON, original SVG,
and this note. Environment metadata may differ on another host.

The model uses the 273–303 K row of the NIST Chemistry WebBook Antoine
coefficients for water. Temperatures in Celsius are converted to kelvin
and the output in bar is converted to kPa. The lab restricts air, surface,
and calculated liquid-water dew-point temperatures to 0–29.85 °C.
It uses the pure-water saturation pressure as an approximation for air.

The seven scenarios change room temperature, relative humidity, or
surface temperature. Assertions cover the threshold, saturated air,
five rejected inputs, and examples comparing outdoor and indoor
water-vapor partial pressure. The interval example combines assumed
input ranges and does not assign probabilities. Glass temperatures
are supplied as inputs. The calculation does not model condensate
mass, heat transfer, airflow, or frost. No room or window was measured.

Primary sources checked 2026-11-09:
https://forecast.weather.gov/glossary.php?word=dwpt
https://www.weather.gov/asos/AmbientDewPointTemperature.html
https://webbook.nist.gov/cgi/cbook.cgi?ID=C7732185&Mask=4
