A New Model for Predicting Dynamic Surge Pressure in Gas and Drilling Mud Two-Phase Flow during Tripping Operations

1 State Key Laboratory of Oil and Gas Reservoir Geology and Exploitation, Southwest Petroleum University, Chengdu, Sichuan 610500, China 2 CNPC Key Lab for Tubular Goods Engineering, Southwest Petroleum University, Chengdu, Sichuan 610500, China 3Daqing Normal University and Petro China Daqing Oilfield Company, Daqing, Heilongjiang 163000, China 4No. 1 Oil Production Plant, Petro China Daqing Oilfield Company, Daqing, Heilongjiang 163000, China


Introduction
Prospects of petroleum industry are the exploration and development of high pressure, formations pressures uncertainties, and abnormal permeability reservoirs [1,2].Managed pressure drilling (MPD) is often used in formations that have a narrow window between formation pore pressure and fracture pressure.Applying variations of MPD maintains the bottomhole pressure within the narrow window during the entire operation process, including drilling, and connections, tripping.To prevent formation influx or lost-circulation problems, wellbore pressures should be kept as constant as possible during the entire drilling process [3][4][5].Tripping is a constant operation in the MPD, and moving drill pipe is accompanied by a displacement of the drilling mud in wellbore [6], so the movement of drill pipe in a wellbore filled with drilling mud can generate an additional pressure.The pressure produced by the downward movement of drill pipe is called surge pressure, while the pressure that decreased in the upward movement of drill pipe is called swab pressure.For the unstable moving velocity of the drill pipe, the generated surge pressure will affect the equilibrium relation of the pressure system in the wellbore.The bottomhole pressure fluctuates with the change of the surge pressure during the tripping operation.As the bottomhole pressure should be constant during the trip progress in MPD, it is necessary to accuratly calculate the surge pressure.The circulation loss or the other complex accidents can also be caused by the surge pressure for the high velocity of the drill pipe.The high drilling mud velocity and surge pressure may damage reservoir [7].Many research data show that 25% of accidents in the drilling operation are caused by surge pressure.It is suggested that excessive surge pressures have initiated lost circulation, formation fracturing, and well kick problems during the drilling operation.This may result in expensive drilling mud treating costs and cause other wellbore problems [8].Obviously, the accurate calculation of surge pressure is related to the safety of the drilling process [9].Also, there is a particular relationship between reasonable drilling mud density, well structural design, and surge pressure.Therefore, the surge pressure is very important basic parameters in drilling design [10].So far, the calculation of surge pressure in drilling mud and gas is still worth continuing and in-depth research.
A number of field studies investigate the effects of wellbore geometry on surge pressures and drilling mud properties [11].However, the first valid reports from surge pressure were not published until 1960, and the method to calculate the surge pressure began to apply to drilling industry [12].A theoretical analysis of couette flow of power-law fluids for surge pressure was conducted by Chukwu in 1989 [13].Model for both slot flow and concentric wellbore flow was developed for a stationary outer pipe and a steady axial motion of a concentric inner pipe.The inner pipe was assumed to be either plugged and of uniform geometry or open at the bottom.After the year, Fan [14] presented a method for accurate calculation of the surge pressure caused by drilling mud viscosity during tripping in a vertical wellbore in 1990.The models of laminar flow velocity profile and surge pressure of Newtonian and power law liquid in the wellbore are developed, and the drill pipe operating speed and drilling mud properties controlled for the safety of operation.In the same year, the method for calculating surge pressure under stable conditions was proposed by Zhou et al. [15], and the problem existing in the calculation curves for adhesive factor value was cited.In this research, the drilling mud is mainly composed of the power-law fluid and Bingham fluid.The calculation method for surge pressure under stable conditions is applicable by taking the compressibility of drilling mud and expansion of wellbore into consideration.In the article of Chukwu [16], a laminar couette flow model for power-law fluids through a slot was considered.Using the mathematical relationships developed, knowledge of the drilling mud rheological properties, drill pipe operating speed, and wellbore geometry is needed to determine the surge pressure.With consideration the compressibility of drilling fluids and wellbore, surge pressure was calculated by Jiang [17].By using theoretical analysis and experimental results, it demonstrated that surge pressure is a function of well depth, the combination of drilling tools, wellbore diameter, properties of drilling mud, drill pipe operating speed and acceleration of drill pipe movement, and so forth.Next, a calculation method of surge pressure caused by drilling mud viscosity while the drill pipe moves through a Caisson drilling mud in wellbore was given by Wang et al. [18,19].The coefficients of surge pressure under different conditions are plotted.These results are useful in the control of drill pipe operating speed and the design of drilling mud properties.In the computational model, flow rate of drilling mud is considered as one-dimensional flow, and the method of characteristics and finite-difference technique are used to solve the basic equation of unsteady state flow.Meanwhile a theoretical model is presented by Fan et al. [20] for predicting dynamic surge pressure based on the theory of unsteady state flow in 1995.The basic partial differential equations for describing dynamic surge pressure are given.Fan methods are proposed for determining boundary and initial conditions when considering well parameters, drill bit, jet nozzles of drill bit, variability of tripping velocity, and acceleration.An example for the application of the model was also given [21,22].Bjørkevoll et al. [23] developed an easy to use transient surge swab model by taking into account dampening of pressure peaks due to fluid compression and elasticity of open wellbore.In this model, the contributions from acceleration are also included.When there is little gel strength in the fluid, the transient model reproduced relevant measured data with adequate accuracy.Recently, Nygaard et al. [24] present a new method for coordinated control of pump rates and choke valve for compensating surge pressure during tripping operations.Fedevjcyk et al. [25,26] searched that wellbore diameter variations and the use of drill pipe accessories might cause changes to the annular cross-section space between the drill pipe and the borehole.This study proposes a mathematical/numerical model to simulate the surge pressure problem in wellbore with variable cross-section areas.The fluid flow yielded by the movement of drill pipe is considered to be one-dimensional, compressible, and transient.In order to predict the surge pressure caused in the horizontal well drilling process, Sun et al. [27] created models for predicting surge pressure based on the general theory of hydrostatic drilling mud mechanics and specifically described the flowing physical model towards surge pressure in horizontal wellbore by taking the effect of drill pipe eccentricity on the flowing law of drilling fluid into consideration.Lebele-Alawa and Oparadike [28] analyse the effects of surge pressure on pipe flow.The surge pressure investigated is that propagated by the emergency reliefcoupling valve (ERV) connected to a loading system carrying crude oil from four flow stations.Kong et al. established the calculation model for fluctuation pressure in gas-liquid twophase flow during tripping operations, but the model is just applicable to steady state conditions [29].Crespo and Ahmed [30] reported recently the results of an experimental study aimed at investigating the effects of drill pipe speed, drilling mud properties, and wellbore geometry on surge pressures under laboratory conditions.
Although a large number of experiments under controlled laboratory conditions and modeling studies were conducted in the past to investigate surge pressures, the existing surge pressure models rarely take the impact of the gas into consideration and thus will inevitably affect the precision calculation for the surge pressure during MPD operations.If the gas influx occurs at the bottom of well, the surge pressure may be reduced greatly.The calculation method for predication of surge pressure in two-phase is not as accurate as the prediction of single-phase drilling mud due to its simplicity.In conclusion, we must take into account this problem rationally and place more emphasis on the surge pressure in two phases during MPD operations.The object of the present work is to present a new calculation model for predicting surge pressure during tripping operations, which is applicable for gas drilling mud two-phase fluid.In this paper, in addition to the pressure, temperature, and the void fraction in the wellbore, the compressibility of the gas phase, the wave velocity in real-time, the changes of wellbore parameter and three scenarios are also taken into consideration.By introducing the momentum conservation equations and the mass conservation equations in MPD operations, pressure wave velocity in real-time, gasdrilling mud equations of state (EOS), and a new model for predicting dynamic surge pressure in gas drilling mud twophase during tripping operations is developed.Numerical solutions, difference method and characteristics method are obtained to solve the model.The model can be used to predict the change of the surge pressure at any well position at different influx rate, drill pipe operating speed, and drilling parameter.

The Mathematical Model
2.1.The Basic Equation.Drilling mud contains clay, cuttings, barite, other solids, and so forth.The solid particles are small and uniformly distributed; therefore, drilling mud is considered to be a pseudohomogeneous liquid, and the natural gas influx is considered to be the gas phase.As shown in Figure 1, the wellbore is filled with gas and drilling mud two-phase fluid.The downward movement of drill pipe along wellbore filled with drilling mud can create a surge of pressure.The two-phase drilling fluid and the passageway are all compressible and expansible.Therefore, the two-phase drilling fluid flow induced by the trip is unstable, especially in the deep well.
To establish the model about surge pressure during trip operations, the following assumptions are made: (i) the two-phase flow is treated as one-dimensional; (ii) no mass transfers between the gas and drilling mud; (iii) the flow pattern in wellbore is either bubble or slug flow; (iv) the annulus is concentric.
When drilling strings are moving in the wellbore full of drilling mud, the pressure gradient equations, the mass conservation equations and the momentum conservation equations along the flow direction in the wellbore is combined to study the surge pressure in tripping operations.
The mass conservation equation and momentum conservation equation are shown as follows: (1) The total pressure drop gradient is the sum of pressure drop gradients due to potential energy change, kinetic energy, and frictional loss.From ( 2), the equation used to calculate pressure gradient of gas drilling mud two-phase flow within the wellbore can be written as Assuming the compressibility of the gas is only related with the pressure in the wellbore, the kinetic energy and acceleration term in the equation above can be simplified to Substituting ( 3) into (4), the total pressure drop gradient along the flow direction within the wellbore can be expressed as The continuity equations can be obtained directly based on (1): where wave velocity (, , , , , ) changes in real-time when the gas influx occurs at the bottom of drilling well.The equations of motion can be obtained directly based on (2): 2.2.Pressure Wave Velocity.Only consider the deformation of wellbore caused by surge pressure, the elastic constant of drill pipe is The elastic constant of well wall is The elastic constant between well wall and drill pipe is The elastic constant between casing and drill pipe is where The density of gas and drilling mud mixture is described as the following formula: The small perturbation theory is also applied to the solution of wave velocity model.According to the solvable condition of the homogenous linear equations that the determinant of the equations is zero, the equation of pressure wave can be expressed in the following form [31]: where   = 0.3,   = 0.25,  2 = 0.1, and   = 0.2.
The real value of wave number is determined by the pressure wave velocity (, , , , , ), and pressure wave velocity in the gas drilling mud two phase flow is

Equations of State for Gas. The equation of state (EOS)
for gas can be expressed as follows: where   is the compression factor of gas.
The formula presented by Dranchuk has been used to solve the compression factor under the condition of low and medium pressure ( < 35 MPa) [32]: where The formula presented by Dranchuk and Abou-Kassem has been adopted to solve the compression factor under the condition of high pressure ( ≥ 35 MPa) [32]: where  is given by If  ≥ 130 ∘ C, the density of drilling mud is ) . (20)

Correlation of Temperature Distribution.
The temperature of the drilling mud at different depth of the wellbore can be determined by the relationship presented by Hasan and Kabir [33]:

Flow Pattern Analysis.
Based on the analysis of flow characteristics in the closed drilling system, it can be safely assumed that the flow pattern in wellbore is either bubble or slug flow.The pattern transition criteria for bubbly flow and slug flow given by Orkiszewski are used to judge the flow pattern in the gas-drilling mud two-phase flow [34].
For bubbly flow, For slug flow, where   is the volumetric flow rate of two-phase flow and   =   +   .The dimensionless numbers   and   are defined as where Flow parameters such as void fraction, mixed density, and virtual mass force coefficient are discussed for specific flow pattern.
The correlation between void fraction and drilling mud holdup is expressed as 2.4.1.Bubble Flow.The average density of the mixture for bubble flow is The void fraction for bubble flow is determined by the following equation: The friction pressure gradient can be obtained from the following formula: 2.4.2.Slug Flow.The distribution coefficient of gas in the drilling mud phase is determined by The average density of the mixture for slug flow is The void fraction for slug flow is determined by the following equation: The friction pressure gradient can be obtained from the following formula: 2.5.Wellbore Characteristic Analysis.Effective diameter proposed by Sanchez [35] is The effective roughness of the wellbore can be expressed as With   and   being the diameters of inner pipe and outer pipe, respectively, the  0 and   are the roughness of outer pipe and the inner pipe, respectively.

Boundary Conditions and Initial Conditions of the Model
When the drill pipe runs into the wellbore filled with drilling mud and gas at high velocities, there are three scenarios for the movement of the drill pipe.They are closed pipe without pumping (CPOP), open pipe without pumping (OPOP), and open pipe with pumping (OPWP), respectively.The three scenarios are illustrated in Figure 2. As drill pipe is moved downward into a wellbore, the drilling mud will move upward.To analyze the transient flow in the wellbore caused by the downward movement of drill pipe according to ( 6) and ( 7) and calculate the surge pressure at that time, it is indispensable to obtain the definite conditions of the model for the three scenarios, that is, initial conditions and boundary conditions.We established coordinate systems of the hydraulic system in the wellbore.The coordinate systems have their origin at the end of the drill pipe.The flow rate of gas and drilling mud two-phase in open borehole, annulus (comprised by drill pipe and the casing), and drill pipe were, respectively, defined as  1 ,  2 , and  3 .Respectively, the corresponding passageways filled with gas and drilling mud two-phase fluid were marked as I, III, and II, andthe pressure is  1 ,  2 , and  3 .The positive direction of passageway I was towards the bottomhole, while the positive directions of the passageway III and II were towards the wellhead.As seen in Figure 2,  1 was the length from the origin to the bottomhole, and  2 was the length from the origin to the wellhead.By calculating the velocity of two phases flow, the new model for surge pressure in gas-drilling mud two-phase during the movement of drill pipe can be deduced [36].
In actual hydraulic system of the well, many pipeline series are included.By assuming the length between the nodes and origin as  3 , the boundary consistency conditions are provided by According to the relationship between the pressure and velocity at the wellbore, the boundary conditions can be determined as follows: The effective cross-area of jet nozzles is 3.1.OPOP Scenario.The following equation presents the initial conditions of the flow rate and pressure for OPOP scenario: The boundary conditions of the flow rate and pressure are . (40)

CPOP Scenario.
The following equation presents the initial conditions of the flow rate and pressure for CPOP scenario.
The initial conditions of the flow rate and pressure are as follows: The boundary conditions of the flow rate and pressure can be written in the following form: (42)

OPWP Scenario.
As shown in Figure 2(c), the OPWP scenario is discussed below.

Solution of the United Model
Referring to Figure 4, the variable  is defined as a short pipe, and the constraint is   <   ⋅ Δ.The variables  and  are short pipe which are made up of wellbore and drill pipe, and the constraint is   <   ⋅ Δ,   <   ⋅ Δ.The variables  + 1,  + 1 and  + 1 are defined as a long pipe, and the constraint is   + 1 <   + 1 ⋅ Δ,   + 1 <   + 1 ⋅ Δ,   + 1 <   + 1 ⋅ Δ.The implicit finite-difference method is applied to calculate the short pipe, and characteristics method is applied to calculate the long pipe.The pressure and flow rate can be obtained at the end of drill pipe as follows:  [ The   ,   can be expressed as follows: where  = 1, 2, 3 and  = 1, 2.
Obtaining the analytical solution of the mathematical models concerned with flow pattern, void fraction, parameters, and pressure drop gradient are generally impossible for most practical in two-phase flow.In this paper, the Runge-Kutta method (R-K4) is used to discrete the new model for surge pressure.At different wellbore depths, we can obtain pressure, temperature, gas velocity, drilling mud velocity, and void fraction in MPD operations by application of the R-K4.The solution of pressure drop gradient equation ( 3) can be seen as an initial-value problem of the ordinary differential equation With the initial value ( 0 ,  0 ) and the function (, ), (3)-( 5) can be obtained: where ℎ is the step of depth.The pressure on the nod  =  + 1 can be obtained by In the present work, the surge pressure calculation model solved by personally compiled code on VB.NET (Version 2010).The schematic diagram of solve is shown in Figure 3, and the solution procedure for the surge pressure in the wellbore is shown in Figure 4.At initial time, the wellhead temperature, wellbore structure, well depths, gas and drilling mud two-phase properties, and so forth are known.On the node , the pressure gradient, wave velocity varieties in realtime, temperature, and the void fraction can be obtained by adopting R-K4.The density of gas can be obtained by gas EOS (15), and the density of drilling mud can be obtained by equations (19) and equations (20).Then, the surge pressure at different depths of wellbore in tripping operations can be solved by (45).The process is repeated until the surge pressure in the whole wellbore has been obtained [37,38].
The developed model takes full consideration of the gas influx and wave velocity in real-time.Owing to the complex conditions of wellbore in tripping operations, measurement of surge pressure in the actual drilling process is very difficult.In order to verify the new model for surge pressure, the predicted surge pressure is compared with the results of previous experimental investigations presented by Junfang in tripping operations in Figure 5 [39].The comparisons reveal that the developed new model fits well with the experiments data.Thus, the new model can be used to accurately predict surge pressure on different scenario and gas influx rate in tripping operations.The value of surge pressure calculated by adopted Burkhardt's steady method is larger than the experiments data.

Analysis and Discussion
The drilling system described is a closed system.The schematic diagram of gas influx process in tripping operations is illustrated in Figure 6.The drilling mud is pumped from surface storage, down the drill pipe, returns from the annulus, and travels back through surface processing, where drilling solids are removed, to surface storage.The well used for calculation is a gas well in Xinjiang Uygur Autonomous Region, China.The wellbore structure, well design parameters (depths and diameters), gas and drilling mud two-phase properties (density and viscosity), and operational conditions of calculation well are displayed in Table 1 [40].
The drilling mud mixed with gas is considered as a twophase flow medium.The surge pressure in the gas-drilling mud are calculated and discussed by using the established model and well parameters.As shown in Figure 7, according to the drill conditions, such as the drill pipe velocity, gas drilling mud two-phase flow velocity, the total length of drill pipe, and drill pipe is 1000 m, we can account for the changing rules of surge pressure.The following examples illustrate that the surge pressure is affected by different well parameters, drilling mud density, gas influx rate, and well depth in the tripping operations.

The Effects of Various Drilling Parameters on Surge
Pressure.Figure 7 presents the influence of acceleration on drilling mud velocity, drilling mud velocity, and drill pipe operating speed with respect to the drilling parameters.The movement of drill pipe starts at the depth of 1000 m.With the movement of the drill pipe, the drilling mud also moves in the opposite direction along wellbore at the same time.The drill pipe operating speed reaches the maximum value at 23 seconds and stops at 30 seconds.In order to make a comparison of the surge pressure in different well parameters, the analysis and compared Figures 8-15 based on the data of Figure 7.
Figures 8 and 9 graphically show the distributions of void fraction and variations of wave velocity along the flow direction in the wellbore.When gas influx occurs at the bottom of well, some gas invades into the wellbore and migrates form the bottomhole to the wellhead along the flow direction.At low gas influx rate, it is extremely obvious that  the void fraction and wave velocity first slightly change in a comparatively smooth value then change sharply.It is because the volume of gas expanded rapidly with the decreasing of pressure near the wellhead, the void fraction increases sharply, and at the same time the wave velocity decreases obviously.At a high gas influx rate, the wave velocity tends to increase because the void fraction in the wellhead is increased to a high extent.In conclusion, the wave velocity is sensitive to the void fraction, and the void fraction is dominated by influx rate and pressure in the wellbore, especially the influx rate.
As shown in Figure 9 within the range of low gas influx rate, the wave velocity decreases significantly.It is because the compressibility of the gas increases remarkably, and the medium appears high elasticity, though the density of gas-drilling mud two-phase flow changes slightly.With the increase of gas influx rate and corresponding increase of the void fraction in the wellbore, the compressibility of the twophase unceasingly increases, which promotes the momentum and energy exchange in the interface.Therefore, the wave velocity continuously decreases.Figure 10 illustrates the effect of gas influx on the surge pressure with the change of gas influx rate.As shown in Figure 10, under different gas influx rates (0 m 3 /h, 2.427 m 3 /h and 8.312 m 3 /h, resp.) the maximum surge pressure may occur before drill pipe reaches bottomhole.With the increases of the gas influx, the corresponding surge pressure decreases.Considering the gas influx in the calculation of the surge pressure in the wellbore, the surge pressure weakens obviously.As the gas influx rate decreases, the surge pressure at bottom of the wellbore is reduced gradually, while surge pressure can cause a significant time lag if the gas influx occurs at the bottom of well.The lag time is mainly affected by wave velocity.
Figure 11 presents a change of surge pressure in the wellbore at different scenario (OPOP, CPOP, and OPWP, resp.).According to Figure 11, surge pressure is increased in CPOP scenario by comparing with the surge pressure in OPOP scenarios.It is because the speed of the drilling mud increases remarkably in CPOP scenario, the surge pressure becomes larger obviously.Especially when the maximum surge pressure occurs, a strong increase of surge pressure is observed at OPWP scenario.If the movement of drill pipe is stop immediately, the surge pressure will not disappear immediately, and the surge pressure will exist and change slightly for short while.
Figures 12 and 13 show that the surge pressure varies with wellbore diameter, caused by the drill pipe operating speed according to Figure 7.The surge pressure decreases with the increase of wellbore diameter.It is because the drilling mud flow rate decreases with the increases of wellbore diameter.Based on (1) and (2), surge pressure decreases at each position due to the decrease of drilling mud flow rate.Surge pressure caused by converting of potential energy into kinetic energy, and then kinetic energy back into potential energy, over and over again.During the tripping operations, especially in slim wellbore drilling process, the speed of drill pipe movement should be appropriately reduced.The surge pressure in Figure 13 is prominently larger than that in Figure 12.This is because both the decrease of the wave velocity and the increase of the compression in gas drilling mud two-phase due to the gas influx result in the comparatively large surge pressure.Figure 14 illustrates that the surge pressure varied with the length of drill pipe.The surge pressure caused by shorter drill pipe (whose the total length is 1000 m) is smaller than the longer drill pipe (whose total length is 3000 m) before the maximum surge pressure occurs.This can explain that surge pressure is affected by the friction force of drill pipe and wellbore.Compared with the longer drill pipe, the friction force caused by shorter drill pipe is larger.Therefore, the surge pressure gradually decreases.As a result, the surge pressure is greater at 1000 m.
Figure 15 illustrates that the surge pressure varied with the drilling fluid density.At the bottom of well, the surge pressure increases with the increase of drilling fluid density.The changes are significant in the maximum surge pressure.This is because the surge pressure is mainly affected by wave velocity, density, and velocity of gas drilling mud two-phase.According to ( 6) and ( 7), the surge pressure is increased as the drilling fluid density increases.The maximum surge pressure occurs before drill pipe reaches bottomhole.

The Effects of Gas Influx
Rate on Surge Pressure.Figures 16,17, and 18 illustrate that the surge pressure varied with the increase of the gas influx rate.Figure 17 shows the surge pressure with the gas influx rate of 2.427 m 3 /h at the bottom of well.Figure 18 shows the surge pressure with the gas influx rate of 8.312 m 3 /h at the bottom of well.Mainly affected by wave velocity, density, and velocity in gas-drilling mud two phase, the surge pressure is greatest at the gas influx rate of 0 m 3 /h.Figure 16 illustrates an example of a minimum wave velocity at the gas influx rate of 8.312 m 3 /h at the bottom of well.As the gas influx rate increases, the surge pressure decreases.When gas influx occurs, the lag time is lengthened remarkably compared with the condition of no gas influx.The longer the distance is, the greater the lag time will be.The lag time is mainly determined by the propagation time of pressure wave in the wellbore.Figures 19 and 20 illustrate the surge pressure caused by different operating speeds of the drill pipe at various gas influx rates at the bottom of well.As drilling mud mixed with influx gas not only reduces the pressure wave velocity but also reduces the density of the mixture density, surge pressure mainly affected by wave velocity and mixture density reduces drastically with the increase of gas influx rate at the bottom of well.Figures 19 and 20 are compared to Figures 17 and 18; it can be concluded that the operating speed is also a major factor of surge pressure.

The Effects of Drill Pipe Operating Speed on Surge Pressure.
Figure 21 illustrates the effect of drill pipe speed on the surge pressure.The change of surge pressure is smaller in gas drilling two-phase than in single-phase drilling mud.The surge pressure becomes smaller and closes to zero after the movement is stopped due to greater friction force existing in well wall during drill pipe operating.

Conclusions
With full consideration of the important factors such as wave velocity in real-time, the compressibility of the gas phase, gas influx rate, pressure, temperature, and well parameters, a new surge pressure model has been proposed based on the  mass conservation equations, the momentum conservation equations, characteristic line method, and the gas-drilling mud equations of state (EOS) during MPD operations.Solved by the difference method and fourth-order explicit Runge-Kutta method, the model is used to predict surge pressure for different drill pipe operating speed and gas influx rates in MPD operations.The main conclusions can be summarized as follows.
(1) An accurate mathematical model to predict surge pressure after gas influx is of great importance because of the effects of surge pressure on operational safety and success.The new model provides better prediction of surge pressures in comparison with the existing experiment.
(2) The surge pressure tends to increase with the increase of drill pipe operating speed and decrease of gas influx rate and well diameter.Considering that the gas influx occurs, the surge pressure weakens obviously.With the increases in well depth, the maximum allowable tripping speed gradually become smaller, the surge pressure increases at the bottom of well, and drilling safety window is accordingly narrower.The surge pressure can cause a significant time lag if the gas influx occurs at the bottom of well, and the time lag is mainly determined by the propagation time of pressure wave in the wellbore.
(3) The surge pressure obviously varies at different scenarios (OPOP, CPOP, and OPWP, resp.) during the tripping operations.Surge pressure increased in CPOP scenario than in OPOP scenario.Especially when the maximum surge pressure occurs, a strong increase of surge pressure is observed at OPWP scenario.By running the new surge pressure model, drilling engineers can identify potential surge problems and optimize tripping operations for different scenarios as to avoid complicated accidents to happen in wellbore during drilling operations.
(4) The calculation of surge pressure in gas drilling mud two-phase is more complex than conventional calculation in single drilling mud.Drill pipe operating speed in drilling operations should be strictly controlled, and the surge pressure should be considered in the design.The greatest advantages of new model are the ability to reduce nonproductive time (NPT) in drilling.

Figure 1 :
Figure 1: The schematic of gas and drilling mud two-phase flow during tripping operations.

Figure 2 :
Figure 2: Different pipe end conditions in trip operations.

Figure 3 :
Figure 3: Schematic diagram of the solve.

Figure 4 :
Figure 4: Solution procedure for surge pressure in MPD operations.

Figure 5 :
Figure 5: Experimental verification by comparison with previous experiment data.

Figure 6 :
Figure 6: Schematic diagram of gas influx process in tripping.

Figure 10 :
Figure 10: Surge pressure variation at different gas influxes.

Table 1 :
Parameters of calculation well.