Introduction

Reservoir parameters generally have the heterogeneity and anisotropy (Shah and Mishra 2013; Rose 1982; Yun_hong 2002). For the waterflood development oil field, the water injection well and the corresponding production well affected by heterogeneous and anisotropic reservoirs are often unable to see the water at the same time, which leads to the imbalance of the displacement process, thus affecting the effect of oil field development. Well pattern design is an important part of oil field development design. If the heterogeneity and anisotropy of the reservoirs can be fully considered when the well is distributed (Liu 2005; Liu and Li 2004), we will make the displacement process more balanced and improve the recovery rate so that we can obtain a higher economic efficiency. Yang et al. (2006) gave the design method of well pattern in anisotropic reservoir in 2006. By adjusting the well pattern and well spacing of the anisotropic reservoirs, the maximum matching with the geological vector was realized and the development effect was improved. However, the well pattern should not only match the anisotropy of the reservoirs, but also match the heterogeneity. Based on the theory of percolation mechanics, reservoir engineering and optimization, a mathematical model for the overall optimization of well pattern in water drive reservoir has been established. Through solving the model, the well pattern matching well with the reservoir is obtained. After that the validity of the method is verified by numerical simulation. Compared to the traditional well pattern optimization, this method has the advantages of fast speed and high efficiency.

Mathematical model for overall optimization of well pattern

By adjusting the location of wells, well pattern optimization can significantly improve the efficiency of water drive development and obtain higher economic benefits (Beckner and Song 1995). When we optimize overall well pattern that different from a single well group, the well group interacted with each other. Decreasing well spacing of a certain well in a well group, it may cause its well spacing increasing in another well group. Therefore, a single well group should not be isolated out in the optimization. The well pattern should be considered as a whole, which is optimized for each well.

Objective function

Different objective functions can be obtained with different optimization results (Zhang et al. 2010); therefore, the objective function in the establishment of mathematical model for the optimization of well pattern should be first given. Well pattern optimization makes the water breakthrough time of production well tend to be consistent by adjusting the well location in order to maximize the realization of equilibrium displacement. When the water breakthrough time of production well tends to be consistent, the mathematical representation has the least variance. So the minimum variance of the water breakthrough time of each production well has been taken as the objective function of the optimization of the well pattern.

$$\hbox{min} \,D\left( t \right) = \sum\limits_{i = 1}^{n} {\left[ {t_{i} - \frac{1}{n}\sum\limits_{i = 1}^{n} {t_{i} } } \right]}^{2}$$
(1)

t i —water breakthrough time of each production well, day; D(t)—variance of water breakthrough time of each production well; n—number of total production wells.

Constraint condition

In the process of optimization, the necessary constraints on variables are needed. In the optimization of well pattern, the position of each well can not be beyond the boundary of the oil field and the distance between any two wells can’t be too small. Otherwise, it is not economically feasible. Based on the above considerations, the following constraints are shown as:

$$\left( {x_{i} ,y_{i} } \right) \in\Omega \quad i = 1,2, \ldots ,m$$
(2)
$$d_{ij} = \sqrt {\left( {x_{i} - x_{j} } \right)^{2} + \left( {y_{i} - y_{j} } \right)^{2} } \ge d_{\hbox{min} } \quad i = 1,2, \ldots ,m;\quad j = 1,2, \ldots ,m$$
(3)

x i , y i , x j , y j x coordinates and y coordinates of the i well and j well, m; Ω—reservoir boundary; d ij —distance between the i well and j well, m; d min—minimum well spacing.

To sum up, well pattern optimization problems can be formulated as the location variables satisfy the nonlinear constraints and linear constraints, and the objective function D(t) has been solved to obtain the optimal location of the minimum value (x * i , y * i ) i = 1, 2, …, m.

Non-piston displacement dynamics of heterogeneous and anisotropic reservoirs

According to the well pattern optimization mathematical model, the water breakthrough time of each production well needs to be calculated during the optimization process. Most of the traditional well location optimization used to be solved by coupling numerical simulation program (Hazlett and Babu 2005; Abukhamsin 2009). The precision of the numerical simulation is high and the adaptability is strong, but the amount of computation is large and the amount of time it takes is long. Because of the complexity of the location optimization problem complexity, it often requires thousands or even more iterations to obtain the optimal solution. Each iteration needs to run the numerical simulation program, which makes the whole process of the optimization process very long, and the efficiency is low. Based on the theory of percolation mechanics and reservoir engineering, the calculation method of water breakthrough time in the heterogeneous and anisotropic reservoirs has been presented to improve the optimization efficiency.

Heterogeneous/anisotropic reservoirs processing

In the physical property parameters of the reservoir, the permeability has heterogeneity and anisotropy. In the plane two-dimension formation, if the main value of the permeability k(x, y, 0) and k(x, y, π/2) at x, y direction is known, according to the principle of equivalent displacement (Wang et al. 2005), the formula for calculating the permeability k(x, y, θ) of this point in any direction θ is shown as:

$$k\left( {x,y,\theta } \right) = k\left( {x,y,0} \right)\cos^{2} \theta + k\left( {x,y,{\pi \mathord{\left/ {\vphantom {\pi 2}} \right. \kern-0pt} 2}} \right)\sin^{2} \theta$$
(4)

Due to the heterogeneity of permeability, when calculating the water breakthrough time, the average value of permeability between the injection–production wells on the connecting line has been taken.

$$\bar{k} = \frac{1}{L}\int\limits_{l} {k\left( {x,y,\theta } \right)} {\text{d}}s$$
(5)

For other reservoir physical parameters, porosity is heterogeneous and scalar. When calculating the time of water breakthrough time, the average value of the connection between the injection wells and the production wells has also been taken.

$$\bar{\phi } = \frac{1}{L}\int\limits_{l} {\phi \left( {x,y} \right)} {\text{d}}s$$
(6)

Calculation of water breakthrough time

When calculating the water breakthrough time, the oil–water two-phase non-piston displacement was considered, and the capillary force and gravity were ignored. According to the B–L displacement theory, the leading edge equation (Wu et al. 2015) is shown as:

$$x\left( {S_{\text{w}} } \right) = \frac{{\int_{0}^{t} {q_{t} {\text{d}}t} }}{\phi A}\left( {\frac{{\partial f_{\text{w}} }}{{\partial S_{\text{w}} }}} \right)_{{S_{\text{w}} }}$$
(7)

x—displacement leading edge position, m; q t —injection rate, m 3/d; A—cross-sectional area of reservoir, m 2; f w—rate of water content; S w—water saturation.

The water breakthrough time of oil well can be obtained by solving the following implicit function:

$$d = \frac{{\int_{0}^{{t_{\text{f}} }} {q_{t} {\text{d}}t} }}{\phi A}\left( {\frac{{\partial f_{\text{w}} }}{{\partial S_{\text{w}} }}} \right)_{{S_{\text{wf}} }}$$
(8)

D—well spacing of injection–production wells, m; t f—water breakthrough time, d; S wf—water saturation at displacement leading edge. The well spacing d, porosity φ and cross-sectional area A are the known parameters. According to the phase permeability curve, the relationship between the water content f w and the water saturation S w can be obtained. At the same time, the saturation S wf of the displacement front edge can also be determined.

When injected at constant pressure, the water’s injection speed q t is shown as:

$$q_{t} = \frac{{kA\left( {p_{i} - p_{\text{p}} } \right)}}{{\int_{0}^{d} {\lambda_{r}^{ - 1} {\text{d}}x} }}$$
(9)
$$\lambda_{\text{r}}^{ - 1} = \frac{1}{{\lambda_{\text{ro}} + \lambda_{\text{rw}} }}$$
(10)

p i —pressure of injection well, Mpa; p p—pressure of production well, MPa; λ ro—relative mobility of the oil phase, 1/mPa; λ rw—relative mobility of water, 1/mPa.

With the development of the injection water, the water saturation profile is changing continuously (Fig. 1). ∫ d0 −1r dx also changes at the same time. The displacement front reached d f at a certain moment before the water breakthrough. The integral term can be written as the sum of two integrals:

$$\int_{0}^{d} {\lambda_{r}^{ - 1} } {\text{d}}x = \int_{0}^{{d_{\text{f}} }} {\frac{1}{{\lambda_{\text{ro}} \left( x \right) + \lambda_{\text{rw}} \left( x \right)}}{\text{d}}x} + \int_{{d_{\text{f}} }}^{d} {\frac{1}{{\lambda_{\text{ro}} \left( x \right) + \lambda_{\text{rw}} \left( x \right)}}{\text{d}}x}$$
(11)

0 ≤ x < d f:

$$\int_{0}^{{d_{\text{f}} }} {\frac{1}{{\lambda_{\text{ro}} \left( x \right) + \lambda_{\text{rw}} \left( x \right)}}{\text{d}}x} = \int_{0}^{{d_{\text{f}} }} {\frac{1}{{{{k_{\text{ro}} \left( x \right)} \mathord{\left/ {\vphantom {{k_{\text{ro}} \left( x \right)} {\mu_{\text{o}} }}} \right. \kern-0pt} {\mu_{\text{o}} }} + {{k_{\text{rw}} \left( x \right)} \mathord{\left/ {\vphantom {{k_{\text{rw}} \left( x \right)} {\mu_{\text{w}} }}} \right. \kern-0pt} {\mu_{\text{w}} }}}}{\text{d}}x}$$
(12)

d f ≤ x ≤ d, the water saturation S wc is constant:

$$\int_{{d_{\text{f}} }}^{d} {\frac{1}{{\lambda_{\text{ro}} \left( x \right) + \lambda_{\text{rw}} \left( x \right)}}{\text{d}}x} = \frac{{\left( {d - d_{f} } \right)}}{{{{k_{\text{ro}} \left( {S_{\text{wc}} } \right)} \mathord{\left/ {\vphantom {{k_{\text{ro}} \left( {S_{\text{wc}} } \right)} {\mu_{\text{o}} }}} \right. \kern-0pt} {\mu_{\text{o}} }} + {{k_{\text{rw}} \left( {S_{\text{wc}} } \right)} \mathord{\left/ {\vphantom {{k_{\text{rw}} \left( {S_{\text{wc}} } \right)} {\mu_{\text{w}} }}} \right. \kern-0pt} {\mu_{\text{w}} }}}}$$
(13)

k ro—relative permeability of oil; k rw—relative permeability of water; μ o—viscosity of oil phase, Mpa; μ w—viscosity of water phase, Mpa.

Fig. 1
figure 1

Non-piston displacement water saturation profile

There is no direct function relationship between the relative permeability k ro, k rw and the position x, but it can be established by means of formula (7). It is difficult to get a clear expression of the function. Therefore, the numerical method is generally used to calculate the first integral. Taking into account the actual data provided by the relative permeability curves tend to be scattered points, the first integral is solved by using the subsection trapezoid formula.

By formula (7) and formula (9), the time of injection speed needs be known in order to obtain the water breakthrough time. The injection speed is related to the position of the displacement leading edge at any time, and the displacement leading edge position is a function of the total injection quantity. Therefore, the iterative method should be used in the calculation of water breakthrough time. The calculation steps are shown as:

  1. 1.

    Assuming the initial time t = 0 and initial displacement leading edge position d f = 0, the phase permeability curve [S w1, S w2, …, S wn ], [k ro1, k ro2, …, k ron ], [k rw1, k rw2, …, k rwn ] are given. The water cut sequence [f w1, f w2, …, f wn ] has been calculated. The forward difference has been used to calculate the derivative sequence of water content to saturation.

    $$\left. {\frac{{\partial f_{\text{w}} }}{{\partial S_{\text{w}} }}} \right|_{{S_{{{\text{w}}i}} }} = \left\{ {\begin{array}{*{20}l} {\frac{{f_{{{\text{w}}i + 1}} - f_{{{\text{w}}i}} }}{{S_{{{\text{w}}i + 1}} - S_{{{\text{w}}i}} }}} \hfill & {i = 1,2, \ldots ,n - 1} \hfill \\ 0 \hfill & {i = n} \hfill \\ \end{array} } \right.$$
    (14)
  2. 2.

    According to formula (7), the corresponding saturation position sequence [d 1, d 2, …, d n ] has been calculated.

  3. 3.

    According to formula (11), the integral term ∫ d0 λ −1r dx has been calculated. Among them, the first segment is calculated by subsection trapezoid formula.

    $$\int_{0}^{{d_{\text{f}} }} {\frac{1}{{\lambda_{\text{ro}} \left( x \right) + \lambda_{\text{rw}} \left( x \right)}}{\text{d}}x} = \sum\limits_{i = 1}^{n - 1} {\left\{ {\frac{{d_{i} - d_{i + 1} }}{2}\left[ {\frac{1}{{\frac{{k_{\text{ro}} \left( {S_{{{\text{w}}i}} } \right)}}{{\mu_{\text{o}} }} + \frac{{k_{\text{rw}} \left( {S_{{{\text{w}}i}} } \right)}}{{\mu_{\text{w}} }}}} + \frac{1}{{\frac{{k_{\text{ro}} \left( {S_{{{\text{w}}i}} } \right)}}{{\mu_{\text{o}} }} + \frac{{k_{\text{rw}} \left( {S_{{{\text{w}}i + 1}} } \right)}}{{\mu_{\text{w}} }}}}} \right]} \right\}}$$
    (15)
  4. 4.

    According to formula (9), the injection rate q t and the cumulative injection W i  = W i  + q t Δt have been calculated at that time.

  5. 5.

    The displacement leading edge position d f has been calculated.

  6. 6.

    If the displacement front position d f < the injection production well spacing d, let t = t + Δt and go to step (2). Otherwise, the iteration ends.

Solution of mathematical model

Well location optimization problem is an optimization problem of large-scale and multipeak value with constraint. At present, the optimization algorithms are mainly divided into two categories (Onwunalu 2010; Emerick et al. 2009; Guan et al. 2005): random search algorithm and gradient algorithm. The random search algorithm has a large scale of computing, and it can avoid the local optimal solution by controlling mechanism or algorithm operation. The gradient algorithm is efficient, but sometimes it can fall into the local optimal solution. Combined with the characteristics of the mathematical model of well pattern optimization, this paper chooses the genetic algorithm as the solution algorithm of this problem.

The genetic algorithm is a heuristic random search method based on biological evolution. The algorithm does not require the form of function. The algorithm starts from the initial population and has implicit parallelism, so it has a better search efficiency and has better global searching ability. The basic steps of using genetic algorithm to solve the well pattern optimization model are as follows:

  1. 1.

    The initial population is generated, the coding strategy is selected, and the parameter set is converted to a bit string space.

  2. 2.

    Three basic operators (selection, crossover and mutation) are used to form the population.

  3. 3.

    Determine whether the population performance can meet the objective function or have completed the number of iterations. If the condition is satisfied, the result is output. Otherwise, the population is used as the parent population, and the iteration is carried out again.

Sample analysis

Two-dimensional two-phase reservoir model of fluvial facies is established. The grid is 100 × 100 × 1, and the size of the grid is Δx = Δy = Δz = 10 m. The permeability distribution is shown in Fig. 2. The porosity is 0.3, the irreducible water saturation is 0.3, and the residual oil saturation is 0.3.

Fig. 2
figure 2

Permeability distribution

Then the anti-nine-spot well pattern has been arranged. There are 25 wells, including 21 production wells and 4 water injection wells. The bottom hole pressure of the water injection well is 23 MPa, and the bottom hole pressure of the production well is 18 MPa. Before and after optimization, the well pattern arrangement is shown in Figs. 3 and 4. Among them, WELL7, WELL9, WELL17 and WELL19 are the water injection wells, and the other wells are the production wells.

Fig. 3
figure 3

Well location before optimization

Fig. 4
figure 4

Well location after optimization

As we can see, the well pattern is no longer a rule after the optimization. Because the irregular distribution of well pattern is matching with the permeability distribution of reservoirs, it makes the water fingering phenomenon reduce. A water injection well corresponds to the eight production wells around in every well group, that is, there are eight corresponding relations between the injection and production wells. The connection numbers of the WELL7 and the surrounding production wells (WELL1, WELL2, WELL3, WELL6, WELL8, WELL11, WELL12, WELL13) have been defined as 1, 2, …, 8. By analogy, the connection numbers of the water injection well (WELL17, WELL9, WELL19) and their surrounding production wells have been defined. There are a total of 32 injection–production lines. The water breakthrough time of each injection–production line is shown in Fig. 5. The water breakthrough time of each well is more consistent after optimization.

Fig. 5
figure 5

Comparison of water breakthrough time before and after optimization

The well location of before and after optimization has been input to numerical simulation software for numerical simulation calculation. The results can be seen from the recovery degree and water content curve (Fig. 6). After using the optimized well pattern, the water content is lower and the final recovery degree is higher.

Fig. 6
figure 6

Comparison of the recovery degree and water content curve

Conclusions

  1. 1.

    A mathematical model of the overall optimization of well pattern has been established. The target function is to keep the water breakthrough time consistent in each production well, and the adjustment is carried out for each well in the well pattern in order to realize the maximum equilibrium displacement.

  2. 2.

    The calculation method of the water breakthrough time of heterogeneity/anisotropy non-piston displacement reservoirs has been derived. Compared to the traditional numerical simulation, the new method is more suitable for the large-scale and multivariable well pattern optimization problems. This method has higher speed and efficiency.

  3. 3.

    A conceptual model has been established to verify the effectiveness of the proposed method. The results indicated that the optimized method can be used to realize the best match between the well pattern and heterogeneity/anisotropy reservoirs. After using the optimized well pattern, the water content is lower and the final recovery degree is higher. Therefore, the overall optimization method is feasible and effective.