Keywords

1 Introduction

As a clean and efficient energy source, natural gas is the representative of a low-carbon economy. Large-scale development and utilization of natural gas resources is a realistic choice to deal with global warming. The average predicted value of available natural gas resources in the world is 458.7 × 104 billion cubic meters [1], which is 150 times the current average annual global natural gas consumption. The lowest and highest predicted values are 351.1 × 104 billion cubic meters and 598.0 × 104 billion cubic meters, respectively.

As an unconventional natural gas, shale gas is becoming a force that affects the world energy market. This kind of gas, which the international energy community calls “game changers”, has greatly rewritten the world’s energy landscape. At present, the United States has successfully carried out industrial shale gas mining in the country, and gradually formed a set of advanced shale gas exploration and development technologies. This achievement, called as a “shale gas revolution”, not only greatly changed the supply of natural gas in North America, but also set off a booming of developing shale gas worldwide [2, 3]. Figure 1 is the historical output and predicted value of national natural gas given by the US Energy Information Administration in 2020 [4]. In the AEO2020 reference case, natural gas production from shale gas and tight oil extraction continues to grow, accounting for the total US natural gas production. Both proportion and absolute volume are increasing. The reason for the increase is the scale of related resources (nearly 500,000 square miles) and technological advances that allow these resources to be developed at a lower cost. In the “high oil and gas supply” case with more optimistic assumptions about resource scale and recovery, the cumulative production of shale gas and tight oil is 14% higher than the reference case. On the contrary, in the case of “oil and gas shortage”, the cumulative output of these resources is 20% lower than the output in the reference case.

In recent years, major breakthroughs have been made in the exploration of shale gas reservoirs in China, with resources exceeding 45 trillion cubic meters and preliminary estimates of recoverable reserves of approximately 31 trillion cubic meters. However, due to China’s current rapid economic development and rapid increase in demand for energy, it is expected that by 2030, China's natural gas gap will exceed 130 billion cubic meters [5]. Therefore, there is an urgent need to realize the effective development of shale gas reservoirs, promote the rapid development of the natural gas industry, and meet the national energy demand.

Fig. 1.
figure 1

US natural gas production and forecast.

However, due to the Nano scale pores in the shale reservoir, the extremely low permeability of the reservoir matrix, and the complex gas occurrence and migration mechanism, it is an unconventional gas reservoir. The fracture network is complicated after hydraulic fracturing, and accurate numerical simulation is difficult. Shale reservoirs include rock matrix, organic matrix with kerogen, natural fractures, and artificial hydraulic fractures. The scale of various media is different, the scale of pore diameter ranges from nanometers to micrometers, and the scale of fracture aperture ranges from micrometers to millimeters. The involved mechanisms are very complex, including: desorption/adsorption, diffusion, slippage, Darcy flow and non-Darcy flow, matrix pores will deform and shrink with pressure changes, and fractures will deform and be closed; There are coupling of medium, coupling of fluid pattern, coupling of different scale, coupling of fluid migration and stress, and the mechanism of migration of different media at different times and times changes, as shown in Fig. 2.

Fig. 2.
figure 2

Schematic diagram of complex coupled migration of shale gas reservoirs.

Faced with many problems in the current development process of shale gas reservoirs, the reservoir numerical simulation method can more fully consider the coupling of various processes such as seepage, diffusion, desorption, and pressure sensitivity during shale gas migration [6, 7]. An accurate mathematical model can provide effective simulations for shale gas reservoir selection evaluation, dynamic analysis, productivity estimation, and hydraulic fracturing measures design. There are two difficulties in the simulation of shale gas. The first is to establish a suitable mathematical model of adsorption/desorption mechanism, which needs to conform to the law curve of desorption/adsorption obtained from the laboratory. The second is the simulation technology for matrix-fracture-wellbore together. The simulation technology of mixed media needs to conform to the flow laws of shale gas in the matrix, fractures and wellbore system. Therefore, this paper focuses on two difficulties and conducts targeted numerical simulation research on the shale gas development process.

2 Governing Equation

For the simulation of shale gas, the first thing that needs to be done is to establish a mathematical model that can correctly describe the state of shale gas flow underground. The mathematical model of shale gas numerical simulation needs to meet the following conditions: 1) Since 80% of shale gas is adsorbed on the rock surface in an adsorbed state, when the gas reservoir pressure is lower than the desorption pressure, a large amount of desorbed gas becomes free, and at the same time, since shale gas development must adopt hydraulic fracturing volume reconstruction technology, there will be a large amount of water phases in the gas reservoir, so the gas and water two phases are considered in the gas reservoir; 2) rock and water are slightly compressible; 3) consider the anisotropy and heterogeneity of the stratum, as well as the influence of gravity and capillary force.

For any microelement in the reservoir, whether it is fracture medium or matrix medium, whether it is continuous medium or discrete medium, the following mathematical model equations need to be established:

$$ \frac{\partial }{\partial t}\left( {\phi \rho_{g} S_{g} { + }m_{k} } \right) = - \nabla \cdot \left( {\rho_{g} {\varvec{v}}_{g} } \right) + q_{g}^{{}} $$
(1)
$$ \frac{\partial }{\partial t}\left( {\phi \rho_{w} S_{w} } \right) = - \nabla \cdot \left( {\rho_{w} {\varvec{v}}_{w} } \right) + q_{w}^{{}} $$
(2)
$$ S_{g} + S_{w} = 1 $$
(3)
$$ P_{g} - P_{w} = P_{cwg} $$
(4)

Where, \(\phi\) is the porosity,%; \(\rho_{g}\) and \(\rho_{w}\) is the density of the gas and water phases under formation conditions respectively, kg/m3; \(S_{g}\) and \(S_{w}\) is the saturation of the gas and water phases respectively,%; mk is the mass of gas adsorbed and desorbed per unit volume of the reservoir, kg; \(P_{g}\) and \(P_{w}\) is the pressure of the gas phase and the water phase respectively, MPa; \(P_{cgw}\) is the capillary force between the gas and water phase, MPa; \(q_{g}^{{}}\) and \(q_{w}^{{}}\) is the production / injection volume between the gas phase, the aqueous and the wellbore respectively, kg; \({\text{v}}_{g}\) and \({\text{v}}_{w}\) is the gas phase and the water phase flow rate respectively, m/s.

According to Darcy's law formula, the velocity of phase p (p = g, w) can be expressed as:

$$ {\text{v}}_{p} = - \frac{{KK_{rp} }}{{\mu_{p} }}\left( {\nabla \Phi_{p} } \right) $$
(5)

Where, \(K\) is the absolute permeability, mD; \(K_{rp}\) represents the relative permeability of the phase p, dimensionless; \(\mu_{p}\) is the viscosity of the phase p, \(Pa \cdot s\); \(\Phi_{p}\) is the flow potential of phase p, which can be expressed as:

$$ \nabla \Phi_{p} = \left( {\nabla P_{p} - \rho_{p} \,g\,\nabla D} \right) $$
(6)

Where, \(g\) is the acceleration of gravity, m/s2; \(D\) is the depth from the reference plane, m.

3 Numerical Discretization

The integral finite difference method is used to discretize the control equation. The integral finite difference method was proposed by Narashman et al. [8] in 1976 and is a more effective method for solving the underground gas-water flow. It combines the advantages of the finite difference method and the finite element method. On the one hand, the difference method is used to discretize, and on the other hand, the irregular grid is used to deal with the boundary and grid problem, which overcomes the natural boundary fitting when solving with the finite difference. At the same time, because the integral finite difference method is derived from the physical concept of the fluid balance of the unit body, the basic equations are derived, which ensures the conservation of fluid flow in the unit domain. The discrete equation is:

$$ \frac{{V_{i} }}{\Delta t}\left[ {\left( {\phi \rho_{p} S_{p} } \right)_{i}^{n + 1} + \left( {m_{k} } \right)_{i}^{n + 1} - \left( {\phi \rho_{p} S_{p} } \right)_{i}^{n} - \left( {m_{k} } \right)_{i}^{n} } \right]{ = }\sum\limits_{{j \in \eta_{i} }} {F_{p,ij}^{n + 1} } + Q_{p,i}^{n + 1} $$
(7)

Where, the superscript n represents the last time step, n + 1 is the current time step; The subscript i represents the grid node i, and its value range is i = 1, 2, 3,…, N, N represents the total number of grid node; Δt is the time step size, s; Vi is the volume of node i, m3; ηi is the set of neighboring node j of node i; \(\left( {m_{k} } \right)_{i}^{n + 1}\),\(F_{p,ij}^{n + 1}\),\(Q_{p,i}^{n + 1}\) are the adsorption/desorption volume, fluid exchange volume, and production/injection volume of node i; \(\left( {m_{k} } \right)_{i}^{n + 1}\) and \(\left( {m_{k} } \right)_{i}^{n}\) is only applicable when p = g.

$$ F_{p,\,ij}^{{}} = \lambda_{{p,{\kern 1pt} ij + 1/2}} T_{i\,j} \left( {\Phi_{p\,j}^{{}} - \Phi_{p\,i}^{{}} } \right) $$
(8)

\(\lambda_{p,ij + 1/2}\) is the mobility of the phase p, defined as:

$$ \lambda_{{p,{\kern 1pt} i{\kern 1pt} j + 1/2}}^{{}} = \left( {\frac{{\rho_{p} K_{rp} }}{{\mu_{p} }}} \right)_{ij + 1/2} $$
(9)

where, the subscript ij + 1/2 represents the weighted average of the attribute parameters of units i and j.

The connection relationship between two adjacent grids is shown in Fig. 3, which is the conduction coefficient between two adjacent grids. The expression is:

$$ T_{ij} = \frac{{\alpha_{i} \alpha_{j} }}{{\alpha_{i} + \alpha_{j} }} $$
(10)
$$ \alpha_{i} = A_{i,j} \frac{{K_{i} }}{{L_{i} }}{\mathbf{n}}_{i} {\mathbf{f}}_{i} $$
(11)

Where, \(A_{ij}\) is the interface area of elements i and j, m2; Li and Lj are the distances from the center point of elements i and j to the interface between elements i and j, m; Kij+1/2 is the absolute permeability of the connection (harmonic average), m2.

Fig. 3.
figure 3

The relationship between two adjacent grids.

The Peaceman formula [9, 10] is used for the processing of the wellbore item, which is not repeated here.

4 Mathematical Model of Adsorption/Desorption Mechanism

The main difference between shale gas and conventional natural gas reservoirs is that most shale gas is stored in the surface of shale matrix pores in an adsorbed state. Adsorption refers to a very thin molecular layer adhering to the surface of a solid or liquid. The molecular layer is in contact with the surface of a solid or liquid. The surface of the shale reservoir matrix has a strong physical adsorption effect on the gas. During drilling, completion and production, the pore pressure drops, breaking the original adsorption balance, and the gas adsorbed on the matrix surface desorbs. The adsorption of gas on the surface of the shale reservoir matrix particles is mainly affected by temperature, pressure, adsorbate (gas type and property), and adsorbent (reservoir type, specific surface area, solid adsorption capacity).

Brunauer [11] gives five kinds of isothermal adsorption curves. Energy Information Administration report of the US Department of Energy (EIA) [12] gives the adsorption curve of Marcellus shale gas. Comparing the isotherm adsorption curves in the two literatures, it is very similar. This curve is the classic Langmuir isotherm adsorption curve. The Langmuir isotherm adsorption curve is a curve widely accepted in academy and industry to describe the adsorption characteristics of shale gas [13]. According to the EIA report, when the gas reservoir pressure is below 2,000 psi (13.79 MPa), the desorbed gas is the main component of total natural gas production (50−80%); above 2,000 psi (13.79 MPa), the amount of desorbed gas is also very large, accounting for 30−50% of the total output of natural gas [14]. The curve of the adsorbed gas [12] once again confirmed that the relationship between the gas adsorbed in the shale reservoir and the gas reservoir pressure conforms to Langmuir's law of isotherm adsorption [15].

Langmuir's law of isotherm adsorption can be described according to the following formula [16]:

$$ V_{E} = V_{L} \frac{P}{{P + P_{L} }} $$
(12)

Where, VE is the amount of gas absorbed by the shale per unit mass (t), m3/t; VL is the maximum natural gas adsorption capacity or Langmuir volume, m3/t; PL is the Langmuir pressure, that is the pressure when natural gas adsorption capacity is the 50% of the maximum adsorption capacity, MPa. P is the gas pressure, MPa.

The amount of desorbed gas in the pores of the kerogen matrix in shale reservoirs is controlled by the term \(m_{k}\) in the accumulation term in the main governing Eq. (1). The adsorption volume VE in Eq. (12) needs to be transformed into the adsorption mass \(m_{k}\) in Eq. (1). The amount of adsorbed gas is determined by the Langmuir isotherm. The adsorbed gas and free gas are in equilibrium. With the production of gas, the pressure in the gas reservoir drops. When the pressure is lower than the equilibrium pressure, the adsorbed gas is desorbed from the surface of the kerogen and becomes free gas. Because the permeability of the matrix is extremely low and the gas velocity inside the kerogen is extremely slow, the speed of desorption is relatively faster. We assume that the adsorption gas and the free gas will reach equilibrium in an instant, that is to say, when the pressure changes, the adsorption or desorption reaction does not have a short delay, and it will be completed in an instant [17].

Therefore, in Eq. (1), the shale matrix model considering the desorption mechanism is:

$$ m_{k} = \rho_{R} \rho_{g} V_{E} \quad $$
(13)

Where, \(m_{k}\) is the mass of the adsorbed gas in the reservoir volume V [18], kg; \(\rho_{R}\) is the rock density, kg/m3; \(\rho_{g}\) is the natural gas density in the standard state, kg/m3; VE is the volume of Langmuir isotherm adsorbed gas, m3.

5 Matrix-Fracture-wellbore Mixed Medium Simulation Technology

In the current unconventional shale gas development process, if the conventional development method is adopted, there will be a situation of rapid decline in the initial stage of development, it is difficult to ensure long-term stable production and it is usually keeping an extremely low recovery rate. With the development of stimulation reservoir volume technology, many large-scale artificial fractures are created, along with the natural fractures in the reservoir, showing a staggered distribution of fractures of different scales and different occurrences. Together with the continuously distributed low-porosity and low-permeability matrix pores in the reservoir, the conditions of the shale gas reservoir are very complicated. Therefore, how to deal with fractures and porous media of different scales with large differences in permeability is a crucial issue in the reservoir simulation of shale gas.

We know that in the process of reservoir numerical simulation, the most important link is the flow process. This flow process includes not only the internal of the reservoir, but also all the flows between the reservoir and the wellbore, as well as inside the wellbore. The flow inside the reservoir involves the flow between the same medium (matrix and matrix, fractures and fractures), as well as the flow between different media (matrix and fractures). Therefore, in view of the above key issues, this paper proposes a method for processing multiple media, that is, mixed media processing technology, which is to discretize all media elements underground, including matrix reservoirs, fractures of various scales, and wellbore to form multiple discrete units. Based on the integral finite difference method, each unit performs fluid exchange with other units in contact with it, and the surrounding units can be of any medium (as shown in Fig. 4). Finally, all fluid exchanges are integrated to find with. In order to be able to accurately determine the relationship between the grids, the connectivity table is used to record the relationship between each unit and other units connected to it. This method is an extension of DFN and treats the wellbore as a medium.

Because it is based on the integral finite difference method, this method does not limit the number of grids around each grid. This technology transforms the focus of the research into a separate relationship between the central grid and each grid. The surrounding grid can be a grid of the same medium, a grid of different media, or a wellbore, so the concept of generalized multiple media is proposed. (See Fig. 4 for the schematic relationship).

Fig. 4.
figure 4

Conceptual diagram of mixed media.

As shown in the figure above, the gray grid in the center represents the matrix or fracture or wellbore grid. (1) When it is a matrix grid, it can be connected to the same matrix grid (on the right) and can be connected with different fracture grid (lower side), or can be connected to the wellbore grid (left side). (2) When it is a fracture grid, it is similar to the matrix grid, and can be connected to different kinds of matrix grids (right side), can be connected to the fracture grid (lower side) of the same medium, and can also be connected to the wellbore network grid (left). (3) When it is a wellbore grid, for the wellbore processed by the Peaceman analysis method, it can be connected to the matrix grid (right side), and can be connected to the fracture grid (lower side), and can be connected to the wellbore grid (left). (See Fig. 5 for the schematic relationship).

Fig. 5.
figure 5

Schematic diagram of grid connection.

6 Numerical Solution

A fully implicit method combined with Newton-Raphson iteratively solves the system of nonlinear algebraic Eqs. (7). We write the non-linear discrete Eq. (7) in the form of residuals (taking the gas phase as an example, and \(\left( {m_{k} } \right)_{i}^{n + 1}\), \(\left( {m_{k} } \right)_{i}^{n}\) only applies to the case where p = g):

$$ R_{p,i}^{n + 1} = \left\{ {\left( {\phi S_{p} \rho_{p} } \right)_{i}^{n + 1} + \left( {m_{k} } \right)_{i}^{n + 1} - \left( {\phi S_{p} \rho_{p} } \right)_{i}^{n} - \left( {m_{k} } \right)_{i}^{n} } \right\}\frac{{V_{i} }}{\Delta t} - \sum\limits_{{j \in \eta_{i} }} {F_{p,ij}^{n + 1} } - Q_{p,i}^{n + 1} $$
(14)

Equation (14) defines a set of 2 × N coupled nonlinear equations. The continuity equations for the two components of gas and water need to be solved separately for each node. In general, the two primary variables of each node need to solve the two related equations by Newton iteration method. The primary variables selected are gas pressure and gas saturation, and other variables such as relative permeability, capillary force, viscosity and density, adsorption term, and the pressure and saturation of non-primary variables are used as secondary variables, and calculated using the formula or relationship table about the change of the primary variable.

As far as the primary variable is concerned, the primary variable residual Eq. (14) of node i is not only a functional relationship of the primary variable of node i, but also a function of the primary variables of all its neighboring nodes j. The Newton iteration method is as follows:

$$ \sum\limits_{m} {\frac{{\partial \,R_{i}^{n + 1} \left( {x_{m,\,l} } \right)}}{{\partial \,x_{m} }}\;} \left( {\delta x_{m,\,l + 1} } \right) = - R_{i}^{n + 1} \left( {x_{m,\,l} } \right) $$
(15)

Where, \(x_{m}\) is the primary variable of node i and all its neighbors j, i = 1, 2, 3,…, N, m = 1 and 2; l is the number of iterations.

The primary variable of Eq. (15) needs to be updated after each Newton iteration,

$$ x_{m,\,l + 1} = x_{m,\,l} + \delta x_{m,\,l + 1} $$
(16)

The Newton iteration process continues until the residual \(R_{p,i}^{n + 1}\) or the amount of change in the primary variable \(\delta x_{m,l + 1}\) is less than the given error condition.

As described by Y. S. Wu, P. A. Forsyth et al. [19], the numerical method generally forms the Jacobi matrix of Eq. (15). In each Newton iteration loop, Eq. (15) represents a set of (2 × N) linear coefficient matrix of algebraic equations, iteratively solve linear equations. With the rapid development of computer technology and the gradual refinement of reservoir description, the coefficient matrix of linear algebraic equations has gradually increased in size. Traditional iterative solving techniques have been difficult to ensure the smooth calculation, so this article uses preprocessing solving techniques. That is, the Constrained Pressure Residual solution technology (referred to as CPR solution technology). Based on the decoupling of the Jacobin matrix, for the characteristics of the elliptic equation of the pressure equation and the characteristics of the hyperbolic equation of the saturation equation, the SAMG and BILU methods are used for preprocessing calculations, and then the GMRES method is used for unified solution, which not only guarantees The stability of the calculation also improves the calculation speed, and the details will not be repeated here.

7 Case Study

7.1 Verifying Simulator

Before applying the case, we first need to verify the reliability of this simulator. The verification method used in this article is compared with CMG commercial numerical simulation software. The specific reservoir and fluid static parameters are shown in Table 1.

Table 1. Static parameters of reservoir and fluid.

For the gas-water two-phase fluid, the production mode adopts a daily gas production of 3 × 104m3/ day. After 730 days of production, it is then converted to a BHP of 7 MPa for a total of 11322 days. Comparing the values of daily gas production and bottom BHP, the comparison results are shown in Fig. 6

Fig. 6.
figure 6

Comparison with commercial numerical simulation software CMG.

It can be seen from the above figure that the calculation results of the simulator in this paper are consistent with the calculation results of the CMG software, indicating that the simulation results of this simulator are correct and credible.

8 Case Study

In view of the complex shale reservoirs with different scale fractures shown in Fig. 7(a), a horizontal well and 12 sections of hydraulic fracturing fractures were developed and produced in this paper to form the well location and artificial fracture distribution map shown in Fig. 7(b).

Fig. 7.
figure 7

Shale reservoirs with complex fractures of different scales and the horizontal well and artificial hydraulic fracturing fractures.

A polygonal unstructured grid is used to divide the fractures and matrix in the computing domain at different scales. The total number of grids is about 150,000. The specific grid division is shown in Fig. 8. The equilibrium method is used for initialization of all reservoir. The static parameters of the reservoir and fluid are shown in Table 2.

For shale gas reservoirs, gas-water two-phase simulation is adopted, the production mode is fixed BHP production, the BHP is 5 MPa, and the total production is 5970 days.

Fig. 8.
figure 8

Sectional view of polygonal unstructured grid.

Table 2. Static parameters of reservoir and fluid.

The gas-water two-phase infiltration curve used in this paper is shown in Fig. 9.

Fig. 9.
figure 9

Gas-water two-phase relative permerability curve.

Figure 10 shows the distribution of reservoir pressure at 30 days, 120 days, 300 days, 900 days, 1440 days, 2610 days, 3600 days and 5970 days. It can be seen from the figure that in the early stage of production, shale gas near artificial hydraulic fractures is first used passively. As production progresses, due to the higher permeability of natural fractures of different scales, the shale gas near the fractures was gradually developed. Due to the extremely low permeability of the shale reservoir matrix, at 5970 days of production, there are still unused areas in areas far from the artificial hydraulic fractures.

Fig. 10.
figure 10

Pressure distribution of gas reservoir at different times.

Figure 11 shows the cumulative gas production and BHP over time. It can be seen from the figure that due to the high initial reservoir pressure, after 5970 days of production, the pressure gradually decreased from 45MPa to about 20MPa, but the set bottom hole flow pressure of 5MPa has not yet been reached, so the constant BHP production can be maintained. Cumulative gas production has maintained steady growth under conditions of constant pressure production.

Fig. 11.
figure 11

Cumulative gas production and BHP as a function of time.

9 Conclusions

In order to solve the problems of tight pores, extremely low permeability, complicated gas occurrence state and migration mechanism of shale gas reservoirs, this paper systematically analyzes and summarizes the mechanism and law of adsorption/desorption with shale gas, and establishes a mechanism to consider adsorption/desorption mechanism. Mathematical model of nonlinear migration of shale gas reservoirs, a matrix-fracture-wellbore mixed medium simulation technology was constructed, a shale gas numerical simulator was developed and verified by comparison with commercial software calculation results. The model, method and simulator are correct and credible. Finally, the numerical simulation calculation of shale gas migration considering the adsorption mechanism is carried out. From the numerical simulation results, it can be seen that the mixed medium simulation technology can effectively simulate the complex flow of shale gas. This technology is suitable for direct numerical simulation calculation of shale gas development, and provides powerful numerical simulation techniques for gas field development workers.