1 Introduction

High-temperature high-pressure (HTHP) wells are becoming routine practice nowadays, especially in deep-water (Jaimes et al. 2022; Seymour and MacAndrew 1993) or deep-stratum (Liu et al. 2019; Cao et al. 2022) blocks. The HTHP well casings are located in a complex downhole environment with problems such as HTHP, large in situ stress, strong uncertainty of formation pressure, and narrow safety pressure window (Guan et al., 2018; Ming et al. 2019; Zhong 2016). In addition, complex situations such as lost circulation (Shen 2015; Xie et al. 2021) and gas kick (Gu et al. 2021; Yin et al. 2022) during the drilling process can easily lead to casing hollowing and deformation damage at the casing shoe. Moreover, high annulus pressure will be generated during the production stage due to the change of temperature field (Oudeman and Kerem 2006), corrosion and leakage of pipes (Zhang et al. 2021; Zhang et al. 2020), and sealing failure of cement sheath (Jin et al. 2013). Thus, huge challenges are encountered to maintain the wellbore integrity for HTHP wells. Recent researches on the reliability of HTHP well casing mainly focus on the annulus pressure (Dong and Chen 2017), calculation of casing load and strength (Guohua et al. 2012; Wang et al. 2015; Zhao et al. 2021), and evaluation methods (Li et al. 2021; Muoghalu et al. 2020; Wang et al. 2020). The principle and calculation models of annulus pressure have been preliminarily verified. It can be divided into trapped annulus pressure and sustained annulus pressure according to different origins. The trapped annulus pressure generally exists in the sealed annulus of the HTHP well, which is caused by the different expansion coefficients of the casing and annulus fluid. Scholars in the industry mainly research the calculation method of trapped annulus pressure from the aspects of PVT properties of the fluid (Oudeman and Kerem 2006), wellbore structure (Bo et al. 2015), and temperature–pressure coupling (Bailing et al. 2015). The sustained annulus pressure is mainly caused by the formation-fluid crossflow caused by wellbore integrity failure. The calculation model of sustained annulus pressure can be established based on the principles of gas mass conservation and annulus volume conservation (Zhang et al. 2018; Zhang et al., 2022). In addition, the sustained annulus pressure can be prevented by optimizing the ductile micro-expansion cement slurry and using the isolated liner hanger (Yang et al. 2018). For the calculation of casing load, the analytical solution of casing-cement sheath-stratum system stress distribution is obtained mainly through numerical simulation and mechanical derivation, considering non-uniform in situ stress and thermal-solid coupling (Qian and Gao 2011; Yin et al. 2006). At present, the latest casing strength calculation method in the industry is the K-T formula. Previous research shows that the influence of temperature on casing strength under the HTHP environment is mainly reflected in the change of pipe yield strength and elastic modulus (Wenkui et al. 1900). The traditional safety factor method is mainly used in the field to evaluate the reliability of casing. In recent years, domestic and foreign scholars have successively established evaluation methods based on the theories of stress–strength interference (Liao et al. 2012), neural network (Wang et al. 2020), reliability (Li et al. 2021; Zhu and Liu 2018) and Monte Carlo simulation (Muoghalu et al. 2020). For wells containing sour gas, the life of the casing is predicted considering the influence of steel corrosion on the residual strength of the casing (Kuanhai et al. 2022; LIAN et al. 2018). Through preliminary research, it can be found that the current evaluation of casing reliability mainly focuses on the case where the annulus is not pressurized after cementing, and the strength check of pressurized annulus casing mainly focuses on the local check with defects in the case of corrosive gas. The overall variation rule and dangerous points of casing reliability after annulus pressurization are still unclear, and there is a lack of reliability analysis of casing under different hollowing degrees in case of downhole risks such as lost circulation and gas kick during drilling.

In this paper, casing strength and load under the annulus pressure and extreme conditions during drilling are investigated based on the uncertainty analysis method and stress–strength interference theory. A WLC quantitative risk evaluation method for the whole borehole section of HTHP well casing is established considering the temperature effect on casing strength and load. This study provides a theoretical foundation and technical support for the reliability evaluation and optimal design of HTHP well casing in deep-water and deep-stratum formations.

2 Methodology

As shown in Fig. 1, the methodology can be divided into three sections. The first section is the WLC calculation model of casing load. The main consideration in the production stage is the effect of annulus pressure and non-uniform in situ stress. And the well construction stage mainly considers the extreme conditions with hollowing or ultimate pressure inside the casing, including casing running, lost circulation, gas kick, cementing, and casing-pressure-testing.

Fig. 1
figure 1

Flow chart of WLC quantitative evaluation method of casing reliability of HTHP wells

The second section is the calculation model of casing strength. The last section is the quantitative evaluation method of casing reliability, which is based on the calculation results of casing load and strength and considers the effect of the HTHP environment.

2.1 WLC Calculation Model of Casing Load

2.1.1 Well Construction Stage

In the casing running condition, the closed-up casing running technique is usually adopted. It can realize the purpose of increasing the buoyancy of casing and reducing the hook load by reducing the liquid level inside the casing and improving the hollowing degree. The casing is subject to effective external extrusion pressure, and the calculation formula is as follows:

$$p_{{{\text{ce}}}} = \left\{ {\begin{array}{*{20}l} {0.00981\rho_{{{\text{max}}}} h} \hfill & {h < H_{s} k_{m} } \hfill \\ {0.00981\rho_{{{\text{max}}}} H_{s} k_{m} } \hfill & {h \ge H_{s} k_{m} } \hfill \\ \end{array} } \right.$$
(1)

where \(p_{{{\text{ce}}}}\) denotes the effective external extrusion pressure, MPa; \(k_{m}\) denotes the hollowing degree, dimensionless (that is, the ratio of the liquid level drop height in the casing from the wellhead to the casing shoe depth); \(\rho_{{{\text{max}}}}\) denotes the maximum drilling fluid density in the current spuds, g·cm−3; \(H_{s}\) denotes the depth of casing shoe, m.

In the lost circulation condition, the most dangerous situation of the casing is considered, that is, lost circulation occurs at the beginning of the next spud. At this time, the density of drilling fluid in the wellbore is the minimum value for the next spud. Lost circulation causes a drop in liquid level in the wellbore, and the casing is subject to the effective external extrusion pressure, the calculation formula is as follows:

If \(H_{ce} < H_{s} k_{m}\),

$$p_{{{\text{ce}}}} = \left\{ {\begin{array}{*{20}l} {0.00981\rho_{{{\text{max}}}} h} \hfill & {h < H_{ce} } \hfill \\ {0.00981\left[ {\rho_{{{\text{max}}}} H_{ce} + \rho_{ce} \left( {h - H_{ce} } \right)} \right]} \hfill & {H_{ce} \le h < H_{s} k_{m} } \hfill \\ {0.00981\left[ {\rho_{{{\text{max}}}} H_{ce} + \rho_{ce} \left( {h - H_{ce} } \right) - \rho_{{{\text{nmin}}}} \left( {h - H_{s} k_{m} } \right)} \right]} \hfill & {h \ge H_{s} k_{m} } \hfill \\ \end{array} } \right.$$
(2)

If \(H_{ce} \ge H_{s} k_{m}\),

$$p_{{{\text{ce}}}} = \left\{ {\begin{array}{*{20}l} {0.00981\rho_{{{\text{max}}}} h} \hfill & {h < H_{s} k_{m} } \hfill \\ {0.00981\left[ {\rho_{{{\text{max}}}} H_{s} k_{m} + \left( {\rho_{{{\text{max}}}} - \rho_{{{\text{nmin}}}} } \right)\left( {h - H_{s} k_{m} } \right)} \right]} \hfill & {H_{s} k_{m} \le h < H_{ce} } \hfill \\ {0.00981\left[ {\rho_{{{\text{max}}}} H_{ce} + \rho_{ce} \left( {h - H_{ce} } \right) - \rho_{{{\text{nmin}}}} \left( {h - H_{s} k_{m} } \right)} \right]} \hfill & {h \ge H_{ce} } \hfill \\ \end{array} } \right.$$
(3)

where \(H_{ce}\) denotes the depth of cement surface, m; \(\rho_{{{\text{nmin}}}}\) denotes the minimum drilling fluid density in the next spud, g·cm−3; \(\rho_{ce}\) denotes the density of cementing slurry, g·cm−3.

In the condition of gas kick, it is necessary to shut in and hold the pressure to balance the bottomhole pressure. Considering the most dangerous scenario for casing, the stratum at the casing shoe is fractured during well shut-in and pressure build-up. And the casing is subject to effective internal pressure. The calculation formula is as follows:

If \(H_{ce} < H_{s} k_{m}\),

$$p_{be} = \left\{ {\begin{array}{*{20}l} {P_{f} - 0.00981\left( {\rho_{{{\text{nmin}}}} H_{s} k_{m} + \rho_{{{\text{max}}}} h} \right)} \hfill & {h < H_{ce} } \hfill \\ {P_{f} - 0.00981\left[ {\rho_{{{\text{nmin}}}} H_{s} k_{m} + \rho_{{{\text{max}}}} H_{ce} + \rho_{ce} \left( {h - H_{ce} } \right)} \right]} \hfill & {H_{ce} \le h < H_{s} k_{m} } \hfill \\ {P_{f} - 0.00981\left[ {\rho_{{{\text{nmin}}}} \left( {H_{s} - h} \right) + \rho_{{{\text{max}}}} H_{ce} + \rho_{ce} \left( {h - H_{ce} } \right)} \right]} \hfill & {h \ge H_{s} k_{m} } \hfill \\ \end{array} } \right.$$
(4)

If \(H_{ce} \ge H_{s} k_{m}\),

$$p_{be} = \left\{ {\begin{array}{*{20}l} {P_{f} - 0.00981\left( {\rho_{{{\text{nmin}}}} H_{s} k_{m} + \rho_{{{\text{max}}}} h} \right)} \hfill & {h < H_{s} k_{m} } \hfill \\ {P_{f} - 0.00981\left[ {\rho_{{{\text{nmin}}}} \left( {H_{s} - h} \right) + \rho_{{{\text{max}}}} h} \right]} \hfill & {H_{s} k_{m} \le h < H_{ce} } \hfill \\ {P_{f} - 0.00981\left[ {\rho_{{{\text{nmin}}}} \left( {H_{s} - h} \right) + \rho_{{{\text{max}}}} H_{ce} + \rho_{ce} \left( {h - H_{ce} } \right)} \right]} \hfill & {h \ge H_{ce} } \hfill \\ \end{array} } \right.$$
(5)

where \(P_{f}\) denotes the formation fracture pressure at casing shoe, MPa.

There is no hollowing in the cementing and casing-pressure-testing conditions, with cementing-bumping-pressure and casing-test-pressure in the casing. Under these conditions, the casing is subject to effective internal pressure, and the calculation formula is as follows:

$$p_{be} = \left\{ {\begin{array}{*{20}l} {P_{t} + 0.00981h\left( {\rho_{{\text{m}}} - \rho_{{{\text{max}}}} } \right)} \hfill & {h < H_{ce} } \hfill \\ {P_{t} + 0.00981\left[ {h\rho_{m} - \rho_{{{\text{max}}}} H_{ce} - \rho_{ce} \left( {h - H_{ce} } \right)} \right]} \hfill & {h \ge H_{ce} } \hfill \\ \end{array} } \right.$$
(6)

where \(\rho_{{\text{m}}}\) denotes the minimum drilling fluid density in the next spud, if the analyzed casing is production casing and in the last spud, \(\rho_{{\text{m}}}\) denotes the maximum drilling fluid density in the current spud, g·cm−3.

2.1.2 Production Stage

The main difference in the failure mode of casing between HTHP wells and conventional wells lies in the impact of HTHP on the load, specifically manifested in the annulus pressure. Annulus pressure generally occurs in the production stage. The main causations for it are gas crossflow caused by wellbore sealing failure, or annulus liquid expansion caused by annulus temperature and pressure change under good sealing condition. For trapped annulus pressure, it depends on the average changes of temperature and volume of the annulus section. According to the volume compatibility principle and the PVT property of annulus fluid, the calculation formula can be established (The details of the calculation model can be found in (Bo et al. 2015) and Appendix A). The sustained annulus pressure, caused by the gas crossflow, needs to be calculated through the conservation theorem of gas mass and annulus volume. Besides, it is assumed that the gas migration in the cement sheath is a one-dimensional unstable seepage in a single medium (The details of the calculation model can be found in (Zhang et al. 2018; Zhang et al., 2022) and Appendix B).

As shown in Fig. 2, the casing is vertically segmented into the unsealed section, the overlaying section, and the stratum section. According to the type of casing section and the source of load, the casing load calculation model is established.

Fig. 2
figure 2

Schematic diagram of casing section

1. Unsealed section.

The casing in the unsealed section is mainly affected by the hydrostatic pressure and annulus pressure.

2. Overlaying and stratum sections.

The external extrusion pressure of the casing in the overlaying and stratum sections is derived from the in situ stress. Under the effect of in situ stress and annulus pressure, the casing in overlaying and stratum sections is subject to the same variation laws of the external extrusion pressure and Mises equivalent stress. Since the risk of casing failure in the overlaying section is smaller than that in the stratum section, to simplify the calculation, the overlaying section is considered as the stratum section for casing load calculation.

Based on elastic mechanics, the theoretical solution of the stress of casing-cement sheath-stratum system is established. The casing stress problem under non-uniform in situ stress can be decomposed into the stress problems under uniform in situ stress and deviating in situ stress (Yin et al. 2006), and the solutions of the two problems are obtained, respectively, for superposition.

The calculation formula of equivalent extrusion load under uniform in situ stress is as follows:

$$s_{1} = (1 - v_{s} )\left( {\sigma_{H} + \sigma_{h} } \right)\left[ {1 + \frac{{E_{s} \left( {1 + v_{c} } \right)}}{{E_{c} \left( {1 + v_{s} } \right)\left( {1 - m^{2} } \right)}}\left( {1 - 2v_{c} + m^{2} } \right)} \right]^{{^{ - 1} }}$$
(7)

where \(\sigma_{H}\), \(\sigma_{h}\) denote the maximum and minimum horizontal in situ stress, respectively, MPa; \(v_{s}\), \(v_{c}\) denote the Poisson's ratio of stratum and casing, respectively, dimensionless; \(E_{s}\), \(E_{c}\) denote the elastic modulus of stratum and casing, respectively, GPa; \(m\) denotes the ratio of inner diameter to the outer diameter of the casing, dimensionless.

Under the condition of deviating in situ stress, the calculation formula of extrusion load is as follows:

$$\left\{ {\begin{array}{*{20}l} {s_{2} = \frac{{ - 2E_{c} \left( {1 - v_{s}^{2} } \right)\left( {C_{22} + C_{12} } \right)}}{{E_{s} \left( {1 + v_{c} } \right)\left( {C_{11} C_{22} - C_{12} C_{21} } \right)}}\left( {1 - m^{2} } \right)^{3} \left( {\sigma_{H} - \sigma_{h} } \right)} \hfill \\ {s_{3} = \frac{{2E_{c} \left( {1 - v_{s}^{2} } \right)\left( {C_{21} + C_{11} } \right)}}{{E_{s} \left( {1 + v_{c} } \right)\left( {C_{11} C_{22} - C_{12} C_{21} } \right)}}\left( {1 - m^{2} } \right)^{3} \left( {\sigma_{H} - \sigma_{h} } \right)} \hfill \\ \end{array} } \right.$$
(8)

where \(C_{11}\), \(C_{12}\), \(C_{21}\), \(C_{22}\) denote intermediate parameters obtained by simplifying stress distribution and displacement formulas of casing-cement sheath-stratum, respectively.

Finally, the equivalent external extrusion load of the non-uniform in situ stress acting on the casing is obtained as follows:

$$p_{{\text{o}}} { = } - s_{1} + \frac{{2|m^{2} s_{3} - 1 + m^{2} s_{2} |}}{{1 - m^{2} }}$$
(9)

The annulus fluid inside the casing in the overlaying and stratum sections is the drilling fluid used before the next spud cementing operation. Considering the effect of hydrostatic pressure and annulus pressure, the calculation formula of the casing internal pressure in the overlaying and stratum sections is as follows:

$$p_{{\text{i}}} = 0.00981\rho_{{{\text{nmax}}}} h + p_{{{\text{ia}}}}$$
(10)

where \(\rho_{{{\text{nmax}}}}\) denotes the maximum drilling fluid density in the next spuds, g·cm−3; \(p_{{{\text{ia}}}}\) denotes the annulus pressure inside of the casing, MPa; \(h\) denotes the vertical depth, m.

The research (Gao 2007) shows that the casing is affected by the payload, and the Mises equivalent stress of the casing is the minimum when the internal pressure acting on the casing is equal to the external extrusion pressure. The load reduction ratio of the cement sheath remains unchanged when the elastic modulus, Poisson's ratio, thickness, and other parameters of the cement sheath are determined. Due to the regional difference of in situ stress, it is necessary to calculate the casing payload and judge the reliability according to the actual situation.

2.2 Calculation Model of Casing Strength

The K-T formula considers the influence of manufacturing tolerance, material strain hardening index, and manufacturing defects on the strength (Galambos and Ravindra 1978), and the calculated result is close to the actual strength. The calculation formula of effective anti-extrusion strength of casing under the condition of triaxial stress is as follows (The detailed calculation process of Formula (11) is shown in Appendix C):

$$q_{{{\text{ca}}}} = \frac{{{(}\Delta p_{{\text{e}}} + \Delta p_{{\text{y}}} {)} - \sqrt {{(}\Delta p_{{\text{e}}} - \Delta p_{{\text{y}}} {)}^{2} + 4\Delta p_{{\text{e}}} \Delta p_{{\text{y}}} H_{{\text{t}}} } }}{{2{(}1 - H_{{\text{t}}} {)}}}$$
(11)

where \(q_{{{\text{ca}}}}\) denotes the effective anti-extrusion strength, MPa; \(H_{{\text{t}}}\) denotes the manufacturing residual stress influence factor.

The effective anti-internal-pressure strength of casing under triaxial stress is calculated as follows (The detailed calculation process of Formula (12) is shown in Appendix D):

$$q_{{{\text{ba}}}} = {\text{min}}{(}\frac{1}{2}{(}p_{{\text{M}}} + p_{{{\text{refT}}}} {)},p_{{\text{M}}} {)}$$
(12)

where \(q_{{{\text{ba}}}}\) denotes the effective anti-internal-pressure strength, MPa.

2.3 Quantitative Evaluation Method of Casing Reliability of HTHP Wells

2.3.1 Uncertainty Analysis of Load and Strength

There is uncertainty in the calculation results of traditional casing load and strength models due to the uncertainty of downhole information and the randomness of manufacturing tolerance values of the casing performance parameters. Based on the Monte Carlo simulation method and probability statistics theory, firstly, probability statistics are performed on the indirect or direct measurement parameters affecting casing strength and load. Next, a random sampling simulation is performed. Finally, we can obtain the probability distribution intervals of casing load and strength. The basic process is shown in Fig. 3 and described as follows.

Fig. 3
figure 3

Flowchart of uncertainty analysis of casing load and strength

1. Determining the probability distribution functions of parameters, which affect the uncertainty of casing load and strength. The parameters that affect casing load mainly include rock mechanics parameters, in situ stress, drilling fluid density, and annulus pressure. The influencing parameters of casing strength mainly include casing performance parameters, wellbore temperature, and casing load. According to the stratigraphic information, the stratified horizontal statistics are carried out on geo-pressure, rock mechanical parameters, in situ stress, and wellbore temperature. Thus, we can obtain the probability distribution functions \(f_{i,j} \left( x \right)\) at different layers, where \(f\) represents the probability density function (according to (Li et al. 2021), the distribution is set as normal in this paper), \(i\) represents the parameter type, and \(j\) represents the stratum layer. Based on the probability distributions of geo-pressure and wellbore pressure, using the Monte-Carlo simulation method (Harrison 2010), we can obtain the probability distribution of annulus pressure \(f_{i} \left( x \right)\). For the casing performance parameters, the random distribution characteristics of each performance parameter of the casing are given according to the experimental results of different sizes of casing in the ISO standard (10,400, 2007; Galambos and Ravindra 1978), as shown in Table 1. Thus, we can obtain the probability density function \(f_{i} \left( x \right)\) of each performance parameter.

Table 1 Random distribution characteristics of casing pipe performance parameters

2. To perform the load uncertainty analysis of different working conditions or different casing sections, the probability density functions \(f_{i,j} \left( x \right)\) or \(f_{i} \left( x \right)\) of the corresponding influencing parameters are matched by combining with the wellbore structure and the WLC casing load calculation model. Using the Monte-Carlo simulation method, taking the probability density functions of matched influencing parameters into the load calculation model, we can obtain the casing load probability density functions \(f_{i,j} \left( y \right),i \in \left\{ {p_{{\text{o}}} ,p_{{\text{i}}} } \right\}\) of the corresponding working conditions or casing sections. Finally, the type of casing payload is determined according to the mean value of external extrusion pressure and internal pressure, and the probability density functions \(f_{i,j} \left( y \right),i \in \left\{ {p_{{{\text{ce}}}} \left| {p_{{{\text{be}}}} } \right.} \right\}\) of the casing payload are obtained through the formula (13).

\(\left\{ {\begin{array}{*{20}c} {\mu_{{p_{ce} ,j}} = \mu_{{p_{{\text{o}}} ,j}} - \mu_{{p_{{_{{\text{i}}} }} ,j}} } \\ {\sigma_{{p_{ce} ,j}} { = }\sqrt {\sigma_{{p_{{\text{o}}} ,j}}^{{\text{2}}} + \sigma_{{p_{{_{{\text{i}}} }} ,j}}^{{\text{2}}} } } \\ \end{array} } \right.\) or \(\left\{ {\begin{array}{*{20}c} {\mu_{{p_{be} ,j}} = \mu_{{p_{{_{{\text{i}}} }} ,j}} - \mu_{{p_{{\text{o}}} ,j}} } \\ {\sigma_{{p_{be} ,j}} { = }\sqrt {\sigma_{{p_{{_{{\text{i}}} }} ,j}}^{{\text{2}}} + \sigma_{{p_{{\text{o}}} ,j}}^{{\text{2}}} } } \\ \end{array} } \right.\) (13).

where \(\mu_{{p_{{\text{o}}} ,j}}\), \(\mu_{{p_{{_{{\text{i}}} }} ,j}}\), \(\mu_{{p_{ce} ,j}}\), \(\mu_{{p_{be} ,j}}\) denote the mean values of casing external extrusion pressure, internal pressure, effective external extrusion pressure, and effective internal pressure, respectively, MPa; \(\sigma_{{p_{{\text{o}}} ,j}}\), \(\sigma_{{p_{{\text{i}}} ,j}}\), \(\sigma_{{p_{ce} ,j}}\), \(\sigma_{{p_{be} ,j}}\) denote the standard deviation of casing external extrusion pressure, internal pressure, effective external extrusion pressure, and effective internal pressure, respectively, MPa;

3. Similarly, for the casing strength, the probability density functions of casing load and casing pipe performance parameters are taken into the strength calculation model. Using the Monte-Carlo simulation method, we can obtain the probability density functions: \(f_{{q_{ca} ,j}} \left( y \right)\) (effective anti-extrusion strength) and \(f_{{q_{ba} ,j}} \left( y \right)\) (effective anti-internal-pressure strength).

2.3.2 Quantitative Evaluation Method

The safety factor method is the traditional method for evaluating the reliability of the casing, which takes the ratio of the casing strength to the load as the safety factor and compares it with the specified threshold to judge whether the casing is safe. Due to the uncertainty of casing load and strength, even if the safety factor is greater than 1, there is still a certain degree of unreliability. According to the stress–strength interference theory (Liao et al. 2012), the reliability \(R\) is defined as the probability \(P\) that the casing strength is greater than the casing load, namely,

$$R = P\left( {q > p} \right) = P(q - p > 0)$$
(14)

The stress–strength interference theory believes that reliability is the ability of casing to resist failure under given operating conditions, which is the result of the interaction between stress and strength. Due to the randomness of the factors affecting stress and strength, stress and strength exhibit dispersion characteristics. The probability distribution of stress and strength is obtained through Monte Carlo simulation. Compared to traditional methods such as finite element analysis and safety factors, the stress–strength interference theory considers the impact of uncertainty and quantitatively evaluates the reliability of the casing. As shown in Fig. 4, the casing load \(p\) and strength \(q\) are normally distributed, and the overlapping shaded part represents the casing failure risk probability \(F\). Since the reliability of the casing and the risk probability are reciprocal events, then,

$$F = 1 - R$$
(15)
Fig. 4
figure 4

Interference model of casing load and strength probability distribution

The mean values and standard deviations of casing load \(p\) and strength \(q\) can be obtained from Sect. 2.3.1. The interference variable is defined as \(z = q - p\), and it can be inferred that the interference variable z also obeys the normal distribution. Therefore, the calculation formula for casing reliability is:

$$R = \int_{ - \infty }^{\infty } {f_{p} \left( p \right)} \left[ {\int_{p}^{\infty } {f_{q} \left( q \right)dq} } \right]dp = \int_{0}^{\infty } {\frac{1}{{\sqrt {2\pi } \sigma_{z} }}\exp \left[ { - \frac{{\left( {z - \mu_{z} } \right)^{2} }}{{2\sigma_{z}^{2} }}} \right]dz}$$
(16)

where \(\mu_{z} = \mu_{q} - \mu_{p}\), \(\sigma_{z} = \sqrt {\sigma_{q}^{2} + \sigma_{p}^{2} }\).

3 Case Study

3.1 Formation Background

Well A is located in the Yingqiong Basin, South China Sea, with a true vertical depth (TVD) of 4110m. The well bottomhole temperature is 167.9 °C, and the bottomhole pressure is 86 MPa. The well structure and casing related data are shown in Table 2.

Table 2 Well structure and casing data of well A

3.2 Influence of HTHP Environment on Casing Load and Strength

In HTHP wells, temperature and other factors will affect the yield strength, elastic modulus, and other parameters of the casing, thus affecting the casing strength. To explore the effect of temperature on the casing strength, the high-temperature tensile test is carried out. By stretching the test pieces at different temperatures, the stress–strain curves and the yield indexes of plastic strain at different temperatures can be obtained. Thus, we can obtain the change rules of the elastic modulus and yield strength of the casing with temperature. As shown in Fig. 5a, taking N80-grade steel casing as an example, the effect of temperature on the yield strength and elastic modulus of the casing is almost linear. And the influence degree is related to the steel materials. For different steel grade casings, the relational expressions of elastic modulus and yield strength with temperature are established, respectively.

Fig. 5
figure 5

Diagram of casing strength and performance parameters changing with temperature

The correction formula of elastic modulus affected by temperature is as follows:

$$E^{\prime}_{c} = \begin{array}{*{20}c} {E_{c} {(}1 - K_{{\text{e}}} {)}T} & {{(}T > 25{)}} \\ \end{array}$$
(17)

where \(T\) denotes the temperature, °C.

The correction formula of yield strength affected by temperature is as follows:

$$Y_{{\text{p}}}^{\prime } = \begin{array}{*{20}c} {Y_{{\text{p}}} {(}1 - K_{{\text{y}}} {)}T} & {{(}T > 25{)}} \\ \end{array}$$
(18)

Taking 13–3/8-inch N80-grade casing, the change rule of casing strength affected by temperature is obtained by comprehensively considering the influence of temperature on yield strength and elastic modulus, as shown in Fig. 5b. It can be seen that the anti-extrusion strength is less affected by temperature, and the strength value decreases slightly even when the temperature exceeds 300 °C. While the anti-internal-pressure strength is more obviously affected by temperature. In the HTHP environment, the failure risk of anti-internal-pressure of the casing will increase due to the influence of temperature when the casing is subject to effective internal pressure.

The influence of the HTHP environment on casing load is not only by changing the annulus pressure and drilling fluid rheological parameters but also by affecting the casing performance parameters. In the production stage, the elastic modulus of casing will decrease with the rise of downhole temperature. And based on the aforementioned calculation model of casing equivalent external extrusion pressure, the external extrusion pressure also decreases under the condition of constant in situ stress, as shown in Fig. 6. It can be found that when the temperature reaches 200 °C, the elastic modulus of the casing decreases to 175 GPa, then the external extrusion pressure will decrease by 5.7 MPa. If the casing is subject to effective internal pressure, its payload will increase, which reduces its reliability of anti-internal-pressure.

Fig. 6
figure 6

Diagram of casing external extrusion pressure changing with elastic modulus

3.3 Reliability Evaluation in the Production Stage

3.3.1 Casing Safety Factor Before Annulus Pressurized

For the production stage, the casing safety factor before and after the annulus pressurization is analyzed by calculating the casing load and strength. Figure 7a shows the distribution of safety factor before the annulus pressurization. It can be found from Table 2 and Fig. 7a that the 20-inch casing only includes the stratum section, due to the small in situ stress in the shallow formation and the load reduction effect of the cement sheath, it is subject to the effective internal pressure. The lowest point of the safety factor of anti-internal-pressure is at 460m (that is, the boundary between the casings with two kinds of wall thickness). Due to the relatively high density of the inside drilling fluid, the 13–3/8-inch casing is generally affected by the effective internal pressure, which decreases with the increasing well depth. The safety factor of anti-internal-pressure suddenly increases at 1100m (that is, the cement surface outside the casing) due to the impact of in situ stress, and the minimum safety factor of anti-internal-pressure appears at 2980m (that is, the cement surface inside the casing). Similarly, the unsealed section at the upper part of 9–5/8-inch casing is subject to effective internal pressure. While the overlaying and stratum sections at the lower part of 2980m, due to the large in situ stress of deep formation, are subject to effective external extrusion pressure, even under the action of cement sheath load reduction.

Fig. 7
figure 7

Distribution diagram of casing safety factor at the production stage of well A

3.3.2 Reliability Analysis After Annulus Pressurization

The output is set to 20 × 104 m3/d, and the production period is set to 90 days (annulus pressure tends to be stable). The trapped annulus pressure and sustained annulus pressure of annuli A, B, and C are calculated, respectively. Selecting the greater values among the two kinds of annulus pressure in each annulus, the casing load and strength after each annulus is individually pressurized are calculated to perform the reliability analysis. The results are shown in Fig. 7b and Table 3. It can be found that the overall trend and weak points of the casing safety factor of anti-internal-pressure remain the same after each annulus is individually pressurized. In addition, the annulus pressure will also affect the anti-extrusion reliability of the casing inside the annulus. It can be seen that the minimum anti-extrusion safety factors of the 13–3/8-inch casing and the 9–5/8-inch casing are at the wellhead. Since the density of the liquid in the inner annulus of the casing is greater than that of the outer annulus, the effective external extrusion pressure gradually decreases with the increasing well depth. The casings on both sides of annuli A and B can achieve safe production after the annulus is pressurized. While the pressure in annulus C reaches 19 MPa, which poses a safety challenge to the anti-extrusion at the wellhead of 13–3/8-inch casing inside the annulus and the anti-internal-pressure at 460m of 20-inch casing outside the annulus. In fact, after the well is put into production for a period, the casing on both sides of the C annulus is slightly deformed, which shows the effectiveness of the proposed evaluation method.

Table 3 Reliability analysis results of well A under each annulus individually pressurized

It can be seen from Table 3 that under the allowable safety factor, the casing weak points still have certain unreliability. According to the characteristics of the normal distribution cumulative probability density function, when the reliability \(R = 1\), the interference variable z is a positive infinite value. Therefore, assuming that \(R = 0.99\), the casing is safe and reliable. To make the reliability of overall casings reach 0.99, through multiple back-calculations, the MAAPs of annuli A, B and C are 76MPa, 40.5MPa, and 13.8Mpa.

3.4 Failure Risk Analysis in the Well Construction Stage

To ensure the WLC reliability of the casing in HTHP wells, the failure risks of casing in each extreme condition are analyzed for the well construction stage. And the MAHDs of casing safety under the conditions of lost circulation, gas intrusion, and casing running are recommended. The results are shown in Figs. 8, 9, 10.

Fig. 8
figure 8

Reliability distribution diagram of 20-inch casing during the well construction stage

It can be seen from Fig. 8 that, for the 20-in casing, the MAHD during the casing running process is 77%, and the dangerous section is the hollowing surface, where the anti-extrusion safety factor is 1 and the reliability is about 0.8. When lost circulation occurs in the next spud, the MAHD is 24%, and the dangerous section is at the hollowing surface, with an anti-extrusion safety factor of 1 and a reliability of 0.89. During the gas kick process in the next spud, the MAHD is 52%, and the dangerous section is at the wellhead, with an anti-internal-pressure safety factor of 1.2 and a reliability of 0.99. The internal-string cementing technique is adopted for the 1st spud, so there is no displacement pressure, the casing is subject to effective external extrusion pressure, and the minimum anti-extrusion safety factor appears at the bottom of the well. During the casing-pressure-testing process, the casing is mainly affected by effective internal pressure, and the minimum safety factor of anti-internal-pressure appears at the wellhead.

As for the 13–3/8-in casing, it can be seen from Fig. 9 that the MAHD during the casing running process is 30%, and the dangerous section is at the casing shoe, with an anti-extrusion safety factor of 1 and a reliability of 0.9. In the process of lost circulation in the next spud, the MAHD is 25%, and the dangerous section is at the bottom of the well, with an anti-extrusion safety factor of 1 and anti-extrusion reliability of 0.7. In the process of gas kick in the next spud, the MAHD is 63%, and the dangerous section is at the wellhead, with an anti-internal-pressure safety factor of 1.2 and anti-internal-pressure reliability of 0.99. The double-rubber-plug cementing technique is adopted in the 2nd spud, with a bumping-pressure of 20 MPa, the casing is subject to effective internal pressure. The safety factor does not fluctuate much in the whole casing, and the minimum anti-internal-pressure safety factor appears at the casing shoe. In the process of the casing-pressure-testing, the curve of the safety factor of anti-internal-pressure has little difference with that of cementing, and the minimum anti-internal-pressure safety factor also appears at the casing shoe.

Fig. 9
figure 9

Reliability distribution diagram of 13–3/8-inch casing during the well construction stage

For the 9–5/8-in casing, it can be seen from Fig. 10 that the MAHD is 67% during casing running, and the dangerous section appears at the bottom of the well, with an anti-extrusion safety factor of 1 and anti-extrusion reliability of 0.8. The MAHD is 66% when lost circulation occurs in the 4th spud drilling process, and the dangerous section appears at the casing shoe, with an anti-extrusion safety factor of 1 and reliability of 0.5. When gas kick occurs during the drilling process of the 4th spud, the MAHD is 99%, the minimum anti-internal-pressure safety factor at the wellhead is 1.2, and the reliability is 0.99. In the process of cementing and casing-pressure-testing, the casing meets the requirements of reliability, the safety factor of the whole casing section is similar, and the weak point is at the casing shoe.

Fig. 10
figure 10

Reliability distribution diagram of 9–5/8-inch casing during the well construction stage

It can be found from the above analysis results that, within the allowable range of the safety factor, there are still some risks at the casing shoe under the condition of lost circulation and casing running. To ensure the reliability of the casing to reach 0.99, the recommended MAHDs for each spud are given through back-calculation under the conditions of casing running, lost circulation, and gas kick. For the 20-inch casing, the MAHDs are 74, 21, and 52%, respectively. For the 13–3/8-inch casing, the MAHDs are 30, 20, and 63%, respectively. And for the 9–5/8-inch casing, the MAHDs are 64, 64, and 99%, respectively.

It is concluded that the casing failure risk of the whole well mainly occurs in the conditions of casing running and lost circulation. The MAHDs of 20-inch and 13–3/8-inch casings are low, which fails to meet the requirement of more than 30% hollowing. In addition, in the long-term production stage, the MAAP of annulus C is low, and there will be certain risks when annulus C is pressurized. It is recommended to increase the length of the thicker wall section of the 20-inch casing, increase the wall thickness of the 13–3/8-inch casing, increase the steel grade of the 13–3/8-inch casing or reduce the running depth of the 13–3/8-inch casing.

4 Conclusion

The evaluation method proposed in this paper investigates the effects of annulus pressure, non-uniform in situ stress, drilling extreme conditions, and the HTHP environment, which can be used to calculate the MAAP and MAHD under existing production and drilling plans, thus helping to optimize production and casing strength design. Compared to the conventional casing reliability evaluation methods, the proposed method considers the WLC casing load variation of HTHP wells, the impact of the HTHP environment, and the information uncertainty of casing load and strength. The detailed conclusions are as follows:

  1. 1.

    In the HTHP environment, high temperature will reduce the elastic modulus and yield strength of the casing, thereby reducing the casing strength of anti-extrusion and anti-internal-pressure. If the casing is subject to effective internal pressure, the reliability of anti-internal-pressure will decrease. Design suggestion: when the formation temperature exceeds 100 °C, the casing strength should be designed with a margin to avoid high temperature reducing reliability.

  2. 2.

    For the well construction stage, the weak points of casing anti-extrusion are located at the casing shoe during casing running, lost circulation, cementing, and casing-pressure-testing conditions, and the weak point of casing anti-internal-pressure is located at the wellhead in case of gas kick. Under the hollowing degree with allowable safety factors, there is still some risk in the casing running and lost circulation conditions. The MAHDs were calculated to ensure casing safety under the existing drilling plan. Design suggestion: the casing strength at weak points should be strengthened accordingly if in leak-prone geological conditions such as narrow safety pressure windows and fractured strata.

  3. 3.

    For the production stage, before and after annulus pressurization, the overall trend of the casing safety factor of anti-internal-pressure remains the same and decreases with increasing well depth. The weak points exist at the inner cement surface or boundary point of different wall thickness casings. The risk of casing extrusion after annulus pressurization increases with decreasing well depth, the weak points are located at the wellhead. Under the existing production plan, the MAAPs were calculated for production optimization. Annulus pressure is common in the production stage of HTHP wells, if it can be considered in the casing-strength design, the casing reliability will be improved.