Introduction

Wellbore instability problem is one of the key problems that encountered frequently during drilling process; the wellbore instability can be mainly separated into shear failure and tensile failure. In many researches, the rock mass has simply been treated as isotropic material, but in reality, the rock mass presents strongly anisotropic properties due to the existence of weakness plane or fracture plane, see Fig. 1, for these cases, using the simple isotropic stress equations to analysis of the wellbore instability problem cannot meet the needs of the drilling safety (Westergaard 1940; Reid et al. 2003; Helstrup et al. 2004; Jin et al. 2012). Hence, the analysis of wellbore stability for formations with anisotropic strength has great engineering significance.

Fig. 1
figure 1

Anisotropic properties of rock mass observed in drilling. a FMI image of an intact vertical borehole showing thin layers of the Barnett shale having contrasting resistivity (Waters et al. 2006). b LWD resistivity imaging log shows closely spaced induced transverse tensile fractures intersecting two drilling induced longitudinal tensile fractures (Duncan 2009). c FMI image of a Barnett horizontal well drilled in the direction of the minimum horizontal stress showing fractures in both longitudinal and transverse directions (dark colors) (Waters et al. 2006)

The anisotropic mechanical behavior of various rock types has been investigated by many researchers (Donath 1964; Chenevert and Gatlin 1965; McLamore and Gray 1967; Ramamurthy et al. 1993; Niandou et al. 1997; Ajalloeian and Lashkaripour 2000; Tien et al. 2006; Heng et al. 2015; Meng et al. 2015). Their work showed the connection of rock strength and deformation, the angle between the weakness plane and the axis of the major principal stress. Aadnoy (1988) used an anisotropic stress model to study the fracture and collapse behavior of boreholes, the model takes into account anisotropic elastic properties of rocks; the results showed that neglecting the anisotropic effects introduces an error. Ong and Roegiers (1993) discussed an anisotropic model for assessing the mechanical stability of deep borehole; the studies indicated that the stability of a wellbore is influenced significantly by rock anisotropy, rock strength, and in situ stress differentials. Wellbore stability problems with the pre-existing planes of weakness have been long recognized (Aadnoy and Chenevert 1987; Okland and Cook 1998; Zhang and Roegiers 2002; Willson et al. 2007; Yan et al. 2014). Lang et al. (2011) researched the wellbore stability problems when drilling along bedding planes in vertical wells. Also, the wellbore stability along any arbitrary well trajectory in the presence of weak bedding planes was studied (Moos et al. 1998; Willson et al. 1999; Moinfar and Tajer 2013). Li et al. (2012) studied the effect of weak bedding planes, mechanical anisotropy, and time effects on the wellbore stability for horizontal wells in shale reservoirs. The borehole stability for weak plane formation under porous flow was researched (Lu et al. 2012, 2013; Liang et al. 2014). Lee et al. (2012, 2013) developed a model in which the anisotropic rock strength characteristic is incorporated and applying this model to two case studies shows that shear failures occur either along or across the bedding planes depending on the relative orientation between the wellbore trajectories and the bedding planes. Zhang (2013) analyzed the laboratory test data of rock compressive strengths and developed a new correlation to allow for predicting uniaxial compressive strengths in weak rocks from sonic velocities. Fekete et al. (2014) and Ostadhassan et al. (2014) highlight the effect of shale bedding plane failure on wellbore stability and the angle of attack for stable drilling conditions in weak bedding planes by developing a robust tool to account for the criterion/conditions for identifying and drilling weak bedding planes. Ma and Chen (2014) developed a strength analysis method for shale rocks with multiple weak planes based on weak plane strength theories.

The wellbore stability models for thinly laminated rock formations mentioned in the above literature integrating the in situ stresses, pore pressure, well trajectory, and rock strength parameters etc., however, the factor of temperature difference is ignored. During the drilling process, there exist temperature difference between drilling mud and formation. The temperature of drilling mud is lower than the formation at the bottom of well; the wellbore rock matrix and pore medium will be shrunken due to the cooling effect of drilling mud. On the contrary, in the upper formation, the temperature of drilling mud is higher than the formation due to its heat exchange at bottom of well, the rock matrix and porous medium will be expanded, thereby disturbing the equilibrium of the stress and pore pressure around the wellbore which will cause the extraordinary wellbore instability problems. Hence, the analysis of wellbore stability which takes into account the anisotropic strength of formation and the temperature gradient has great engineering significance. In present study, a wellbore stability model is introduced based on the stress transformations and the Mohr-Coulomb failure criteria, which incorporate the rock strength anisotropy and the temperature gradient between formation and drilling mud.

Problem description

The problem to be considered in present study is the stability of a wellbore drilled into a thinly laminated anisotropic rock formation, as shown in Fig. 2. It is assumed that the plane of weakness is ubiquitously distributed in the formation, and the cross section of wellbore is analyzed. The solution of in situ stresses around wellbore can be obtained by using the thermo-poroelasticity theory, which is performed by combining the effect of thermal stress and differential solid/fluid expansion to rock stresses and fluid diffusion.

Fig. 2
figure 2

A schematic drawing showing a wellbore drilled into a laminated rock formation

Thermo-poroelasticity theory

When a rock consisting of an elastic solid matrix and fluid filled pores is subjected to temperature gradient in petroleum drilling process, the solid and fluid volumes will be changed, thereby disturbing the equilibrium of the stress and pore pressure around the wellbore.

The coupled constitutive equations of poro-thermoelastic material under non-isothermal conditions of conductive heat transport have been developed by extending biot’s poroelasticity theory (Biot 1941, 1955) to non-isothermal conditions (Mctigue 1986, 1990; Kurashige 1989):

$$ {\varepsilon}_{ij}=\frac{1}{2G}\left[{\sigma}_{ij}-\frac{v}{1+v}{\sigma}_{kk}{\delta}_{ij}\right]+\frac{a\left(1-2v\right)}{2G\left(1+v\right)}{\delta}_{ij}p+\frac{a_m}{3}{\delta}_{ij}T $$
(1)
$$ \zeta =\frac{a\left(1-2v\right)}{2G\left(1+v\right)}{\sigma}_{kk}+\frac{a^2{\left(1-2v\right)}^2\left(1+{v}_u\right)}{2G\left(1+v\right)\left({v}_u-v\right)}p-\phi \left({a}_f-{a}_m\right)T $$
(2)

The fluid and heat transport equations are obtained by neglecting thermal osmosis (Ghassemi et al. 2009) and heat flow by advection (Delaney 1982):

$$ {q}_i=-\frac{k}{\mu }{p}_{,i} $$
(3)
$$ {h}_i=-{k}_t{T}_{,i} $$
(4)

Following McTigue (1986, 1990), the field equations are obtained by combining the constitutive and transport equations with the force balance, mass, and heat conservation equations:

$$ G{u}_{j, ii}+\left(\lambda +G\right){u}_{i, ij}-a{p}_{,j}-{K}_m{a}_m{T}_{,j}-{f}_j=0 $$
(5)

The fluid diffusion equation:

$$ \frac{\partial p}{\partial t}-c{p}_{, kk}={c}^{\hbox{'}}\frac{\partial T}{\partial t} $$
(6)

The heat diffusion equation:

$$ \frac{\partial T}{\partial t}-{c}_s{T}_{, kk}=0 $$
(7)

The hydraulic diffusivity coefficient is as follows:

$$ c=\frac{2 kG{\left(1+{\upsilon}_u\right)}^2\left(1-\upsilon \right)}{9\left({\upsilon}_u-\upsilon \right)\left(1-{\upsilon}_u\right)} $$
(8)

The thermo-hydraulic coupling coefficient is given as follows:

$$ {c}^{\hbox{'}}=\frac{\mu c}{k}\left[\frac{2{a}_m\left({\upsilon}_u-\upsilon \right)}{B\left(1+{\upsilon}_u\right)\left(1-\upsilon \right)}+n\left({a}_f-{a}_m\right)\right] $$
(9)
$$ {c}_s=\frac{k_s}{{\left(\rho c\right)}_s} $$
(10)
$$ {k}_s=\left(1-n\right){k}_m+n{k}_f $$
(11)
$$ {\left(\rho c\right)}_s=\left(1-n\right){\rho}_m{c}_m+n{\rho}_f{c}_f $$
(12)
$$ K=\frac{k{\gamma}_w}{\mu } $$
(13)

The far-field pore pressure and formation temperature are regarded as a constant, which equals to the initial pore pressure and temperature of formation, as well as the pore pressure and formation temperature at wellbore wall. The initial conditions and boundary conditions are as follows:

$$ p\left(r,0\right)={p}_0,p\left(\infty, t\right)={p}_0,p\left({r}_i,t\right)={p}_i $$
(14)
$$ T\left(r,0\right)={T}_0,T\left(\infty, t\right)={T}_0,T\left({r}_i,t\right)={T}_i(t) $$
(15)
$$ {p}^f\left(r,t\right)=p\left(r,t\right)-{p}_0 $$
(16)
$$ {T}^f\left(r,t\right)=T\left(r,t\right)-{T}_0 $$
(17)

According to the above equations, the stresses induced as the result of pressure and temperature changes can be calculated by the following equations (Chen et al. 2003):

$$ {\displaystyle \begin{array}{l}{\sigma_r}^{\hbox{'}}=\frac{\alpha \left(1-2\upsilon \right)}{1-\upsilon}\frac{1}{r^2}{\int}_{r_i}^r{p}^f\left(r,t\right) rdr+\frac{E{a}_m}{3\left(1-\upsilon \right)}\frac{1}{r^2}{\int}_{r_i}^r{T}^f\left(r,t\right) rdr\\ {}{\sigma_{\theta}}^{\hbox{'}}=-\frac{\alpha \left(1-2\upsilon \right)}{1-\upsilon}\left[\frac{1}{r^2}{\int}_{r_i}^r{p}^f\left(r,t\right) rdr-{p}^f\left(r,t\right)\right]-\frac{E{a}_m}{3\left(1-\upsilon \right)}\left[\frac{1}{r^2}{\int}_{r_i}^r{T}^f\left(r,t\right) rdr-{T}^f\left(r,t\right)\right]\\ {}{\sigma_z}^{\hbox{'}}=-\frac{\alpha \left(1-2\upsilon \right)}{1-\upsilon }{p}^f\left(r,t\right)+\frac{E{a}_m}{3\left(1-\upsilon \right)}{T}^f\left(r,t\right)\end{array}} $$
(18)

Stress transformations between the defined coordinate systems

We defined four reference coordinated systems: global coordinate system, GCS (N, E, Z); borehole coordinate system, BCS (xb, yb, zb); cylindrical coordinate system, CCS (r, θ, zb); weak-plane coordinate system, WCS (xw, yw, zw). The relationship between the in situ stresses (σH, σh, σv) and GCS is defined by the maximum horizontal principal stress azimuth angle Ω; the relationship between BCS and GCS is defined by wellbore inclination angle w and azimuth angle χ, see Fig. 3; the relationship between CCS and BCS is defined by wellbore circumferential angle θ; the relationship between WCS and GCS is defined by dip angle of the plane of weakness ϕ and dip direction of the plane of weakness γ, just shown in Figs. 4 and 5.

Fig. 3
figure 3

Relationship between GCS and BCS (CCS, in situ stresses)

Fig. 4
figure 4

Relationship between GCS and WCS

Fig. 5
figure 5

Relationship between BCS and CCS

The stress distribution around the wellbore for an elastic and isotropic formation in CCS is calculated by Bradley (1979):

$$ {\displaystyle \begin{array}{l}{\sigma}_r=\frac{{r_i}^2}{r^2}{p}_i+\frac{\sigma_{xx}+{\sigma}_{yy}}{2}\left(1-\frac{{r_i}^2}{r^2}\right)+\frac{\sigma_{xx}-{\sigma}_{yy}}{2}\left(1+\frac{3{r_i}^4}{r^4}-\frac{4{r_i}^2}{r^2}\right)\cos 2\theta +{\tau}_{xy}\left(1+\frac{3{r_i}^4}{r^4}-\frac{4{r_i}^2}{r^2}\right)\sin 2\theta -\alpha {p}_0\\ {}{\sigma}_{\theta }=-\frac{{r_i}^2}{r^2}{p}_i+\frac{\sigma_{xx}+{\sigma}_{yy}}{2}\left(1+\frac{{r_i}^2}{r^2}\right)-\frac{\sigma_{xx}-{\sigma}_{yy}}{2}\left(1+\frac{3{r_i}^4}{r^4}\right)\cos 2\theta -{\tau}_{xy}\left(1+\frac{3{r_i}^4}{r^4}\right)\sin 2\theta -\alpha {p}_0\\ {}{\sigma}_z={\sigma}_{zz}-\upsilon \left[2\left({\sigma}_{xx}-{\sigma}_{yy}\right)\frac{{r_i}^2}{r^2}\cos 2\theta +4{\tau}_{xy}\frac{{r_i}^2}{r^2}\sin 2\theta \right]-\alpha {p}_0\\ {}{\tau}_{r\theta}=\frac{\sigma_{yy}-{\sigma}_{xx}}{2}\left(1-\frac{3{r_i}^4}{r^4}+\frac{2{r_i}^2}{r^2}\right)\sin 2\theta +{\tau}_{xy}\left(1-\frac{3{r_i}^4}{r^4}+\frac{2{r_i}^2}{r^2}\right)\cos 2\theta \\ {}{\tau}_{\theta z}={\tau}_{yz}\left(1+\frac{{r_i}^2}{r^2}\right)\cos \theta -{\tau}_{xz}\left(1+\frac{{r_i}^2}{r^2}\right)\sin \theta \\ {}{\tau}_{zr}={\tau}_{xz}\left(1-\frac{{r_i}^2}{r^2}\right)\cos \theta +{\tau}_{yz}\left(1-\frac{{r_i}^2}{r^2}\right)\sin \theta \end{array}} $$
(19)

As a consequence, the total stresses induced by pore pressure, temperature gradient, and external stresses (such as in situ stresses and drilling mud pressure) can be written as the sum of Eq. 18 and Eq. 19,

$$ {\displaystyle \begin{array}{l}{\sigma}_{rr}={\sigma}_r+{\sigma_r}^{\hbox{'}}\\ {}{\sigma}_{\theta \theta}={\sigma}_{\theta }+{\sigma_{\theta}}^{\hbox{'}}\\ {}{\sigma}_{zz}={\sigma}_z+{\sigma_z}^{\hbox{'}}\end{array}} $$
(20)

where:

$$ {\sigma}_{BCS}=\left[\begin{array}{ccc}{\sigma}_{xx}& {\sigma}_{xy}& {\sigma}_{xz}\\ {}{\sigma}_{xy}& {\sigma}_{yy}& {\sigma}_{yz}\\ {}{\sigma}_{xz}& {\sigma}_{yz}& {\sigma}_{zz}\end{array}\right] $$
(21)

The relationship between the stresses around the wellbore and in situ stresses in BCS can be expressed as follows:

$$ {\sigma}_{BCS}=B{E}^T{\sigma}_{in- situ}E{B}^T $$
(22)

where E is the transformation between in situ stresses and GCS, B is the transformation between BCS and GCS, just as follows:

$$ E=\left[\begin{array}{ccc}\cos \varOmega & \sin \varOmega & 0\\ {}-\sin \varOmega & \cos \varOmega & 0\\ {}0& 0& 1\end{array}\right] $$
(23)
$$ B=\left[\begin{array}{ccc}\cos \chi \cos w& \sin \chi \cos w& \sin w\\ {}-\sin \chi & \cos \chi & 0\\ {}-\cos \chi \sin w& -\sin \chi \sin w& \cos w\end{array}\right] $$
(24)
$$ {\sigma}_{in- situ}=\left[\begin{array}{ccc}{\sigma}_H& 0& 0\\ {}0& {\sigma}_h& 0\\ {}0& 0& {\sigma}_v\end{array}\right] $$
(25)

The stress components in CCS are expressed in Eq. (19) and Eq. (20):

$$ {\sigma}_{CCS}=\left[\begin{array}{ccc}{\sigma}_{r r}& {\sigma}_{r\theta}& {\sigma}_{r z}\\ {}{\sigma}_{r\theta}& {\sigma}_{\theta \theta}& {\sigma}_{\theta z}\\ {}{\sigma}_{r z}& {\sigma}_{\theta z}& {\sigma}_{zz}\end{array}\right] $$
(26)

Rock failure criteria

Failure criteria determine the amount of stress that can be tolerated by a deformation before failure. If the stresses around the wellbore are greater than the rock compression then the rock fails. There exist two shear failure forms, one is the rock matrix shear failure and the other is weakness plane shear failure.

Mohr-coulomb failure criteria for rock matrix

The Mohr-coulomb failure criterion is expressed in Eq. (27):

$$ {\tau}_0={c}_0+{\sigma}_{n0}\tan {\varphi}_0 $$
(27)

For the convenience of calculation, the eq. (27) can be written as the following form:

$$ {\sigma}_1=\frac{2{c}_0\cos {\varphi}_0}{1-\sin {\varphi}_0}+\frac{1+\sin {\varphi}_0}{1-\sin {\varphi}_0}{\sigma}_3 $$
(28)

According to the Eq. (28), a rock matrix shear failure index is defined, it illustrates that the rock matrix of wellbore occurs shear failure if the value of c0f larger than zero.

$$ {c}_{0f}={\sigma}_1-\frac{2{c}_0\cos {\varphi}_0}{1-\sin {\varphi}_0}-\frac{1+\sin {\varphi}_0}{1-\sin {\varphi}_0}{\sigma}_3 $$
(29)

The principal stresses around the wellbore wall can be calculated using the following equations:

$$ {\displaystyle \begin{array}{l}{\sigma}_1={\sigma}_{rr}\\ {}{\sigma}_2=\frac{\sigma_{\theta \theta}+{\sigma}_{zz}}{2}+\sqrt{{\left(\frac{\sigma_{\theta \theta}-{\sigma}_{zz}}{2}\right)}^2+{\sigma_{\theta z}}^2}\\ {}{\sigma}_3=\frac{\sigma_{\theta \theta}+{\sigma}_{zz}}{2}-\sqrt{{\left(\frac{\sigma_{\theta \theta}-{\sigma}_{zz}}{2}\right)}^2+{\sigma_{\theta z}}^2}\end{array}} $$
(30)
$$ {\displaystyle \begin{array}{l}{\sigma}_{Max}=\mathit{\operatorname{Max}}\left({\sigma}_1,{\sigma}_2,{\sigma}_3\right)\\ {}{\sigma}_{Min}=\mathit{\operatorname{Min}}\left({\sigma}_1,{\sigma}_2,{\sigma}_3\right)\end{array}} $$
(31)

Mohr-coulomb failure criteria for weak plane

The Mohr-coulomb failure criterion for weak plane is expressed in Eq. (32):

$$ {\tau}_w={c}_w+{\sigma}_{nw}\tan {\varphi}_w $$
(32)

We also defined a weak plane shear failure index according to the Eq. (32), the weak plane of wellbore fails if the value of cwf larger than zero.

$$ {c}_{wf}={\tau}_w-{c}_w-{\sigma}_{nw}\tan {\varphi}_w $$
(33)

The stresses in CCS are projected onto the surface of weak plane by using Eq. (34):

$$ {\displaystyle \begin{array}{l}{\sigma}_{CCS- WCS}=W{B}^T{C}^T{\sigma}_{CCS} CB{W}^T{\sigma}_{CCS- WCS}\\ {}\kern.5em =\left[\begin{array}{ccc}{\sigma}_{xx}^w& {\tau}_{xy}^w& {\tau}_{xz}^w\\ {}{\tau}_{xy}^w& {\sigma}_{yy}^w& {\tau}_{yz}^w\\ {}{\tau}_{xz}^w& {\tau}_{yz}^w& {\sigma}_{zz}^w\end{array}\right]\end{array}} $$
(34)

where C is the transformation between CCS and BCS and W is the transformation between WCS and GCS, just as follows:

$$ C=\left[\begin{array}{ccc}\cos \theta & \sin \theta & 0\\ {}-\sin \theta & \cos \theta & 0\\ {}0& 0& 1\end{array}\right] $$
(35)
$$ W=\left[\begin{array}{ccc}\cos \gamma \cos \phi & \sin \gamma \cos \phi & \cos \phi \\ {}-\sin \gamma & \cos \gamma & 0\\ {}-\cos \gamma \sin \phi & -\sin \gamma \sin \phi & \sin \phi \end{array}\right] $$
(36)

The normal stress and shear stress on the plane of weakness are as Eq. (39).

$$ {\displaystyle \begin{array}{l}{\sigma}_{nw}={\sigma}_{xx}^w\\ {}{\tau}_w=\sqrt{{\left({\tau}_{xy}^w\right)}^2+{\left({\tau}_{xz}^w\right)}^2}\end{array}} $$
(37)

Wellbore stability analysis and discussion

The rock used in this paper is obtained from Shuanghe area in Nanbu, Sichuan Province of China; the related experimental study of the rock has been done by Chen and Ma (2014) and Jia et al. (2012); the impute parameters are shown in Table 1.

Table 1 The impute parameters

Transient temperature and pore pressure

The temperature profiles around the wellbore wall at different calculation times are plotted in Fig. 6. Figure 6a presents the cooling cases with a negative temperature difference, and Fig. 6b is the heating cases with a positive temperature difference. The size of the influenced area becomes lager with increasing time. For the cooling cases, the initial temperature of formation and drilling mud are 120 and 70 °C, respectively, with − 50 °C temperature difference. For the heating cases, the initial temperature of formation and drilling mud are 70 and 120 °C, respectively, with + 50 °C temperature difference.

Fig. 6
figure 6

Temperature profile under different caculation times

Figure 7 presents the induced pore pressure distribution around the borehole. A significant increase of pressure is generated near the wellbore at early times for the heating cases; on the contrary, a decreased pressure is generated for the cooling cases. With the time increasing the peak of the pore pressure is reduced and moves away from the wellbore, the pore pressure of the far away wellbore is almost not been disturbed and approximately equal to the initial formation pore pressure.

Fig. 7
figure 7

Induced pore pressure distribution around the borehole under different caculation times

Effect of inclination angle

Figure 8 presents the variation of the rock matrix shear failure index against wellbore circumferential angle for different inclination angles of wellbore. The value of shear failure index decreases with the inclination angle increases at the circumferential angle of 90° and 270°, but the contrary phenomenon occurs in 180° and 360°. The shear failure of rock matrix manly occurs at the circumferential angle of 90° and 270° and the size of failure region decreases with the inclination angle. Figure 9 presents the variation of weak plane shear slip failure index versus wellbore circumferential angle under various inclination angles. Just as the figure illustrated, the shear slip failure index of weak plane increases with the inclination angle increases at four locations around the borehole, the weak plane shear slip failure occurs if the value of failure index larger than zero. According to the above discussions, it can be concluded that the inclination angle has a dramatically influence on wellbore stability; in other words, wellbore stability has an intimate connection to the angle between weakness plane and the axis of borehole. In these two cases, the temperature difference between formation and drilling mud has not been taken into consideration, both of them are supposed equal to 120 °C, and the calculation time is 1000 s.

Fig. 8
figure 8

The effect of inclination angle on rock matrix failure (azimuth angle 0°)

Fig. 9
figure 9

The effect of inclination angle on weak plane failure (azimuth angle 0°)

Figure 10 presents the wellbore failures in formations with bedding planes. The wellbore buckling deformation and failure when penetrating horizontal or steeply dipping thinly cycled beds which researched by Bandis (1987) and Barton (2007) are given in Fig. 10a, and the wellbore failure obtained by a laboratory tests in shale with slightly dipping bedding is shown in Fig. 10b. The wellbore failure or buckling deformation emerged at four directions around the borehole, the failure regions have been marked in the figure with the Arabic numerals. Comparing Figs. 9 and 10, the failure index proposed in this paper can accurately show the wellbore failure conditions, it also verifies the accuracy of wellbore stability model in this paper again.

Fig. 10
figure 10

Wellbore failures in formations with bedding planes. a Wellbore buckling deformation and failure when penetrating horizontal or steeply dipping thinly-cycled beds. Model was fabricated by Bandis in 1987 (Barton 2007). b Laboratory tests of wellbore failure in shale with slightly dipping bedding (Okland and Cook 1998)

Effect of temperature

Figure 11 shows the effect of temperature on rock matrix shear failure index. The formation temperature and its difference between drilling mud have an expected influence on wellbore stability, the larger the temperature difference the heavier the wellbore shear failure would be, the shear failure is more prone to occur in heating cases than it in cooling cases. The reason for this phenomenon is that the wellbore rock and pore fluid will expand due to the positive temperature gradient, increasing the compressive stress of wellbore rock and the possibility of shear failure. Figure 12 presents the effect of temperature on weak plane shear slip failure index, it shows that the value of shear slip failure index is larger in heating cases than it in cooling cases when the weak plane is unstable; in contrast, the slip failure index is smaller in heating cases than it in the cooling cases when the weak plane is stable. The failure regions of wellbore with respect to inclination angles (range from 0° to 90° with an interval of 10°) when drilled along the azimuth angle 0° are plotted in Fig. 13. Figure 13a presents the heating cases, Fig. 13b shows the cooling cases, Fig. 13c is the cases with no temperature difference, and Fig. 13d is the cases without considering temperature. The areas shaded in blue is the rock matrix failure regions and the red represents the regions of weak plane failure. It is observed that the blue regions in heating cases are slightly larger than in cooling cases, and the weak plane presents shear slip failure when the inclination angle is 30° in heating cases; however, the weak plane is stable in cooling. In summary, temperature has great influence on wellbore instability, the larger the temperature difference is the more unstable the wellbore will be.

Fig. 11
figure 11

The effect of temperature on rock matrix shear failure index (azimuth angle 0°)

Fig. 12
figure 12

The effect of temperature on weak plane shear slip failure index (azimuth angle 0°)

Fig. 13
figure 13

Failure regions various temperaure difference (azimuth angle 0°)

The relationship between the required mud density for keeping wellbore stable and inclination angle, under four situations inclusing heating, cooling, no temperature difference and without temperaure, are presented in Figs. 14 and 15. The mud density required for both isotropic strength and slippage along the plane of weakess cases are determined for a given well azimuth and inclination, they are compared and then the larger of the two is selected as the required mud density to keep the wellbore stability. For example, for a wellbore drilled along the 75° direcion with a well inlination of 45° and without considering temperature difference, the mud density required to prevent rock matrix failure is 1.56 g/cm3, whereas the mud density required to prevent weak plane shear failure is 1.93 g/cm3. As a conseqence, the mud density required to keep wellbore stbility is 1.93 g/cm3.

Fig. 14
figure 14

Critical mud density for isotropic strength (azimuth angle 75°)

Fig. 15
figure 15

Critical mud density for the case in which anisotropic rock strength is incorporated with the case of isotropic rock strength (azimuth angle 75°)

Figure 14 presents the required mud density for isotropic strength, the effect of temperature on mud density is significantly obvious. The larger the temperature difference the bigger the mud density is required to keep the wellbore stable, and the required mud density is the smallest when without considering the formation temperature; hence, the factors of formation temperature and its difference between drilling mud cannot be ingored in the analysis of wellbore instability in thinly laminated rock formations, particularly in the determination of optimal drilling mud density. The figure also illustrates the required mud density decreases with the increasing of inclination angle.

Figure 15 shows the required mud density for the case in which anisotropic rock strength is incorporated with the case of isotropic rock strength. The mud density required for isotropic strength is selected as the required mud density to keep the wellbore stable if the inclination angle small than 30° and the mud density required for slippage along the plane of weakness is selected as the required mud density to keep the wellbore stable if the inclination angle larger than 30°. The mud density of keeping wellbore stable is almost constant while the inclination angle less than 30° and then increases with the inclination.

Effect of azimuth angle

Figure 16 shows the failure regions around wellbore drilled along the direction of σH (χ = 0°), cross-dip (χ = 75°), σh (χ = 90°), up-dip (χ = 165°), down-dip (χ = 345°) with various wellbore inclinations under zero temperature difference condition. The wellbores drilled along the direction of σH (χ = 0°) are more stable than those in the direction of σh (χ = 90°), while the inclination angle less than a certain value the slippage along the plane of weakness will not be happened and the failure degree of rock matrix will be decreased with the increasing wellbore inclinations. It also can be seen that drilling along the up-dip direction improves wellbore stability compared to the down-dip direction and cross-dip direction, which often experienced in the field (Last et al. 1995; Skelton et al. 1995).

Fig. 16
figure 16

Failure regions around wellbores drilled along different directions. a χ = 0°; b χ = 75°; c χ = 90°; d χ = 165°; e χ = 345°

The variation of mud density with well inclination along different azimuth angles is shown in Figs. 17 and 18. Figure 17 presents the isotropic strength case, as described in the figure, the required mud density is the smallest while in χ = 0° direction and largest in χ = 90°, the mud density in χ = 165° direction is equal to χ = 345°. The required mud density decreases with the increasing of inclination angle; the change gradient of mud density in χ = 90° and χ = 75° directions is smaller while larger in χ = 0°, χ = 165°, and χ = 345°.

Fig. 17
figure 17

The variation of mud density with well inclination along different azimuth angles for the isotropic strength case

Fig. 18
figure 18

The variation of mud density with well inclination along different azimuth angles for the case in which anisotropic rock strength is incorporated with the case of isotropic rock strength

Figure 18 presents the case in which anisotropic rock strength is incorporated with the case of isotropic rock strength; as described in the figure, the required mud density is smaller in χ = 0°, χ = 165°, and χ = 345° directions and larger in χ = 75° and χ = 90°, the required mud density significantly increases while the well inclination is larger than 30° especially for the cases of χ = 75° and χ = 90°. That is to say, if the formation is extensively fractured or prone to tensile failure while drilled in χ = 75° and χ = 90° directions, the wellbore tensile failure or leakage is more prone to take place. Therefore, drilling in χ = 0°, χ = 165°, and χ = 345° direcions is the best choice.

Conclusions

In present study, a wellbore stability model, which incorporates the rock strength anisotropy, formation temperature, and its difference between drilling mud, is carried out based on the stress transformations between the defined coordinate systems, and the Mohr-coulomb failure criteria employed for the rock matrix and the planes of weakness. Compared to the previous models, this model is more appropriate to the reality. The wellbore instability problems of anisotropic strength formation are analyzed by using this model, the following conclusions can be drawn.

  1. 1.

    A significant increase or decrease of pressure will be generated near the wellbore at early times due to the temperature difference between drilling mud and formation, with the time increasing the peak of the pore pressure will decrease and move away from the wellbore.

  2. 2.

    The shear failure of rock matrix mainly occurs at two symmetric locations around the borehole and the size of failure region decreases with the inclination angle; in contrast, the shear slip failure of weak plane occurs at four locations around the borehole.

  3. 3.

    Temperature difference has a great influence on wellbore instability, positive temperature difference will aggravate the wellbore instability, the larger the temperature difference the bigger the mud density is required, and the required mud density is the smallest when without considering the formation temperature.

  4. 4.

    If the inclination angle less than a certain value, the mud density required for isotropic strength should be selected as the required mud density to keep the wellbore stable, and it almost keeps a constant with the inclination angle changes. On the contrary, the mud density required for slippage along the plane of weakness should be selected when the inclination angle larger than this value, and it is increasing with the inclination angle.

  5. 5.

    The wellbores drilled along the direction of σH are more stable than those in the direction of σh, when the inclination angle less than a certain value the slippage along the plane of weakness will not be happened, the failure of rock matrix will be aggravated with the increasing wellbore inclination. Drilling along the up-dip direction improves wellbore stability compared to the down-dip direction and cross-dip direction.