# Pumping a gas into an open container, does the gas displace all the existing air?

I have a 'leaky or open container that I pump 100% N$_2$ gas into at some constant rate. The container, being in a normal room, initially contains air: let's say 20% O$_2$ and 80% N$_2$. Does the partial pressure of oxygen inside the container change?

I'm confident the internal total pressure doesn't change (much). But that could just mean only nitrogen gas is diffusing out, as it is the only gas with a different partial pressure.

The container is actually an incubator for an experiment. I want to know if I'm 'pushing' oxygen out it by pumping N$_2$ into it, or does the O$_2$ partial pressure (in kPa) stay the same and only N$_2$ escapes from the incubator?

• I think you should calculate the partial pressure of O2 outside and inside. Is the container under pressure? Mar 9, 2017 at 10:30
• I would expect the partial pressure of oxygen to decrease exponentially (i.e. fast at first, but with a constant amount of time taken for each additional nine of purity), up until... some point, at which it will stop. In the steady state, what contamination sources would you expect? Mar 9, 2017 at 10:34
• I believe in an equilibrium state, all mole fractions will become statistically constant. Mar 9, 2017 at 13:53
• Wouldn't the location of the entrance nozzle make a difference? The density of oxygen is greater than the density of nitrogen. If the nitrogen is pumped in the top, the result will be different than pumped in the bottom if the box is in a gravitational field. Dec 7, 2017 at 4:00

Unless there is a special mechanism that favors one molecule over another, the rate at which the two species escape will be proportional to their ratio of partial pressures. That is because the probability of the "hole" in the container being hit by either an oxygen or a nitrogen molecule is proportional to the numbers of each kind.

So yes, over time the oxygen will be displaced by the nitrogen, but it's an exponential process. That is, if it take time $t$ to go from 20% to 10%, it will take another $t$ to get to 5%, etc.

I wrote an earlier answer where I do the math for a similar problem.

• but oxygen doesn't just escape--it is bidirectional movement? it is in the outside room too, so air from outside has oxygen that goes into the container too? Mar 10, 2017 at 5:35
• It depends on the shape and size of the opening. If there is significant diffusion going on the above needs adjusting. Maybe I didn't understand the setup well enough. How big is the area of the "leak" and how fast is the flow rate? Mar 10, 2017 at 13:20

What actually happens? It mostly depends on the pump rate, and on the size of the container. Are we discussing 6ft glove box? A 10mL sample tube?

But also, what's your goal here? A slow mixing? Or fast replacement of air? If you want to speed up the replacement of O2 by pure N2, ask that question instead.

Are you injecting nitrogen at mL/hour rates, where the system is completely dominated by diffusion? No? (That's what other answers here assume.)

If instead you're filling the volume quickly, and the gas velocity across your container is cm/sec range (so flow >> diffusion,) then the answer depends on nitrogen and air densities (temperatures,) and upon vertical position of the leak and the feed, and whether your N2 outlet is a small open tube versus a huge pipe stuffed with rags. If the N2 is injected at high velocity from a small hose, then it will form a very NON-laminar jet which entrains and mixes the existing contents of the container. In that case the O2 fraction will decrease slowly, exponentially, except for O2 trapped near corners and crevices, and near the surfaces in boundary layer.

Instead of a turbulent jet, perhaps you'd rather produce a radial laminar flow, where the wave of pure N2 pushes the air ahead of it? If so, then wrap the end of your N2 hose with several layers of cloth, or, form a bag from paper toweling. The turbulent jet is gone, and the N2 now exits uniformly from the surface of this "laminar-izer."

Are you injecting icy-cold nitrogen from a regulator, injected into warm environment? Or, warm nitrogen from a zeolite generator? N2 is a bit less dense than N2O2, but not if its temperature is low. Depending on the relative density, the N2 will either pool at the bottom of your container, or rise to the top. If you're trying to rapidly sweep out the air, then cold dense N2 should be injected from the bottom, with any exit leak-hole at the top. For warm N2, swap the direction.

Finally, if you're trying to rapidly sweep the air out of a large container, then a box or cylinder shape will temporarily retain air as vortices in the corners. To improve things your container should be a sphere, or a cylinder with hemispherical ends. Inject laminar N2 flow through the wall at the center of one hemisphere, with a leak-hole punched through the center of the second hemisphere. As long as the forwards N2 flow rate is large enough that the backwards air diffusion is insignificant, then except for some boundary-layer effects, the growing "pool" of pure N2 will push the air ahead of it.

PS, when in doubt, why not just measure? Find someone with an oxygen detector meter to borrow. Stick the probe tube in your container, measure the N2/O2 percentage versus time.

• Good suggestion for the oxygen meter, assuming they're reliable. Unfortunately no-one I know has one, and I'd need a very small wireless version in my case. Incubator volume is about 50mL, gas flow in range [1-200]cc/min. I want the internal environment equal to the gas I'm supplying (at normal atmos pressure). Mar 10, 2017 at 8:45