Abstract

The governing equations of a two-phase flow have a strong nonlinear term due to the interactions between gas and water such as capillary pressure, water saturation, and gas solubility. This nonlinearity is usually ignored or approximated in order to obtain analytical solutions. The impact of such ignorance on the accuracy of solutions has not been clear so far. This study seeks analytical solutions without ignoring this nonlinear term. Firstly, a nonlinear mathematical model is developed for the two-phase flow of gas and water during shale gas production. This model also considers the effects of gas solubility in water. Then, iterative analytical solutions for pore pressures and production rates of gas and water are derived by the combination of travelling wave and variational iteration methods. Thirdly, the convergence and accuracy of the solutions are checked through history matching of two sets of gas production data: a China shale gas reservoir and a horizontal Barnett shale well. Finally, the effects of the nonlinear term, shale gas solubility, and entry capillary pressure on the shale gas production rate are investigated. It is found that these iterative analytical solutions can be convergent within 2-3 iterations. The solutions can well describe the production rates of both gas and water. The nonlinear term can significantly affect the forecast of shale gas production in both the short term and the long term. Entry capillary pressure and shale gas solubility in water can also affect shale gas production rates of shale gas and water. These analytical solutions can be used for the fast calculation of the production rates of both shale gas and water in the two-phase flow stage.

1. Introduction

Hydraulic fracturing is a key technology to the development of shale gas reservoirs with ultralow permeability [1]. After hydraulic fracturing, there are fracturing fluid, initial water, and gas in the gas reservoir [2, 3]. The gas flow in the shale gas reservoir usually experiences three stages as shown in Figure 1: the single-phase water flow stage, the unsaturated bubble flow stage, and the gas-water two-phase flow stage [4]. At the last two stages, both gas and water simultaneously flow to the wellbore. The two-phase flow in these stages has significant influence on the gas production life because of complex interactions between gas and water [5]. Therefore, transport behaviors and mechanisms should be carefully studied for gas production forecast.

Numerous numerical models have been proposed to describe the complex process of the two-phase flow in porous media [68]. For instance, Mahabadi et al. [6] combined the techniques of microfocus X-ray computed tomography (CT) and pore-network model simulation to identify key parameters and their values in characterizing immiscible gas-water two-phase flow during hydrate dissociation. For the safety assessment on the CO2 geological storage, Wang and Peng [7] proposed a fully coupled mathematical model to describe the combined effects of the two-phase flow, deformation, and carbon dioxide (CO2) sorption on caprock sealing efficiency. Also, Wang et al. [8] developed a two-phase numerical model with multiscale diffusion mechanisms for both the flowback and long-term production stages. All these numerical models can efficiently analyze the process of the two-phase flow. However, there exist two unsolved issues. One issue is to include the gas solubility in water. Some experiments observed that the organic matter in water, high temperature, and pressure can lead to the increase of the methane solubility in water [911]. How this gas solubility affects the gas production rate has not been studied. The other issue is to obtain analytical solutions of water and gas pressures if all nonlinear interactions in the two-phase flow are included. Analytical solutions can forecast the field production data in a more convenient and faster way.

Considerable analytical solutions have been proposed for the single-phase flow in oil and gas reservoirs [1215]. For example, Nobakht and Clarkson [14] developed an analytical method to analyze the linear flow when the constant gas production rate is considered. They got a linear relationship between the square-root-of-time and production rate. In practice, the flow pattern may not be simplified into a linear flow or single-phase flow. Further improvements were made by introducing some factors related to the two-phase flow into the governing equations of the single-phase flow [16, 17]. For example, Behmanesh et al. [17] introduced two-phase viscosity and two-phase compressibility into the single-phase flow. They established a semianalytical solution of this single-phase flow for rate-transient analysis of gas condensate reservoirs. However, they did not directly solve the governing equations of the two-phase flow with a nonlinear term.

Several analytical solutions have been obtained for the two-phase flow after some simplifications. For example, Wang et al. [18] developed a semianalytical solution for the two-phase flow after the linearization of the mathematical model. This solution can quickly predict production performance. In order to estimate the residual saturation of the displaced fluid, Adibifard [19] decomposed the total pressure drop into Poiseuille and Young-Laplace terms; thus, an analytical solution was obtained for a two-phase flow in a capillary tube. Yang et al. [20] investigated the effects of multifracture networks on the gas production rate and developed a semianalytical solution for the two-phase flow during the flowback period with complex fracture networks. They found that increasing the fracture network complexity is favorable to gas production enhancement. For calculation convenience, these abovementioned analytical solutions of two-phase flow models are all obtained after omitting or linearizing the nonlinear term. The nonlinear term in governing equations comes from the interaction between gas and water such as capillary pressure, water saturation, and gas solution. Thus, ignoring the nonlinear term may induce some error in the forecast of field gas production.

A partial differential equation for a physical process can be transformed into an ordinary differential equation through the travelling wave method, a variable substitution method. In this method, the differential equation is firstly transformed into the variable integral form. Then, a general solution is obtained from this integral form. Finally, definite solution conditions are applied to obtain the particular solution. The travelling wave method has been successfully applied to seek the analytical solutions of seepage problems [21]. It has also been applied to the coupling problem of temperature change with the gas-water two-phase flow in the thermal stimulation-enhanced coalbed methane recovery [22]. The analytical solutions were obtained for a fractal-hydrothermal model. Moreover, the variational iteration method is a useful tool in analytically solving a nonlinear flow problem. This method has the flexibility and ability in seeking analytical solutions of nonlinear equations through iteration. Generally, a nonlinear flow problem can be solved with a highly accurate solution or a series of exact solutions with fast convergence in the variational iteration method. He [23] successfully solved the Duffing equation and fractional partial differential equations of percolation through the variational iteration method. After converting differential equations into a dimensionless form, Kamran et al. [24] used the variational iteration method to solve the non-Newtonian third-grade fluid flow problem between two parallel plates. However, the above-solved problems are all one-phase fluid flow problems. No two-phase flow problem in porous media has been solved with this variational iteration method so far.

This study develops iterative analytical solutions of a nonlinear two-phase flow after considering the influence of shale gas solubility in water. Firstly, a nonlinear mathematical model of pore pressures is developed based on the two-phase flow interactions during shale gas production. Secondly, this nonlinear mathematical model is transformed through the travelling wave method. The transformed nonlinear equations on water and gas pressures are analytically solved by the variational iteration method. The analytical solutions of water and gas pressures and the water and gas production rate with time are obtained. The production rate of gas or water or both is validated by the field data of both the flowback stage and long-term production with a China shale gas reservoir [20] and Barnett shale well 314 [25]. Finally, the effects of the nonlinear term in the two-phase flow, shale gas solubility in water, and entry capillary pressure on the shale gas production rate are investigated. Based on these studies, conclusions are drawn.

2. Governing Equations for Shale Gas and the Water Two-Phase Flow

The pores in a fractured shale gas reservoir are assumed to be fully filled with gas or water or both. The two-phase flow in the fractured shale gas reservoir is described by following governing equations and the constitutive model.

2.1. Capillary Pressure Model

The capillary pressure, , is defined as the pressure difference between the gas pressure and the water pressure [7, 26]:

The pores are fully saturated by gas and water:

A normalized saturation of the water phase is defined as where is the pore pressure of gas and is the pore pressure of the water phase. and are the saturations of water and gas, respectively. denotes the irreducible saturation of water and denotes the irreducible saturation of gas.

The normalized water-phase saturation, , is a function of capillary pressure as [7, 27] where is the entry capillary pressure and is the pore size distribution index.

Integrating equation (4) into equation (3) yields

Therefore, the derivative of water saturation with respect to time is

Similarly, for the gas phase,

2.2. Governing Equations of the Two-Phase Flow

In the two-phase flow, the continuity equation is expressed for each phase. The continuity equation for gas is

The continuity equation for water is where is the porosity and is the gas solubility in water. is the density of gas and is the density of water under formation conditions. represents the velocity of gas and represents the velocity of water. and are the gas and water sources, respectively. is the Hamiltonian operator.

Water is slightly compressible but its density can still be regarded as a constant. The gas density follows the equation of the state: where is the molecular weight of gas, is the gas compressibility factor, is the universal gas constant, and is the gas temperature.

Integrating equation (11) into equation (9) yields

Hence, equation (10) is simplified into

Both and in porous media are described by the Darcy law as [7] where is the absolute permeability of porous media, denotes the relative permeability of gas, and denotes the relative permeability of water. and are the viscosities of gas and water, respectively. is the gravity acceleration and refers to the vertical elevation.

If and are all zeros and the second-order phase is ignored, the governing equations are obtained from equations (12)-(15).

For the gas phase,

For the water phase,

The following constitutive laws are used for relative permeabilities and [28, 29]: where and .

Integrating equation (4) into equation (18) yields

Integrating equations (1), (6), and (20) into equation (17) gets the governing equation for the water flow.

Similarly, integrating equations (1), (8), (21), and (16) obtains the governing equation for the gas flow as

3. Analytical Solutions

3.1. Travelling Wave Transform

In order to obtain the analytical solution for the gas flow more easily, the travelling wave method is applied to get the ordinary differential equation. The travelling wave method works with the following procedure. When a given time and particular location are concerned, where the impact of the border is too late to reach, the wave always moves forward and forms a travelling wave [3032]. A general form of nonlinear equations is where is a variable to represent the space coordinate and represents the time coordinate. is the function of and , while is a suitable function of and its derivative.

If the solution of equation (24) just depends on and in the form , among which is a constant to represent the wave velocity, is the travelling wave solution.

Let then

The above procedure is applied to the partial differential equations of equations (22) and (23). At this time, equation (22) is transformed into

Equation (27) can be further simplified into where

Equation (23) is transformed into

For the convenience of calculation, is used as a substitute of as

Integrating equations (28) and (31) into equation (30) yields where is given by equation (55) in Appendix.

This is our nonlinear ordinary differential equation for the water flow and is analytically solved by the variational iteration method.

3.2. Variational Iteration Method

The variational iteration method [23, 24] is applied to the nonlinear problem of equation (32) to get an iterative analytical solution. The basic procedure for the variational iteration method is briefly described below. A general partial differential equation is where is a linear operator of and is a nonlinear operator of .

A correction functional is constructed as where is a Lagrange multiplier to be identified by the variational theory. is a restricted variational [33] under .

Therefore, the correction functional for equation (32) is

The Corey parameter for water and the pore size distribution index can be taken from publications [7, 8]. In this study, and ; thus, the linear operator in equation (32) is

The nonlinear operator is given by equation (56) in Appendix.

Making the above correction functional of equation (35) stationary gets

The nonlinear term in equation (37) is considered as a restricted variational which is

Equation (37) can be translated into where

Substituting equations (38) and (40) into equation (39) yields

Integrating equation (29) into equation (41) yields

The following stationary conditions are then obtained:

The general solution of the Lagrange multiplier is where is a constant to be determined by the first formula of equation (43) as

Finally, the multiplier is expressed as

The iteration solution in the direction has the following form: where is given by equation (57) in Appendix.

3.3. Final Solution of Water-Phase Pressure

The final analytical solution is obtained as follows.

For the water-phase pressure,

For the gas-phase pressure,

3.4. Analytical Solution of the Gas Production Rate

The shale gas production rate is defined as [34] where .

Integrating equation (49) into equation (50) yields the final form of the gas production rate as

3.5. Analytical Solution of the Water Production Rate

Based on Darcy’s law, the relationship between shale gas production and water production is obtained by [35]

Integrating equation (51) into equation (52) yields the final form of the water production rate as

4. Model Verifications

The above two-phase flow model describes the interaction of water and gas in the shale gas production process, including the two-phase flow, capillary pressure, relative permeability, and solubility of gas. The convergence of the iterative analytical solutions is studied here. These iterative analytical solutions are also validated by following two sets of field data. One set is for the shale gas production at the flowback stage and the other set is for the long-term shale gas production.

4.1. Convergence of Analytical Solution

The convergence of iterative analytical solutions is checked here. The following mean relative tolerance is defined for this convergence study:

The mean relative tolerance with the number of iterations is presented in Figure 2. The mean relative tolerance is 0.241% for the first iteration, 0.139% for the second iteration, and 0.087% for the 3rd iteration. This indicates that the analytical solutions of the shale gas production rate are convergent with the number of iterations.

4.2. Model Verifications of Water and Gas Production Rates at the Flowback Stage

The early time-pressure-rate data immediately after hydraulic fracturing were collected as flowback data [36]. In the flowback stage, a set of field data of water and gas production rates was obtained from a China shale gas reservoir [20]. Table 1 lists the computational parameters used in analytical solutions. These parameters are taken from Wang and Peng [7] and Yang et al. [20]. Figure 3(a) compares the shale gas production rates among the field production data, the analytical solution of our model, and the semianalytical solution of Yang et al.’s model. Figure 3(b) presents the normalized mean square errors (NMSE) between our analytical solution of shale gas production rates and the field data. According to the fitting results, the NMSE is between 0.1% and 1%. The analytical solution of our model is in good agreement with the field data. Further, Figure 4(a) compares the water production rates of the field production data (black circles), the analytical solution of our model (black line), and the semianalytical solution of Yang et al.’s model (red double dash). Figure 4(b) presents the NMSE of the water production rate between our analytical solution and the field data. According to the fitting results, the NMSE is between 0.1% and 2%. The analytical solution of our model can well predict the field data. These figures indicate the following understandings.

Firstly, the production rate of shale gas increases to the maximum and then decreases. The gas production rate of our model goes up fast till the peak rate of  m3/d at the 24th day and then goes down gently. On the other hand, the water production rate of our model goes down fast from 22 m3/d to 2.8 m3/d during the first 50 days and then keeps flat from 50 to 200 days. These results show that the analytical solutions are in good agreement with field production rates of both shale gas and water.

Secondly, for the shale gas production rate, the peak rate of our model is  m3/d at the 24th day, while the semianalytical solution of Yang et al.’s model is  m3/d at the 55th day as shown in Figure 3(a). The shale gas production rate of our model goes up faster than that of Yang et al.’s model in the rising period. At the 100th day, the shale gas production rates are  m3/d and  m3/d for the two cases, respectively. On the contrary, the shale gas production rate of our model goes down slower than that of Yang et al.’s model in the decline period. For the water production rate, the production rate of our model decreases from 21.86 m3/d to 7.35 m3/d but the production rate by Yang et al.’s model decreases from 29.14 m3/d to 6.14 m3/d after the first 24 days (see Figure 4(a)). The decrease percentages are 66.4% and 78.9%, respectively. The water production rate predicted by our model goes down slower than that by Yang et al.’s model in the whole 200 days. These differences between our model and Yang et al.’s model may be induced by the nonlinear term of the two-phase flow and the gas solubility in water. These two factors may significantly impact the production rates of shale gas and water. The nonlinear term stands for the complex interaction between shale gas and water. Meanwhile, the dissolved gas may change into free gas during depressurization, leading to the going up of the shale gas production rate by our model faster than that of Yang et al.’s model in the rising period.

4.3. Model Verifications for Long-Term Production

The analytical solution of the shale gas production rate is applied to the field production data forecast for the horizontal Barnett shale well 314 [37]. As the field water production rate is not available in the literature, thus, the model verification of the water production rate is not conducted here. Table 2 lists the model parameters for the Barnett shale. The reservoir parameters used in this analysis are determined after referencing the publications by Wang and Peng [7] and Yu and Sepehrnoori [25]. The travelling wave velocity is also decided by the reservoir length and the production time from theirs. The actual field data of shale gas production are presented as the black circle in Figure 5(a). The black line is obtained by the analytical solution of the shale gas production rate. The line is in reasonable agreement with the field production data for the whole production time. The gas production rate declines about 70% in the first 200 days. At the 200th day, the gas production rate reaches m3/d and then slowly descends during the later period of production. As the bottom hole pressure is set as 3.45 MPa, the gas production rate also keeps about m3/d in the production tail. Figure 5(b) shows the normalized mean square errors between our analytical solution of shale production rates and the field data. This NMSE is between 0.6% and 1%. Therefore, our analytical solution is feasible to predict the long-term gas production rate.

5. Discussions

In this study, both shale gas solubility and capillary pressure are introduced into the two-phase flow model. The nonlinear term of governing equations is included for the iterative analytical solutions. How these two factors impact the gas production rate of shale gas is analyzed here. In these analyses, the field production data from the Barnett shale well [37] are used.

5.1. Impact of the Nonlinear Term on the Shale Gas Production Rate

The gas production rates with and without the nonlinear term are compared in Figure 6. At the 200th day, the shale gas production rates are  m3/d with the nonlinear term and  m3/d without the nonlinear term. The gas production rate decreases from its initial production rate by 71.8% and 78.3% with and without the effects of the nonlinear term. Further, the shale gas production rates at the 1200th day are  m3/d and  m3/d, respectively. Without the impact of the nonlinear term, the gas production rate goes down faster and reaches the lower gas production rate. Combined with Figure 3, the gas production rate with the nonlinear term is in better agreement with field production data. Thus, the nonlinear term should not be ignored in the solving process of governing equations for the two-phase flow.

5.2. Impact of Shale Gas Solubility in Water on the Shale Gas Production Rate

The solubility of methane in water is very low under standard temperature and pressure. It may be big at the evolution stage of geological history due to in situ geological condition [9]. This section will study the impact of shale gas solubility on the shale gas production rate.

The shale gas solubilities are taken as 1.16, 5.42, and 105. The values of 1.16 and 5.42 for gas solubility are taken from the experimental data obtained by Fu et al. [9]. We also take an extreme value of 105. Figure 7 presents the declines of the gas production rate with time. They all decline rapidly in the first 200 days. Little difference is observed for the history curves when the shale gas solubilities are 1.16 and 5.42. Difference is observed for the shale gas solubility value of . The shale gas production rates at the 200th day are  m3/d,  m3/d, and  m3/d, respectively. Moreover, the shale gas production rates at the 1200th day are  m3/d,  m3/d, and  m3/d, respectively. For the extreme case, the gas production rate goes down faster in the gas production stage and reaches the lower gas production rate in the production tail. This implies that the gas production rate is affected by the shale gas solubility when shale gas dissolves heavily in water. In that case, the large amount of dissolved gas will be released into free gas for production.

5.3. Impact of Entry Capillary Pressure on the Shale Gas Production Rate

Three entry capillary pressures of 1.5 MPa, 2.0 MPa, and 2.5 MPa are assumed to investigate the impact of entry capillary pressure on the gas production rate. The initial reservoir pressure is 20.34 MPa. Figure 8 presents the gas production rate with time. All three cases have the same initial shale gas production rate of  m3/d. At the 200th day, the shale gas production rates become  m3/d,  m3/d, and  m3/d, respectively. It decreases from its initial production rates by 77.9%, 71.8%, and 53.1% for entry capillary pressures of 1.5 MPa, 2.0 MPa, and 2.5 MPa, respectively. Further, at the 1200th day, the shale gas production rates are  m3/d,  m3/d, and  m3/d, respectively. These results indicate that the entry capillary pressure has a significant impact on the production of shale gas. In the same production period, the shale gas production rate with higher entry capillary pressure declines faster and reaches the lower production rate. This is because higher entry capillary pressure causes more gas to flow to the wellbore faster. In fact, entry capillary pressure affects the nonlinear term. The capillary entry pressure in relation to the applied pressure difference determines whether the gas will move or get trapped in water [38]. When the interface pressure achieves the entry capillary pressure, the gas begins a relative motion with water, thus starting the interaction. In addition, the water saturation can be expressed by the relationship between entry capillary pressure and capillary pressure through a normalized saturation of the water phase. The nonlinear term is produced after the coupling of water or gas saturation and pressure of water or gas in the governing equations.

6. Conclusions

In this study, a mathematical model of the two-phase flow in shale gas production was developed with extra consideration of gas solubility. This mathematical model was then analytically solved with travelling wave and variational iteration methods. Being different with previous analytical solutions, the nonlinear term in the governing equations of the two-phase flow was not ignored in the solutions of our model. The analytical solution of the shale gas production rate was compared with the field production data at both the flowback stage and long-term production from a horizontal Barnett shale gas reservoir and a China shale gas reservoir, respectively. The analytical solution of the water production rate was also compared with the field production data from the China shale gas reservoir. The effects of shale gas solubility and entry capillary pressure on the shale gas production rate were finally analyzed. Based on these studies, the following conclusions can be made.

Firstly, the nonlinear term of governing equations is an important factor in the analytical solutions for the two-phase flow. With the impact of the nonlinear term, the predicted shale gas production rate falls slower and the total predicted shale gas production is higher at the same period. The analytical solutions with the nonlinear term can better predict the production rates of gas and water in the flowback stage.

Second, shale gas solubility has little influence on the Barnett shale gas production rate when its value is not so large. When the shale gas solubility value is high enough, such as a gas solubility value of , its impact on the shale gas production rate becomes bigger in the later stage of shale gas production. The shale gas production rate would decline faster and reach the lower gas production rate in the production tail.

Finally, entry capillary pressure has a significant impact on the production rate of shale gas. In our computation cases, higher entry capillary pressure leads to a faster decline of the shale gas production rate and a lower production rate at the same time period.

Appendix

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

The authors are grateful for the financial support from the National Natural Science Foundation of China (Grant Nos. 51674246 and 51604260) and China Postdoctoral Science Foundation (Grant No. 2016T90519).