#### Abstract

Matrix acidizing is one of the common methods to enhance production in sandstone reservoirs. Conventional acidizing designs generally neglected the effect of heterogeneities of mineral and flow field distributions both in areal and vertical directions and assumed that the acid front propagates with a piston-like style. However, sandstone formations inevitably have small-scale heterogeneities of minerals and flow properties that may give rise to acid propagation in a manner much different from what is predicted based on homogeneous assumptions. In this paper, we conduct a research to numerically investigate how the heterogeneities affect acidizing performance under in situ conditions. Firstly, a heterogeneity model is built for mineral and porosity distributions by using the semivariogram model of geological statistics, based on which we generate spatially correlated porosity and mineral distributions. Next, a model of radial acid flooding is developed based on mass balance and the chemical reactions between the acids and minerals occurring during the acidizing process. The model is numerically solved to investigate the permeability response, acid distributions, precipitate distributions, and the effect of the heterogeneities on acidizing. The results show that the heterogeneities both in areal and vertical directions have a significant effect on acidizing. The flow field heterogeneities have a more serious impact than the mineral heterogeneities. In a plane, strong porosity heterogeneity can give rise to acid fingering and even channeling, which make the acid penetration distance longer than the homogeneous cases. The secondary precipitate has a significant effect when fast-reacting mineral content is high. Vertically, several-fold permeability contrast creates the acid break through the high-perm zone leaving the low-perm zone understimulated. Both flow field and mineral heterogeneities make it possible to create high-permeability channels during the acidizing process and to obtain a longer acid penetration distance.

#### 1. Introduction

Drilling, completion, or some other well operations inevitably damage formations, which may seriously decrease the well productivity in sandstone reservoirs. Matrix acidizing is a common method to remove the formation damage and recover well productivity. In acidizing, the acid flows into the porous media, reacts with the minerals, and increase formation porosity as well as permeability. Many researchers conducted studies on acid flooding in experiments. One of the unignorable risks in acidizing in sandstone is the secondary precipitate. Crowe [1], Almond et al. [2], and Underdown et al. [3] investigated the conditions that produce precipitate. They found that silica gel is produced at a slow rate due to the slow reaction at room temperature. When the temperature is higher than 55°C, the fast reaction will generate a lot of precipitate and damage the formation seriously.

Due to the small size of the core sample and the complexity of parallel core flooding, field-scale simulation and design necessitates numerical modeling. Sandstone acidizing models include the capillary model, the microscopic model, the kinetic model, the lumped parameter model, the distributed parameter model, the one-acid two-mineral model, the two-acid three-mineral model, and the generalized geochemistry model [4–10], most of which made the assumption of homogenous formation. The two-acid three-mineral model developed by Bryant [4] takes into account the effect of precipitates and H_{2}SiF_{6} and can simulate well the physical phenomenon of acidizing. At present, the most sophisticated model [9] is the generalized geochemistry model. The model accounts for the reaction of multiple kinds of minerals and the acid and can analyze the effect of mineral content, reactant, product, and reaction kinetics. They found that dissolution and precipitation do not occur simultaneously. Li et al. [11] built a linear acid flooding model to simulate linear core flooding at an experimental scale with the consideration of the heterogeneities of minerals and flow fields. Li et al. [12] built a radial acidizing model and considered the effect of the temperature field on the reaction, but they did not consider the effect of the heterogeneities. Leong et al. [13, 14] did a modeling of the acidizing of HBF_{4} in linear cores with COMSOL.

In this paper, we modeled radial acid flooding based on a two-acid, three-mineral model and considered the heterogeneities of minerals and flow fields in both planar direction and vertical directions. Based on the model, we did extensive numerical simulations to analyze the effect of heterogeneities on acidizing performance. Also considered are multilayer flooding and secondary precipitates.

#### 2. Mathematical Model

In the two-acid three-mineral model, the two acids mean HF and , and the three minerals mean fast-reacting mineral (mineral 1), slow-reacting mineral (mineral 2), and silica gel (mineral 3). The chemical reactions are as follows:

##### 2.1. Governing Equations

Based on material balance, Darcy’s law, and acid-rock reaction kinetics, we establish our governing equations as equations 2–7 with the following assumptions: (1) single-phase flow, (2) Darcy flow, (3) incompressible fluid and rock, and (4) neglecting gravity effect. A 2D model is developed as shown in Figure 1 with the wellbore at the center of the domain. (1)Cylindrical coordinate system is used for the radial flooding(2)Flow equations (3)Hydrofluoric acid concentration distribution equation (4)Fluosilicic acid concentration distribution equation (5)Mineral content equation (6)Porosity variation equation where is the porosity; is the hydrofluoric acid concentration; is fluosilicic acid concentration; is the velocity vector ( is the velocity in the radial direction, and is the velocity in the circumferential direction); is the mineral volume fraction; is the fast-reacting mineral, slow-reacting mineral, and silica gel; is the mole weight of acid, is the specific surface area of minerals, is the hydrofluoric acid or fluosilicic acid; is the reaction rate constant; is the reaction order; is the density of minerals; and is the gravimetric dissolving power.

##### 2.2. Boundary and Initial Conditions

The initial conditions are as follows: where , , and are initial mineral 1, mineral 2, and mineral 3 distribution, respectively. is initial porosity distribution. is reservoir pressure.

The boundary conditions are as follows: where is pump rate. and are the injection concentrations of acids 1 and 2, respectively. is the pressure of the outer boundary.

#### 3. Porosity and Mineral Distributions

##### 3.1. Porosity Distribution

Change of porosity directly affects the permeability of the sandstone formation, thus affecting the distribution and reaction rate of acid fluid. Therefore, it is very important to generate the porosity distribution of a real formation for the accuracy of the whole model. In terms of geostatistics, porosity distribution shows characteristics of directionality [15–17]; that is, they are spatially correlated instead of completely random. A semivariogram model [8, 18], which is an important tool in geostatistics to describe spatially correlated distributions, is used to generate porosity distribution. We use the geostatistical software GSLIB [19], which incorporates a semivariogram model for spatial correlation, to generate spatially correlated numbers, with which we generate porosity distribution as where is the spatially correlated number output from GSLIB and represent the dimensionless correlation lengths of direction and direction, respectively. is the coefficient of variation of porosity. Bigger means strong inhomogeneity; otherwise, it means slight inhomogeneity. is the average porosity.

Figures 2 and 3 show the porosity distributions for two layers with . The figures indicate that porosity distributions vary a lot with different geostatistic parameters so as to affect flow fields significantly.

##### 3.2. Pore-Permeability Correlation

Acid-rock reaction increases porosity, resulting in a change of permeability, which in turn affects acid flow. We use the following model to describe the relationships [20] between permeability and local porosity. where is a constant which is dependent on the structure of the medium.

##### 3.3. Mineral Distribution

Using the same method for porosity distribution, we generate the spatial association distribution function which is defined as follows: where and are the average volume fractions of the fast-reacting mineral and slow-reacting mineral, respectively. Figure 4 is an example of the distributions of the volume fraction () of fast- and slow-reacting minerals.

#### 4. Numerical Solution

The equations are discretized with the finite volume method and solved sequentially. Firstly we generate initial porosity and mineral distributions. Then, we solve equations (2) and (3) to obtain the pressure and velocity fields. Next, we solve equations (4) and (5) to get the acid concentration distribution. Finally, we update the mineral content and porosity distributions based the acid-rock reaction (equations (6) and (7)).

#### 5. Result and Discussion

In this section, extensive numerical simulations are conducted to analyze acid distribution patterns as well as the effect of heterogeneities on acidizing performance with the parameters in Table 1. And acid-rock reaction parameters are determined through references [21–23].

##### 5.1. Comparison of Homogenous and Heterogeneous Cases

The parameters used in the simulation are listed in Table 2. Other parameters are kept the same for the two cases.

Figure 5 shows acid concentration and mineral content distribution in the radial direction. Since they are different in different directions for the heterogeneous cases, only 0 degree (relative to the black line in Figure 5, for example) is chosen for displaying. VF_M1, VF_M2, and VF_M3 stand for fast-reacting mineral, slow-reacting mineral, and silica gel precipitate content. Compared to the homogeneous case, the curves of the heterogeneous case fluctuate apparently, the acid front is longer, and precipitation is deeper. Since the fast-reacting mineral has a much higher reaction rate than the slow-reacting mineral, most the fast-reacting mineral is spent, but a small amount the slow-reacting mineral is dissolved in the live acid zone.

**(a) Homogeneous case**

**(b) Heterogeneous case**

Figures 6–10 show acid and mineral concentration distribution after 90-minute acid injection. The homogeneous case gives a regular shape of distribution. Meanwhile, the heterogeneous case gives rise to an irregular distribution shape. The porosity distribution is strongly correlated in the horizontal direction. The horizontal direction is the leading flow direction, so acid penetrates deeper in this direction. The acid fingers through the high-perm zone, leaving the acid front to propagate nonuniformly. Some low-perm zones are bypassed by the acid. For the homogeneous case, from the wellbore to the outer zone, there exist zones of high perm, low perm, and original formation perm. Near the wellbore zone, the permeability is enhanced due to rock dissolution by the acid. In the live acid zone, most of the fast-reacting mineral is dissolved. The low-perm zone is cause by the secondary precipitate of spent acid. Silica gel precipitation due the reaction between H_{2}SiF_{6} and the fast-reacting mineral is inevitable [24], which is unfavorable for sandstone acidizing. For the heterogeneous case, the reduced perm zone is not distinctly apparently. The precipitate does exist, but the drastic porosity variation from one place to another makes it hard to identify. The significant difference of the penetration distance between the homogeneous and heterogeneous cases shows just how important it is to consider heterogeneity in field treatments. The acid penetration distance is much longer than the one predicted by the homogenous model, especially when there exists major flow channels.

##### 5.2. Effect of Vertical Heterogeneity

A well often consists of multilayers with much different properties. For this kind of well, an important aspect in acidizing is acid placement. Here, the difference of the properties of the layers is called vertical heterogeneity. Vertical heterogeneity considers the difference of permeability and the mineral mainly in this simulation.

##### 5.3. Effect of Vertical Permeability Heterogeneity

The vertical permeability difference of layers can be characterized by the permeability ratio, which is defined as the ratio of the average permeability of layer A to layer B as follows: where is the permeability ratio and and represent the average permeabilities of layer A and layer B, respectively. We did simulations for , 5, and 10, respectively. Parameters are listed in Table 3. Except for the different porosity and permeability distribution values, other parameters are kept the same. Results after 90-minute acid injection are shown as follows.

As shown in Figure 11, vertical permeability heterogeneity has a notable effect on the acid distribution of the vertical profile. The higher the permeability ratio, the more seriously acid intake differs. When , the acid entering into the low-perm zone is negligible compared to that entering into the high-perm zone. Except for the permeability difference which causes the discrepancy of acid intake, the permeability increase due to rock dissolution also magnifies the difference. The high-permeability zone takes more acid and raises permeability faster, so it accepts more and more acid. This demonstrates the necessity of acid diversion in acidizing multilayer formations.

**(a)**

**(b)**

**(c)**Figure 12 shows fast-reacting mineral dissolution in two layers. In line with the acid distribution, the dissolution is greater in the higher perm layer, and the dissolutions in the lower perm layer decreases with the increase of the permeability ratio. Figure 13 shows the distribution of precipitation. In the higher perm layer, the precipitate spreads wider because of more spent acid generated by the acid entering into the layer. Precipitate will decrease the permeability; more precipitate in the higher perm layer will counteract the permeability increase caused by rock dissolution, but due to areal heterogeneity, the acid can channel through the lowered perm zone.

**(a)**

**(b)**

**(c)**

**(a)**

**(b)**

**(c)**##### 5.4. Effect of Vertical Mineral Content Heterogeneity

When analyzing the effect of mineral content in the two layers, other parameters are kept the same. The fast-reacting mineral of 0.1 and 0.2 and the slow-reacting mineral of 0.85 and 0.75 are set for layers A and B, respectively.

Figures 14–16 show the results after acidizing for 90 minutes. Since the two layers have identical initial porosity and permeability distribution, the dissolution geometry is similar, but the extent of layer A is notably larger than layer B. Layer B has a much higher fast-reacting content than layer A. Due to the relative fast reaction rate of the fast-reacting mineral, most of the fast-reacting mineral is dissolved in the area covered by the live acid. The acid front propagates much slower in layer B. Figure 17 shows the pump rate allocation with time for the two layers. The initial rate is the same. As acidizing proceeds, the rate of layer A increases and the rate of layer B decreases, since the total rate is fixed. There are two reasons for this phenomenon. The first is that the acid front moves faster in layer A than layer B. The second is more serious precipitation in layer B due to the higher content of the fast-reacting mineral. Even though the vertical heterogeneity of the mineral content is obvious, its effect is less remarkable than the effect of permeability.

##### 5.5. Effect of Areal Heterogeneity

Areal heterogeneity can be expressed by the coefficient of variation of porosity (). The higher the , the more serious the heterogeneity is. means homogeneous case. Figures 18–20 show the results for . The dimensionless correlation lengths are 0.08 and 0.0001 in the and directions. means very weak heterogeneity. The porosity distribution is very close to the homogeneous case. means very strong heterogeneity, which generates some leading flow paths similar to the channels in the reservoir. The more serious the heterogeneity, the more irregular the geometry of acid coverage is. The case of makes the acid finger through some high-perm paths, making the acid penetration distance much longer than the other two cases. Another areal heterogeneity is natural fractures. For example, there is a fracture connecting to the wellbore as shown in Figure 21. The acid mainly flows through the fracture to reach a deeper distance. These indicate that in strong heterogeneous reservoirs, the acid penetration distance may be much deeper than the one predicted by the conventional homogeneous model.

#### 6. Conclusion

In this paper, we built a sandstone matrix acidizing model accounting for areal and vertical heterogeneities and the effect of secondary precipitates. Based on the model, extensive numerical simulation was conducted to investigate the effect of heterogeneity on acidizing performance. The study reached the following conclusions: (1)The heterogeneities both in areal and vertical directions have a significant effect on acidizing performance. The areal heterogeneity influences the acid dissolution pattern and live acid penetration distance. Heterogeneous cases give longer live acid penetration distance than the homogeneous cases. The vertical heterogeneities determine the vertical acid intake profile(2)Both flow field and mineral heterogeneities make it possible to create high-permeability channels in acidizing and to obtain longer acid penetration distance. The heterogeneity of a flow field has a more serious effect on the acid dissolution pattern than the mineral heterogeneities(3)Serious vertical heterogeneities make an unfavorable acid intake profile, with the high-permeability zone taking excessive acid and the low-permeability zone taking insufficient acid. In multilayer formations, heterogeneity creates acid fingering instead of a piston-like pattern, which indicates the necessity of an acid diversion(4)The secondary precipitate has a significant effect on acidizing performance when fast-reacting mineral content is high

#### Nomenclature

: | Hydrofluoric acid concentration |

: | Fluosilicic acid concentration |

: | Injection concentration of acid 1 |

: | Injection concentration of acid 2 |

: | Coefficient of variation of porosity |

: | Reaction rate constant |

: | Spatially correlated number output from GSLIB |

: | Average permeability of Layer A |

: | Average permeability of Layer A |

: | Dimensionless correlation lengths of direction and direction, respectively |

: | Mole weight of acid |

, : | Average volume fractions of fast-reacting mineral and slow-reacting mineral, respectively |

: | Pump rate |

: | Reservoir pressure |

: | Pressure at outer boundary |

: | Specific surface area of minerals |

: | Velocity vector |

: | Velocity in the radial direction |

: | Velocity in the circumferential direction |

: | Mineral volume fraction |

, , : | Initial distribution of the volume fractions of mineral 1, mineral 2, and mineral 3, respectively |

: | Reaction order |

: | Permeability ratio |

: | Gravimetric dissolving power |

: | Constant dependent on the structure of the medium |

: | Porosity |

: | Initial porosity distribution |

: | Average porosity |

: | Density. |

#### Data Availability

The numerical simulation 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 gratefully acknowledge the support of the National Science and Technology Major Project of a Research on Controlling Factors of Target-Oriented Acid Fracturing and Experimental Study on Diversion, SINOPEC Northwest Oilfield Branch (2016ZX05014-005-012).