1 Introduction

Excessive fluctuations in wellbore pressure pose significant challenges, leading to various instabilities such as lost circulation, formation fracturing, kick issues, and wellbore collapse, as documented by Cannon (1934), Horn (1950), and Goins et al. (1951). Among these fluctuations, swab and surge pressures stand out as primary contributors, with Kong et al. (2014) reporting that 25% of drilling complications stem from surge pressures. Previous research has extensively explored the impact of these pressures. Crespo et al. (2012) developed a Yield Power Law model to analyze surge and swab pressures, emphasizing the influence of factors like pipe velocity and yield stress. Similarly, Srivastav et al. (2012) conducted laboratory experiments highlighting the significance of drill pipe eccentricity, annular clearance, and fluid rheology on swab surge pressure. Kong et al. (2014) found that surge pressure escalated with drill pipe speed while decreasing with gas influx rate and wellbore diameter. Tang et al. (2014) and Tikhonov et al. (2016) further explored factors affecting pressure modeling, including well eccentricity and hydraulic losses.

Despite these extensive researches, few studies have directly addressed the impact of swab and surge pressures on wellbore stability. Zamanipour et al. (2016) observed transient surge pressure-induced stress variations, while Zhang et al. (2018) focused on near wellbore stress and pore pressure effects. More recently, Meng et al. (2019a, b) developed a model to compute minimum mud density required for stability amidst swab/surge fluctuations, highlighting disparities with conventional methods. Past studies primarily focused on predicting swab and surge pressures using steady and unsteady models (Burkhadt 1961; Lubinski et al. 1977; Mitchell 1988), or identified factors influencing pressure calculation (Crespo et al. 2012; Tang et al. 2014; Abduljabbar et al. 2018). Those integrating these pressures with wellbore stability analysis mainly explored stress distribution or near wellbore pore pressure effects. Few have investigated how swab and surge pressures impact parameters of naturally fractured formations, crucial for maintaining stability.

To address these gaps, this study employs a plane strain poroelastic finite element analysis to examine swab and surge pressure effects on natural fracture development and time-dependent wellbore stability. Abaqus software is first utilized to conduct numerical simulations and investigate the influence of the swab and surge pressure on fracture growth and pore pressure. Then, a MATLAB program is used to assess the time-dependent safe mud window. The results are validated against analytical solutions, offering insights into mitigating wellbore instability amidst pressure fluctuations.

2 Theory

The aims of this study are to investigate the impact of swabbing and surge pressure on the expansion of natural fractures within the wellbore, as well as the time-sensitive threshold for safe mud operations. This section will outline the fundamental equations governing these phenomena.

2.1 Governing equations of hydraulically driven fracture

The numerical simulation of the influence of swabbing and surge pressure on wellbore natural fracture growth encompasses the subsequent phenomena:

  1. (a)

    Circulation of drilling fluid within the wellbore;

  2. (b)

    Initiation and advancement of fractures alongside fracturing fluid movement;

  3. (c)

    Deformation of porous medium and flow of pore fluid.

2.1.1 Fluid flow inside the wellbore

The drilling fluid's flow within the wellbore is replicated through the pipe element model in Abaqus. This model relies on Bernoulli's equation, with its governing equation provided as per (Simulia 2016):

$$\Delta P = \rho g\Delta Z + C_{l} \frac{{\rho V^{2} }}{2}$$
(1)

where, \(\Delta P\) represents the pressure disparity between two nodes \(P_{1}\) and \(P_{2}\) of the pipe element, Pa; \(\rho\) is the density of the drilling fluid, \({\text{kg/m}}^{3}\); \(g\) is the gravitational acceleration, \({\text{m/s}}^{2}\); \(\Delta Z\) is the vertical displacement between the nodes \(P_{1}\) and \(P_{2}\), m; \(V\) is the fluid velocity in the pipe, \({\text{m/s}}\); \(C_{l}\) stands for the fluid loss coefficient.

2.1.2 Fracture propagation and fracturing fluid flow

The Abaqus coupled pressure/deformation cohesive zone model is employed to simulate fracture propagation and fracturing fluid flow. In this study, damage initiation is assumed to occur when the following quadratic stress criterion is satisfied, as proposed by Wu et al. (2018):

$$\left( {\frac{\langle{t_{n} }\rangle}{{t_{n}^{0} }}} \right)^{2} + \left( {\frac{{t_{s1} }}{{t_{s1}^{0} }}} \right)^{2} + \left( {\frac{{t_{s2} }}{{t_{s2}^{0} }}} \right)^{2} = 1$$
(2)

where, \(t_{n}\), \(t_{s1}\) and \(t_{s2}\) are respectively the normal nominal stress, the first shear and second shear nominal stress, Pa; \(t_{n}^{0}\), \(t_{s1}^{0}\) and \(t_{s2}^{0}\) respectively represent their peak values, Pa. The constitutive equations governing the flow of fracturing fluid are derived from Reynolds' lubrication theory and are provided by Zielonka et al. (2014):

$$\frac{\partial w}{{\partial t}} + \frac{{\partial q_{f} }}{\partial s} + v_{t} + v_{b} = 0$$
(3)

where, \(w\) is the fracture aperture, m; \(q_{f}\) is the longitudinal flow rate per unit of width, \(m^{2} {\text{/s}}\); \(v_{t}\) and \(v_{b}\) respectively represent the normal velocities of the fluid flow at the top and the bottom of the fracture, \({\text{m/s}}\).

2.1.3 Porous medium deformation and pore fluid flow

The porous medium deformation is controlled by Biot's theory of poroelasticity, while pore fluid flow is elucidated through the continuum equation and Darcy's theory. The governing equations for these processes have been comprehensively detailed in numerous studies (Fjaer et al., 2008; Jaeger et al. 2009; Zielonka et al. 2014; Feng and Gray 2018a, b, c). Hence, these equations will not be reiterated in the current research.

2.2 Governing equations of time-dependent wellbore stability analysis

The time-dependent wellbore stability model developed in this study follows a similar methodology to the model proposed by Rahman et al. (2000). The mechanical properties of the rock formation, such as Young’s modulus and Poisson’s ratio, are assumed to remain constant throughout the simulation. The variation in pore pressure over time is considered as the sole factor influencing the time-dependent nature of wellbore stability. The time-dependent pore fluid pressure, denoted as p(t), is directly derived from the newly developed numerical model using finite element Abaqus software.

2.2.1 Stress and pore fluid pressure as a function of time in cylindrical coordinate system

A MATLAB program is developed to analytically compute the time-dependent stress distribution in the cylindrical coordinate system. The equations governing wellbore stability, incorporating the time-dependent wellbore pressure, are presented as follows, based on Fjaer et al. (2008):

$$\sigma_{r} \left( t \right) = \frac{{\sigma_{x}^{o} + \sigma_{y}^{o} }}{2}\left( {1 - \frac{{R_{w}^{2} }}{{r^{2} }}} \right) + \frac{{\sigma_{x}^{o} - \sigma_{y}^{o} }}{2}\left( {1 + 3\frac{{R_{w}^{4} }}{{r^{4} }} - 4\frac{{R_{w}^{2} }}{{r^{2} }}} \right)cos2\theta + \tau_{xy}^{o} \left( {1 + 3\frac{{R_{w}^{4} }}{{r^{4} }} - 4\frac{{R_{w}^{2} }}{{r^{2} }}} \right)sin2\theta + P_{w} \left( t \right)\frac{{R_{w}^{2} }}{{r^{2} }}$$
(4)
$$\sigma_{\theta } \left( t \right) = \frac{{\sigma_{x}^{o} + \sigma_{y}^{o} }}{2}\left( {1 + \frac{{R_{w}^{2} }}{{r^{2} }}} \right) - \frac{{\sigma_{x}^{o} - \sigma_{y}^{o} }}{2}\left( {1 + 3\frac{{R_{w}^{4} }}{{r^{4} }}} \right)\cos 2\theta - \tau_{xy}^{o} \left( {1 + 3\frac{{R_{w}^{4} }}{{r^{4} }}} \right)\sin 2\theta - P_{w} \left( t \right)\frac{{R_{w}^{2} }}{{r^{2} }}$$
(5)
$$\sigma_{z} \left( t \right) = \sigma_{z}^{o} - \nu_{fr} \left[ {2\left( {\sigma_{x}^{o} - \sigma_{y}^{o} } \right)\frac{{R_{w}^{2} }}{{r^{2} }}\cos 2\theta + 4\tau_{xy}^{o} \frac{{R_{w}^{2} }}{{r^{2} }}\sin 2\theta } \right]$$
(6)

2.2.2 Time dependent wellbore collapse pressure

The Mohr–Coulomb criterion is employed to predict shear failure in the rock formation. It is assumed that the rock collapses due to shear failure when the shear stress exceeds the shear strength of the rock. The equations, which account for the time dependency resulting from pore pressure changes over time, are provided by Rahman et al. (2000):

$$\tau \left( t \right) \ge \tau_{u} \left( t \right)$$
(7)
$$\tau \left( t \right) = \frac{{\sigma_{1} \left( t \right) - \sigma_{3} \left( t \right)}}{2}\cos \phi$$
(8)
$$\tau_{u} \left( t \right) = \left\{ {\frac{{\sigma_{1} \left( t \right) + \sigma_{3} \left( t \right)}}{2} - \frac{{\sigma_{1} \left( t \right) - \sigma_{3} \left( t \right)}}{2}\sin \phi - p\left( t \right)} \right\}\tan \phi + c$$
(9)
$$\sigma_{1} \left( t \right) = \max \left( {\sigma_{r} \left( t \right),\sigma_{\theta } \left( t \right),\sigma_{z} \left( t \right)} \right)$$
(10)
$$\sigma_{3} \left( t \right) = \min \left( {\sigma_{r} \left( t \right),\sigma_{\theta } \left( t \right),\sigma_{z} \left( t \right)} \right)$$
(11)

The parameters \(\phi\) and \(c\) in Eq. 8 and Eq. 9 respectively represent the Mohr–Coulomb friction angle and the cohesion strength of the rock.

2.2.3 Time-dependent wellbore pressure

The failure in tensile mode occurs when the tensile strength of the rock is exceeded by the minimum effective principal stress. This condition is expressed as:

$$\sigma_{3} \left( t \right) - p\left( t \right) \le - \left| {\sigma_{t} } \right|$$
(12)

where, \(\sigma_{3} \left( t \right)\) is the time dependent minimum principal stress, MPa; \(p\left( t \right)\) is the time dependent pore pressure and \(\sigma_{t}\) is the rock formation tensile strength, MPa.

3 Numerical modeling

3.1 Geometry and material properties

The schematic of the numerical model is illustrated in Fig. 1.

Fig. 1
figure 1

Schematic of the numerical model

The wellbore and drill string annulus are oriented in the Z-direction but modeled in the Y-direction for better visualization. Natural fractures open in the horizontal X–Y plane. The model includes the wellbore, rock formation, and natural fractures. The wellbore radius is 0.1 m and extends from the surface to 1000 m. By considering the model symmetry, only half of the formation is represented with a 2D geometry. The input parameters for simulating sandstone rock are provided in Table 1. The formation employs coupled pore fluid stress and plane strain elements (CPE4P elements). \(Sh_{max}\) and \(Sh_{min}\) represent the maximum and minimum horizontal stresses in the x- and y-directions, respectively. The fracture follows the Perkins-Kern-Nordgren (PKN) theory with an initial length of 0.5 m and a width of \(2 \times 10^{ - 4}\) m. Due to fluctuating wellbore pressure from swabbing and surging, the fracture will reopen, with its tip propagating following the Cohesive Zone Model (CZM) in the direction of maximal horizontal stress. Two-dimensional pore pressure cohesive elements (COH2D4P) simulate the CZM. The initial pore pressure within the natural fracture is 10 MPa. The drill pipe is modeled using 2-node linear fluid pipe connector elements (FPC2D2), while the wellbore annulus is modeled with 2-node linear fluid pipe elements (FP2D2).

Table 1 Input parameters for simulation of the influence of swab and surge pressure on the time-dependent wellbore stability analysis

3.2 Simulation steps

The analysis comprises two steps:

  1. 1.

    Initial Step: In this step, the initial pore pressure, far-field stresses, and initial void ratio are applied to the model.

  2. 2.

    Geostatic Step: This step aims to achieve equilibrium among the different loads applied during the initial step.

Afterward, the analysis proceeds with a transitional soil consolidation step. Here, dynamic mud circulation, swab and surge pressure, and loss circulation are simulated. An unsymmetric matrix storage is utilized in this step to enhance the convergence rate of the nonlinear solution. The incremental size of this step varies from 1 to 10 s, with a total step time of T = 30 min.

3.3 Boundary conditions and loadings

The drilling fluid is injected in the wellbore from the node of the drill pipe lying at the surface. A periodic distributed surface load is applied on the wellbore surface to simulate the drill string swab and surge pressures. The model simulates the swab and surge pressure with a mechanical distributed surface load directly applied on the wellbore surface. The wellhead pressure is defined on the node of the wellbore annulus lying at the surface with a zero-boundary pore fluid pressure. The left edge is modeled with the X symmetry boundary condition and a zero-pore fluid pressure. The three other edges are modeled with constrained normal displacements and pore pressure equals to 10 MPa.

3.4 Mesh sensitivity analysis

A mesh sensitivity analysis was conducted to find the most appropriate mesh size for the numerical modeling. This involved systematically changing the mesh size from 0.001 mm to 10 cm and observing how it affected key output parameters like stress distribution, displacement profiles, and fracture dimensions. The results showed that small changes in mesh size didn't significantly alter the overall trends while finer meshes offered better details, especially in areas with high complexity. Finally, a combination of a coarse mesh size consisting of square blocks with a dimension of 1 cm in the region far away the wellbore and a fine mesh size with square blocks of 1 mm in the near wellbore region was utilized during the numerical modeling because it provided more accurate results with a good computational efficiency.

3.5 Swab and surge pressure modeling

Swab and surge pressure model utilized in this study is based on the method introduced by Lubinski et al. (1977). Additionally, the analytical model for dynamic swab and surge pressure is adapted from Mitchell's model (Mitchell 1988) and solved using Bergeron's method (Bergeron 1961). Various loading scenarios are defined in this research to include swab and surge pressure ranging from 0 to 10 MPa:

  • Low swab and surge pressure levels, with a maximum magnitude of 0.75 MPa.

  • Medium swab/surge pressure levels, ranging from 1.5 to 3 MPa.

  • High swab/surge pressure levels, ranging from 6 to 9 MPa.

Figure 2 illustrates the different loading cases of swab and surge pressure over a transient period of 40 s. This transient profile, spanning 40 s, is replicated throughout the entire modeling process, covering a total simulation time of 30 min.

Fig. 2
figure 2

Swab and surge pressure loading cases used during the numerical modeling

4 Validation model

4.1 Statement of theory and definitions

Despite the adoption of simplifying assumptions in the numerical modeling process, a lack of analytical solutions persists for fluid-driven fracture problems. Nonetheless, several researchers (Savitski and Detournay 2002; Bunger et al. 2005; Detournay et al. 2006; Garagash 2006; Peirce and Detournay 2008; Hu and Garagash 2010) have developed asymptotic solutions to predict fracture development and net fluid pressure for fractures developing in rock formations driven by Newtonian fluids. This study focuses on investigating asymptotic solutions within the storage and toughness boundary regime. Input parameters listed in Table 1 were carefully chosen to ensure that the numerical solutions obtained from Abaqus are comparable with the asymptotic solutions.

For instance, fracture geometries are maintained significantly smaller than the domain dimensions, cohesive properties are selected to ensure fracture size exceeds the cohesive zone, and permeability is defined to minimize the impact of poroelastic effects ahead of the fracture tip. Subsequently, comparisons between Abaqus numerical solutions and analytical asymptotic solutions are conducted to validate the numerical model. Under the above assumptions, the problem is solved by determining the net fluid pressure \({ }p\) (difference between fluid pressure inside the crack and far field stress); the fracture aperture \(w\left( {x,t{ }} \right)\) and the half length of the fracture \(\left( t \right)\); \(x\) is the spatial coordinate, \(t\) is the time.

The assumptions utilized in both the numerical and analytical modeling processes include:

  • The rock formation is homogeneous, meaning that fracture toughness, Poisson’s ratio (ν), and Young’s modulus (E) have uniform values.

  • The fracture is constructed with radially symmetric geometries.

  • The gap between the fracture front and the fracturing fluid is considered insignificant.

  • Fluid flow within the fracture adheres to a laminar and unidirectional regime.

Given these assumptions, the objective is to solve for key parameters such as:

  1. 1.

    The net fluid pressure (p), representing the disparity between the fluid pressure within the crack and the far-field stress.

  2. 2.

    The aperture of the fracture (w (x, t)), which varies both spatially (x) and temporally (t).

  3. 3.

    The half-length of the fracture (l(t)), indicating its extension along the spatial coordinate x, also changing with time (t).

4.2 Comparison between numerical and asymptotic solutions

In this study, the commercial software Abaqus is employed as the numerical simulator to conduct an analysis investigating the impact of swab and surge pressure on wellbore stability. However, before the results and conclusions derived from the numerical model can be considered reliable, it is crucial to validate the model's accuracy.

The validity of the numerical model is established through verification, wherein the disparity between numerical and analytical results of fracture length, fracture width, and pore fluid pressure is evaluated. Figures 3, 4 and 5 depict the comparison between asymptotic analytical solutions and numerical results for fracture aperture, fracture length, and fracture width distribution along the fracture. Similarly, Figs. 6 and 7 illustrate the correspondence between analytical and numerical solutions for pore fluid pressure and pore fluid distribution along the fracture. The comparison reveals a strong agreement between analytical and numerical solutions, thereby affirming the accuracy of the numerical results obtained using the newly developed numerical model.

Fig. 3
figure 3

Time evolution of fracture width near the wellbore fracture- mouth (K vertex) for Equivalent Circulating Density fluctuations caused by swab and surge pressure

Fig. 4
figure 4

Time evolution of fracture length near the wellbore fracture mouth (K vertex) for Equivalent Circulating Density fluctuations caused by swab and surge pressure

Fig. 5
figure 5

Fracture width distribution along the fracture near the wellbore fracture mouth (K vertex) for Equivalent Circulating Density fluctuations caused by swab and surge pressure

Fig. 6
figure 6

Time evolution of pore pressure near the injection point (K vertex) for Equivalent Circulating Density fluctuations caused by swab/surge pressure

Fig. 7
figure 7

Pore pressure distribution along fracture near the injection point (K vertex) for Equivalent Circulating Density fluctuations caused by swab and surge pressure

5 Results and discussion of the analysis

5.1 Influence of the swab and surge pressure on the development of the wellbore natural fracture

This section outlines the outcomes concerning the impact of swab and surge pressure on three key aspects: the natural fracture development within the wellbore, the rate of lost circulation, and the pore pressure.

5.1.1 Influence of the swab and surge pressure on the wellbore fracture width growth

In this section, the fracture-mouth width growth during mud circulation for different swab and surge pressure magnitude is investigated. It is observed in Fig. 8, that the fracture width on each profile increases with the swab and surge pressure magnitude. The maximal value of the fracture width without swab and surge pressure increased by 69.92% after application of swab and surge pressure with magnitude P = 9 MPa at the final stage of the simulation. Equally, the fracture width profiles increase with the swab and surge pressure magnitude during the mud circulation. In fact, the swab and surge pressure which is modeled as a distribution surface load directly applied on the wellbore surface causes an enlargement of the wellbore natural fracture. Therefore, the higher the swab and surge pressure magnitude, the larger the wellbore natural fracture width is observed during the numerical simulation. Other researches in the literature equally demonstrated the enlargement of the near wellbore natural fracture width generated by the loads applied on the wellbore surface (Ewy et al. 2004; Khaled and Shokir 2017; Cerfontaine and Collin 2018). The accurate determination of the fracture width after integration of the swab and surge pressure will improve the determination of the particle size dimension required to seal the fractures and maintain the wellbore stability.

Fig. 8
figure 8

Fracture width as a function of time profiles for different swab and surge pressure magnitude at the wellbore fracture mouth

During the initial phase of the simulation (within the first 5 min), fluctuations in fracture width profiles occur due to the irregular development of fractures, aligning with observations made in the field by Morita et al. (1990), Raaen et al. (2001), and Ye et al. (2017). These fluctuations become more pronounced when swab and surge pressures are applied, causing the fracture to open and close in accordance with the fluctuations in pressure. This intensifies the oscillations in the fracture width profiles, as illustrated in Fig. 8.

5.1.2 Influence of the swab and surge pressure on the wellbore fracture length growth

This segment explores how swab and surge pressures affect the expansion of wellbore fracture length. In Fig. 9, the evolution of fracture length during mud circulation is depicted after applying varying magnitudes of swab and surge pressure.

Fig. 9
figure 9

Fracture length as a function of time profiles for different swab and surge pressure magnitude

It is observed that initially, the fracture length increases over time during the early stages of simulation, eventually stabilizing at a final length of 31.99 m. Interestingly, the introduction of swab and surge pressure does not significantly alter the fracture length profiles, suggesting that their impact is primarily confined to the vicinity of the wellbore surface. Consequently, while these pressures may widen the fracture near the wellbore, they do not notably contribute to further propagation of the fracture. However, to validate these findings, additional investigations are warranted, particularly with longer simulation times, as the current model is limited to a relatively short duration (t = 30 min).

5.1.3 Fracture width versus fracture length for distinct swab and surge pressure

Figure 10 illustrates the relationship between fracture width and fracture length under various swab and surge pressures. The investigation concludes that as the distance along the fracture increases, the width of the fracture diminishes. This phenomenon is attributed to the seepage of drilling fluid into the rock.

Fig. 10
figure 10

Fracture width distribution along the fracture for different swab/surge pressure magnitude at the final stage of simulation (t = 30 min)

Furthermore, it is noted that the distribution of fracture width along the fracture increases as the magnitude of swab and surge pressure rises. This enlargement is primarily attributed to the fluctuating pressure applied to the wellbore surface, leading to an increase in near wellbore fracture width. Specifically, after applying a swab and surge pressure of 9 MPa, there's an observed 69.16% increase in fracture width near the wellbore region, compared to conditions without vibration.

Additionally, it's observed that fracture width tends to be smaller near the wellbore, particularly evident in the scenario "without vibration." This phenomenon is attributed to stress concentration resulting from rock excavation at the onset of simulation, hindering the natural enlargement of fracture width. However, with the integration of swab and surge pressure, this stress concentration gradually diminishes. The pressure exerted on the wellbore surface aids in enlarging the natural fractures, relieving the stress concentration effect and allowing for wider fracture development.

5.1.4 Influence of the swab and surge pressure on the pore fluid pressure and the loss circulation rate

In drilling operations, minimizing mud loss volume is crucial. Therefore, assessing how Equivalent Circulating Density affects mud loss volume due to swab and surge pressure is of utmost importance. Figure 11 depicts the loss circulation rate at the mouth of the wellbore fracture during mud circulation under various magnitudes of swab and surge pressure. The findings indicate a sharp initial decrease in loss circulation rates over time, from 0.36 \({\text{m}}^{3} /{\text{min}}\) to 0.033 \({\text{m}}^{3} /{\text{min}}\), attributed to fluid diffusion in the surrounding wellbore region. Moreover, it's observed that swab and surge pressure exert a weak influence on loss circulation rates. Despite variations in swab and surge pressure magnitudes, the mud loss volume remains relatively stable due to the low permeability of the rock formation utilized in the simulation and the localized effect of swab and surge pressure on the wellbore surface. Furthermore, the model is capable of evaluating pore fluid pressure at the fracture mouth over time, as illustrated in Fig. 12.

Fig. 11
figure 11

Loss circulation rate during mud circulation for different swab and surge pressure magnitude at the wellbore fracture mouth

Fig. 12
figure 12

Pore pressure as a function of time profiles for different swab and surge pressure magnitude at the wellbore fracture mouth

Significant pore pressure buildup is observed during the early stages of simulation (t < 5 min), rising from 0 MPa to 15.33 MPa due to extensive fluid diffusion at the wellbore surface. Subsequently, the pore pressure stabilizes around 15.45 MPa for later simulation periods. Interestingly, varying magnitudes of swab and surge pressure yield similar pore pressure profiles over time. This consistency arises because swab and surge pressure, modeled as mechanical surface loads, primarily impact fracture growth rather than pore fluid pressure. Additionally, the low permeability of the rock formation (5md) utilized in this research minimizes variations in pore pressure near the wellbore in response to swab and surge pressure.

In contrast, Zhang et al. (2018) explored the effect of transient swab and surge pressure on real-time wellbore stability evaluation and obtained contrasting results. Their study demonstrated that transient swab and surge pressure influenced pore fluid pressure in the surrounding wellbore area, with its impact diminishing as distance from the wellbore increased. The disparity between these findings may stem from differences in rock permeability; this simulation utilized a lower permeability (5md) compared to Zhang et al.'s (2018) research (10 md). Furthermore, investigating the pressure of fluid within the fracture for varying swab and surge pressures is intriguing. Figure 13 depicts the results of fluid pressure within the fracture at the final stage of simulation.

Fig. 13
figure 13

Pore fluid pressure distribution within the fracture for different swab and surge pressure magnitude at the final stage simulation (t = 30 min)

The pore pressure remains consistent for a distance along the fracture less than 31.99 m. However, a notable pressure drop along the fracture is observed beyond this distance, corresponding to the point where fracture propagation ceases, as depicted in Fig. 5.2. Pore pressure profiles as a function of distance along the fracture exhibit a slight increase with swab and surge pressure magnitude. This is because varying surge pressures (0.75 MPa, 1.5 MPa, 3 MPa, 6 MPa, 9 MPa) force fluids into the fracture, elevating pressure. Consequently, this fluid movement alters the distribution of pore pressure along the fracture profile, leading to an overall increase in pore pressure. At the final stage of the simulation, the maximal value of pore pressure without swab and surge pressure experienced a 0.33% increase after applying a swab and surge pressure of magnitude P = 9 MPa.

5.2 Influence of the swab and surge pressure on the time-dependent safe mud window

Table 1 provides the details of the input parameters utilized in the simulation, encompassing information regarding the wellbore, rock formation, natural fracture, and drilling fluid. Meanwhile, Table 2 displays the in-situ principal stresses corresponding to various faulting stress conditions employed in the study.

Table 2 In-situ principal stresses for different stress faulting regimes

5.2.1 Interaction between safe mud window and swab/ surge pressure

The mud window delineates the range of mud weights within which drilling the wellbore remains safe from instabilities. This window is defined by both a lower and an upper value. The lower value signifies the minimum mud weight necessary to prevent wellbore collapse, while the upper value indicates the maximum mud density to avert wellbore tensile failure. Figure 14 illustrates a comparison of the time-dependent safe mud window for wellbore stability, depicting scenarios with and without swab and surge pressure, specifically for a vertical wellbore under normal faulting stress conditions.

Fig. 14
figure 14

Comparison of time dependent safe mud window with and without swab and surge pressure for borehole drilled in vertical direction in normal fault stress regime

The study revealed that the mud window, initially stable, progressively narrowed over time following the introduction of swab and surge pressure. This outcome was anticipated because integrating swab and surge pressure resulted in fluctuations in Equivalent Circulating Density, consequently elevating near wellbore pore pressure.

The rise in pore pressure over time led to a continuous increase in collapse pressure and a decrease in fracture pressure, underscoring the significance of swab and surge pressure on the safe mud window. Without swab and surge pressure, collapse pressure and fracture pressure were measured at 7.84 MPa and 19 MPa respectively. Post-integration of swab and surge pressure, collapse pressure at the final simulation time increased by 14.33%, while fracture pressure decreased by 13.80%. Consequently, drilling mud initially within the safe region could transition into the unstable region after the integration of swab and surge pressure. Hence, relying on time-dependent safe mud weight is essential for accurate wellbore stability analysis.

These findings align with the conclusions drawn by Zhang et al. (2018), who similarly noted that incorporating swab and surge pressure in wellbore stability analysis resulted in a narrower mud weight window than initially anticipated. However, their focus was primarily on the impact of swab and surge pressure on near wellbore pore pressure.

5.2.2 Influence of the stress faulting regimes and trajectory of the wellbore on the wellbore stability

This section delves into examining the impact of stress faulting regimes and wellbore trajectory on wellbore stability. The investigation focuses on determining the safe mud weight windows for three different well orientations (vertical stress direction, maximum and minimum horizontal stress direction) across three faulting regimes. Figures 15, 16 and 17 depict a comparison of the safe mud windows with swab and surge pressure for the three well orientations, respectively, within the normal fault, strike-slip fault, and reverse fault regimes.

Fig. 15
figure 15

Comparison of safe mud windows with swab and surge pressure for three wells orientation in normal faulting stress regime

Fig. 16
figure 16

Comparison of safe mud windows with swab and surge pressure for three wells orientation in strike-slip fault stress regime

Fig. 17
figure 17

Comparison of safe mud windows with swab and surge pressure for three wells orientation in reverse faulting stress regime

In the figures, “Sig_V,” “Sig_H,” and “Sig_h” respectively denote the vertical wellbore and wells drilled in the maximal and minimal horizontal stress directions. Notably, for all cases, the safe mud windows progressively narrow over time. A wider mud window associated with the wellbore trajectory indicates increased stability during drilling operations. Additionally, maintaining mud density within the central range of the safe mud window ensures prolonged stability during the drilling process.

In the normal stress regime, the wellbore drilled horizontally parallel to the maximum in-situ stress exhibits the narrowest mud window (fracture pressure minus collapse pressure at the final simulation time is 1.98 MPa), while the wellbore drilled parallel to the lowest in-situ stress direction presents the widest mud window (fracture pressure minus collapse pressure at the final simulation time is 8.48 MPa), followed by the vertical wellbore. However, drilling in the direction parallel to the minimum in-situ stress necessitates the highest mud density for wellbore stability, while the vertical wellbore requires the lowest mud density.

In the strike-slip faulting regime, the well drilled in the direction parallel to the minimum in-situ stress consistently displays the widest mud window (gap between fracture pressure and collapse pressure at the final simulation time is 14.73 MPa), requiring the highest mud density to maintain stability. Conversely, the vertical wellbore is highly susceptible to instability due to its extremely narrow mud window (gap between fracture pressure and collapse pressure at the final simulation time is 1.73 MPa). However, the horizontal well parallel to the maximum in-situ stress requires the least mud weight for stability.

Within the reverse faulting regime, the wellbore in the vertical stress direction demands the highest drilling mud density and presents the largest mud window (gap between fracture pressure and collapse pressure at the final simulation time is 17.72 MPa), whereas the wellbore drilled parallel to the minimum in-situ stress exhibits the smallest mud window (gap between fracture pressure and collapse pressure at the final simulation time is 11.23 MPa). The wellbore drilled parallel to the maximum in-situ stress requires the least mud density to ensure stability.

Overall, the reverse faulting system requires the highest mud density for maintaining wellbore stability despite presenting a wider safe mud window, while the normal faulting regime demands the lowest mud density and presents the narrowest mud window. Consequently, for enhanced wellbore stability, drilling in the horizontal direction parallel to the minimum in-situ stress within the normal faulting regime emerges as the most suitable option. The impact of trajectory and stress faulting regimes on time-dependent wellbore stability analysis is summarized in Table 3.

Table 3 Effects of trajectory and stress faulting regimes on the time-dependent wellbore stability analysis

6 Conclusion

In this study, the impact of swab and surge pressure on time-dependent wellbore stability was thoroughly investigated. Initially, the ABAQUS software was employed as a numerical simulator to analyze the effects of swab and surge pressure on wellbore natural fracture growth and time-dependent pore pressure. Subsequently, a MATLAB program was developed to assess the time-dependent safe mud window. To validate the numerical model, the obtained numerical results were compared with small asymptotic analytical solutions. The findings regarding the influence of swab and surge pressure on wellbore natural fracture development revealed several key points:

  1. 1.

    Fracture width increased proportionally with the magnitude of swab and surge pressure, with the maximal width without such pressure rising by 69.92% after application of a pressure magnitude of P = 9 MPa.

  2. 2.

    Fracture aperture decreased as fracture length increased due to fluid leakage into neighboring rock. A 69.16% increase in fracture width was observed in the near wellbore region after applying a swab and surge pressure magnitude of P = 9 MPa.

  3. 3.

    Fracture length, loss circulation rate, and pore fluid pressure remained relatively unchanged post-integration of swab and surge pressure, primarily impacting the wellbore surface due to low rock permeability.

  4. 4.

    Pore pressure along fracture profiles increased with swab and surge pressure magnitude, with the maximal value increasing by 0.33% after applying a pressure magnitude of P = 9 MPa.

  5. 5.

    The initially constant safe mud window narrowed over time after integration of swab and surge pressure. Collapse pressure increased by 14.33%, while fracture pressure decreased by 13.80% at the final simulation time.

  6. 6.

    For various wellbore trajectories and stress faulting scenarios, safe mud windows equally narrowed with time evolution.

Furthermore, the effect of swab and surge pressure on the time-dependent safe mud window was examined, leading to the following conclusions:

The newly developed model accurately predicts natural fracture growth, loss circulation rate, and pore pressure under fluctuating wellbore pressures caused by swab and surge pressure. These results are valuable for wellbore strengthening studies aimed at determining optimal particle size dimensions to plug natural fractures and mitigate lost circulation during drilling operations. Additionally, the model precisely determines the safe mud window under swab and surge pressure, crucial for maintaining wellbore stability during drilling operations.

7 SI metric conversion factors

cp

 × 1.0 *

10−3

 = 

Pa·s

in

 × 2.54 *

10−2

 = 

m

md

 × 9.869233

10−16

 = 

m2

[2] * conversion factor is exact.