Gas mixer: Nitrox and trimix partial-pressure blending

The calculator works out partial-pressure blends of nitrox and trimix with the real properties of oxygen, helium and nitrogen. Blend to a target tells you how much of each gas to add and what the gauge reads after each step. Top up gives the mix you end up with when you add gas to a cylinder. Continuous blending what the analysers at the compressor intake should read. With a cylinder size entered, every tab also gives the mass and free gas of each gas added.

The simple partial-pressure rule treats every bar as the same amount of gas. At cylinder pressures it isn’t: a bar of helium holds noticeably less gas than a bar of oxygen. A real fill can miss the simple recipe by a few bar, so the calculator shows both.

Background: Blend to a target

Partial-pressure blending

The cylinder is filled with each gas in turn. Each gas adds a certain amount of gas (in mol); the amounts of oxygen, helium and nitrogen at the end must match the target. For oxygen:

x_t \cdot n_t = x_s \cdot n_s + \sum_k g_k \cdot m_k
x_tOxygen fraction of the target
n_tAmount of gas in the cylinder at the target pressure, in mol/L
x_sOxygen fraction of the start mix
n_sAmount of gas in the cylinder now, in mol/L
g_kOxygen fraction of added gas k
m_kAmount of added gas k, in mol/L

The same holds for helium and nitrogen, which gives one equation per component. If one of the amounts comes out below zero, the target cannot be reached from the pressure in the cylinder, and the calculator works out how far to drain it first.

Real gas

The amount of gas in the cylinder follows from its pressure:

n = \frac{p + p_0}{Z \cdot R \cdot T}
nAmount of gas per litre of cylinder, in mol/L
pPressure (gauge) in bar
p_0Atmospheric pressure, 1.013 bar
ZCompressibility factor of the mix at that pressure and temperature
RGas constant, 0.08314 L·bar/(mol·K)
TGas temperature in K

Z depends on the mix: helium-rich mixes have Z well above 1, so a bar of helium holds less gas than a bar of air. The gauge reading after each step is worked out from the amount of gas in the cylinder and its mix at that point, so the order of filling changes the readings in between, but not the end result.

Ideal-gas rule: with Z = 1 the amounts become partial pressures, the classic recipe.

Mass and free gas

With a cylinder size, every amount of gas added becomes a mass and a free-gas volume:

m = \Delta n \cdot V \cdot M
mMass of a gas added in kg
\Delta nAmount of that gas added per litre of cylinder, in mol/L
VWater capacity of the cylinder in L
MMolar mass in kg/mol: oxygen 0.0320, helium 0.0040, air 0.0290
V_\text{free} = \frac{\Delta n \cdot V \cdot R \cdot T}{p_0}
V_\text{free}Free-gas volume at atmospheric pressure and the temperature entered, in L
\Delta nAmount of that gas added per litre of cylinder, in mol/L
VWater capacity of the cylinder in L
RGas constant, 0.08314 L·bar/(mol·K)
TGas temperature in K
p_0Atmospheric pressure, 1.013 bar

Air

Air is taken as 20.9 % oxygen and 79.1 % nitrogen; its argon is counted with the nitrogen, as an oxygen analyser sees it (and with its weight, for the masses).

Limits

All readings are at the temperature entered, once the gas has settled. CoolProp’s mixture model for oxygen, helium and nitrogen is used up to 500 bar.

Background: Top up

Topping up

The gases are added in turn. For each one the calculator finds the amount of gas that makes the gauge reading rise by the amount entered, and from that the new mix. The amount of gas in the cylinder follows from its pressure:

n = \frac{p + p_0}{Z \cdot R \cdot T}
nAmount of gas per litre of cylinder, in mol/L
pPressure (gauge) in bar
p_0Atmospheric pressure, 1.013 bar
ZCompressibility factor of the mix at that pressure and temperature
RGas constant, 0.08314 L·bar/(mol·K)
TGas temperature in K

Z depends on the mix: helium-rich mixes have Z well above 1, so a bar of helium holds less gas than a bar of air.

Ideal-gas rule: with Z = 1 every bar added is the same amount of gas, and the mix follows from the partial pressures.

Mass and free gas

With a cylinder size, every amount of gas added becomes a mass and a free-gas volume:

m = \Delta n \cdot V \cdot M
mMass of a gas added in kg
\Delta nAmount of that gas added per litre of cylinder, in mol/L
VWater capacity of the cylinder in L
MMolar mass in kg/mol: oxygen 0.0320, helium 0.0040, air 0.0290
V_\text{free} = \frac{\Delta n \cdot V \cdot R \cdot T}{p_0}
V_\text{free}Free-gas volume at atmospheric pressure and the temperature entered, in L
\Delta nAmount of that gas added per litre of cylinder, in mol/L
VWater capacity of the cylinder in L
RGas constant, 0.08314 L·bar/(mol·K)
TGas temperature in K
p_0Atmospheric pressure, 1.013 bar

Air

Air is taken as 20.9 % oxygen and 79.1 % nitrogen; its argon is counted with the nitrogen, as an oxygen analyser sees it (and with its weight, for the masses).

Limits

All readings are at the temperature entered, once the gas has settled. CoolProp’s mixture model for oxygen, helium and nitrogen is used up to 500 bar.

Background: Continuous blending

Continuous blending

A blending stick on the compressor intake adds oxygen and helium to the air, so the compressor delivers one mix for the whole fill. The compressor does not change the mix, so the analysers at the intake read the same. That mix must bring the cylinder from its start to the target:

x_m = \frac{x_t \cdot n_t - x_s \cdot n_s}{n_t - n_s}
x_mOxygen fraction the compressor must deliver
x_tOxygen fraction of the target
n_tAmount of gas in the cylinder at the target pressure, in mol/L
x_sOxygen fraction of the start mix
n_sAmount of gas in the cylinder now, in mol/L

The same holds for helium and nitrogen. If one of them comes out below zero, the target cannot be reached from the pressure in the cylinder, and the calculator works out how far to drain it first. The air brings 0.264 parts of oxygen with every part of nitrogen, so a mix with less oxygen than that cannot be made from air, oxygen and helium.

Only oxygen analysers

Helium is added first and oxygen after it, each followed by a mixing section and an oxygen analyser. An oxygen analyser cannot see helium, but the helium thins out the air’s oxygen, so the first analyser shows how much helium is in the stream:

x_1 = \frac{0.209 \cdot x_{\mathrm{N_2}}}{x_{\mathrm{N_2}} + 0.791 \cdot x_{\mathrm{He}}}
x_1Oxygen fraction the first analyser reads, after the helium
x_{\mathrm{N_2}}Nitrogen fraction the compressor must deliver
x_{\mathrm{He}}Helium fraction the compressor must deliver

The second analyser, after the oxygen, reads the oxygen fraction the compressor must deliver. Set the helium first, then the oxygen. At the intake the gas is at atmospheric pressure, so the analysers read the fractions directly.

Real gas

The amounts of gas follow from the pressures:

n = \frac{p + p_0}{Z \cdot R \cdot T}
nAmount of gas per litre of cylinder, in mol/L
pPressure (gauge) in bar
p_0Atmospheric pressure, 1.013 bar
ZCompressibility factor of the mix at that pressure and temperature
RGas constant, 0.08314 L·bar/(mol·K)
TGas temperature in K

Ideal-gas rule: with Z = 1 the amounts become partial pressures.

Mass and free gas

With a cylinder size, every amount of gas added becomes a mass and a free-gas volume:

m = \Delta n \cdot V \cdot M
mMass of a gas added in kg
\Delta nAmount of that gas added per litre of cylinder, in mol/L
VWater capacity of the cylinder in L
MMolar mass in kg/mol: oxygen 0.0320, helium 0.0040, air 0.0290
V_\text{free} = \frac{\Delta n \cdot V \cdot R \cdot T}{p_0}
V_\text{free}Free-gas volume at atmospheric pressure and the temperature entered, in L
\Delta nAmount of that gas added per litre of cylinder, in mol/L
VWater capacity of the cylinder in L
RGas constant, 0.08314 L·bar/(mol·K)
TGas temperature in K
p_0Atmospheric pressure, 1.013 bar

The oxygen from the supply is the oxygen of the mix less what the air brings; all the helium comes from the supply.

Air

Air is taken as 20.9 % oxygen and 79.1 % nitrogen; its argon is counted with the nitrogen, as an oxygen analyser sees it (and with its weight, for the masses).

Limits

All readings are at the temperature entered, once the gas has settled. CoolProp’s mixture model for oxygen, helium and nitrogen is used up to 500 bar.

Scroll to Top