Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases

Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gasesWhen a gas flows through a pipe, the pressure variation from one point to another is influenced by the density and the viscosity of the gas. Readily available software programs [1] for simulating the flow of gases through piping systems are written around single component gases of known density and viscosity. These programs may make erroneous predictions where the pumped gas is a mixture of gases for which the density and viscosity of the particular mixture have not been determined. The calculation error will increase if the component gases are significantly different in density and viscosity. An example of a gas mixture commonly pumped is coal seam gas, which is typically a mixture of air and methane in varying proportions depending on the source. (Note that although air is itself a mixture, its density and viscosity are known. Air can therefore be treated as a single component gas in the pipe-flow software.)

In Section A of this note, we present a calculation method for determining the effective density and the effective viscosity of a multi-component gas mixture from the known densities and viscosities of the component gases. Using calculated effective density and effective viscosity in pipe-flow software will enable more accurate simulations of the flow of gas mixtures.

We also present an example pressure drop calculation in Section B and compare the outcome of this with the result determined from a Computational Fluid Dynamics (CFD) simulation and an actual pressure drop measurement in the field (with the comparisons shown in Section C).

Section A: Derivation of effective density and viscosity of multi-component gas mixture

The following method may be applied to a gas mixture containing any number of component gases. For simplicity, we will present the method for a mixture of 2 gases; gas A and gas B.

We can calculate the density of each component in the mixture as follows
Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases (1)
Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases (2)
where Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases and Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases are the densities of the 2 gases; Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases and Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases are the respective molecular weights; Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases is initial pressure of flow at the inlet; Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases is universal gas constant; and Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases is the absolute temperature.

The density of the mixture is calculated, using
Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases (3)
where Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases and Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases are the mole (or volume) fractions of the components. Note that the total value of mole must be unity (Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases + Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases =1).

And, the dynamic viscosity of the mixture is determined from
Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases
where Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases and Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases are the dynamic viscosities of the 2 gases.

Section B: Pipeline pressure drop calculation using the effective properties
The following example shows how the effective density and the effective viscosity may be used to calculate the pressure drop resulting from the flow of a gas mixture through a section of pipe. Again, for simplicity, the example derivation is provided for horizontal section of straight pipe.

Knowing the flow velocity (Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases) and diameter of the pipe (Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases), we can determine the Reynolds number
Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases (5)

The friction factor can be calculated using Zigrang-Sylvester equation
Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases (6)
where Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases is Fanning friction factor and Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases is equivalent sand-grain roughness height of the pipe.

Finally, the pressure drop can be determined
Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases (7)
where Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases is the pressure drop between the measurement points in the pipe and Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases is the distance between the two measurement points.

Section C: Comparing the theoretical method with the results from a Computational Fluid Dynamics (CFD) simulation
Another method of analysing the flow of gas through a pipe is to make a CFD simulation. In this section we will compare the pressure drop obtained by the theoretical method, with that obtained by a CFD simulation. The pressure drop is measured over a 5 metre long section of horizontal and straight 203.2 mm (8”) ID pipe transporting coal seam gas (a mixture of air and methane). The test section is assumed to be remote from entry and exit effects.
In this experiment, the distance Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases , between pressure tappings is 5m; the mass flow at the inlet to the section is 2.6 kg/s with the mole fraction of air being 0.3 and methane 0.7; the sand-grain wall roughness, Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases , is 0.15mm; ambient temperature (Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases) is Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases; ambient pressure (Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases) is 1 atm; universal gas constant, Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases, is 8.1345 Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases ; molecular weight of air and methane are Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases=0.0289664 kg/mol and Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases=0.016043 Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases ; gauge pressure at the inlet is measured at 2.786 kPa (= 0.404 psi).

The section of pipe considered is shown below

Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases
Figure 1: Pipe geometry and measurement points

Using the above data, the theoretical calculations as in sections A and B above compare with the CFD simulation result illustrated in Appendix 1 as follows:
Theoretical Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases for coal gas = 1.765 kPa (= 0.256 psi)
CFD simulation Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases for coal gas = 1.669 kPa (= 0.242 psi)
The theoretical result compares within approximately + 5% of the measured pressure drop of CFD test.
The above results compare with the following results determined using either air or methane, rather than the mixture:
Theoretical Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases for AIR only = 1.220 kPa ( = 0.177 psi)
CFD simulation Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases for METHANE only = 2.110 kPa ( = 0.306 psi)
As can be seen, the use of calculated gas mixture density and viscosity, rather than the individual gas properties, improves the pressure drop calculation accuracy by approximately 20% to 31%, depending on the individual gas chosen.

Concluding remarks
In this note, we have presented a calculation method that can be used to determine the effective density and effective viscosity of multi-component gas. The calculation method allows gas pipeline pressure drop software written for single component gases to provide more accurate simulations where the gas is a multi-component mixture, with a typical example being coal seam gas. It can be seen that the present analytical result is in good agreement with the CFD simulation.

Apart from pressure drop, the effective density and viscosity of the multi-gas mixture can be used for other applications where the conveyed gas is a mixture. For example, the effective density can be used in calculating mass flow rate of methane and air mixture after being pumped through a blower (given that both the pressure and temperature at the blower discharge nozzle are increased by specified values).

In this note, we include sufficient equations to enable readers to derive the effective density and viscosity of a gas mixture, given the properties of the component gases. This calculation method is provided free of any copyright restrictions. However, for users wanting to derive gas mixture properties without resorting to the mathematics, we offer a ready-to use Mathcad spreadsheet at a charge of AUD $45.00 including GST. The spreadsheet includes modifiable fields to suit your needs and can be used with the free version of Mathcad. Please contact us at info@caebay.com if you require the spreadsheet.

Appendix 1: CFD and analytical result comparison

CFD pipe geometry and meshing

Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gasesMethane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases

CFD pressure and velocity

Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases

Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases

CFD pressure drop over a 5m length

Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases psi

Analytic pressure drop over a 5m length

Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases psi

Difference between CFD and analytical solutions

Diff Methane-Air-Mixture-PDF-Icon Introducing a calculation method for determining the effective density and the effective viscosity of a gas mixture to improve the accuracy of pipe-flow software developed for single component gases

 

References:
[1] Available pressure drop calculators: http://www.pressure-drop.com/Online-Calculator/, http://www.tribology-abc.com/calculators/pipeflow_fluid.htm, http://www.freecalc.com/fricfram.htm, https://www.lmnoeng.com/Pressure/PressureDrop.php, and https://www.pipeflow.com/pipe-pressure-drop-calculations
https://www.pipeflow.com/pipe-pressure-drop-calculations (accessed on 6 Jan 2019)
[2] Pipe flow calculations - Clarkson University
[3] Gas mixtures and properties - Engineering Tool Box
[4]Gas viscosity - Petro Wiki.

Acknowledgements. The author would like to thank Cliff Walker of Vacmobiles.com for his insightful comments and suggestions that greatly improved the quality of this note. Any errors that remain, of course, are the author’s own.

Copyright. CAEbay endeavours to contribute its knowledge towards engineering progress. This note is free for any use, either commercial or educational, that could make products better and safer. However, if published elsewhere, acknowledgement of the source would be much appreciated.

Disclaimer of reliability. The information in this note is correct to the best of our knowledge. However, because material supply and manufacturing quality are outside our control, all recommendations are made without guarantee on the part of the author or CAEbay. The author and CAEbay disclaim any liability in connection with the use of this information.

Feedback or queries on this note? We are keen to improve the accuracy and value of CAEbay’s notes. If you have any feedback or queries, please email info@caebay.com. We would be pleased to hear from you!