Hydraulic Transients Induced by Pigging Operation in Pipeline with a Long Slope

Pigging in pipelines basically performs operations for five reasons including cleaning the pipe interior, batching or separating dissimilar products, displacement, measurement, and internal inspection. A model has been proposed for the dynamic simulation of the pigging process after water pressure testing in a long slope pipeline. In this study, an attempt has been made to analyze two serious accidents during pigging operation in 2010 by the model which is developed by the method of characteristic (MOC) by Wylie et al. (1993) and the two-phase homogeneous equilibrium vaporous cavitation model deveoped by Shu (2003) for vaporous cavitation. Moreover, simulation results of the third operation show good agreement with field data from the previous field trial. After investigation, it was showed that the impulse pressures produced during collapse of a vapor cavity result in severe damage of tubes.


Introduction
Modern hydraulic systems are widely applied to various industrial fields.Routinely, for pressure testing of segmental pigging, pigs are usually employed to remove liquids and deposits after the pressure testing.Although there are a large number of variations and special applications, pigs are basically utilized in pipelines to perform operations for five reasons including cleaning the pipe interior, batching or separating dissimilar products, displacement, measurement, and internal inspection.Pressure testing, which includes strength tests and tightness tests, is an important part of the guarantee for the safe operation of oil and gas pipelines.As, air is accessible and inexpensive, it was utilized as a medium and the pressure is increased gradually to values that the pressure testing requires.However, operation staffs have difficulty to find quality defects for small spills.For a long pipeline, once a pipeline leakage takes place, pressure would not decrease dramatically due to the compressibility of air.Moreover, there is also the risk of getting pipes burst by pressurized air.Thus, air pressure testing has been out of use since the 1970s.Fortunately, water pressure testing can cover up those problems.The pipelines of thousands of kilometers in length are divided into segments varying in length according to elevation profiles and maximum allowable differences.B 31.8 Code Committee and American Gas Association jointly made great contribution to promote water pressure testing for decades.Pressure testing gradually took advantage of water for its safety and stability.Generally, pigging process is safe under low pressure because after pressure testing, operation staffs will decrease pressure by discharging the water through the valves at the end of pipes.However, due to varying elevation profiles, there are always some segments with a long slope, especially in a mountainous area and pigging operation, that should deal with new problems.More specifically, for full-flow pipes with a long slope, valves opening and moving pigs may cause liquid transients in a pipeline.Pigging process is subject to rapid pressure transients, resulting in water-hammer events.
In a system, any change in flow velocity causes a change of pressure instantaneously.Large pressure variations and distributed cavitation (bubble flow) may be involved due to the sudden shutdown of a pump or closure of a valve.Column separation therefore may occur and may have a significant impact on subsequent transients in the system [1].
During the course of a transient, usually at high point, the pressure in a pipeline falls to the vapor pressure of water, resulting in a localized liquid column separation [2][3][4][5] or vaporous cavitation.Streeter and Wylie, in their textbooks [4,6] (Wylie and Streeter 1978a), summarized previous work on column separation in detail.Beuthe [7] provided an extensive general review with emphasis on steam condensation.For vaporous cavitation, vapor is distributed along a portion of a pipeline, rather than being concentrated at one location as for a localized liquid column separation.However, the formation and collapse of a vapor cavity in a pipeline may lead to unexpectedly high pressure rises in the form of short-duration pressure pulses.Angus [8], emphasized that the damage done to pipes as a result of water hammer is so serious that no engineer can afford to neglect it in the design of long pipes, particularly those under low heads.Most of the early efforts in liquid transients in pipelines emphasized particularly on the prediction of the maximum pressure rise due to closure of a valve [9][10][11] or shutdown of hydropower turbines [12].Joukowsky's simple water hammer formula is used to determine the maximum head rise due to the instantaneous closure of a valve without consideration of liquid column separation or linepack during a transient event.When a local column separation forms, the pressure magnitude produced by the collapse of the cavity is greater than the Joukowsky rise which is referred to as a shortduration pressure pulse.Previous analytical studies [8,[13][14][15] predicted that the pressure rise, due to the collapse of a vapor cavity, may exceed the Joukowsky pressure rise.Much previous experimental data showed strong attenuation of the maximum pressure rise upon the first collapse of a cavity at a valve [16][17][18].Jaeger et al. [19], Martin [20], and Thorley [21] were devoted to comprehensive bibliographies of the historical development of many aspects of water hammer including column separation.As previously mentioned, column separation is a common approach in transmission line modeling.However, such an approach is oversimplistic and can lead to unrealistic results.Shu [22] proposed the twophase homogeneous equilibrium vaporous cavitation model which could avoid unrealistically high pressure spikes with consideration of frequency-dependent friction.
A pipe is divided in to two parts including the upstream air section and the downstream liquid section by a pig.Because water directly discharges into atmospheric environment, the liquid flow will be under depressurized condition.Additionally, compressed air at upstream is to be at low pressure.In order to ensure that the pig is moving forward, the pressure is just greater than the resisting force acting on the pig.The pig slowly moves and has great influence on the hydrodynamic pressure of the downstream flow.Accordingly, the pressure downstream may drop to or below vapor pressure and it would result in a large cavity of vapor usually at high points.In previous researches [23,24], cavities were assumed to form only at high points, at changes in pipeline slope (convex up), and at system boundaries.Moreover, the gas and liquid two-phase flow may appear in the sloping pipe where the hydraulic grade line is found to be at or below the elevation of vapor pressure head.Ultimately, sever accident may occur when column separation collapses  by the heavy pig at high speed.Due to the factors such as the terrains, a large number of bubbles will be produced, and the flow pattern is the bubbly flow with the intense pressure oscillations at the end of the pipeline.The large cavity of vapor and air between the pig and downstream liquid-filled pipe will be compressed at the downhill when the pig runs fast after the high point.The compression is an isothermal process, and the gas would undergo the extrusion process at the end of the outlet.Eventually the gas is dispersed into water in the form of bubbles as shown in Figure 1.

Conventional MOC. One-dimensional continuity and momentum equations are applied to analyze the hydraulic transients. A number of approaches have been introduced
for the simulation of the pipeline transients including the method of characteristics (MOC), wave characteristics method (WCM), finite volume method (FVM) [25], finite element method (FEM), and finite difference method (FDM).Among these methods, MOC is extensively used due to its simplicity.It is an explicit method and a powerful tool to analyze hydraulic transients in pipeline flow.With the method of characteristics (MOC), the partial differential equations can be converted into ordinary differential equations.
The method of characteristics is a technique that takes advantage of the known physical information at each point of the regular rectangular grid.Therefore, the results of physical characteristics can be quickly calculated in every time step.
For a fixed cross-sectional area, the mass conservation equation can be written as follows: The momentum conservation equation can be expressed by: where The MOC approach transforms the above partial differential equations into the ordinary differential equations along the characteristic lines and is defined as Due to the fact that  ≪ , the term of  can be omitted from the equations.Flow rate  is unknown and difficult to determine between time steps  and  + Δ, because it varies with time and space.Therefore, it is impossible to identify the value of   .However, the term of ∫   || 1−  can be dealt with approximately by the method of Streeter and Wylie.So we assume that Due to the above simplification, these equations are integrated on the characteristic lines between time steps  and  + Δ, as shown in Figure 2, and solved by the known variables: These equations can be written in the simplified forms as follows: where where the   is unknown flow at point  at time  + Δ,   is the unknown hydraulic head at point  at time  + Δ,   and   are flows at neighboring sections of  at the previous time , and   and   are heads at neighboring sections of  at the previous time .

The Two-Phase Homogeneous Equilibrium Vaporous Cavitation.
When vaporous cavities are locally incipient, the local pressures may be less than or greater than the vapor pressure of the liquid.However, for modeling purposes in engineering, it is assumed that the local pressures are equal to the vapor pressure when vaporous cavitation is occurring.
During the pigging process, vaporization occurs and vapor cavities may be physically dispersed homogeneously in the form of bubbles.Due to the factors such as the terrains, a large number of bubbles will be produced, and the flow pattern is the bubbly flow with the intense pressure oscillations along the pipeline.The behavior of the flow should be described by the two-phase flow theory.Otherwise, water hammer equations solved by the MOC can be adopted for the singlephase flow.
The basic equations for the unsteady homogeneous equilibrium flow model in a tube are In terms of the volumetric fraction  of liquid and vapor phase density  V , the mean density   can be written as In the above equations, the second term in (9) describes the interfacial mass transfer rate and the term / in (9), and (11) shows the flow rate differences between the liquid and the vapor phase.Using the Darcy-Weisbach friction factor , the term  0 (/, ) can be expressed as follows: The method of characteristics is used to transform the above equations to four ordinary differential equations: The equations needed to solve the variables at each time step are where   ,   , and   = (  −   )/(  −  V ) can be solved by the above equations,   and   are constant: The two-phase homogeneous equilibrium vaporous cavitation model has no conflict between negative cavity sizes and pressures below the vapor pressure.
If   ≥   , then   = 1, If   <   ,  =   , then In either case, Numerical results show that the volume rate range is from 0 to 0.95 m 3 /s.According to the present study,   = 1000 kg/m 3 ,  V = 1.293 kg/m 3 ,  = 1100 m/s,  = 1.099 m 2 ,  0 ≈ 0,  = 0.00035,   = 2340 Pa, and Δ = 110 m are given; then we assume that the volumetric fraction of liquid  varies between 0.999 and 0.5.Therefore, it is possible to identify the values of   and   by our program, and the range is from −380.837 m/s to 22.864 in the present study.

Boundary Conditions.
Boundaries include the inlet of pipeline, the outlet of pipeline, the tail of the pig, and nose of the pig.In order to solve the flow dynamic equations, boundaries conditions must be given.Boundaries at the pipeline inlet and outlet are constant flow rate and constant pressure, respectively.In addition, it is assumed that pressure and flow rate at the tail of the pig are the same as they are in the upstream fluid, close to the pig.We assume that the pig is a moving boundary with no thickness compared with the length of the pipeline, but its weight would be considered.Based on the above assumptions, the behavior of the pig is taken into account to solve the flow dynamics equations.
The behavior of the pig in the pipeline is determined by a balance of forces acting on the pig as shown in Figure 3.The pig will move forward if the drag force is less than the driving force, but it will stop when the drag force is dominant:  where , ,  1 , , and  0 are the pig velocity, pig mass, the pressure on the upstream, downstream faces of the pig, and angle between axis and horizontal direction.Term Δ  represents the axial contact force between the pig and the pipe wall, acting in opposition to the pig motion, in the direction of the pig axis.The axial contact force between the pig and the pipe wall is obtained from the contact force equation.

Results and Discussion
For the convenience of analysis, the main stages (labeled with roughness of back line in Figure 4) of the pigging process are defined as follows, according to the pig position during the process: (1) the pig flat-segment movement stag, (2) the pig gully-segment movement stage, (3) the pig downhill-segment movement stage, (4) the pig near outlet-segment movement and overpressure stage.
As shown in Figure 4, the pipeline with a long slope is nearly 7 kilometers long and 1219 millimeters in diameter.Air compressors and a valve were installed at the high point and the low point, respectively.A pig was put into pipeline from the high point before air compressors started to work to make the pig move and drain away water at the low point.
Table 1 summarizes some important information of the pigging process in practice including pipeline, pig, and air compressor.for dewatering after water pressure testing.All the preparations for the pigging process were completed and the pig was put in the pipeline.At nine o' clock in the morning, the compressors started to work and the valve was simultaneously opened.At five o' clock in the next morning, an eruption of the mixture of water and gas occurred at the outlet of the pipeline, and the pigging operation had taken nearly twenty hours.Finally, a fracture of 2.6 m in length was found at the last piece of steel tube.

3.1.2.
The Second Accident Description.On September 21, an air compressor and a DN150 valve were installed for dewatering after water pressure testing.At three o' clock in the morning, a pig was put in the pipe before the compressor started to work, while the valve was opened.At half past six in the next afternoon, the second accident happened, and a fracture of 2.5 m in length was about 5 m away from the first fracture.The pigging operation had totally taken nearly thirty nine hours and half an hour.During this period of time, according to the records, the maximum of air pressure was about 1.01 MPa.After investigation, however, the tubes have no quality default, and the rated operating pressure of the air compressor is 2.2 MPa so that the compressed air unlikely caused the damages.Additionally, bursting pressure is determined from Barlow's equation that instantaneous pressure for severe rupture of the tube should be over 20.83 MPa as shown in Table 2.
A mathematical model has been suggested for simulating the pigging process, based on our own previous work.Meanwhile, these results were obtained from simulating the process by our own program.
The simulated time of the first pigging operation was 19.6 hours.During the pig downhill-segment movement stage, some amount of water was gathered in the part of low elevation near the outlet due to the gravity.When the pig was close to the end of the pipe, some amount of gas downstream would undergo extrusion process and eventually was dispersed into water as shown in Figure 1.Consequently, the gas cavity collapsed resulting in an impulse pressure up to 30.50 MPa as shown in Figure 5.The value of the impulse pressure is larger than the bursting pressure of the tube, and therefore it caused the rupture.
There is a large slope at the end of pipe so that pressure varied with the liquid level in the pipe.In other words, pressure would decrease when the liquid level dropped, and pressure would increase when the liquid level rose.According to the results, the liquid level quickly dropped near 9 h and 28 h, and the liquid level rose near 11 h because the flow rate of outlet and top was varying during the pigging process.The flow rate at the outlet was much larger than that at the top  when the liquid level quickly dropped.On the contrary, the flow rate of top was much larger than that at the outlet when the liquid level quickly rose.
The simulated time of the first pigging operation was 19.6 hours.During this period of time, the maximum pressure of compressed air was as much as 1.03 MPa as shown in Figure 7. Finally, the gas cavity collapsed resulting in an impulse pressure up to 37.03 MPa as shown in Figure 6.The value of the impulse pressure is also larger than the bursting pressure of the tube, and the second accident occurred as shown in Table 3.

Comparison of Field Results to Simulating Predictions.
To study the variation of outlet pressure due to the pigging process, a field trial was conducted in 2011 by Luo [26] from China National Petroleum Corporation (CNPC).After two accidents, the third operation was conducted and transient pressures were recorded by two pressure transducers which were installed at the third and fourth tubes from the end, respectively.In this experiment, the NS-B pressure transducers are 50 MPa in measurement range and 0.3% in precision installed with an angle of 90 degrees to assure the results validity.While the drainage tube is 159 mm in diameter for the first two pigging processes, the last tube of pipe which is 1219 mm in diameter has four bores of 600 mm in diameter for drainage, and the total area of the cross sections of the four bores will be equal to the area of the cross section of the tube.
As Figure 8 and Figure 9 show, the simulated time of the first pigging operation was 19.6 hours, and the maximum pressure was as much as 1.51 MPa.However, the pressure at the end was constantly kept in lower level for most of the time.Because the pressure at the location of cavitation is usually below the saturated vapor pressure, the vapor pressure of the liquid is adopted as the cavitation inception pressure in this mathematical model for transient cavitation.When the pressure is under the saturated vapor pressure, the water would change into vapor.Furthermore, as it was below the vapor pressure for a long period of time, the air dissolved in the water is released, and thus there would be a large cavity of the water vapor and air.When the pig was close to the end of the pipe, some amount of gas downstream would undergo extrusion process, and eventually an eruption of the mixture of water and gas appeared at the outlet according to field records.
With comparison between model prediction and field data, it was found that the amplitudes of the impulse pressures induced by the collapse of the cavity were nearly the same, and their total time was 36 hours, and 35.5 hours (see Figure 10) respectively as shown in Table 4.

Conclusions
The model proposed for the pigging process was employed to understand the flow dynamics in the pipeline and to obtain transient pressures for the two accidents and the field trial.The large cavity of water vapor and air was in the downslope pipe following the peak and slack line flow that exited for a long period of time.When the pig was close to the outlet, the cavity was compressed, and gas underwent the extrusion process and eventually was dispersed into water in the form of bubbles.Finally, the cavity collapsed by the pig, and the serious collision resulted in considerable impulse pressures.The results of the simulation illustrate that the impulse pressures caused the severe damages during the pigging process.Additionally, our model predictions for the third operation showed good agreement with field data, and the diameter of drainage had a significant effect on impulse pressures.Generally, the terrain of pipeline is a key factor for the liquid-fill flow behavior, and slack line flow may appear in a long-slope pipeline.Then, column separation would occur as a common phenomenon for a hilly pipeline, and it can cause devastating effects such as severe damages.Therefore, preventive measures are of a critical significance for practical reasons.

Figure 1 :
Figure 1: Schematic diagram of collapse of a cavity by a pig.

Figure 3 :
Figure 3: Forces acting on the pig.

Figure 6 :
Figure 6: Numerical result of pressure at the end of pipe for the second accident.

Figure 7 :Figure 8 :
Figure 7: Numerical result of air pressure for the second accident.

Figure 9 :Figure 10 :
Figure 9: Numerical result of the impulse pressure for the field trial.

Table 1 :
Summary of basic parameters for field operations.

Table 2 :
Summary of two accidents.

Table 3 :
Summary of numerical simulation of the two accidents.

Table 4 :
Summary of the field trial and numerical simulation.