Introduction

At present, the supply and demand of oil and gas resources are increasing. Since 2014, the international oil price has fallen. Most of the domestic oil and gas field development have entered a stage of high water cut, and the development effect is not satisfactory. It is necessary to reorganize the well pattern or design infilling wells to enhance oil recovery (Bowers 1981). Due to the existence of non-linear seepage mechanism such as pressure-sensitive effect, the well spacing between the injection well and the production well can not be too large in low-permeability reservoirs, and generally need to do well pattern infilling (Zhang Fenglian and Yuting 2008). Well pattern infilling technology can effectively delay the decline of oil and gas well production. Without taking economic effectiveness into consideration, it is considered that the smaller the well pattern density is, the higher the oil recovery is. However, for each additional infilling well, the investment cost increases and the economic effectiveness decreases. It is not that the smaller the well pattern density is, the better the development benefit is. Choosing a reasonable well pattern density for oil and gas field development is the key to enhance oil recovery and reduce investment costs. How to determine a reasonable well pattern density and obtain maximum economic benefits quickly and accurately becomes an urgent problem to be solved in the development of the oil and gas field.

Since the 1930s, many scholars have begun to study the density of well patterns, and they also have made great progress. There are many methods to calculate the density of well patterns, such as reasonable oil recovery method (Hongbing and Yang 2013; Cunyou and Haibo 2010; Hong-ge 2014; Jinshan 2013; Song et al. 2014), single well productivity method (Xie and Hongwei 2010; Mengkun et al. 2012; Awotunde 2014; Krisanne et al. 2011), water drive control degree method (Changmin and Xiaoqing 2012; Quanlin et al. 2012), numerical simulation method (John 2010, 2011), and physical simulation method (Lalehrokh and Bouma 2014; Yikun and Liang 2010). The above methods mainly have the following shortcomings:

  1. 1.

    The seepage model uses special functions.

  2. 2.

    The derivation and calculation are cumbersome.

  3. 3.

    The well pattern evaluation method is more suitable for the small well group, which is inconsistent with the actual well pattern.

  4. 4.

    The various modeling methods are relatively independent, and the formula expansion is poor.

Therefore, this paper starts from the governing equation of seepage mechanics, and considers the pressure-sensitive effect of low-permeability gas reservoir, and introduces the dimensionless transformation to transform the nonlinear seepage equation into an easy seepage equation. The mathematical model of the unstable seepage flow is solved by means of dimensionless transformation, Laplace transformation, Fourier cosine transformation, and separation variable method. Then, the asymptotic analysis method is used to give the single well pressure approximate solution at any time and any position. Finally, the superposition principle is used to solve the multi-well pressure. The solution model to pressure and average pressure is obtained. The net present value method is used to establish the relationship function between the number of production wells and economic benefits. The extreme value method of multivariate is used to establish the model of well pattern density.

Single well model

The constant flow model

The physical model of low-permeability rectangular gas reservoirs is shown in Fig. 1. To simplify the physical model, the assumptions are made as the followings:

Fig. 1
figure 1

The physical model of gas reservoir

  1. 1.

    The fluid in the reservoir is slightly compressible.

  2. 2.

    The gas reservoir is heterogeneous, but the permeability in the x and y direction at the same position is the same.

  3. 3.

    The flow of fluid in the gas reservoir has a pressure-sensitive effect.

  4. 4.

    The gas density is constant.

The length, width, and height of the rectangular gas reservoir are xe, ye, h, and the porosity is φ. The initial viscosity is \({\mu _{{\text{gi}}}}\). The fluid flow is unstable in the rectangular gas reservoir. The rectangular coordinate system is established, and one well is located at (xw, yw). The production well is produced at a flow rate qsc. The gas seepage control equation considering the pressure-sensitive effect is (Jian et al. 2013; Wu 2012):

$$\frac{{\partial \left[ {\rho \frac{{{K_{{\text{gi}}}}{{\text{e}}^{ - \alpha ({p_i} - p)}}}}{{{\mu _{{\text{gi}}}}}}\frac{{\partial p}}{{\partial x}}} \right]}}{{\partial x}}+\frac{{\partial \left[ {\rho \frac{{{K_{{\text{gi}}}}{{\text{e}}^{ - \alpha ({p_i} - p)}}}}{{{\mu _{{\text{gi}}}}}}\frac{{\partial p}}{{\partial y}}} \right]}}{{\partial y}}=\frac{{\partial (\rho \varphi )}}{{\partial t}},$$
(1)

where kgi is the original permeability of the reservoir, µm2. ρ is the reservoir fluid density, g/cm3. t is the producing time, h. α is the stress sensitivity coefficient, MPa− 1. µgi is the gas viscosity under the original reservoir pressure, mPa s. pi is the original reservoir pressure, MPa. p is the reservoir fluid pressure, MPa.

Gas properties (such as viscosity, compressibility, compression factor, etc.) are related to gas pressure, which makes the Eq. (1) a nonlinear equation.

Define the pseudo-pressure function:

$${p_{\text{p}}}(p)=2\int\limits_{0}^{p} {\frac{{{\mu _{{\text{gi}}}}{Z_{\text{i}}}}}{{{p_{\text{i}}}}}\frac{{\varepsilon {{\text{e}}^{ - \alpha ({p_{\text{i}}} - \varepsilon )}}}}{{{\mu _{\text{g}}}(\varepsilon )Z(\varepsilon )}}} {\text{d}}\varepsilon ,$$

where Zi is the gas compression factor at the original reservoir pressure. \({\mu _{\text{g}}}(\varepsilon )\) is a function of gas viscosity, and it can be expressed by the gas pressure function. \(Z(\varepsilon )\) is the function of the gas compression factor, and it can be expressed by the gas pressure function.

Substitute the pseudo-pressure function into Eq. (1), we can get:

$$\frac{{{\partial ^2}{p_{\text{p}}}}}{{\partial {x^2}}}+\frac{{{\partial ^2}{p_{\text{p}}}}}{{\partial {y^2}}}=\frac{1}{{\eta ({p_{\text{p}}})}}\frac{{\partial {p_{\text{p}}}}}{{\partial t}},$$
(2)

where \(\eta ({p_{\text{p}}})=\frac{{{K_{{\text{gi}}}}}}{{\varphi {\mu _{\text{g}}}({p_{\text{p}}}){c_{\text{g}}}({p_{\text{p}}})}}\).

Since \(\eta ({p_{\text{p}}})\) is still a function of \({p_{\text{p}}}(p)\), the Eq. (1) is not completely linearized by introducing the pseudo-pressure function. A lot of research have been done on how to linearize \(\eta ({p_{\text{p}}})\). For example, Kale and Mattar use the perturbation method to give the radial flow approximation solution under constant flow condition (Kale and Mattar 2004). Peres and Reynolds use the Boltzmann transformation method to study the solution to the vertical well under the infinite atmospheric condition. However, these methods are suitable for self-similarity problems. There are many practical problems of other nonlinear well tests, and it does exist much error to analyze the pressure when using these methods. For the variable flow problem in well test analysis, the Duhamel convolution method is commonly used to solve the equation (Thompson and Reynolds 2009), but \(\eta ({p_p})\) is treated as a constant and it is mostly used for radial seepage. There are still some shortcomings for conventional two-dimensional seepage. This paper starts with the general 2-D gas reservoir and studies the variable yield and constant yield problems. Through the dimensionless transformation and integral transformation method, the exact solution of vertical well pressure at any position and at any time is obtained.

The dimensionless transformation is a method of converting the seepage equation into a conventional mathematical equation. By dimensionless transformation, the number of comparisons can be greatly reduced, which makes the mathematical physics equation simple, neat, easy to analyze and solve. The following dimensionless transformation is introduced in this paper:

$${p_{{\text{pD}}}}=\frac{{542.87{K_{{\text{gi}}}}h[{p_{\text{p}}}({p_{\text{i}}}) - {p_{\text{p}}}(p)]}}{{{q_{{\text{sc}}}}{B_{{\text{gi}}}}{\mu _{{\text{gi}}}}}},\quad {x_{\text{D}}}=\frac{x}{{{r_{\text{w}}}}},\quad {x_{{\text{eD}}}}=\frac{{{x_{\text{e}}}}}{{{r_{\text{w}}}}},\quad {y_{\text{D}}}=\frac{y}{{{r_{\text{w}}}}},\quad {y_{{\text{eD}}}}=\frac{{{y_{\text{e}}}}}{{{r_{\text{w}}}}},\quad {t_{\text{D}}}=\frac{{3.6{K_{{\text{gi}}}}t}}{{\varphi {\mu _{{\text{gi}}}}{c_{{\text{gi}}}}r_{{\text{w}}}^{2}}},$$

where qsc is the production, m3/d. Bgi is the gas volume coefficient under the original reservoir pressure. cgi is the gas compression coefficient under the original reservoir pressure, MPa− 1. rw is the radius of the production wellbore, m. pp(p) is the pseudo-pressure function, MPa.

Through the dimensionless transformation, the Eq. (2) can be written as follows:

$$\frac{{{\partial ^2}{p_{{\text{pD}}}}}}{{\partial x_{{\text{D}}}^{2}}}+\frac{{{\partial ^2}{p_{{\text{pD}}}}}}{{\partial y_{{\text{D}}}^{2}}}=\frac{{\partial {p_{{\text{pD}}}}}}{{\partial {t_{\text{D}}}}}.$$
(3)

Initial conditions:

$${p_{{\text{pD}}}}\left( {{x_{\text{D}}},{y_{\text{D}}},0} \right)=0,\mathop {\lim }\limits_{{{r_{\text{D}}} \to 1}} \left[ {{r_{\text{D}}}\frac{{\partial {p_{{\text{pD}}}}({x_{\text{D}}},{y_{\text{D}}},{t_{\text{D}}})}}{{\partial {r_{\text{D}}}}}} \right]= - 1,\quad r_{{\text{D}}}^{2}={({x_{\text{D}}} - {x_{{\text{wD}}}})^2}+{({y_{\text{D}}} - {y_{{\text{wD}}}})^2}.$$
(4)

Boundary conditions:

$$\frac{{\partial {p_{{\text{pD}}}}(0,{y_{\text{D}}},{t_{\text{D}}})}}{{\partial {x_{\text{D}}}}}=0,\frac{{\partial {p_{{\text{pD}}}}({x_{{\text{eD}}}},{y_{\text{D}}},{t_{\text{D}}})}}{{\partial {x_{\text{D}}}}}=0,$$
(5)
$$\frac{{\partial {p_{{\text{pD}}}}({x_{\text{D}}},0,{t_{\text{D}}})}}{{\partial {y_{\text{D}}}}}=0,\frac{{\partial {p_{{\text{pD}}}}({x_{\text{D}}},{y_{{\text{eD}}}},{t_{\text{D}}})}}{{\partial {y_{\text{D}}}}}=0,$$
(6)

Using Laplace transformation, the Eq. (3) can be written as follows:

$$\frac{{{\partial ^2}{{\tilde {P}}_{{\text{pD}}}}}}{{\partial x_{{\text{D}}}^{2}}}+\frac{{{\partial ^2}{{\tilde {P}}_{{\text{pD}}}}}}{{\partial x_{{\text{y}}}^{2}}}=s{\tilde {P}_{{\text{pD}}}}.$$
(7)

Using Fourier cosine transformation of xD and yD, the Eq. (7) can be written as follows:

$${\overline{\overline {{\tilde {P}}}} _{{\text{pD}}}}({u_{\text{n}}},{v_{\text{m}}},s)=\frac{{\cos ({u_{\text{n}}}{x_{{\text{eD}}}})\cos ({v_{\text{m}}}{y_{{\text{eD}}}})}}{{s+u_{{\text{n}}}^{2}+v_{{\text{m}}}^{2}}},$$
(8)

where \({u_{\text{n}}}=\frac{{n\pi }}{{{x_{{\text{eD}}}}}}\), \({v_{\text{m}}}=\frac{{m\pi }}{{{y_{{\text{eD}}}}}}\)(m,n is natural number).

Using Fourier cosine inverse transformation of \({u_{\text{n}}}\) and \({v_{\text{m}}}\), the Eq. (8) can be written as follows:

$${\tilde {P}_{{\text{pD}}}}({x_{\text{D}}},{y_{\text{D}}},s)=\sum\limits_{{n=1}}^{\infty } {\frac{{2\cos ({u_{\text{n}}}{x_{\text{D}}})\cos ({u_{\text{n}}}{x_{{\text{eD}}}})}}{{s+u_{{\text{n}}}^{2}}}} \sum\limits_{{m=1}}^{\infty } {\frac{{2\cos ({v_{\text{m}}}{y_{\text{D}}})\cos ({v_{\text{m}}}{y_{{\text{eD}}}})}}{{s+u_{{\text{n}}}^{2}+v_{{\text{m}}}^{2}}}} .$$
(9)

By introducing the equations:

$$\sum\limits_{{k=1}}^{\infty } {\frac{{\cos kx}}{{{k^2}+{a^2}}}} =\frac{\pi }{{2a}}\frac{{\cosh a(\pi - x)}}{{\sinh a\pi }} - \frac{1}{{2{a^2}}},$$

The Eq. (9) can be written as follows:

$$\begin{aligned} s{{\tilde {P}}_{{\text{pD}}}}({x_{\text{D}}},{y_{\text{D}}},s) & =\frac{\pi }{{{x_{{\text{eD}}}}}}\frac{{\cosh {\varepsilon _0}[{y_{{\text{eD}}}} - |{y_{\text{D}}} \pm {y_{{\text{wD}}}}|]}}{{{\varepsilon _0}\sinh {y_{eD}}{\varepsilon _0}}} \\ & \quad +\frac{{2\pi }}{{{x_{{\text{eD}}}}}} \times \sum\limits_{{n=1}}^{\infty } {\cos \frac{{n\pi {x_{{\text{wD}}}}}}{{{x_{{\text{eD}}}}}}\cos \frac{{n\pi {x_{\text{D}}}}}{{{x_{{\text{eD}}}}}}} \times \frac{{\cosh {\varepsilon _n}({y_{{\text{eD}}}} - |{y_{\text{D}}} \pm {y_{{\text{wD}}}}|)}}{{{\varepsilon _n}\sinh {y_{{\text{eD}}}}{\varepsilon _n}}}, \\ \end{aligned}$$
(10)

where \({\varepsilon _n}=\sqrt {s+{n^2}{\pi ^2}/x_{{{\text{eD}}}}^{2}}\).

When tD is large enough, the dimensionless pressure distribution is obtained by asymptotic analysis:

$$\begin{aligned} {P_{{\text{pD}}}}({x_{\text{D}}},{y_{\text{D}}},{t_{\text{D}}}) & =\frac{{2\pi {t_{\text{D}}}}}{{{x_{{\text{eD}}}}{y_{{\text{eD}}}}}}+2\pi \frac{{{y_{{\text{eD}}}}}}{{{x_{{\text{eD}}}}}}\left( {\frac{1}{3} - \frac{{|{y_{\text{D}}} \pm {y_{{\text{wD}}}}|}}{{2{y_{{\text{eD}}}}}}+\frac{{y_{{\text{D}}}^{2}+y_{{{\text{wD}}}}^{2}}}{{2y_{{{\text{eD}}}}^{2}}}} \right) \\ & \quad +2\sum\limits_{{k=1}}^{\infty } {\frac{1}{k}\frac{{\cosh k\pi ({y_{{\text{eD}}}} - |{y_{\text{D}}} \pm {y_{{\text{wD}}}}|)/{x_{{\text{eD}}}}}}{{\sinh (k\pi {y_{{\text{eD}}}}/{x_{{\text{eD}}}})}} \times \cos \frac{{k\pi {x_{\text{D}}}}}{{{x_{{\text{eD}}}}}}\cos \frac{{k\pi {x_{{\text{wD}}}}}}{{{x_{{\text{eD}}}}}},} \\ \end{aligned}$$
(11)

The Eq. (11) can be written in dimensional form:

$${P_{{\text{pi}}}} - {P_{\text{p}}}(x,y,t)=\frac{{{q_{{\text{sc}}}}{B_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}{{542.87{k_g}h}}\left( {\frac{{2\pi }}{{{x_{\text{e}}}{y_{\text{e}}}}}\frac{{{k_{\text{g}}}}}{{\varphi {c_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}+F} \right),$$
(12)

where influence function F is

$$\begin{aligned} F[x,y,{x_{\text{w}}},{y_{\text{w}}},{x_{\text{e}}},{y_{\text{e}}}] & =2\pi \frac{{{y_{\text{e}}}}}{{{x_{\text{e}}}}} \times \left( {\frac{1}{3} - \frac{{|y \pm {y_{\text{w}}}|}}{{2{y_{\text{e}}}}}+\frac{{{y^2}+y_{{\text{w}}}^{2}}}{{2y_{{\text{e}}}^{2}}}} \right) \\ & \quad +2\sum\limits_{{k=1}}^{\infty } {\frac{1}{k}\frac{{\cosh k\pi ({y_{\text{e}}} - |y \pm {y_{\text{w}}}|)/{x_{\text{e}}}}}{{\sinh (k\pi {y_{\text{e}}}/{x_{\text{e}}})}}} \times \cos \frac{{k\pi x}}{{{x_{\text{e}}}}}\cos \frac{{k\pi {x_{\text{w}}}}}{{{x_{\text{e}}}}}. \\ \end{aligned}$$
(13)

The variable flow model

When the well production changes, the variable flow model of the low-permeability gas reservoir is obtained, with taking the skin factor into consideration.

$${P_{{\text{pi}}}} - {P_{\text{p}}}(x,y,t)=\frac{{{B_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}{{542.87{K_{\text{g}}}h}} \times \left[ {\frac{{2\pi }}{{{x_{\text{e}}}{y_{\text{e}}}}}\frac{{{K_{\text{g}}}}}{{\varphi {\mu _{{\text{gi}}}}{c_{{\text{gi}}}}}}\int\limits_{0}^{t} {{q_{{\text{sc}}}}(t){\text{d}}t+(F+s){q_{{\text{sc}}}}(t)} } \right].$$
(14)

According to the conservation of quality, we can get

$${P_{{\text{pi}}}} - {\bar {P}_{\text{p}}}=\frac{{{B_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}{{542.87{K_{\text{g}}}h}}\frac{{2\pi }}{{{x_{\text{e}}}{y_{\text{e}}}}}\frac{{{K_{\text{g}}}}}{{\varphi {\mu _{{\text{gi}}}}{c_{{\text{gi}}}}}}\int\limits_{0}^{t} {{q_{{\text{sc}}}}(\tau )\partial \tau }.$$
(15)

Eliminate the time term by the combination of Eqs. (14) and (15), and introduce the average pressure, we can get

$${\bar {P}_{\text{p}}} - {P_{\text{p}}}(x,y,t)=\frac{{{\alpha _1}{B_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}{{2\pi {K_{\text{g}}}h}}{q_{{\text{sc}}}}(t) \times [s+F(x,y,{x_{\text{w}}},{y_{\text{w}}},{x_{\text{e}}},{y_{\text{e}}})],$$
(16)

where α1 is the unit conversion factor, and in the SI unit system (Chen 1988), α1 is 1.1574 × 10− 2.

Multi-well model

Transient production

When there are n wells producing at the same time, according to the pressure drop superposition principle [superimpose the Eq. (16)], we can get

$${\bar {P}_{\text{p}}} - {P_{\text{p}}}(x,y,t)=\frac{{{\alpha _1}{B_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}{{2\pi {K_{\text{g}}}h}}\sum\limits_{{j=1}}^{n} {{q_{{\text{scj}}}}} (t) \times [{F_{\text{j}}}(x,y,{x_{{\text{wj}}}},{y_{{\text{wj}}}},{x_{\text{e}}},{y_{\text{e}}})+{s_{\text{j}}}].$$
(17)

Rewrite the Eq. (17) in a matrix form as

$$\vec {{\varvec{d}}}=\frac{{{\alpha _1}{B_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}{{2\pi {K_{\text{g}}}h}}\left( {{\varvec{F}}+{{\varvec{D}}_{\text{s}}}} \right){\vec {{\varvec{q}}}_{{\text{sc}}}}.$$
(18)

There are two basic vectors in the Eq. (18): the pressure drop vector \(\vec {{\varvec{d}}}\) and the production vector \({\vec {{\varvec{q}}}_{{\text{sc}}}}\).

$$\vec {{\varvec{d}}}=\left[ \begin{gathered} {d_1} \hfill \\ {d_2} \hfill \\ \vdots \hfill \\ {d_n} \hfill \\ \end{gathered} \right]=\left[ \begin{gathered} {{\bar {P}}_{\text{p}}} - {P_{{\text{pwf}},1}} \hfill \\ {{\bar {P}}_{\text{p}}} - {P_{{\text{pwf}},2}} \hfill \\ \vdots \hfill \\ {{\bar {P}}_{\text{p}}} - {P_{{\text{pwf}},n}} \hfill \\ \end{gathered} \right],\quad {\vec {{\varvec{q}}}_{{\text{sc}}}}=\left[ \begin{gathered} {q_{{\text{sc}}1}} \hfill \\ {q_{{\text{sc}}2}} \hfill \\ \vdots \hfill \\ {q_{{\text{sc}}n}} \hfill \\ \end{gathered} \right].$$
(19)

The influence function matrix \({\varvec{F}}\) and the diagonal matrix \({{\varvec{D}}_{\text{s}}}\) are shown in the Eq. (20).

$${\varvec{F}}=\left[ \begin{gathered} {F_{11}}\;\;{F_{12}} \cdots {F_{1{\text{n}}}} \hfill \\ {F_{21}}\;\;{F_{22}} \cdots {F_{2{\text{n}}}} \hfill \\ \vdots \hfill \\ {F_{{\text{n}}1}}\;\;{F_{{\text{n}}2}} \cdots {F_{{\text{nn}}}} \hfill \\ \end{gathered} \right],\quad {{\varvec{D}}_{\text{s}}}=\left[ \begin{gathered} {s_1}\;\;0 \cdots 0 \hfill \\ 0\;\;{s_2} \cdots 0 \hfill \\ \vdots \hfill \\ 0\;\;0 \cdots {s_{\text{n}}} \hfill \\ \end{gathered} \right].$$
(20)

Rewrite the Eq. (18), we can get

$${\vec {{\varvec{q}}}_{{\text{sc}}}}=\frac{{2\pi {K_{\text{g}}}h}}{{{\alpha _1}{B_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}{\left( {{\varvec{F}}+{{\varvec{D}}_{\text{s}}}} \right)^{ - 1}}\vec {{\varvec{d}}}.$$
(21)

Define the quasi-steady stateless dimension production index:

$${J_{{\text{Dj}}}}=\frac{{{\alpha _1}{q_{{\text{scj}}}}(t){B_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}{{2\pi {K_{\text{g}}}h[{{\overline {P} }_p}(t) - {p_{{\text{pwf}}}}]}}.$$
(22)

Combining the Eqs. (21) and (22), we can get

$$\left\{ \begin{gathered} 1={J_{{\text{D}}1}}\left[ {{F_1}\left( {{y_{{\text{w1}}}}} \right)+{s_1}} \right]+{J_{{\text{D}}2}}{F_2}\left( {{y_{{\text{w1}}}}} \right)+ \cdots +{J_{{\text{DN}}}}{F_{\text{N}}}\left( {{y_{{\text{w1}}}}} \right) \hfill \\ 1={J_{{\text{D}}1}}{F_1}\left( {{y_{{\text{w}}2}}} \right)+{J_{{\text{D2}}}}\left[ {{F_2}\left( {{y_{{\text{w}}2}}} \right)+{s_2}} \right]+ \cdots +{J_{{\text{DN}}}}{F_{\text{N}}}\left( {{y_{{\text{w}}2}}} \right) \hfill \\ \cdots \hfill \\ 1={J_{{\text{D}}1}}{F_1}\left( {{y_{{\text{wn}}}}} \right)+{J_{{\text{D}}2}}{F_2}\left( {{y_{{\text{wn}}}}} \right)+ \cdots +{J_{{\text{DN}}}}\left[ {{F_{\text{n}}}\left( {{y_{{\text{wn}}}}} \right)+{s_{\text{n}}}} \right] \hfill \\ \end{gathered} \right..$$
(23)

By combining the Eqs. (13) and (23), and by following the operation of ‘three step method’, the transient productivity of the gas reservoirs can be obtained.

The ‘three step method’ is present as the following:

Step 1 The required data, such as reservoir size and well location coordinates are collected, and then according to the Eq. (13), the influence function can be obtained.

Step 2 The Eq. (23) is solved by Gauss method, and the dimensionless production index of each well is obtained.

Step 3 By substitute the dimensionless production index of each well into the Eq. (22), the production of each well f(n,qk) is obtained.

Whether it is a regular well pattern or an irregular well pattern, the production of the gas wells after well pattern infilling technology can be obtained.

Average production

In the actual gas reservoir development, it is often required to take the average production of a single well for a period of time, which is used for gas well dynamic analysis and production evaluation. Therefore, it is necessary to give a calculation model of average production by being based on formula (23).

The average pressure drop rate is

$$\frac{{{\text{d}}{{\bar {P}}_{\text{p}}}}}{{{\text{d}}t}}= - \frac{{{\alpha _2}\sum\nolimits_{{j=1}}^{n} {{q_{{\text{scj}}}}} (t){B_{{\text{gi}}}}}}{{Ah\varphi {c_{{\text{gi}}}}}},$$
(24)

where α2 is the unit conversion factor, and in the SI unit system (Chen 1988), α2 is 0.04167.

Substitute the Eq. (22) in (24), we can get

$$\frac{{{\text{d}}{{\bar {P}}_{\text{p}}}}}{{{\text{d}}t}}= - {c_1}{\bar {P}_{\text{p}}}+{c_2},$$
(25)

where

$${c_1}=\frac{{{\alpha _2}2\pi {K_{\text{g}}}\sum\limits_{{j=1}}^{n} {{J_{{\text{Dj}}}}} }}{{{\alpha _1}A\varphi {c_{{\text{gi}}}}{\mu _{{\text{gi}}}}}},\quad {c_2}=\frac{{{\alpha _2}2\pi {K_{\text{g}}}\sum\nolimits_{{j=1}}^{n} {{J_{{\text{Dj}}}}{P_{{\text{pwf}}}}} }}{{{\alpha _1}A\varphi {c_{{\text{gi}}}}{\mu _{{\text{gi}}}}}}.$$
(26)

Solve the Eq. (26), and the average pressure is obtained as the following:

$${\bar {P}_{\text{p}}}=\frac{{{c_2}}}{{{c_1}}}+\left( {{P_{{\text{pi}}}} - \frac{{{c_2}}}{{{c_1}}}} \right){{\text{e}}^{ - {c_1}t}}.$$
(27)

By combining the Eqs. (22), (26) and (27), the average production \(\overline {f} (n,{q_{\text{k}}})\) can be obtained.

Well pattern density determination

Due to the low natural productivity of low-permeability gas reservoirs and the large seepage resistance of reservoir fluids, the reasonable well pattern density is the key to the success of developing low-permeability gas fields. The economic benefits, cumulative production, and the number of wells have optimal values by considering economic factors, such as gas prices and drilling and completion costs. Through these optimal values, the reasonable well pattern density and limit well pattern density can be determined.

Here, take the average production \(\overline {f} (n,{q_{\text{k}}})\) as an example to show how to determine the well pattern density.

When there are n wells producing in the gas reservoir at the same time, the total sales income V1 can be obtained by the Eq. (28).

$${V_1}=Ct\sum\limits_{{k=1}}^{n} {\overline {f} (n,{q_{\text{k}}})} [1+(1+j)+{(1+j)^2}+ \cdots {(1+j)^{t - 1}}]=Ct\sum\limits_{{k=1}}^{n} {\overline {f} (n,{q_{\text{k}}})\left[ {\frac{{{{(1+j)}^t} - 1}}{j}} \right]} ,$$
(28)

where C is the price of natural gas, yuan/ton. j is the discount rate, decimal.

The total development investment V2 can be obtained by the Eq. (29).

$${V_2}=nM[1+(1+j)j+{(1+j)^2}j+ \cdots +{(1+j)^{t - 2}}j]=nM{(1+j)^{t - 1}},$$
(29)

where M is the total investment for each well, yuan/well.

The total cost of development and maintenance management V3 can be obtained by the Eq. (30).

$${V_3}=nG[1+(1+j)+{(1+j)^2}+\ldots+{(1+j)^{t - 1}}]=nG[\frac{{{{(1+j)}^t} - 1}}{j}],$$
(30)

where G is the single well maintenance management fee, yuan / ton.

The net income V can be obtained by the Eq. (31).

$$V={V_1} - {V_2} - {V_3}$$
(31)

when V = 0, the limit well number njx under the current conditions is obtained, and the ultimate well pattern density is obtained.

When dV/dn = 0, that is to solve the Eq. (32)

$$Ct\sum\limits_{{k=1}}^{n} {\overline {{{f^\prime }}} (n,{q_{\text{k}}})\left[ {\frac{{{{(1+j)}^t} - 1}}{j}} \right]=M} {(1+j)^{t - 1}}+G\left[ {\frac{{{{(1+j)}^t} - 1}}{j}} \right].$$
(32)

The reasonable number of wells nhl under current conditions can be obtained, and the reasonable well pattern density can be obtained.

The Eq. (32) is a method for determining the well pattern density, which is based on the dynamic analysis of gas wells in low-permeability gas reservoirs. Using this method, the number of production wells can be adjusted according to the production dynamics of low-permeability gas reservoirs, which can realize efficient and stable development of low-permeability gas reservoirs. The specific calculation steps are shown in Fig. 2.

Fig. 2
figure 2

The calculation diagram of the well spacing density

According to Serkachev’s formula (Yikun and Liang 2010), there is a certain relationship between well pattern density and gas recovery. Being based on the dynamic production rate of single well, the gas recovery can be obtained by the Eq. (33)

$${E_{\text{R}}}=\frac{{t\sum\nolimits_{{k=1}}^{n} {\overline {f} (n,{q_{\text{k}}})} }}{N} \times 100\%,$$
(33)

where ER is the gas recovery, %. N is the geological reserves, m3.

Through the formula (33), the gas recovery rate under the economical or reasonable well pattern density can be obtained.

Case analysis

The temperature of a rectangular sealed gas reservoir remains unchanged (T = 361K). The reservoir and fluid characteristics are shown in Table 1.

Table 1 Gas reservoir parameters for the example 1

In the initial stage, there were two production wells. When the production time was 100 days, an infill well was added. The well parameters are shown in Table 2.

Table 2 The Coordinates of well position and skin factor

When t = 100 days, the influence function matrix and the skin factor matrix are shown as below.

$${\varvec{F}}=\left[ {\begin{array}{*{20}{l}} {9.61877}&{\quad - 1.13693} \\ { - 1.13693}&{\quad 9.41553} \end{array}} \right],\quad {{\varvec{D}}_s}=\left[ {\begin{array}{*{20}{l}} {9.1}&{\quad 0} \\ 0&{\quad 0.3} \end{array}} \right].$$
(34)

Substitute (34) in (21), the dimensionless production index can be obtained.

$${J_{{\text{D1}}}}=0.052551,\quad {J_{{\text{D2}}}}=0.093237.$$

When t = 100 days, the average reservoir pressure is 7.07 MPa, and using Eq. (19), the production can be obtained, shown as below:

$${q_1}=4.18 \times {10^6}{{\text{m}}^{\text{3}}}{\text{/day}},\quad {q_2}=7.82 \times {10^6}{{\text{m}}^{\text{3}}}{\text{/day.}}$$

When t = 500 days, the influence function matrix and the skin factor matrix are shown as below.

$${\varvec{F}}=\left[ {\begin{array}{*{20}{l}} {9.61877}&{\quad - 1.13693}&{\quad - 0.44266} \\ { - 1.13693}&{\quad 9.41553}&{\quad - 0.05773} \\ { - 0.44261}&{\quad - 0.05769}&{\quad 8.64801} \end{array}} \right],\quad {{\varvec{D}}_s}=\left[ {\begin{array}{*{20}{l}} {9.1}&{\quad 0}&{\quad 0} \\ 0&{\quad 0.3}&{\quad 0} \\ 0&{\quad 0}&{\quad - 2.7} \end{array}} \right].$$
(35)

Substitute (35) in (21), the dimensionless production index can be obtained.

$${J_{{\text{D}}1}}=0.052551,\quad {J_{{\text{D2}}}}=0.093237,\quad {J_{{\text{D}}3}}=0.14099.$$

When t = 500 days, the average reservoir pressure is 6.36 MPa, and using Eq. (19), the production can be obtained, shown as below:

$${q_1}=1.7038 \times {10^4}{{\text{m}}^{\text{3}}}{\text{/day}},\quad {q_2}=3.0229 \times {10^4}{{\text{m}}^{\text{3}}}{\text{/day}},\quad {q_3}=4.5713 \times {10^4}{{\text{m}}^{\text{3}}}{\text{/day.}}$$

In the same way, the other time step production can be obtained, as shown in Fig. 3.

Fig. 3
figure 3

The curves of flow rate versus time

Figure 3 shows that when the production time is 100 days, the production deceleration rate of well 1 and well 2 changes, and the deceleration rate increases, which is caused by the mutual influence of pressure as the infill (well 3) is producing. In the quasi-steady state, if there is no other infill well, the production deceleration rate is a fixed value.

The pressure distribution at 100 and 500 days is shown in Fig. 4. Figure 4 shows that the new infill well will aggravate formation energy depletion, and it is necessary to replenish energy to the formation under the premise of ensuring production.

Fig. 4
figure 4

The pressure distribution at 100 and 500 days

Sensitivity analysis

Production

Through calculation, the relationship between production (q), cumulative production (Q), and the number of wells (n) is obtained, as shown in Fig. 5.

Fig. 5
figure 5

The curves of flow rate and cumulative production versus well number

Figure 5 shows that as the number of wells increases, the production first increases and then decreases. When the number of wells is the same, the initial production increases rapidly, and after reaching the peak value, the production is slowly reduced. This makes the cumulative production increase in the early stage. When the number of wells exceeds the number of reasonable production wells, the cumulative output gradually becomes flat. Therefore, there is a reasonable well pattern density (reasonable number of wells) in the development of the gas reservoir. When exceeding the reasonable number of wells, the cumulative production tends to be stable and the economic benefits reduce.

Gas recovery

Substitute the calculated cumulative production at different production time in Eq. (33), and the relationship between gas recovery and well pattern density can be obtained, as shown in Fig. 6. Figure 6 shows that as the density of the well pattern decreases, the gas recovery rate increases. When the well pattern density is 45–60 km2/well, the increase rate of the gas recovery is not obvious. Because the controllable reserves of a single well are certain. When the well pattern density exceeds the technical limit well density of a single well, it is usually not used to reduce the well spacing to improve gas recovery. When it is compared with the Sherka’s empirical formula, the trend of this model in the paper is generally the same, except that the nodes and amplitudes of the curve rise are different.

Fig. 6
figure 6

The curves of gas recovery and well pattern density versus time

Gas price

The gas price C is 1.0, 1.5, 2.0, 2.5, 3.0, 3.5 yuan/m3, and the reasonable number of wells in the low-permeability gas reservoir is calculated, as shown in Fig. 7. Figure 7 shows that when the gas price is 3.5 yuan/m3, the reasonable number of wells in the gas reservoir is 84, and the number of economic limit wells is 193. The calculated reasonable well pattern density is 20.28 well/km2, and the economic limit well density is 46.61 well/km2.

Fig. 7
figure 7

The curves of cumulative production and economic benefits versus time

Physical parameter

By changing the effective thickness and the original permeability of the gas reservoir, the reasonable well pattern density under different physical conditions is studied, and a reasonable well pattern density is obtained, as shown in Fig. 8. Figure 8 shows that when the effective thickness of the reservoir is small, the reasonable well pattern density has a linear relationship with effective thickness. After the inflection point, the reasonable well pattern density increases fast first and then increases slowly. For the same reservoir thickness, as the original permeability increases, the reasonable well pattern density also increases.

Fig. 8
figure 8

The curve of reasonable well spacing density in different physical properties

Methods comparison

The method is compared with the empirical formula method (Cunyou and Haibo 2010), the net present value method (Mengkun et al. 2012), the numerical simulation method (Yikun and Liang 2010), and the actual data. The comparison results are shown in Table 3. Table 3 shows that the calculation results of this method in this paper and the numerical simulation method are very close, but this method is much closer to the actual data, which indicates that this method in this paper is reliable. The calculation results of the net present value method are generally lower than the method of this paper, mainly because the net present value method does not consider the influence of cross-well interference and skin factor on single well productivity, and ignores the ratio of injection–production wells to recovery. When the same recovery is achieved, more infill wells are needed for the net present value method. In the middle and late stages of low-permeability gas reservoir development, due to the comprehensive production data, the calculation error of empirical formula method is reduced. From the perspective of economy and time saving, the method in this paper is the best solution to obtain reasonable well pattern density.

Table 3 comparison table of calculation results using different ways (km2/well)

Conclusion

  1. 1.

    At present, there are two kinds of ways to determine the well pattern density, namely gas reservoir engineering and numerical simulation. The gas reservoir engineering method is mainly based on the empirical formula of Serkachev’s formula, and it is not suitable for low-permeability gas reservoirs with low porosity and low permeability characteristics, and it does not consider the pressure-sensitive effect. The numerical simulation method needs to combine geological model, and it takes a long time to obtain the well pattern density. For the numerical simulation method, the corresponding model should be built based on the research area, which cannot be universal. In this paper, a new method to determine the economical and reasonable well pattern density based on dynamic production of low-permeability gas reservoirs is established. This method can adjust the number of production wells according to the production dynamics, and provide a theoretical basis for the reorganization of the old gas field well pattern and the design of the new gas field well pattern.

  2. 2.

    When the infilling wells are producing, the formation energy consumption increases, and the production deceleration rate of the old wells are different before and after well pattern infilling. To maintain the efficient and stable development of the low-permeability gas reservoir, energy must be added to the formation, such as water injection and gas injection.

  3. 3.

    With the number of production wells changing, the economic benefit and cumulative production have the maximum value. Under the same reservoir physical property, the reasonable well pattern density increases with the increase of natural gas price. Under the same natural gas price, the reasonable well pattern density increases with the increase of reservoir permeability and effective thickness, and decreases with the increase of recovery factor. The method is a simple and reliable method for determining the economical and reasonable well pattern density.