1 Introduction

Bottom water reservoirs are widely distributed on earth and hold a large proportion of oil reserves (Islam 1993). Taking China for example, there exist a large number of bottom water reservoirs, most of which are developed using horizontal wells. Compared with vertical wells, the producing sections of horizontal wells have direct contact with oil reservoirs, which not only reduces the producing pressure drawdown, but also ensures bottom water flowing into the wellbore more smoothly in a form of “pushing upward” (Besson and Aquitaine 1990; Dou et al. 1999; Permadi et al. 1996; Zhao et al. 2006). Owing to these advantages, it can effectively control bottom water cresting. The need of economic and effective development of bottom water reservoirs leads to the appearance of many types of completion methods, such as barefoot well completion, slotted screen well completion and perforation completion (Ouyang and Huang 2005). Recently, partial completion, variable density perforation completion and other new completion methods have been put forward to further control bottom water cresting (Goode and Wilkinson 1991; Sognesand et al. 1994). By accurately finding out the water production interval of horizontal wells, adopting plugging strategies or properly adjusting the bottom water inflow profile, these techniques can effectively prolong the life of production wells. And among all these techniques, perforation completion, including variable density perforation and selectively perforated completion, plays a critical role in alleviating water cresting (Pang et al. 2012).

Previously, scholars put more emphasis on the productivity evaluation of horizontal wells (Dikken 1990; Novy 1995; Penmatcha et al. 1998) and bottom water cresting (Permadi et al. 1995; Wibowo et al. 2004; Chaperon 1986). The published papers mostly focused on horizontal wells with open-hole completion. There is little research into horizontal wells with variable density perforation completion, and the ones that exist turned out to be very problematic: (1) The method for open-hole completion horizontal wells was used ignoring the fluid flow in perforation tunnels in these studies (Landman and Goldthorpe 1991; Yuan et al. 1996; Zhou et al. 2002). Then, a model describing the damage zone must be introduced to characterize the influence of perforation holes (Umnuayponwiwat and Ozkan 2000; Muskat and Wycokoff 2013). Some scholars utilized the numerical simulation method to discuss the impact of selective perforation on the productivity of horizontal wells and built a single-phase flow variable density perforation model for horizontal wells by two filtration zones (Li et al. 2010). Since the seepage resistance needs to be considered more precisely, especially in the middle and later periods of the oilfield development, the existing results are somewhat inaccurate. (2) Conventional simplified models cannot analyze formation pressure thoroughly and predict bottom water cresting. Furthermore, a non-uniformly distributed bottom water inflow profile along the wellbore was obtained without considering the wellbore pressure drop (Guo et al. 1992). (3) In order to optimize completion parameters for horizontal wells, oil production is usually viewed as the only objective function. It is reasonable for horizontal wells in conventional reservoirs. However, it is not accurate for horizontal wells located in bottom water reservoirs because of ignoring bottom water cresting, which decreases the effective production period of wells (Luo et al. 2015).

In this paper, based on the precise consideration of the fluid flow in each perforation, the flow behavior in perforations, wellbores, as well as reservoirs, was analyzed. Coupling the fluid flow in reservoirs and wellbore pressure drop, a comprehensive model, which can be used to evaluate productivity of horizontal wells, was developed based on potential functions and solved using the numerical discrete method. Then, a model describing bottom water cresting was established on the basis of the piston-like displacement principle. Finally, both the bottom water cresting behavior and the factors influencing inflow profile were analyzed using the developed model, and a more systematic optimization method was proposed by introducing the concept of the cumulative free-water production, which could realize a balance between stabilizing oil production and controlling bottom water coning.

2 Productivity analysis for horizontal wells with variable density perforation completion

For horizontal wells with perforation completed in bottom water reservoirs, formation fluids firstly flow into perforation holes before converging in the horizontal wellbore. Under this circumstance, the effect of perforation holes is similar to that of short producing branches in inclined horizontal wells (Holmes et al. 1998). The real producing part for horizontal wells should be quantities of perforation holes. Therefore, the perforation holes can be regarded as “source-sink” term, and this kind of problem can be solved with a source function.

2.1 Analysis of fluid flow near wellbore regions

A model was built to describe the flow of formation fluid near horizontal wellbores, and the assumptions for this model are as follows:

  1. (1)

    The formation is homogeneous with a uniform thickness;

  2. (2)

    The horizontal permeability meets the following basic relationship: K x  = K y  = K h, and the vertical permeability is K z  = K v. The target reservoir is infinite in the horizontal plane;

  3. (3)

    The single-phase fluid flowing in the reservoir is incompressible and the fluid flow obeys Darcy’s law;

  4. (4)

    The wellbore is horizontal, in which the perforations are unevenly distributed;

  5. (5)

    The perforating direction is perpendicular to the wellbore, and the lengths as well as radius of all the perforation tunnels are the same.

A coordinate system is established as shown in Fig. 1, in which the heel end of the wellbore is M 0 (x 0, y 0, z 0). The horizontal part of the wellbore (total length L, m) is divided into N segments. Therefore, the length of each segment is L/N.

Fig. 1
figure 1

Schematic diagram near the horizontal wellbore in a bottom water reservoir

Different segments have different characteristic parameters: the perforation density, n p(i); the perforation depth, l p; bore diameter, D p; phase angle ω; and the initial perforation angle ω 0. The heel end is selected as the origin of this coordinate, and the x direction is parallel with the wellbore. The coordinates of any point (x, y, z) in the jth perforation tunnel in the ith segment are as follows:

$$\left\{ {\begin{array}{*{20}l} {x_{\text{p}} (i,j,t) = x_{0} + \frac{L}{N}\left( {\sum\limits_{k = 1}^{i - 1} {\sin \theta_{k} } \cos \alpha_{k} + \frac{j}{{n_{\text{p}} (i)}}\sin \theta_{i} \cos \alpha_{i} + t \cdot l_{\text{p}} \sin \gamma_{i\,j} \cos \chi_{i\,j} } \right)} \hfill \\ {y_{\text{p}} (i,j,t) = y_{0} + \frac{L}{N}\left( {\sum\limits_{k = 1}^{i - 1} {\sin \theta_{k} } \sin \alpha_{k} + \frac{j}{{n_{\text{p}} (i)}}\sin \theta_{i} \sin \alpha_{i} + t \cdot l_{\text{p}} \sin \gamma_{i\,j} \sin \chi_{i\,j} } \right)\quad (0 \le t \le 1)} \hfill \\ {z_{\text{p}} (i,j,t) = z_{0} + \frac{L}{N}\sum\limits_{k = 1}^{i - 1} {\cos \theta_{k} } + \frac{j}{{n_{\text{p}} (i)}}\cos \theta_{i} + t \cdot l_{\text{p}} \cos \gamma_{i\,j} } \hfill \\ \end{array} } \right.$$
(1)

where \(\theta_{k}\) is the angle between the kth segment and the vertical direction, \(k = 1,\;2,\; \ldots ,\;i - 1\); α k is the angle between the x-axis and the projection of the kth segment in the horizontal plane, \(k = 1,\;2, \ldots ,\;i - 1\). \(\theta_{i}\) is the angle between the ith segment and the vertical direction; α i is the angle between the x-axis and the projection of the ith segment in the horizontal plane; \(\gamma_{i\,j}\) is the angle between the jth perforation in the ith producing part of the horizontal well and the z-axis; \(\chi_{i\,j}\) is the angle between the x-axis and the projection in the xy plane of the jth perforation in the ith segment of the horizontal well; in this paper, when all the perforation is perpendicular to the horizontal wellbore, then χ i,j  = π/2.

According to the classical theory of flow in porous media (Cheng 2011), the fluid flow at any point in an infinite reservoir obeys the Laplace equation. So we have:

$$\frac{{\partial^{2} p}}{{\partial x^{2} }} + \frac{{\partial^{2} p}}{{\partial y^{2} }} + \frac{{K_{\text{v}} }}{{K_{\text{h}} }}\frac{{\partial^{2} p}}{{\partial z^{2} }} = 0$$
(2)

where p is the pressure, MPa; K v is the vertical permeability, μm2; and K h is the horizontal permeability, μm2.

Substituting linear transformation \(z^{\prime } = \beta z\), where \(\beta = \sqrt {K_{\text{h}} /K_{\text{v}} }\), into Eq. (2) gives:

$$\frac{{\partial^{2} \varPhi }}{{\partial x^{2} }} + \frac{{\partial^{2} \varPhi }}{{\partial y^{2} }} + \frac{{\partial^{2} \varPhi }}{{\partial z^{\prime 2} }} = 0$$
(3)

where \(\varPhi = {{\sqrt {K_{\text{h}} K_{\text{v}} } } \mathord{\left/ {\vphantom {{\sqrt {K_{\text{h}} K_{\text{v}} } } {\mu_{o} p}}} \right. \kern-0pt} {\mu_{\text {o}} p}}\), m2/s; μ o is the oil viscosity, mPa s; and also the corresponding parameters of the perforation become:

$$\begin{aligned} & l_{\text{p}}^{\prime } = l_{\text{p}} \sqrt {\beta^{2} \cos \gamma_{ij}^{2} + \frac{1}{{\beta^{2} }}\sin \gamma_{ij}^{2} } ;\\ & \sin \gamma_{ij}^{\prime } = \frac{{\beta \sin \gamma_{ij} }}{{\sqrt {\beta^{2} \cos \gamma_{ij}^{2} + \frac{1}{{\beta^{2} }}\sin \gamma_{ij}^{2} } }};\\ & \cos \gamma_{ij}^{\prime } = \frac{{\cos \gamma_{ij} }}{{\beta \sqrt {\beta^{2} \cos \gamma_{ij}^{2} + \frac{1}{{\beta^{2} }}\sin \gamma_{ij}^{2} } }}.\end{aligned}$$

In order to simplify the solution procedure, one assumption that the flow rates of all perforations in each segment are equal, is proposed (Wang et al. 2006):

$$q_{\text{p}} = \frac{{q_{\text{ra}} (i)}}{{\Delta x\;n_{\text{p}} (i)}}$$
(4)

where q p is the flow rate of each perforation at the ith segment, m3/s; \(q_{\text{ra}} (i)\) is the flow rate of the ith segment, m3/s; \(\Delta x\) is the length of the ith segment, which is equal to L/N, m; and \(n_{\text{p}} (i)\) is the perforation density of the ith segment, holes/cm.

Compared with the length of the horizontal wellbore, the perforation is rather short. Therefore, it can be regarded as an infinitesimal line source. After integrating the point sink solution over the perforation direction, the pressure response of any perforation hole in the formation is obtained. For example, the potential at point M(x, y, z′) caused by the jth perforation in the ith segment can be described as:

$$\varPhi {}_{ij}(x,y,z^{\prime } ) = \int\limits_{0}^{{l_{\text{p}} }} { - \frac{{q_{\text{r}} (i,j)}}{{4\pi l_{\text{p}} r}}{\text{d}}s} + C_{ij} = \int\limits_{0}^{{l_{\text{p}} }} { - \frac{{Nq_{\text{ra}} (i)}}{{4\pi l_{\text{p}} Ln_{\text{p}} (i)\sqrt {(x_{\text{p}} - x)^{2} + (y_{\text{p}} - y)^{2} + (z_{\text{p}}^{\prime } - z^{\prime } )^{2} } }}{\text{d}}s} + C_{ij}$$
(5)

The integration of Eq. (5) is as follows:

$$\varPhi {}_{ij}(x,y,z^{\prime } ) = - \frac{{Nq_{\text{ra}} (i)}}{{4\pi l_{\text{p}} Ln_{\text{p}} (i)}}\ln \frac{{r_{1ij} + r_{2ij} + l_{\text{p}}^{\prime } }}{{r_{1ij} + r_{2ij} - l_{\text{p}}^{\prime } }} + C_{ij}$$
(6)

where q r(i, j) is the flow rate of the jth perforation tunnel in the ith segment, m3/s; r is the distance between the source point \(M_{\text{p}} (x,\;y,\;z^{\prime } )\) and the target point \(M(x,\;y,\;z^{\prime } )\); C ij is an integration constant; r 1ij is the distance between the heel end and the target point; r 2ij is the distance between the toe end and the target point, and they observe the following expressions, respectively:

$$r_{1ij} = \sqrt {[x_{\text{p}} (i,j,0) - x]^{2} + [y_{\text{p}} (i,j,0) - y]^{2} + [z_{\text{p}}^{\prime } (i,j,0) - z^{\prime } ]^{2} }$$
(7)
$$r_{2ij} = \sqrt {[x_{\text{p}} (i, \, j ,1) - x]^{2} + [y_{\text{p}} (i,j,1) - y]^{2} + [z_{\text{p}}^{\prime } (i,j,1) - z^{\prime } ]^{2} }$$
(8)

where x p(i, j, 0), y p(i, j, 0), z p(i, j, 0) and x p(i, j, 1), y p(i, j, 1), z p(i, j, 1) are the coordinates of the left and right ends of the jth perforation in the ith producing part.

Based on the mirror image reflection and superposition principle, the potential of the jth perforation tunnel for the ith production segment at point \(M_{\text{p}} (x,y,z^{\prime } )\) is obtained:

$$\begin{aligned} \varPhi (x,y,z^{\prime } ) & = - \frac{{Nq_{\text{ra}} (i)}}{{4\pi l_{\text{p}} Ln_{\text{p}} (i)}}\sum\limits_{n = - \infty }^{ + \infty } {\left\{ {\xi_{ij} } \right.} (2h^{\prime } + 4nh^{\prime } - z_{{{\text{p}}ij}}^{\prime } (i,j,0),\;2h^{\prime } + 4nh^{\prime } - z_{{{\text{p}}ij}}^{\prime } (i,j,1),\;x,\,y,\,z^{\prime } ) \\ & \quad + \,\xi_{ij} (4nh^{\prime } + z_{{{\text{p}}ij}}^{\prime } (i,j,0),\;4nh^{\prime } + z^{\prime}_{{{\text{p}}ij}} (i,j,1),\;x\;,y,z^{\prime } ) - \xi_{ij} ( - 2h^{\prime } + 4nh^{\prime } + z_{{{\text{p}}ij}}^{\prime } (i,j,0){\kern 1pt} \,,{ - }2h^{\prime } + 4nh^{\prime } + z_{{{\text{p}}ij}}^{\prime } (i,j,1),\;x\;,y\;,z^{\prime } ) \\ & \quad - \,\xi_{ij} (4nh^{\prime } - z_{{{\text{p}}ij}}^{\prime } (i,j,0),\;4nh^{\prime } - z_{{{\text{p}}ij}}^{\prime } (i,j,1),\;x\;,y\;,z^{\prime } ) + \left. {C^{\prime}_{i} } \right\} \\ \end{aligned}$$
(9)

with

$$\xi_{ij} (\varepsilon_{0} ,\varepsilon_{1} ,x,y,z^{\prime } ) = \ln \frac{{r_{1ij} + r_{2ij} + l_{\text{p}}^{\prime } }}{{r_{1i} + r_{2i} - l_{\text{p}}^{\prime } }}$$
(10)
$$r_{1i} = \sqrt {[x(i,j,0) - x]^{2} + [y(i,j,0) - y]^{2} + [\varepsilon_{0} - z^{\prime } ]^{2} }$$
(11)
$$r_{2i} = \sqrt {[x(i,j,1) - x]^{2} + [y(i,j,1) - y]^{2} + [\varepsilon_{1} - z^{\prime } ]^{2} }$$
(12)

According to the superposition principle, the potential at any point of the infinite formation created by all the perforation tunnels of the horizontal well is:

$$\varPhi {}_{ij}(x,y,z^{\prime } ) = - \frac{N}{{4\pi l_{\text{p}} L}}\sum\limits_{i = 1}^{N} {\frac{{q_{\text{ra}} (i)}}{{n_{\text{p}} (i)}}} \sum\limits_{j = 1}^{{\frac{L}{N}n_{\text{p}} (i)}} {\ln \phi_{ij} + C}$$
(13)

with

$$\begin{aligned} \phi_{ij} & = \sum\limits_{n = - \infty }^{ + \infty } {\left\{ {\xi_{ij} } \right.} \left( {2h^{\prime } + 4nh^{\prime } - z_{{{\text{p}}ij}}^{\prime } (i,j,0),2h^{\prime } + 4nh^{\prime } - z_{{{\text{p}}ij}}^{\prime } (i,j,1),x,y,z^{\prime } } \right) + \xi_{ij} \left( {4nh^{\prime } + z_{{{\text{p}}ij}}^{\prime } (i,j,0),4nh^{\prime } + z_{{{\text{p}}ij}}^{\prime } (i,j,1),x,y,z^{\prime } } \right) \\ & \quad - \,\xi_{ij} \left( { - 2h^{\prime } + 4nh^{\prime } + z_{{{\text{p}}ij}}^{\prime } (i,j,0),{ - }2h^{\prime } + 4nh^{\prime } + z_{{{\text{p}}ij}}^{\prime } (i,j,1),x,y,z^{\prime } } \right) - \xi_{ij} \left( {4nh^{\prime } - z_{{{\text{p}}ij}}^{\prime } (i,j,0),4nh^{\prime } - z_{{{\text{p}}ij}}^{\prime } (i,j,1),x,y,z^{\prime } } \right) + \left. {\frac{{2l_{\text{p}} }}{{nh^{\prime } }}} \right\}C_{i}^{\prime } \\ \end{aligned}$$
(14)

The boundary pressure at the oil–water interface is assumed to be constant. Therefore, the potential at any point of the formation may be expressed as:

$$\varPhi {}_{ij}(x,y,z^{\prime } ) = \varPhi_{\text{e}} - \frac{N}{{4\pi l_{\text{p}} L}}\sum\limits_{i = 1}^{N} {\frac{{q_{\text{ra}} (i)}}{{n_{\text{p}} (i)}}} \;\sum\limits_{j = 1}^{{\frac{L}{N}n_{\text{p}} (i)}} {\ln \phi_{ij} }$$
(15)

Combining the definition of potential, the pressure at any point of the formation can be given as follows:

$$p{}_{{{\text{wf}},ij}}(x,y,z^{\prime } ) = p_{\text{e}} - \frac{{N\mu_{\text{o}} }}{{4\pi l_{\text{p}} L\sqrt {K_{\text{h}} K_{\text{v}} } }}\sum\limits_{i = 1}^{N} {\frac{{q_{\text{ra}} (i)}}{{n_{\text{p}} (i)}}} \;\sum\limits_{j = 1}^{{\frac{L}{N}n_{\text{p}} (i)}} {\ln \phi_{ij} }$$
(16)

where p e is the boundary pressure, MPa.

For perforated completion, the perforation tunnels directly contact the formation. Therefore, the flow potential of some point, which is just located in the perforation, can be obtained using Eq. (15). In this case, there are two points involved: the target point and the source point (perforation point). To get rid of singularity phenomenon, the central hole in the wall is chosen as the jth perforation’s target point when calculating the distance between two perforation points.

Only calculating the pressure of one central point for the segment and regarding it as the pressure of the whole segment will result in deviation when analyzing the segment’s pressure of a horizontal wellbore. In this paper, taking the average over all the perforations’ pressure in the same segment and using the average value as the representative pressure of that segment, the pressure of the ith segment is as follows:

$$p_{\text{wf}} (i) = \frac{1}{{\Delta x\;n_{\text{p}} (i)}}\sum\limits_{j = 1}^{{\Delta x\;n_{\text{p}} (i)}} {p_{\text{wf}} (i,j)}$$
(17)

where p wf(i) is the flow pressure for all the perorations in the ith segment, MPa.

There are 2N variables required to be calculated by analyzing pressure distribution along the wellbore: p wf(i) and q ra(i), (i = 1, 2, …, N). However, it only contains N equations in the flow model [Eq. (15)]. Therefore, one more model is needed to describe pressure drop along the wellbore (Li et al. 1996, 2006).

2.2 Wellbore pressure drop model

For perforated horizontal wells, the main idea to develop a wellbore pressure drop model is to divide the horizontal wellbore into several segments, and each segment is subdivided into several smaller parts that only include one perforation (Su and Gudmundsson 1994).

According to the analysis of the pressure drop in a wellbore, the total pressure loss can be written as:

$${\text{d}}p_{\text{wf}} (i) = {\text{d}}p_{\text{fric}} (i) + {\text{d}}p_{\text{acc}} (i) + {\text{d}}p_{\text{mix}} (i) + {\text{d}}p_{\text{G}} (i)$$
(18)

where dp fric(i) is the friction loss of the ith segment, MPa; dp acc(i) is the acceleration loss of the ith segment, MPa; dp mix(i) is the mixing loss of the ith segment, MPa; and dp G(i) is the gravity loss of the ith segment, MPa.

It should be noted that, in the previous section, a mechanical field described by the flow model is established based on the potential function. Therefore, when the potential function is used to deal with flow problems, the pressure loss caused by viscous force has been considered. As we all know, the mathematical expression of fluid potential is Kp/μ, where K is the formation permeability, p represents pressure, while μ means the fluid viscosity, and it is used to describe the viscous force, which will lead to pressure loss along the perforation. So it means that the viscous force has been taken into consideration in the first model. In other words, when building wellbore pressure here, only four kinds of pressure loss should be calculated.

The calculation method of frictional loss and acceleration loss between two perforation tunnels is expressed, respectively.

$$\Delta p_{\text{fric}} = 1.34 \times 10^{ - 13} f_{\text{fric}} (i,j)\frac{\Delta l}{D}\frac{{\rho \bar{v}_{\text{s}}^{2} (i,j)}}{2} = 1.0862 \times 10^{ - 13} f_{\text{fric}} (i,j)\frac{{\rho q_{\text{L}}^{2} (i,j)}}{{D^{5} n_{\text{p}} (i)}}$$
(19)
$$\Delta p_{\text{acc}} (i,j) = \rho \left[ {\bar{v}_{\text{s}}^{2} \left( {i,j} \right) - \bar{v}_{\text{s}}^{2} (i,j + 1)} \right] = 3.5215 \times 10^{ - 13} \frac{\rho }{{D^{5} }}\left[ {q_{\text{L}}^{2} (i,j) - q_{\text{L}}^{2} (i,j + 1)} \right]$$
(20)

where ρ is the liquid density, kg/m3; D is the wellbore diameter, m; q L(i,j) is the flow rate along the wellbore, m3/d; \(\bar{v}_{\text{s}} (i,j)\) is the average velocity of the jth perforation in the ith segment, m/s; and \(f_{\text{fric}} (i,j)\) is the friction coefficient of the jth perforation in the ith segment.

In Eq. (19), one parameter, called the friction coefficient, is introduced. The calculation of the friction coefficient is dependent on the Reynolds number. If the Reynolds number is less than or equal to 2000, the flow is laminar; otherwise, it is turbulent flow. And the expression for the Reynolds number is as follows:

$$Re = 7.3682844 \times 10^{ - 3} \frac{Q\rho }{r\mu }$$

where Re is the Reynolds number; Q is the axial flow rate along the wellbore, m3/d; μ is the viscosity of the flowing fluid, mPa s; and r is the wellbore radius, m.

In addition, we also introduced a criterion when calculating the mixing loss between two perforation holes. The specific calculation method for frictional loss and mixing losses is listed in Table 1. In Table 1, q c is the critical rate, m3/d; ɛ is the surface roughness, mm.

Table 1 Calculation method for friction coefficient and mixing loss between two perforation holes

When calculating the mixing loss, one parameter, \(\Delta p_{\text{per}}\), is introduced. It is the frictional loss showing up after perforating and can be figured out using Eq. (19).

The friction loss, acceleration loss and the mixing loss of the ith segment are listed below:

$${\text{d}}p_{\text{fric}} (i) = 1.0862 \times 10^{ - 13} \frac{\rho }{{D^{5} }}\sum\limits_{j = 1}^{{\Delta xn_{\text{p}} (i)}} {f_{\text{fric}} (i,j)\frac{{q_{\text{L}}^{2} (i,j)}}{{n_{\text{p}} (i)}}}$$
(21)
$${\text{d}}p_{\text{acc}} (i) = \sum\limits_{j = 1}^{{\Delta xn_{\text{p}} (i)}} {\Delta p_{\text{acc}} (i,j)} = 3.5215 \times 10^{ - 13} \frac{\rho }{{D^{5} }}\sum\limits_{j = 1}^{{\Delta xn_{\text{p}} (i)}} {\left[ {q_{\text{L}}^{2} (i,j) - q_{\text{L}}^{2} (i,j + 1)} \right]}$$
(22)
$${\text{d}}p_{\text{mix}} (i) = \sum\limits_{j = 1}^{{n_{\text{p}} (i)}} {\Delta p_{\text{mix}} (i,j)}$$
(23)

If the horizontal well is inclined, the gravity loss is non-ignorable, and the wellbore pressure drop model becomes:

$$\Delta p_{\text{wf}} (i,j) = \left\{ {\begin{array}{*{20}l} {1.0862 \times 10^{ - 13} \frac{\rho }{{D^{5} }}\sum\limits_{j = 1}^{{\Delta xn_{\text{p}} (i)}} {f_{\text{fric}} (i,j)\frac{{q_{\text{L}}^{2} (i,j)}}{{n_{\text{p}} (i)}}} + 3.5215 \times 10^{ - 13} \frac{\rho }{{D^{5} }}\sum\limits_{j = 1}^{{\Delta xn_{\text{p}} (i)}} {[q_{\text{L}}^{2} (i,j) - q_{\text{L}}^{2} (i,j + 1)} ]} \hfill \\ { + \,\rho g\Delta x\cos \theta_{i} + \sum\limits_{j = 1}^{{n_{p} (i)}} {\Delta p_{\text{mix}} (i,j)} \quad \quad \quad q_{\text{ra}} (i) \ne 0} \hfill \\ {1.0862 \times 10^{ - 13} \frac{\rho }{{D^{5} }}\sum\limits_{j = 1}^{{\Delta xn_{\text{p}} (i)}} {f_{\text{fric}} (i,j)\frac{{q_{\text{L}}^{2} (i,j)}}{{n_{\text{p}} (i)}} + \rho g\Delta x\cos \theta_{i} } \quad \quad \quad \quad q_{\text{ra}} (i) = 0} \hfill \\ \end{array} } \right.$$
(24)

2.3 Coupling model

When a horizontal well begins to produce reservoir fluids, the fluids in the perforations connect the wellbore and oil reservoir together. Therefore, perforation is considered as an infinitesimal linear sink, which directly contacts reservoir and wellbore. Meanwhile, pressure responses are generated in the whole reservoir. The generated pressure responses near the perforations are associated with oil inflow in the radial direction of the horizontal wellbore, which can be calculated by utilizing the reservoir flow model. Since the pressure in perforation holes is relevant to the wellbore pressure, a coupling relationship exists between the reservoir flow model and the wellbore pressure drop model.

According to the reservoir flow model, a model is developed to calculate steady-state productivity of the horizontal well with variable density perforation, in which the pressure drop along the horizontal wellbore is considered:

$$\left\{ {\begin{array}{*{20}l} {p{}_{\text{wf}}(i) = p{}_{\text{e}} - \frac{1}{{l_{\text{p}} }}\frac{\mu }{4\pi k\Delta x}\sum\limits_{k = 1}^{N} {\frac{{q_{\text{ra}} (k)}}{{n_{\text{p}} (k)}}\;\sum\limits_{j = 1}^{{\frac{L}{N}n_{\text{p}} (k)}} {\phi_{kj} } } } \hfill \\ {p_{\text{wf}} (i) = p_{\text{wf}} (i - 1) + 0.5[\Delta p_{\text{wf}} (i - 1) + \Delta p_{\text{wf}} (\,i)]} \hfill \\ \end{array} } \right.k = 1,\;2, \ldots ,N;\quad i = 1,\,2, \ldots ,\,\frac{{L_{k} }}{\Delta x}$$
(25)

where p wf(i) is the wellbore pressure in the ith segment, MPa; N is the number of divided segments along the wellbore; and \(\phi_{kj}\) is a function corresponding to the horizontal wellbore as well as the oil–water interface.

In this paper, an iterative method is used to solve the above-mentioned model, and the iterative process is shown in Fig. 2.

Fig. 2
figure 2

Flowchart for solving the coupling model

3 Analysis of inflow profiles in bottom water reservoirs

The bottom water rises fastest in the vertical plane of the horizontal wellbore (Cheng et al. 1994). In other words, the bottom water will firstly break through into the wellbore in this plane due to the highest pressure gradients in this profile. Therefore, a complicated 3-D problem can be turned into a 2-D problem in the xz profile where the wellbore lies. The formation between the wellbore and the oil–water interface is discretized according to the division of the horizontal wellbore in the reservoir flow model. And the total number of grids in the vertical direction is n z , which is shown in Fig. 3.

Fig. 3
figure 3

Schematic diagram of the physical model for bottom water cresting

The rise of bottom water is treated as a piston-like flooding process. That is to say, there is an obvious interface between the oil zone and the water zone. The oil–water contact moves upward to the horizontal wellbore in the vertical direction. Once it reaches any point of the wellbore, water breakthrough occurs there. According to the material balance theory (Xiong et al. 2013), we have:

$$[S_{\text{w}} (i,k + 1) - S_{\text{wc}} ]\varphi {\text{d}}x{\text{d}}y{\text{d}}z = v_{\text{w}} {\text{d}}x{\text{d}}y{\text{d}}t$$
(26)

Based on Darcy’s law, the water rise velocity is as follows:

$$v_{\text{w}} = \frac{{K_{\text{rw}} K_{\text{v}} }}{{\mu_{\text{w}} }}\frac{\partial p(i,k)}{\partial z}$$
(27)

where S w(i, k + 1) is the water saturation of the (i, k + 1) grid at time t in the longitudinal profile; S wc is the connate water saturation; K rw is the relative permeability to water; and μ w is the water viscosity, mPa s.

According to the results of grid discretization, the vertical pressure gradients between any two contiguous grids are as follows:

$$\left\{ {\begin{array}{*{20}l} {\Delta p(i,k) = p(i,k + 1) - p(i,k)} \hfill & {k = 1,2, \ldots ,n_{z} - 1} \hfill \\ {\Delta p(i,k) = p_{\text{wf}} (i) - p(i,k)} \hfill & {k = n_{z} } \hfill \\ \end{array} } \right.$$
(28)

Substituting Eqs. (28) into (27) gives the rise velocity of bottom water:

$$v_{\text{w}} (i,k) = \frac{{K_{\text{rw}} K_{\text{v}} }}{{\mu_{\text{w}} }}\frac{\Delta p(i,k)}{\Delta z}$$
(29)

According to the established mathematical model, the pressure at any grid between the oil–water contact surface and the horizontal wellbore can be written as:

$$p_{\text{wf}} (i,k) = p_{\text{e}} - \frac{{N\mu_{\text{o}} }}{{4\pi L\sqrt {K_{\text{h}} K_{\text{v}} } }}\sum\limits_{i = 1}^{N} {q(i,k)\phi_{ik} }$$
(30)

Combining with Eq. (26), the time required for the water rising from the (k + 1)th grid to the kth grid is obtained:

$$t(i,k) = \frac{{\varphi \mu_{\text{w}} }}{{K_{\text{rw}} K_{v} }}\frac{{[S_{\text{w}} (i,k) - S_{\text{wc}} ](\Delta z)^{2} }}{\Delta p(i,k)}$$
(31)

The breakthrough time at the ith segment is:

$$t_{\text{a}} = \sum\limits_{k = 1}^{{n_{z} }} {t(i,k)}$$
(32)

where φ is the porosity; n z is the number of meshes in the longitudinal direction between the wellbore and the oil–water interface.

4 Case study

Using the developed model, the well productivity and water breakthrough for a horizontal well in a bottom water drive reservoir were evaluated. Table 2 lists the bottom water drive reservoir properties and its drilling and completion parameters.

The steady-state productivity of the horizontal well with variable density perforation completion was evaluated, and also the bottom water inflow profile was calculated. A set of basic variable density perforation cases are designed and are shown in Fig. 4. For simplicity, the average perforation density of each case is 2 shots/m. In Case 1, the perforation is uniformly distributed. In Cases 2 and 3, the perforation density at the heel end of the horizontal well is larger than that at the toe end of the horizontal well, while the perforation density is denser at the toe end than that at the heel end for Cases 4–6.

Table 2 Parameters for the bottom water drive reservoir and its drilling and completion parameters
Fig. 4
figure 4

Cases for variable density perforation

The simulation results for all the six cases are shown in Figs. 5, 6, 7, 8 and 9. Figure 5 shows the pressure distribution along the horizontal wellbore. In fact, there exists a pressure drop along the perforation hole. However, it has little relationship with our research object; thus, the relevant calculation was not carried out in this work. In order to better identify their characteristics, the pressure distribution curves of only three cases (Cases 1, 2 and 5) are plotted together in Fig. 5. It can be seen that the pressure distribution curves are steep near the heel end of the horizontal wellbore, while relatively flat at the toe end. In addition, the greater the pressure drop is, the denser the perforations will be. Near the toe end, the pressure of Case 5 is higher than those of Case 1 and Case 2, indicating a denser perforation and a greater pressure drop in this location, while near the heel end, the difference of these three curves is smaller. Figure 6 shows the friction and acceleration losses (Case 1) along the wellbore, respectively. At any point of the horizontal wellbore, the friction loss is greater than the acceleration loss, and the former is nearly six times as much as the latter, which means the friction loss plays a leading role.

Fig. 5
figure 5

Pressure distribution along the horizontal wellbore

Fig. 6
figure 6

Friction loss and acceleration loss along the horizontal wellbore for Case 1

Fig. 7
figure 7

Flow rate distribution along the horizontal wellbore for different cases

Fig. 8
figure 8

Production rate of the horizontal well for different cases

Fig. 9
figure 9

Distribution of breakthrough time for different cases

Figure 7 gives the flow rate distribution along the horizontal wellbore. For the horizontal well with uniformly distributed perforation, the flow rate at the toe end is lower than that at the heel end, due to the influence of the wellbore pressure drop. These six cases have the same number of perforations, and thus, the production is also similar, especially for Cases 1–3. For Case 3, although the difference of the flow rate between the heel end and the toe end is larger compared with the other five cases (Fig. 7), the production rate of the horizontal well is slightly larger (Fig. 8). Therefore, in order to maximize the production of the horizontal well, a perforation scheme with a larger perforation density at the toe end should be adopted. It should be noted that a larger perforation density at the toe end does not necessarily result in a higher production rate. The reason is that this kind of perforation scheme will lead to much lower flow rate at the toe end. In addition, Fig. 7 also shows that the flow rate distribution of Case 6 is more uniform compared with the other five cases. Due to the influence of the pressure drop along the wellbore and the reduced end effect, the flow rate distribution of Case 6 has a more uniform distribution of cresting height, which will delay the occurrence of bottom water breakthrough. Simulation results indicate that reducing the perforation density at the heel end is helpful for obtaining an evenly advancing water profile on the vertical plane of the horizontal wellbore.

The detailed distribution of bottom water breakthrough time along the wellbore is shown in Fig. 9. Compared with Case 1 (evenly distributed perforation), the redistribution of perforating density changes both the breakthrough location and breakthrough time simultaneously. It is obvious that the larger perforation density means a shorter breakthrough time. Meanwhile, the bottom water breakthrough location and time of the whole wellbore can be calculated by the developed model, as shown in Table 3.

Table 3 Bottom water breakthrough location and time

Figure 10 illustrates the distribution of the bottom water rising height along the wellbore for three different cases, which is in good agreement with the results in Fig. 9. The bottom water cresting height of Case 2 is shown in Fig. 11. It shows that the effect of the perforation density on bottom water cresting height becomes more serious with the increase of time. The deformation of the water ridge is obvious, which reflects on the degree of water crest asymmetry.

Fig. 10
figure 10

Bottom water rising height for different cases (production time, 150 days)

Fig. 11
figure 11

Rising height of bottom water at different production times (Case 2)

According to the above results, the perforation scheme with higher production (Cases 2 and 3) will advance the time of the bottom water breakthrough and thus have a negative effect on the development of bottom water reservoirs using horizontal wells. In other words, the horizontal well with a higher production rate will have a shorter water-free production period. So there exists a contradiction between increasing the well production and delaying the breakthrough time of bottom water. In order to comprehensively evaluate the effect of both controlling bottom water cresting and stabilizing oil production, a new parameter, called the cumulative free-water production, is defined as follows:

$$Q_{\text{o}} = q \times T_{\text{o}}$$
(33)

where Q o is the cumulative oil production without water, m3; q is the rate when the horizontal well produces steadily, m3/d; and T o is the production time without water, d.

Obviously, the cumulative oil production without water of the horizontal well could consider both the well production and effective production time.

According to the calculation results (Table 4), the Q o of Cases 4 and 5 is higher than those of other Cases owing to the more uniform inflow profile. Therefore, for the horizontal well studied in this paper, the perforation scheme with denser perforation hole at the toe end and sparser perforation hole at the heel end is a more appropriate choice.

Table 4 Parameters required for calculating Q o of different cases

5 Conclusions

In this paper, a model coupling fluid flow in reservoirs and pressure drop along the wellbore was developed to obtain the distribution of flow rate along the horizontal wellbore and to determine the horizontal well productivity. In this model, the fluid flow at each perforation hole was taken into account, and the perforation tunnels were treated as many infinitesimal sections. After that, a bottom water cresting model was developed based on the piston-like displacement principle, which could be used to calculate the bottom water breakthrough location, breakthrough time and the shape of water cresting at different times.

For a horizontal well with uniform density perforation completed in a bottom water reservoir, the pressure drop along the wellbore may significantly affect the water breakthrough mode. Specifically, the bottom water will firstly break through at the heel end of the wellbore. Neglecting the end effects, water breakthrough occurs in proper sequence from heel end to toe end. The bottom water breakthrough at a specific position will happen earlier if the perforation density is increased. When a horizontal well with denser perforation density at the toe end and sparser perforation density at the heel end, the lowest point of the distribution curve will move upward, which means the water breakthrough time is delayed. Under these circumstances, the horizontal well obtains a longer effective production period.

It is meaningful to take cumulative oil production without water as a parameter to evaluate the perforation strategies for horizontal wells. With this parameter, both the effects of productivity of the horizontal well and bottom water breakthrough time can be considered comprehensively. However, in order to simplify the calculation process, some assumptions have been introduced in this model, some of which are ideal ones and different from the actual reservoirs. Further work needs to be done in order to extend the application of this model.