Fundamentals / Physics / Thermodynamics and statistical physics / Notebooks

Why a leaking binary mixture changes its composition

Two nonreacting species share a vessel at fixed temperature. Their pressures initially add according to the ideal-gas law, but the molecules hitting a small hole have a speed bias. Predict whether the gas left behind or the gas escaping initially is richer in the light species.

Try it · Effusion mixture

Change the inputs and compare the recalculated curves with the preceding derivation and baseline figure. The axes give the units; the numerical readout states the model assumptions and any limiting cases. Reset the inputs to return to the reference setting.

Download the corresponding editable notebook. The browser recalculates the reduced equations directly; the notebook exposes the full calculation and its checks.

Save notebook (.ipynb)

Python runs on this device. The first run loads the scientific libraries.

Integrate the separate number balances

The ratio of depletion rates follows the inverse square root of mass. Use two time constants to compute the composition inside the vessel, in the instantaneous beam, and in the collection integrated since the start.

Compare count rates with collected composition

At very late times the instantaneous beam becomes mostly heavy even though the first collected atoms were enriched in the light species. Collecting nearly every original atom must eventually reproduce the initial composition.