Gas blending is the process of mixing gases for a specific purpose where the composition of the resulting mixture is specified and controlled. A wide range of applications include scientific and industrial processes, food production and storage and breathing gases.
Gas mixtures are usually specified in terms of molar gas fraction (which is closely approximated by volumetric gas fraction for many permanent gases): by percentage, parts per thousand or parts per million. Volumetric gas fraction converts trivially to partial pressure ratio, following Dalton's law of partial pressures. Partial pressure blending at constant temperature is computationally simple, and pressure measurement is relatively inexpensive, but maintaining constant temperature during pressure changes requires significant delays for temperature equalization. Blending by mass fraction is unaffected by temperature variation during the process, but requires accurate measurement of mass or weight, and calculation of constituent masses from the specified molar ratio. Both partial pressure and mass fraction blending are used in practice.
Main article: Shielding gas
Shielding gases are inert or semi-inert gases used in gas metal arc welding and gas tungsten arc welding to protect the weld area from oxygen and water vapour, which can reduce the quality of the weld or make the welding more difficult.
Gas metal arc welding (GMAW), or metal inert gas (MIG) welding, is a process that uses a continuous wire feed as a consumable electrode and an inert or semi-inert gas mixture to protect the weld from contamination.  Gas tungsten arc welding (GTAW), or tungsten inert gas (TIG) welding, is a manual welding process that uses a nonconsumable tungsten electrode, an inert or semi-inert gas mixture, and a separate filler material.
Main article: Modified atmosphere/modified humidity packaging
Modified atmosphere packaging preserves fresh produce to improve delivered quality of the product and extend its life. The gas composition used to pack food products depends on the product. A high oxygen content helps to retain the red colour of meat, while low oxygen reduces mould growth in bread and vegetables.
See also: Gas blending for scuba diving
A breathing gas is a mixture of gaseous chemical elements and compounds used for respiration. The essential component for any breathing gas is a partial pressure of oxygen of between roughly 0.16 and 1.60 bar at the ambient pressure. The oxygen is usually the only metabolically active component unless the gas is an anaesthetic mixture. Some of the oxygen in the breathing gas is consumed by the metabolic processes, and the inert components are unchanged, and serve mainly to dilute the oxygen to an appropriate concentration, and are therefore also known as diluent gases.
Gas blending for scuba diving is the filling of diving cylinders with non-air breathing gases such as nitrox, trimix and heliox. Use of these gases is generally intended to improve overall safety of the planned dive, by reducing the risk of decompression sickness and/or nitrogen narcosis, and may improve ease of breathing.
Gas blending for surface supplied and saturation diving may include the filling of bulk storage cylinders and bailout cylinders with breathing gases, but it also involves the mixing of breathing gases at lower pressure which are supplied directly to the diver or to the hyperbaric life-support system. Part of the operation of the life-support system is the replenishment of oxygen used by the occupants, and removal of the carbon dioxide waste product by the gas conditioning unit. This entails monitoring of the composition of the chamber gas and periodic addition of oxygen to the chamber gas at the internal pressure of the chamber.
The gas mixing unit is part of the life support equipment of a saturation system, along with other components which may include bulk gas storage, compressors, helium recovery unit, bell and diver hot water supply, gas conditioning unit and emergency power supply
The anesthetic machine is used to blend breathing gas for patients under anesthesia during surgery. The gas mixing and delivery system lets the anesthetist control oxygen fraction, nitrous oxide concentration and the concentration of volatile anesthetic agents. The machine is usually supplied with oxygen (O2) and nitrous oxide (N2O) from low pressure lines and high pressure reserve cylinders, and the metered gas is mixed at ambient pressure, after which additional anesthetic agents may be added by a vaporizer, and the gas may be humidified. Air is used as a diluent to decrease oxygen concentration. In special cases other gases may also be added to the mixture. These may include carbon dioxide (CO2), used to stimulate respiration, and helium (He) to reduce resistance to flow or to enhance heat transfer.
Gas mixing systems may be mechanical, using conventional rotameter banks, or electronic, using proportional solenoids or pulsed injectors, and control may be manual or automatic.
Providing reactive gaseous materials for chemical production processes in the required ratio
Protective gas mixtures may be used to exclude air or other gases from the surface of sensitive materials during processing. Examples include melting of reactive metals such as magnesium, and heat treatment of steels.
Calibration gas mixtures are generally produced in batches by gravimetric or volumetric methods.
The gravimetric method uses sensitive and accurately calibrated scales to weigh the amounts of gases added into the cylinder. Precise measurement is required as inaccuracy or impurities can result in incorrect calibration. The container for calibration gas must be as close to perfectly clean as practicable. The cylinders may be cleaned by purging with high purity nitrogen, the vacuumed. For particularly critical mixtures the cylinder may be heated while being vacuumed to facilitate removal of any impurities adhering to the walls.
After filling, the gas mixture must be thoroughly mixed to ensure that all components are evenly distributed throughout the container to prevent possible variations on composition within the container. This is commonly done by rolling the container horizontally for 2 to 4 hours.
Several methods are available for gas blending. These may be distinguished as batch methods and continuous processes.
Batch gas blending requires the appropriate amounts of the constituent gases to be measured and mixed together until the mixture is homogenous. The amounts are based on the mole (or molar) fractions, but measured either by volume or by mass. Volume measurement may be done indirectly by partial pressure, as the gases are often sequentially decanted into the same container for mixing, and therefore occupy the same volume. Weight measurement is generally used as a proxy for mass measurement as acceleration can usually be considered constant.
The mole fraction is also called the amount fraction, and is the number of molecules of a constituent divided by the total number of all molecules in the mixture. For example, a 50% oxygen, 50% helium mixture will contain approximately the same number of molecules of oxygen and helium. As both oxygen and helium approximate ideal gases at pressures below 200 bar, each will occupy the same volume at the same pressure and temperature, so they can be measured by volume at the same pressure, then mixed, or by partial pressure when decanted into the same container.
The mass fraction can be calculated from the molar fraction by multiplying the molar fraction by the molecular mass for each constituent, to find a constituent mass, and comparing it to the summed masses of all the constituents. The actual mass of each constituent needed for a mixture is calculated by multiplying the mass fraction by the desired mass of the mixture.
Also known as volumetric blending. This must be done at constant temperature for best accuracy, though it is possible to compensate for temperature changes in proportion to the accuracy of the temperature measured before and after each gas is added to the mixture.
Partial pressure blending is commonly used for breathing gases for diving. The accuracy required for this application can be achieved by using a pressure gauge which reads accurately to 0.5 bar, and allowing the temperature to equilibrate after each gas is added.
Also known as gravimetric blending. This is relatively unaffected by temperature, and accuracy depends on the accuracy of mass measurement of the constituents.
Mass fraction blending is used where great accuracy of the mixture is critical, such as in calibration gases. The method is not suited to moving platforms where the accelerations can cause inaccurate measurement, and therefore is unsuitable for mixing diving gases on vessels.
Continuous gas blending is used for some surface supplied diving applications, and for many chemical processes using reactive gas mixtures, particularly where there may be a need to alter the mixture during the operation or process.
These processes start with a mixture of gases, usually air, and reduce the concentration of one or more of the constituents. These processes can be used for the production of Nitrox for scuba diving and deoxygenated air for blanketing purposes.
See also: Breathing gas analysis
Gas mixtures must generally be analysed either in process or after blending for quality control. This is particularly important for breathing gas mixtures where errors can affect the health and safety of the end user.
Oxygen content is relatively simple to monitor using electro-galvanic cells and these are routinely used in the underwater diving industry for this purpose, though other methods may be more accurate and reliable.