Abstract
Pigging technology is widely used in the oil and gas industry. During the course of pigging, after a water pressure test, the instability of the pig caused by terrain fluctuation can affect the stable operation of the pipeline and even cause burst accidents. This paper describes the four stages of pig movement in an inclined pipeline, with vapor-liquid eruption occuring in the last stage. A hydraulic transient model of the pigging operation after a water pressure test is established based on mass conservation and motion equations, the dynamic equation of the pig, and the vapor-liquid eruption model. The model can simulate the status of fluid flow in the pipeline, track the movement of the pig, and predict the pressure pulses. The simulation results are consistent with the data of two burst accidents, which verifies the correctness of the established model and the reliability of the calculated results. It can therefore provide a reliable and effective theoretical basis for developing a pigging plan on site.
HIGHLIGHTS
A hydraulic transient model is established based on mass conservation and motion equations of flow, dynamic equation of pig and vapor-liquid eruption model.
The model can simulate the fluid flow, the pig movement and the pressure pulses values.
Results are consistent with the data of two burst accidents.
NOMENCLATURE
- x
Distance along the pipeline (m)
- a
Acoustic speed of fluid (m/s)
- e
The thickness of pipe (m)
- f
Friction factor
- g
Gravity acceleration (m·s−2)
- m
The index number of Darcy formula
- t
Time (s)
- A
Cross-sectional area of pipeline (m2)
- D
Diameter of the pipeline (mm)
External diameter of the pipeline (mm)
- E
Modulus of rigidity of the pipe (MPa)
- K
Bulk modulus of elasticity of the liquid (MPa)
- H
Water head of fluid (m)
Pig mass (kg)
- P
Pressure (Pa)
Angle between axis and horizontal direction (rad)
Volumetric fraction of gas
Wall thickness of the pipe (mm)
Kinematic viscosity of liquid (m2/s)
Dimensionless parameter that describes the effect of pipe constraint conditions on the wave speed
Poisson's ratio of the pipe
Cross-sectional area of liquid flow (m2)
Cross-sectional area of gas flow (m2)
Fanning friction factor of gas-liquid interface
Fanning friction factor of gas phase
Fanning friction factor of liquid phase
Water head for unknown point (m)
- ,
Water head for given points (m)
Wetted perimeter of liquid flow (m)
Wetted perimeter of gas flow (m)
Length of gas-liquid interface (m)
Reference pressure (Pa)
Vapor phase pressure (Pa)
Pressure on the upstream face of the pig (Pa)
Pressure on the downstream face of the pig (Pa)
Maximum allowable hydrostatic pressure (MPa)
Test pressure on the highest point (MPa)
Hydrostatic pressure (MPa)
Volume rate of liquid (m3/s)
Volume rate for unknown point (m3/s)
- ,
Volume rates for given points (m3/s)
Liquid phase velocity (m/s)
Gas phase velocity (m/s)
Pig velocity(m/s)
Shearing stress of gas-liquid interface (Pa)
Shearing stress of gas phase (Pa)
Shearing stress of liquid phase (Pa)
Density of liquid (kg/m3)
The mean density (kg/m3)
Reference volumetric fraction of gas
Hoop stress (MPa)
Yield strength (MPa)
The axial contact kinetic friction (Pa)
INTRODUCTION
With the wide application of pigging technology in the oil and gas industry, especially in the construction and operation of long-distance pipelines over undulating terrain, pipeline pigging technology has received more and more attention. The global long-distance oil and gas pipelines have reached 2,057,944.9 km, and 196,368 km are planned in the future (Wang et al. 2015). Before a new oil/gas pipeline goes into production, it is necessary to test its strength and tightness with the pipeline water pressure test. After the pressure test, the pipeline must be depressurized, and then an air compressor is used for gas injection. The fluid state of the pipeline changes continuously during the pigging process, which is a transient process. The pig pushes the liquid out of the pipe. When the pig is close to the end of the pipe, the pig quickly pushes the downstream liquid and the displacement increases significantly. As the speed of the water flow increases, its disturbance also increases. Meanwhile, the sludge at the bottom of the pipe will be discharged along with the water. The discharged water is first turbid and yellow, then the water quality returns to being clear, and there is a gas-liquid eruption at the end, as shown in Figure 1.
Even in the pigging process after the water pressure test of an undulating pipe, although the pipeline production process (such as the mechanical properties) and the operation process (such as the construction, the pressure test, and the pigging process) meet the specification requirements, the interaction of the medium inside the pipe can still cause instantaneous overpressure, which eventually leads to a pipe burst accident (Luo et al. 2011), as shown in Figure 2. So, it is necessary to study the transient pigging characteristics for the gas-liquid eruption and overpressure problems in the pigging process.
At present, researchers have carried out a lot of pigging experiments and numerical calculations. McDonald & Baker (1964) first proposed a model that can describe the pigging process of a gas-liquid two-phase flow pipeline. The model uses some steady-state processing methods, including liquid holdup and two-phase flow drop correlation. Barua (1982) improved the McDonald model but retained a steady-state model. Kohda et al. (1988) solved the pigging model based on a two-phase transient flow equation in a fixed coordinate system, which can predict the movement law of the pig. Minami & Shoham (1996) studied the quasi-steady-state pigging model in a fixed coordinate system in order to predict the position of the pig, the position of the liquid plug in front of the pig and the pressure difference before and after the plug. However, this model does not apply to the gas lift with a large amount of gas accumulation in front of the pig and the physical model of the ball clearing. Campo & Rachid (1997) first introduced the method of characteristics (MOC) into the pipeline pigging study. Azevedo et al. (2003) proposed the use of the finite difference method to simulate pigging under isothermal conditions, using steady-state assumptions and fluid incompressibility assumptions. Xu & Gong (2005) studied the pigging process of rich gas pipelines, and coupled the phase state model in the pigging simulation, which can simulate the transient process of the pigging process.
In order to accurately predict the actual operating state of the pigging process, researchers began to study the single-phase pigging process in the 1980s, and proposed different transient pigging models. Nguyen & Kim (2001) proposed the pig power model of the gas pipeline and the calculation method of the pig power model at the 90° elbow, using MOC strategy and a rectangular grid to predict the gas transient process in the pipeline. The Runge-Kutta iteration is also used to solve the dynamic equation of the pig. Esmaeilzadeh et al. (2009) proposed a non-steady-state pig model based on the Nguyen model, which is closer to the actual gas pipeline pigging process, and used the characteristic line method to solve the fluid equation and the Runge-Kutta mathematical method to solve the momentum equation of the pig. The model is able to predict the instantaneous pressure of the gas in the pipeline. Based on the previous model, the bypass model of the pipeline pig at constant temperature and high pressure was proposed (Hosseinalipour et al. 2007). Tolmasquima & Nieckele (2008) used the finite difference method to couple the motion equation of the pig, which can accurately predict the running speed of the pig.
It is observed that there is massive gas-liquid eruption at the outlet, forming a large gas-liquid column in the late stage of field pigging. Such phenomena are also described in the relevant literatures (Zhao et al. 2013). These papers analyze the hydraulic state of the pipe flow, and establish the liquid plug movement and the compressible fluid dynamics models. The influences of the development, propagation, and reflection of the water pressure wave on the fluid state in the pipe are described. However, the effects of the gas-liquid eruption are not taken into consideration based on the pig transient model. Figure 3 shows the pig entering the downdip pipe. The downdip pipe section close to the end accumulates gas within a certain range, thus forming slack flow. When the pig reaches a local high point, it will push the front air pocket and the liquid column downward at a high speed, and compress the air pocket enclosed in the downhill section, resulting in its pressure increase (Figure 3(a)). For a horizontal or slightly up-dip pipe, when the compressed cavitation moves near the end of the pipe's outlet, the gas collects at the top of the pipe and the liquid flows under the cavitation, forming a stratified flow with a smooth interface. As the liquid is further discharged, the gas accumulates at the top, the gas-liquid interface then develops to the outlet, and finally the cavitation will be connected to the outside atmosphere (Figure 3(b)). And since the pressure of the cavitation is much higher than the atmospheric pressure, the gas velocity will suddenly increase, forming a wavy flow at the gas-liquid interface. As the liquid is discharged, the resistance of the gas decreases gradually, while the speed is further increased; the waves are intensified, which can reach the upper part of the pipe wall, and then part of the liquid is carried away by the high-speed airflow forming an impulse flow (Figure 3(c)). When the airflow speed continues to increase and the liquid level reaches a certain height, the turbulent pulsation is intense under the disturbance of the high-speed airflow. The gas flowing at high speed tends to mix with the liquid flowing below, and the gas is dispersed into the fluid in the form of small bubbles. Finally, the flow pattern is converted into the dispersed bubble flow (Figure 3(d)). This entire process takes place in a very short period of time and eventually leads to a gas-liquid eruption.
Most of the existing pig power models are based on steady-state or quasi-steady-state assumptions, but in fact, the pig's movement is unsteady during the pigging process. Due to the compressibility of air, the pressure and flow changes can cause the motion state of the pig to change constantly. Hence the motion characteristics described by the steady-state pigging kinetic model are quite different from the actual ones, and the movement patterns of pigs cannot be accurately predicted. That is to say, the published transient models have their limitations and are not suitable for pigging calculations after the water pressure test. The theoretical studies on single-phase flow are relatively mature. However, little research has been done on the effects of pig movement on hydraulic transients during the drainage process, especially the instantaneous high-pressure mechanism of gas-liquid two-phase flow. For the study of the pigging process after a water pressure test of the undulating pipe, researchers have only adopted the pig power model, and simply combined the single-phase or multi-phase pipe flow characteristics to approximate the hydraulic characteristics of the pigging process. However, they have ignored the interaction between the kinetic characteristics of the pig and the hydraulic characteristics of the upstream and downstream fluids, which is crucial for studying the mechanism of instantaneous high-pressure generation during the drainage process. After the water pressure test, the hydraulic transient in the pigging process is complicated, and many influencing factors need to be taken into consideration, which increases the difficulty of establishing a mathematical model.
MATHEMATICAL METHODS
In order to obtain the medium velocity and pressure field and the pig's movement in the pigging process, it is necessary to solve the fluid continuity equation, momentum equation, pig motion equation and the gas-liquid eruption model.
Liquid equations and MOC
The calculation formula f in the turbulent mixed region is complicated, and it is difficult to obtain the form of the Leapienzon formula. There are two approximate calculation formulas (Equations (7) and (8)).
When the ratio of wall thickness to pipe diameter is small, the stress distribution on the pipe wall is uneven. Therefore, when is less than 25, Halliwell (1963) pointed out that the following situations need to be considered:
- (1)
- (2)
- (3)
There are three main methods for the gas-liquid flow equation: MOC, the wave characteristics method, and the finite different method. Wylie & Streeter (1983) proposed MOC for solving the partial differential equation of transient flow. This method can be used to analyze the unstable flow of the pipeline during the pigging process after the water test. First, the partial differential equation is transformed into the ordinary differential equation. Then the ordinary differential equation is transformed into a difference equation by mathematical methods.
The finite difference method uses differential instead of differentiation to replace the difference equations, and then solves them to obtain an approximate solution.
For accuracy and convenience of calculation, the approximate calculation method by Streeter & Wylie (1967) is used to calculate the hydraulic friction term.
Pig motion equation
Unlike the steady-state calculation, the pig's speed in the pigging process is not preset in the transient pigging calculation because it is difficult to control in practice. The key to establishing a transient pigging model is to find the position of the pig at each time step to track the pig. The Euler-Lagrange method is adopted to calculate the boundary motion of the pig. For the upstream and downstream media that are completely blocked by the pig, the flow equation is solved by MOC strategy on a fixed double grid. Combined with the pig power model, the pig speed can be obtained. Substituting the pig speed into the medium flow relationship to obtain a new pressure iteratively solves it until the preset accuracy is met. The pigging speed can be figured out once the iteration terminates.
Vapor-liquid eruption model
The vapor-liquid phases are thoroughly mixed under strong disturbance, so they can be treated as single-phase medium to deal with two-phase fluid kinetic problems. The homogeneous flow model has higher accuracy in dealing with the flow of such homogeneous mixed media.
- (1)
The velocity of the gas and the liquid are the same, and thus the slip between phases is 0.
- (2)
The two-phase medium is in a state of kinetic equilibrium, and the pressure of the gas and the liquid are the same.
- (3)
The two-phase medium is in a thermodynamic equilibrium state. This state is valid in isothermal fluids.
MacCormack (2003) proposed a discrete method for hyperbolic partial differential equations, which is a finite difference form with second-order accuracy. Because of its simple application, this method is widely used in the field of computational fluid dynamics. The method is applied to the above equations in two steps: prediction and correction.
- (1)
Prediction
The predicted value of density is only a first-order accuracy, because only the liner terms in the Taylor expansion are included.
- (2)
Correction
Since stratified flow appeared at the end of the pipeline before the gas-liquid eruption occurred, the stratified flow analysis model was used to obtain the initial parameters of the eruption calculation. Taitel & Dukler (1976) performed a mechanical analysis of the stratified flow in horizontal and near-horizontal pipe flow. The results show that in the case of medium-high liquid phase load and low flow rate, it can be approximated that the interface between the gas and liquid phases is flat (as shown in Figure 5), and there are no entrained droplets in the gas flow. The momentum change caused by mass exchange between gas and liquid phase was not considered.
RESULTS AND DISCUSSION
In the pipeline where the pipe burst occurred, the pipe length for the pigging operation is 6.971 km. The gas injection point (point A), with an elevation of 737.18 m, is the highest point. In addition, the bottom of the V-shaped gully (point C) has an elevation of 573.9 m. The lowest point of the whole line (point E) is 558 m. The end drain valve (point F), with an elevation of 561.94 m, has a maximum height difference of 178.8 m, which is a typical undulating terrain, as shown in Figure 6. The parameters, such as on-site pipelines, pigs, and compressors, are shown in Table 1.
Parameters . | Values . |
---|---|
Pipe length | 6.971 km |
Maximum height difference | 178.8 m |
Pipe specification | Φ1,219 × 18.4 mm |
Pig quality | 700 kg |
Static friction resistance between pig and pipe wall | 0.04 MPa |
Dynamic friction resistance between pig and pipe wall | 0.03 MPa |
Air compressor type | XHP1070 |
Rated pressure | 2.2 MPa |
Rated flow rate | 0.5 Nm3/s |
Parameters . | Values . |
---|---|
Pipe length | 6.971 km |
Maximum height difference | 178.8 m |
Pipe specification | Φ1,219 × 18.4 mm |
Pig quality | 700 kg |
Static friction resistance between pig and pipe wall | 0.04 MPa |
Dynamic friction resistance between pig and pipe wall | 0.03 MPa |
Air compressor type | XHP1070 |
Rated pressure | 2.2 MPa |
Rated flow rate | 0.5 Nm3/s |
In the fourth stage, the pig reaches the end of the pipe. The pipe section between point E (the bottom of the downhill section) and point F (the drainage outlet) is slightly inclined upwards, which the conditions of the gas-liquid eruption analyzed above, triggering a violent interaction between the gas and liquid and the water hammer, thus resulting in a sudden increase in pressure. Therefore, part of the retained liquid and the gas accumulated at the front end of the pig erupted under the pig's movement.
Parameters . | First accident . | Second accident . |
---|---|---|
Pressure when the pipe burst | 20.83 MPa | 20.83 MPa |
Piping time | 20 hours | 39.5 hours |
Number of gas injection compressors | 2 | 1 |
Maximum air pressure | 1.01 MPa | |
Drainpipe specifications | Φ159.0 × 8.7 mm | Φ159.0 × 8.7 mm |
Length of rupture | 2.6 m | 2.5 m |
Parameters . | First accident . | Second accident . |
---|---|---|
Pressure when the pipe burst | 20.83 MPa | 20.83 MPa |
Piping time | 20 hours | 39.5 hours |
Number of gas injection compressors | 2 | 1 |
Maximum air pressure | 1.01 MPa | |
Drainpipe specifications | Φ159.0 × 8.7 mm | Φ159.0 × 8.7 mm |
Length of rupture | 2.6 m | 2.5 m |
The first accident
Two accidents were simulated by using the pigging transient simulation program proposed in this paper. Figure 7 shows the pressure change at the gas injection end (point A) in the pigging process. It can be seen that in the initial stage, after the gas injection pressure reaches 0.09 MPa, the pig can overcome the resistance downstream reverse hydraulic resistance and its friction resistance with the pipe wall to move. When the pig is operated in a flat section, the pressure at the gas injection end tends to be stable, and its value fluctuates around 0.39 MPa. After the 8th hour, the pig enters the gully operation stage. The pig moves very slowly. As the compressed gas is continuously injected, the pressure at the gas injection end increases. When the pressure is increased to 1.01 MPa, the pig reaches the bottom of the gully, followed by a sharp drop in pressure until the pipe eventually bursts. The pressure at the drain end slowly decreases from 0 to 8 hours. According to the site situation, the degree of opening of the drain valve was initially controlled in order to ensure the safety of the drainage, resulting in the slow pace of the drainage. Simultaneously, the pig moves relatively smoothly downstream, so that the liquid in the downhill section near the outlet accumulates in time, and the liquid level does not drop.
The pig passes point B at 8 hours (as shown in Figure 8). After that, the pressure at point B is equal to the gas pressure. The pressure at point C is maintained at a level of 1.01 MPa due to the hydrostatic head caused by the height difference (point C at the bottom of the gully and local high point D at the downstream). Its pressure reaches a maximum of 6.7 MPa before the pig passes through point C. The pressure at the local high point D first reaches the saturated vapor pressure, and vaporization occurs and remains for a long time. The pig passes the highest point D with a maximum pressure of 6.1 MPa.
After the pig enters the gully movement, the pig's movement slows down. At this time, the liquid level in the downhill section begins to drop, and the pressure at the drain end drops faster. The end pressure is maintained at a very low level after 10 hours (Figure 9). This state is maintained for a long time, and as the liquid level of the downhill section increases, the end pressure would increase slightly. Finally, the pig maintains high-speed motion near the drain. The front liquid plug and the liquid accumulated in the end of the pipeline violently collide and cause a hydraulic pulse. The instantaneous pressure (35.2 MPa) far exceeds the ultimate bearing pressure of the pipeline (20.83 MPa), which causes the burst to occur.
The second accident
The numerical simulation of the second on-site pigging was carried out. In the case of only one air compressor, the overall length of pigging is longer, up to 41.5 hours, due to the reduced gas injection flow, and the operation of the pig in the flat section is extended to 10 hours. The maximum pressure at the bottom of the gully (point B) is only 6.5 MPa. In the final overpressure stage (when the pig reaches the drain), the instantaneous speed is 19.2 m/s, which is lower than when two air compressors are used for pigging. In the case of using only one air compressor, the instantaneous overload pressure (34.4 MPa) is also generated at the end of the pipe in the last period, resulting in a burst, as shown in Figure 10.
Comparison of field result and simulating result
The comparison of field data and the simulation results is shown in Table 3. The first pigging process took 20 hours on site and the calculated result is 20.5 hours. The second pigging process took 39.5 hours on site while the calculated result is 41.5 hours. The relative errors of these two are 2.5% and 5.0%, respectively. The maximum pressure at the gas injection end is 1.03 MPa, yet the calculation pressure at the gas injection end of the two piggings is 1.01 MPa. The maximum number of hydraulic pulses was not recorded in either of the two pipe burst accidents. According to theoretical calculations, the minimum pressure at which the squib occurs is 20.83 MPa. The maximum hydraulic impulses of the two pigging simulations were 35.2 MPa and 34.4 MPa, respectively, which were 169 and 165% of the safety pressure. The second pigging on-site operation uses a method of reducing inlet flow. Although the maximum value of the hydraulic pulse is reduced, its value far exceeds the ultimate bearing pressure of the pipe, and the occurrence of a pipe burst accident cannot be avoided.
. | Field data for first accident . | Calculated value for first accident . | Field data for second accident . | Calculated value for second accident . |
---|---|---|---|---|
Time of pigging | 20 hours | 20.5 hours | 39.5 hours | 41.5 hours |
Maximum pressure of gas injection end | 1.03 MPa | 1.01 MPa | 1.03 MPa | 1.01 MPa |
Maximum pressure of gully bottom | / | 6.7 MPa | / | 6.5 MPa |
Maximum of hydraulic pulse | 35.2 MPa | 34.4 MPa |
. | Field data for first accident . | Calculated value for first accident . | Field data for second accident . | Calculated value for second accident . |
---|---|---|---|---|
Time of pigging | 20 hours | 20.5 hours | 39.5 hours | 41.5 hours |
Maximum pressure of gas injection end | 1.03 MPa | 1.01 MPa | 1.03 MPa | 1.01 MPa |
Maximum pressure of gully bottom | / | 6.7 MPa | / | 6.5 MPa |
Maximum of hydraulic pulse | 35.2 MPa | 34.4 MPa |
CONCLUSION
It is possible to determine the dynamic parameters of the pipeline and obtain the pulse pressure of the two accidents by using the proposed model. The pig quickly pushes the downstream liquid and compresses the end gas when the pig is near the end of the pipe. The bubble collapse caused the pulse pressure, followed by a gas-liquid eruption, which led to a serious pipe burst accident during pigging. The numerical simulation results show that the predicted values of the model are consistent with the field data. In general, the topographical fluctuations of the pipeline are a key factor in determining the state of liquid flow. Slope pipelines are most likely to have slack flow. Liquid column separation is a common phenomenon in undulating pipelines, which can have serious effects on pipeline safety, such as explosion accidents. Therefore, it is extremely important to take precautionary measures for pipeline safety during the pigging process. When there is an air pocket in the liquid phase of the pipeline, a high-pressure hydraulic pulse would be generated under the movement of the pig, the maximum value of which is greater than the gas injection pressure, and the instantaneous high pressure may endanger the safety of the pipeline. Therefore, a trapped air pocket should be avoided as much as possible during the pigging process after the water pressure test.
ACKNOWLEDGEMENTS
The authors would like to express sincere thanks to the National Natural Science Foundation of China (51704253) for the financial support in this project.
CONFLICT OF INTERESTS
The authors declare that there is no conflict of interests regarding the publication of this paper.
DATA AVAILABILITY STATEMENT
All relevant data are included in the paper or its Supplementary Information.