Modelling spray and fog on a window pane
One squeeze of a trigger spray bottle puts about 300,000 tiny drops on a pane and still makes no stream; runs start only after a few squeezes. Counting that, and reading the physics of steamed glass beside it, showed what the glass should do with a lot of very small water, and what is still only a design.
Rain was never meant to be alone on the glass. I wanted a spray bottle you could use on it, with water, slime or blood, and on 2 October I added condensation: steamed-up windows that interact with the rain.
Both are the same question at different sizes: what does a lot of very small water do before it becomes drops you can see?
One squeeze only fogs and dots the glass
The research on the spray bottle is dated 1 October, and it works from counts. A trigger squeeze is about 1 mL in 75 to 200 milliseconds. Take 0.9 mL, say 60% of it arrives, over a 20 cm circle: that is a film 17 micrometres thick on average, which is about 300,000 drops of 150 micrometres.
At a 60 degree contact angle (the angle a drop’s edge makes with the glass) each sits as a cap 0.24 mm across, so the first squeeze covers about 44% of the circle.
A drop of water starts to slide at about 10 µL, which is about 5,700 of those tiny drops joined together. So the first squeeze only fogs and dots the glass, and runs start after a few squeezes, once neighbours merge. The research notes that this matches what happens when you spray a window.
You cannot simulate 300,000 drops, so the spray bottle in the code uses parcels, small bundles of spray each tracked as one. One squeeze is 1,000 µL over 120 ms in a hollow cone, 60 degrees for water. The code lands 30% of it, from 10 cm away, as 2,000 parcels of 0.15 µL; they gather as mist until a 2 mm cell holds 0.5 µL, and then they bead.
That 30% is marked an estimate in the code, and it differs from the 60% in the research arithmetic. Distance matters too: spraying close gives drops, spraying from far gives a fine haze.
One rule comes straight from physics. A trigger sprayer cannot atomise a thick liquid, so slime comes out as a stream that breaks into gobs. The tests check it: water and blood spray, slime streams.
Fog blurs what is behind the glass but does not blank it
The next day’s research read the physics of steamed glass. Droplets nucleate (form out of the vapour), grow slowly while separate and faster once they merge, and settle at about 55% coverage for hemispherical drops. When a bead reaches 2 to 3 mm it runs, clears a bare belt, and that belt fogs again with a finer generation.
Fogged glass scatters more than 80% of the light that passes, but some goes straight through the gaps between droplets, so fog blurs the view and leaves it visible.
The fog that exists is a veil and a wipe
Two different things share the word fog here. The fog the site has now is a map per pane that builds up over 30 seconds (an estimate, from a bathroom mirror fogging in well under a minute). On the same side as the rain, drops and runners wipe it clear; on the other side it veils them.
The design written on 2 October goes further: growth laws, bare belts that fog again, wipes that leave a residue. That design is waiting for my approval before any code, and the new parts it names (a fields module, a fog module) are not in the water code.
So steamed glass that reacts to rain exists as a veil and a wipe. Fog that grows, runs and re-fogs exists as research.
Sources and notes (9)
- P&G trigger-sprayer patent US8322630B2 — drop sizes and volume of one squeeze
- Giles, Downey & Squire 2005 (spray drop sizes) — drop size at the start and end of a squeeze
- Beysens 2006, dew nucleation and growth — how fog grows into drops
- Pollet & Pieters 2002, light through fog — how much light fog scatters
- Spray bottle and other liquids — the notes this was written from
- Rain research, round 3 — the notes this was written from; also records his 2 October request for steamed windows, as recorded in the repo
- Rain system design — the notes this was written from
- Spray code — the notes this was written from
- WaterDrops component — the notes this was written from
Water, rain & windAll 11 parts →
