funwithscience.net · gas containment lab

Does Gas Need a Container?

A classic chemistry demo shows orange bromine vapour rushing into a vacuum the moment a valve opens. Flat-earth videos use it to argue that air cannot sit next to the vacuum of space without a dome. The demo is real. What it leaves out is the size of the apparatus compared with the height at which gravity starts to win. This lab puts both forces on screen with real numbers.

bromine (Br₂, 160 g/mol) air (29 g/mol) where gravity and pressure balance (theory)
Push: pressure difference between the bulbs, bottom − top
—
Hold: the difference gravity sustains at balance
—
Scale height of bromine, H = RT / Mg
—
Bulb separation ÷ scale height, Δz / H
—
Forces on the highlighted column of gas between the bulb centres · 1 m² cross-section
▲ pressure below × A = — ▼ pressure above × A = — ▼ weight of the column = — net = —
Second law ledger · per mole of bromine, measured from the dots, relative to the sealed start, at fixed temperature
ΔStotal = ΔSgas + ΔSsurroundings = ΔSgas − M·g·Δz̄ / T  ≥ 0
ΔS gas: entropy gained by spreading out
—
ΔS surroundings: heat drawn in to lift the gas
—
ΔS total, now
—
ΔS total if the gas were forced to fill evenly
—
The second law, with the algebra

"Gas must spread evenly because entropy always increases" is the second law for an isolated gas with no forces on it. With gravity present, lifting gas costs energy, and at constant temperature that energy arrives as heat from the surroundings, which lowers their entropy by Q / T. The law applies to the total:

ΔStotal = ΔSgas − ΔUgravity / T ≥ 0   (the same statement as: free energy F = U − TS can only fall)

Write that per mole for a gas with density profile n(z), then ask which profile makes it largest for a fixed amount of gas:

maximise  −R ∫ n ln n dV − (M g / T) ∫ n z dV   ⟹   R ln n + M g z / T = constant   ⟹   n(z) = n₀ · e−Mgz / RT

The barometric profile is therefore the maximum-entropy state, the one the second law drives the gas toward. An even fill is the special case g = 0, or a container so short that Mgz / RT is effectively zero, which is every bench demo. The ledger above tracks all three terms live, and the last cell shows what an even fill would score.

What to notice

Open the valve at the default settings and the bromine fills the top bulb in a few hundredths of a second of real time in this model. Gravity is switched on the whole time, at full Earth strength. It loses because the bulb centres sit 17 cm apart and bromine's scale height is 1.6 km: the weight of that little gas can only support a pressure difference of about one pascal, against a push of tens of thousands.

Now change the odds. Make the same apparatus kilometres tall, or turn gravity up by a factor of ten thousand, and open the valve again. The top bulb stays visibly thinner even though the valve is wide open and nothing stops the gas rising into it. There is still a glass roof, and it still carries some load: at 6 km the glass at the very top feels about 2% of the pressure at the bottom, and at 20 km about 0.0003%. The taller the column, the less the lid has to do, which is the limit the later tabs take. Nothing about the gas changed. Only Δz / H did.

Their side of it

The flat-earth reading of this demo is correct as far as it goes: at bench scale a gas really does fill whatever volume it is given, and you really do need glass to keep it in. Nobody disputes that. The claim that fails is the extrapolation, that the same must hold for a layer of gas a hundred kilometres deep. A fair test of that is to scale this exact apparatus up and see if the behaviour changes. It does.

The other common objection is "pressure needs a container by definition." Press Air in the top bulb to see what does the containing when gas meets gas: each layer is held by the pressure of the layer next to it. The later tabs show the same thing with the weight of the gas above.

What the model is, and isn't

Every dot is a real ballistic particle: it flies in a straight line, falls under the gravity you set, collides with other dots (conserving momentum and energy), and leaves the glass with a speed drawn from the wall temperature. The pressure profile on the right is counted from the dots, never painted on. The dashed line is the textbook prediction, P(z) = P₀·e−z/H.

The simplifications, stated plainly:

Mixing speed is not to scale. Each dot stands for an enormous number of molecules. The dots travel about a third of a bulb radius between collisions, where real molecules manage about a ten-millionth of a metre. So this model cannot show how slow real diffusion into air is: here it takes roughly twice as long as into a vacuum, while in a real tube it takes tens of minutes. Use the air case for where the gas ends up, not how fast.

One temperature throughout. Any individual dot slows as it climbs and speeds up as it falls, but the mix of speeds you find at every height is the same. Only the number thins out. The real lower atmosphere is not isothermal; it cools with height, which changes the numbers but not the argument.

Ideal gas, uniform gravity, 2D. Real bromine would condense above about 23 kPa at 20 °C, or at any pressure shown once it is cold enough; the sliders go beyond that to show the trend. Gravity is held constant with height (real g falls about 0.6% over 20 km). The entropy figures are for this flat flask; a 3D pair of spheres gives slightly different values (about +0.93 and −3.73 at 6 km instead of +0.97 and −3.77) with the same signs. At the most extreme corners, a 20 km flask under thousands of g, the gas is a film thinner than one chart bar and the numbers are approximate.