Optimization method of injection and production parameters for CO2 water-gas alternating flooding based on improved intelligent algorithm

By using the chaos mapping function to improve the Hunger Games search algorithm in the optimization of injection and production parameters for CO2 water and gas alternating flooding, and establishing a model based on oil field data, the problems of poor optimization accuracy and low efficiency in the existing technology are solved, and CO2 water and gas alternating are achieved. Efficient optimization of flooding, injection and production parameters improves oilfield development results.

CN118395743BActive Publication Date: 2024-09-03CHINA UNIV OF PETROLEUM (EAST CHINA)
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410804523.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-03
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The existing CO2 water and gas alternating flooding injection and production parameter optimization methods have the problems of poor optimization accuracy and low efficiency, making it difficult to effectively optimize the CO2 water and gas alternating flooding injection and production parameters.

Method used

The chaotic mapping function is used to improve the Hunger Games search algorithm, and combined with actual oil field geology, rock fluid and production data, a three-dimensional fine geological model and a CO2 fluid model are established to optimize CO2 water and gas alternating flooding injection and production parameters and improve optimization accuracy and efficiency.

Benefits of technology

It achieves accurate optimization of injection and production parameters for CO2 water and gas alternating flooding, improves oil field development and CO2 storage effects, breaks through the limitations of traditional methods, and can quickly and accurately determine the optimal injection and production parameter scheme.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395743B
    Figure CN118395743B
Patent Text Reader

Abstract

The present invention relates to a CO2 water-gas alternating drive injection-production parameter optimization method based on an improved intelligent algorithm, and belongs to the technical field of oil reservoir exploitation. The method comprises the following steps: establishing a CO2 water-gas alternating drive oil reservoir numerical simulation model; changing the injection-production parameter values ​​in the simulation model, and setting the CO2 water-gas alternating drive injection-production parameter optimization range; using a chaotic mapping function to improve the Hunger Game search algorithm to optimize the CO2 water-gas alternating drive injection-production parameter, and determining the optimal CO2 water-gas alternating drive injection-production parameter scheme; and obtaining the optimal CO2 water-gas alternating drive injection-production parameter scheme development index. The present invention is based on the established CO2 water-gas alternating drive oil reservoir numerical simulation model, and uses a chaotic mapping function to improve the pseudo-randomness of initialization in the Hunger Game search algorithm, thereby improving the CO2 water-gas alternating drive injection-production parameter optimization accuracy and efficiency, and providing an effective means for the formulation and on-site implementation of the CO2 water-gas alternating drive injection-production parameter scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for optimizing injection and production parameters of CO2 water-gas alternating drive based on an improved intelligent algorithm, and belongs to the technical field of oil reservoir exploitation. Background Art

[0002] With the rapid development of modern economy, a large amount of greenhouse gases such as CO2 are emitted from industry and life. CO2 enhanced oil recovery technology can use CO2 to develop crude oil and store CO2 in oil reservoirs to reduce CO2 emissions. CO2 water-gas alternating flooding is a widely used CO2 enhanced oil recovery technology. This technology can make full use of the advantages of CO2 flooding and water flooding. On the one hand, CO2 has the characteristics of low viscosity and low density, which can reduce crude oil viscosity, improve water-oil mobility ratio, expand crude oil volume, and reduce interfacial tension. On the other hand, water injection can effectively reduce CO2 viscosity fingering, increase its swept volume, help slow down gas channeling, and save costs.

[0003] CO2 water-gas alternating flooding involves many injection and production parameters, including injection rate, slug size, and gas-water ratio. Unreasonable injection and production parameter schemes make it difficult for CO2 water-gas alternating flooding to enhance oil recovery and CO2 storage. Traditional reservoir numerical simulation methods are time-consuming and labor-intensive, costly, and even difficult to achieve when optimizing CO2 water-gas alternating flooding injection and production parameters; reservoir engineering and seepage mechanics methods consider fewer factors and have poor optimization accuracy; commonly used particle swarm and simulated annealing optimization algorithms have problems of slow convergence speed and low convergence accuracy. Compared with the above optimization algorithms, the Hunger Game search algorithm has faster optimization speed and higher accuracy, and is suitable for the optimization process of CO2 water-gas alternating flooding injection and production parameters. However, the random numbers used by the Hunger Game search algorithm to generate the initial CO2 water-gas alternating flooding injection and production parameter scheme are pseudo-random numbers, which usually obey uniform distribution. Although its principle is simple and easy to use, it is difficult to ensure the randomness of the injection and production parameter values, which makes the Hunger Game search algorithm easy to fall into local optimality, and the optimization accuracy and speed need to be further improved. The chaotic mapping function has the characteristics of quasi-randomness, ergodicity, sensitivity, regularity, etc., which can ensure the randomness of the injection and production parameter values. Therefore, this application uses the chaotic mapping function to improve the Hunger Game search algorithm, optimize the CO2 water-gas alternating drive injection and production parameters, perform CO2 water-gas alternating drive parameter optimization design, improve the injection and production parameter optimization accuracy and efficiency, and improve the CO2 water-gas alternating drive development and storage effect in oil fields. Summary of the invention

[0004] In view of the shortcomings of the prior art, the present invention provides a CO2 water-gas alternating drive injection-production parameter optimization method based on an improved intelligent algorithm. The present invention uses a chaotic mapping function to improve the Hunger Game search algorithm, improve the accuracy and efficiency of CO2 water-gas alternating drive injection-production parameter optimization, and solve the problems of poor optimization accuracy, low efficiency, and even difficulty in achieving CO2 water-gas alternating drive injection-production parameter optimization in the prior art.

[0005] The technical solution of the present invention is as follows:

[0006] The CO2 water-gas alternating flooding injection-production parameter optimization method based on the improved intelligent algorithm includes the following steps:

[0007] (1) Based on the geological data, rock fluid data and production data of the actual oil field, the mechanism of CO2 water-gas alternation flooding and the combination of water and CO2 plugs were considered, and a three-dimensional fine geological model, a CO2 fluid model and a production dynamic model were established in sequence. Then, a numerical simulation model of the CO2 water-gas alternation flooding reservoir was obtained to achieve accurate simulation of the CO2 water-gas alternation flooding process.

[0008] (2) Within the actual CO2 water-gas alternating drive injection-production parameter limit range of the oil field, change the injection-production parameter values ​​in the CO2 water-gas alternating drive reservoir numerical simulation model, predict the cumulative oil production within the development period of the oil field, and study the influence of the injection-production parameters on the cumulative oil production. The prediction results and the rules are directly obtained from the CO2 water-gas alternating drive reservoir numerical simulation model established in step (1). Different cumulative oil production can be obtained according to different schemes, and the influence rules can be analyzed to set the optimization range of CO2 water-gas alternating drive injection-production parameters;

[0009] (3) Within the CO2 water-gas alternating flooding injection-production parameter optimization range, the Hunger Game search algorithm is improved by using the chaos mapping function to optimize the CO2 water-gas alternating flooding injection-production parameters and determine the optimal CO2 water-gas alternating flooding injection-production parameter scheme;

[0010] (4) The optimal CO2 water-gas alternating flooding injection-production parameter scheme is used to predict the development indicators of the CO2 water-gas alternating flooding reservoir numerical simulation model. The optimal CO2 water-gas alternating flooding injection-production parameter scheme is compared with the scheme before optimization to evaluate the development potential of the optimal CO2 water-gas alternating flooding injection-production parameter scheme.

[0011] Preferably, according to the present invention, the geological data of the actual oil field in step (1) includes a top surface structural map, a thickness map of each sublayer, a permeability distribution map, a porosity distribution map, and a seismic interpretation data body; the rock fluid data includes oil-water, gas-liquid relative permeability curves, rock compression coefficient, formation oil-water interface depth, reference pressure, reference depth, saturation pressure, CO2 minimum miscibility pressure experimental data, CO2 injection expansion experimental data, and equal composition expansion experimental data; the production data includes well trajectory data, perforation data, and production history data, and the production history data includes the injection well CO2 and water injection amount, injection pressure and production well bottom hole pressure, liquid production rate, oil production rate, water production rate, and CO2 production rate.

[0012] Preferably, according to the present invention, the CO2 water-gas alternation enhanced oil recovery mechanism considered in step (1) includes CO2 dissolution and viscosity reduction, improvement of water-oil mobility ratio, expansion of crude oil volume, and reduction of interfacial tension mechanism.

[0013] Preferably, according to the present invention, the process of establishing the CO2 fluid model in step (1) is as follows: the crude oil is divided into 4 to 6 pseudo-components, CO2 is taken as a single component, similar components are merged, but the number of merges cannot be too many, 4 to 6 is optimal, and the requirements of both computational efficiency and accuracy can be met at the same time; the saturation pressure, expansion coefficient, relative volume, crude oil viscosity, and minimum miscibility pressure parameters of the CO2 injection expansion experiment, the equal composition expansion experiment, and the CO2 minimum miscibility pressure experiment are fitted using fluid phase calculation software or models, and the fitting error of each experimental parameter is controlled to be less than 5%, thereby obtaining the critical temperature, pressure, and interaction coefficient of each component.

[0014] Preferably, according to the present invention, the number of grids of the three-dimensional fine geological model in step (1) is greater than 15,000, and the oil saturation is determined by the oil-water interface height, reference pressure and reference depth; the reference pressure is the pressure in the middle of the reservoir, and the reference depth is the depth in the middle of the reservoir. By default, there is oil above the oil-water interface and water below the oil-water interface.

[0015] Preferably, according to the present invention, the CO2 water-gas alternating flooding injection-production parameters in step (2) include the CO2 injection rate of each injection well, the CO2 slug and the water slug size.

[0016] Preferably, according to the present invention, the chaotic mapping function in step (3) includes a Tent mapping function, a Logistic mapping function, a Gussian mapping function, and a Singer mapping function.

[0017] Preferably, according to the present invention, the step of optimizing the injection and production parameters of CO2 water-gas alternating flooding by improving the Hunger Game search algorithm using the chaos mapping function in step (3) is:

[0018] 1) Select the mapping function

[0019] Take a certain amount of random numbers in the range of 0~1, substitute each random number into the chaotic mapping function in turn to get the function value, that is, the chaotic value, and get a scatter plot about the relationship between the number of calculations and the chaotic value; count the frequency of chaotic values ​​in different ranges, draw a distribution histogram about the frequency of chaotic values ​​in different ranges, analyze the randomness of the scatter plot and the uniformity of the distribution histogram to select the optimal chaotic function. The one with the most random scatter plot and the most uniform distribution histogram is the optimal one, which is used to improve the Hunger Games search algorithm.

[0020] 2) Generate the initial population

[0021] According to the determined CO2 water-gas alternating flooding injection-production parameter optimization range, determine the number of CO2 water-gas alternating flooding injection-production parameter schemes N The initial value of each injection-production parameter scheme is determined by the optimal chaotic mapping function.

[0022] 3) Hungry Character

[0023] First, the range controller R in the Hunger Game search algorithm is calculated. It is used to indicate that the range of activity of animals gradually becomes smaller as they get closer to the target food. It controls the convergence of the Hunger Game search algorithm and can be expressed by formula (1):

[0024] (1)

[0025] Where R is the range controller; rand is a random number distributed between (0, 1); shrink is the shrinkage number, which can be calculated by formula (2):

[0026] (2)

[0027] In the formula, shrink is the shrinkage number; T is the total number of iterations; t is the current number of iterations;

[0028] The variable controller E in the Hunger Games search algorithm is used to control the behavior of each animal in searching for the target food. It can be calculated using formula (3):

[0029] (3)

[0030] Where, E is the variable controller; F(i) For the i The cumulative oil production of the CO2 water-gas alternating drive injection-production parameter scheme is calculated by the established CO2 water-gas alternating drive reservoir numerical simulation model; BF is the maximum cumulative oil production corresponding to the CO2 water-gas alternating drive injection-production parameter scheme in the current iteration number; sech represents the hyperbolic secant function;

[0031] Calculate the initial hunger TH, as shown in formula (4):

[0032] (4)

[0033] Where TH is the initial hunger; WF is the minimum cumulative oil production corresponding to the CO2 water-gas alternating flooding injection-production parameter scheme in the current iteration number; r1 is a random number distributed between (0, 1); UB (j) and LB (j) are the upper and lower boundaries of the optimization range of injection and production parameters for the jth CO2 water-gas alternating flooding;

[0034] After obtaining the initial hunger feeling TH, the hunger feeling H can be calculated using formula (5):

[0035] (5)

[0036] Where H is hunger; r2 is a random number distributed between (0, 1); LH is the lower limit of hunger;

[0037] After getting hunger H, hunger ( i ) can be expressed by formula (6):

[0038] (6)

[0039] In the formula, hungry ( i ) is the hunger level; AllFitness ( i ) is the number of iterations in the current i Cumulative oil production of the CO2 water-gas alternating flooding injection-production parameter scheme;

[0040] In the process of searching for the target food, the Hunger Games search algorithm uses hunger ( i ) to simulate the animal's desire for the target food. The greater the hunger, the greater the animal's desire for the target food.

[0041] 4) Approaching food

[0042] In order to reduce the impact of errors in the calculation process of the Hunger Game search algorithm, enhance the algorithm's adaptability, and avoid local optimality, two variables, the deviation of the actual position in the food search process, W1, and the impact of hunger on the activity range, W2, are introduced. They can be calculated using formulas (7) and (8):

[0043] (7)

[0044] (8)

[0045] Where W1 is the deviation of the position in the actual food search process; W2 is the impact of hunger on the activity range; SHunrgy is the total cumulative oil production of each CO2 water-gas alternating flooding injection and production parameter scheme; r3, r4 and r5 are three random numbers distributed between (0, 1); l is the parameter; exp is an exponential function;

[0046] Finally, the behavior of animals approaching food in the Hunger Games search algorithm is shown in Equation (9);

[0047] (9)

[0048] In the formula, r6 and r7 are two random numbers distributed between (0, 1); X (t) is the t The injection and production parameter scheme of the CO2 water-gas alternating flooding for the first iteration; X ( t +1) for t +1 iteration of CO2 water-gas alternating flooding injection and production parameter scheme; X b This is the optimal CO2 water-gas alternating flooding injection-production parameter scheme among the iterations so far; randn ( l ) is a normally distributed random number between (0, 1);

[0049] Compare the current number of iterations t The cumulative oil production of each CO2 water-gas alternating drive injection-production parameter scheme under the same conditions is calculated. The maximum cumulative oil production corresponding to the CO2 water-gas alternating drive injection-production parameter scheme is assigned to BF, and the minimum cumulative oil production corresponding to the CO2 water-gas alternating drive injection-production parameter scheme is assigned to WF. Increase the number of iterations and repeat the above steps until t = T The calculation is terminated when the optimal injection-production parameter scheme of CO2 water-gas alternating drive, the maximum cumulative oil production value, and the changes of various injection-production parameters in the optimal injection-production parameter scheme of CO2 water-gas alternating drive are recorded in the process; the optimal injection-production parameter scheme of CO2 water-gas alternating drive is the optimal injection-production parameter scheme of CO2 water-gas alternating drive in the Tth iteration. X b .

[0050] Preferably, according to the present invention, the development indicators of the optimal CO2 water-gas alternating flooding injection-production parameter scheme in step (4) are cumulative oil production, water content, gas-oil ratio and residual oil saturation.

[0051] The beneficial effects of the present invention are:

[0052] 1. Based on actual oilfield geology, rock fluid and production data, the present invention considers the CO2 water-gas alternation recovery enhancement mechanism and the water-CO2 plug combination mode, establishes a CO2 water-gas alternation drive reservoir numerical simulation model, and can realize the accurate simulation of the CO2 water-gas alternation drive process, laying a foundation for the reservoir numerical simulation model for optimizing the injection and production parameters of CO2 water-gas alternation drive based on the improved Hunger Game search algorithm of the chaotic mapping function.

[0053] 2. The present invention improves the randomness of selecting the initial CO2 water-gas alternating drive injection-production parameter scheme in the Hunger Game search algorithm through a chaotic mapping function, thereby enhancing the global search and local search capabilities of the Hunger Game search algorithm, and improving the accuracy and efficiency of the Hunger Game search algorithm in optimizing the CO2 water-gas alternating drive injection-production parameters. It breaks through the limitations of existing theoretical methods such as reservoir numerical simulation, reservoir engineering, and seepage mechanics for optimizing CO2 water-gas alternating drive injection-production parameters, and can accurately and quickly determine the CO2 water-gas alternating drive injection-production parameter scheme. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 It is the oil-water phase permeability curve diagram of the embodiment;

[0055] Figure 2 is a gas-liquid phase permeability curve diagram of an embodiment;

[0056] Figure 3 This is a graph showing the fitting results of the saturation pressure of the CO2 gas expansion experiment in the embodiment;

[0057] Figure 4 This is a diagram showing the expansion coefficient fitting results of the CO2 gas expansion experiment in the embodiment;

[0058] Figure 5 is a diagram showing the fitting results of the pressure-volume relationship of the expansion experiment of the embodiment;

[0059] Figure 6 is a graph showing the fitting results of crude oil viscosity in the composition expansion experiment of the embodiment;

[0060] Figure 7 The effect of CO2 injection rate on the cumulative oil production in CO2-water-gas alternating flooding;

[0061] Figure 8 The effect of CO2 segment plug size on the cumulative oil production in CO2-water-gas alternating flooding;

[0062] Fig. 9 These are the chaotic value scatter plots and distribution histograms generated by Tent mapping; (a) is the scatter plot, and (b) is the distribution histogram;

[0063] Fig.10 These are the chaotic value scatter plots and distribution histograms generated by Logistic mapping; (a) is the scatter plot, and (b) is the distribution histogram;

[0064] Fig.11 The chaotic value scatter plot and distribution histogram generated by Gussian mapping; (a) is the scatter plot, (b) is the distribution histogram;

[0065] Fig.12 The chaotic value scatter plot and distribution histogram generated by Singer mapping; (a) is the scatter plot, (b) is the distribution histogram;

[0066] Fig.13 is a graph showing the change of water injection rate of the G1 well with the number of iterations in the embodiment;

[0067] Fig.14 is a graph showing the change of gas injection rate of Well G1 with the number of iterations in the embodiment;

[0068] Fig.15 is a graph showing the change of water injection rate of the G2 well with the number of iterations in the embodiment;

[0069] Fig.16 is a graph showing the change of gas injection rate of Well G2 with the number of iterations in the embodiment;

[0070] Fig.17 is a graph showing the change of water injection rate of the G3 well with the number of iterations in the embodiment;

[0071] Fig.18 is a graph showing the change of gas injection rate of Well G3 with the number of iterations in the embodiment;

[0072] Fig.19 is a graph showing the change of water injection slug with the number of iterations in the embodiment;

[0073] Fig. 20 is a graph showing the change of gas injection slug with the number of iterations in the embodiment;

[0074] Fig.21 is a graph showing the cumulative oil production versus the number of iterations in the embodiment;

[0075] Fig. 22 This is a comparison chart of the water content changes between the optimal scheme of CO2 water-gas alternating flooding and the basic scheme in the embodiment;

[0076] Fig.23 This is a comparison chart of the gas-oil ratio changes between the optimal scheme and the basic scheme of CO2 water-gas alternating flooding in the embodiment;

[0077] Fig.24 This is the residual oil saturation field diagram of the optimal solution of CO2 water-gas alternating flooding in the embodiment;

[0078] Fig.25 It is the residual oil saturation field diagram of the basic scheme in the embodiment. DETAILED DESCRIPTION

[0079] The present invention will be further described below by way of embodiments in conjunction with the accompanying drawings, but is not limited thereto.

[0080] Embodiment 1:

[0081] The CO2 water-gas alternating flooding injection-production parameter optimization method based on the improved intelligent algorithm includes the following steps:

[0082] (1) Based on the geological data, rock fluid data and production data of the actual oil field, the mechanism of CO2 water-gas alternation to enhance oil recovery and the combination of water and CO2 plugs (in preparation for water-gas alternation flooding development) are considered. A three-dimensional fine geological model, a CO2 fluid model and a production dynamic model are successively established. Then, a numerical simulation model of the CO2 water-gas alternation flooding reservoir (i.e., the first three models) is obtained to realize the accurate simulation of the CO2 water-gas alternation flooding process.

[0083] The geological data of the actual oil field in step (1) include top surface structural map, thickness map of each sub-layer, permeability distribution map, porosity distribution map, and seismic interpretation data body; rock fluid data include oil-water, gas-liquid relative permeability curves, rock compression coefficient, formation oil-water interface depth, reference pressure, reference depth, saturation pressure, CO2 minimum miscibility pressure experimental data, CO2 injection expansion experimental data, and equal composition expansion experimental data; production data include well trajectory data, perforation data, and production history data, and the production history data includes injection well CO2 and water injection volume, injection pressure and production well bottom hole pressure, liquid production rate, oil production rate, water production rate, and CO2 production rate.

[0084] In this embodiment, the relative permeability curves of oil-water and gas-liquid in the rock fluid data are shown in Figure 1 and Figure 2 , the rock compression coefficient is 0.00004MPa -1 (under 45.5MPa), the depth of the formation oil-water interface is 2900 m, the reference pressure is 28.05 MPa, the reference depth is 2900 m, the saturation pressure is 7.79MPa, the minimum miscible pressure of CO2 is 33.44 MPa, the CO2 injection expansion experimental data and the equal composition expansion experimental data are shown in Tables 1 and 2; the perforation data and injection history data of the injection well G1 are shown in Tables 3 and 4, and the production history data of the production well G4 is shown in Table 5.

[0085] Table 1 CO2 injection gas expansion experimental data

[0086]

[0087] Table 2 Equal composition expansion test data

[0088]

[0089] Table 3 Perforation data of Well G1

[0090]

[0091] Table 4 Partial injection history data of Well G1

[0092]

[0093] Table 5 Some historical production data of Well G4

[0094]

[0095] The CO2 water-gas alternation mechanism for improving oil recovery considered in step (1) includes CO2 dissolving and reducing viscosity, improving water-oil mobility ratio, expanding crude oil volume, and reducing interfacial tension.

[0096] The process of establishing the CO2 fluid model in step (1) is as follows: the crude oil is divided into 4 to 6 pseudo-components, CO2 is taken as a single component, similar components are merged, but the number of merges cannot be too many, 4 to 6 is the best, and the requirements of both calculation efficiency and accuracy can be met at the same time; using fluid phase state calculation software or model, such as phase state calculation software Winprop, fitting the saturation pressure, expansion coefficient, relative volume, crude oil viscosity, minimum miscibility pressure and other parameters of the CO2 expansion experiment, equal composition expansion experiment, and CO2 minimum miscibility pressure experiment, and controlling the fitting error of each experimental parameter to be less than 5% (by adjusting the internal parameters of winprop to control the error, and learning within the software), thereby obtaining the critical temperature, pressure and interaction coefficient of each component.

[0097] In this example, crude oil is divided into six pseudo-components, and CO2 is taken as a separate component to meet the requirements of calculation efficiency and accuracy; WinProp fluid phase calculation software is used to fit the saturation pressure, expansion coefficient, relative volume, crude oil viscosity, minimum miscibility pressure and other parameters of CO2 injection expansion experiment, equal composition expansion experiment and CO2 minimum miscibility pressure experiment, so as to obtain the critical temperature, pressure and interaction coefficient of each component. The fitting results of gas injection expansion experiment and equal composition expansion experiment are shown in Figure 2. Figure 3~Figure 6 The fitting results of the minimum miscible pressure are shown in Table 6. The fitting errors of the saturation pressure and expansion coefficient of the gas injection expansion experiment are 2.49% and 2.06% respectively, the fitting errors of the relative volume and crude oil viscosity of the equal composition expansion experiment are 0.30% and 2.18% respectively, and the fitting error of the minimum miscible pressure is 2.21%, all of which are less than 5%, proving the correctness of the CO2 fluid model. The critical temperature, pressure and interaction coefficient of each component are shown in Tables 7 and 8.

[0098] Table 6 Minimum miscible pressure fitting table

[0099]

[0100] Table 7 Critical temperature and pressure of each component

[0101]

[0102] Table 8 Component interaction coefficients

[0103]

[0104] In the step (1), the number of grids of the three-dimensional fine geological model is greater than 15,000, and the oil saturation is determined by the oil-water interface height, reference pressure and reference depth; the reference pressure is the pressure in the middle of the reservoir, and the reference depth is the depth in the middle of the reservoir. By default, the area above the oil-water interface is oil, and the area below the oil-water interface is water.

[0105] In this embodiment, the number of grids in the three-dimensional fine geological model is 19,000.

[0106] (2) Within the actual CO2 water-gas alternating drive injection-production parameter limit range of the oil field, change the injection-production parameter values ​​in the CO2 water-gas alternating drive reservoir numerical simulation model, predict the cumulative oil production within the development life of the oil field, and study the influence of the injection-production parameters on the cumulative oil production. The prediction results and the rules are directly obtained from the CO2 water-gas alternating drive reservoir numerical simulation model established in step (1). Different cumulative oil productions can be obtained according to different schemes, and the influence rules can be analyzed to set the optimization range of CO2 water-gas alternating drive injection-production parameters.

[0107] The CO2 water-gas alternating flooding injection and production parameters in step (2) include the CO2 injection rate of each injection well, the CO2 slug and the water slug size.

[0108] In this example, the influence of CO2 water-gas alternating flooding injection and production parameters on the cumulative oil production is shown in the following results: Figure 7~Figure 8 As can be seen from the figure, with the increase of CO2 injection rate and CO2 slug, the cumulative oil production increases, but the increase gradually decreases. The optimized range of injection and production parameters for CO2 water-gas alternating flooding is shown in Table 9.

[0109] Table 9 Optimization range of injection and production parameters for CO2 water-gas alternating flooding

[0110]

[0111] (3) Within the optimization range of CO2 water-gas alternating drive injection-production parameters, the Hunger Game search algorithm is improved by using the chaos mapping function to optimize the CO2 water-gas alternating drive injection-production parameters and determine the optimal CO2 water-gas alternating drive injection-production parameter scheme.

[0112] The chaotic mapping functions in step (3) include Tent mapping function, Logistic mapping function, Gussian mapping function and Singer mapping function.

[0113] In step (3), the steps of optimizing the injection and production parameters of CO2 water-gas alternating flooding by improving the Hunger Game search algorithm using the chaotic mapping function are as follows:

[0114] 1) Select the mapping function

[0115] Take a certain amount of random numbers in the range of 0 to 1, substitute each random number into the chaotic mapping function in turn to get the function value, that is, the chaotic value, and get a scatter plot about the relationship between the number of calculations and the chaotic value. Count the frequency of chaotic values ​​in different ranges, draw a distribution histogram about the frequency of chaotic values ​​in different ranges, analyze the randomness of the scatter plot and the uniformity of the distribution histogram to select the optimal chaotic function. The most random scatter plot and the most uniform distribution histogram are the best, which is used to improve the Hunger Game search algorithm.

[0116] In this embodiment, a certain amount of random numbers are taken within the range of 0 to 1, and each random number is substituted into the Tent mapping function, the Logistic mapping function, the Gussian mapping function, and the Singer mapping function in turn to obtain the function value, i.e., the chaotic value, and obtain a scatter plot of the relationship between the number of calculations and the chaotic value. The frequency of occurrence of chaotic values ​​in different ranges is counted, and a distribution histogram of the frequency of occurrence of chaotic values ​​in different ranges is drawn, such as Figure 9~Figure 12 As shown in the following figure, we can see that the scatter plot of the Tent mapping function is more random and the distribution histogram is more uniform. We choose it as the optimal mapping function to improve the Hunger Games search algorithm.

[0117] 2) Generate the initial population

[0118] According to the determined CO2 water-gas alternating flooding injection-production parameter optimization range, determine the number of CO2 water-gas alternating flooding injection-production parameter schemes N The initial value of each injection-production parameter scheme is determined by the optimal chaotic mapping function.

[0119] In this embodiment, according to the determined optimization range of CO2 water-gas alternating drive injection-production parameters, the number of CO2 water-gas alternating drive injection-production parameter schemes is determined to be 30, and the initial value of each injection-production parameter scheme is determined by the optimal chaotic mapping function Tent. The initial value of the gas injection rate of the G1 well in the 30 CO2 water-gas alternating drive injection-production parameter schemes is shown in Table 10.

[0120] Table 10 Initial values ​​of gas injection rate for Well G1 in 30 CO2 water-gas alternating flooding injection-production parameter schemes

[0121]

[0122] 3) Hungry Character

[0123] First, the range controller R in the Hunger Game search algorithm is calculated. It is used to indicate that the range of activity of animals gradually becomes smaller as they get closer to the target food. It controls the convergence of the Hunger Game search algorithm and can be expressed by formula (1):

[0124] (1)

[0125] Where R is the range controller; rand is a random number distributed between (0, 1); shrink is the shrinkage number, which can be calculated by formula (2):

[0126] (2)

[0127] Where shrink is the shrinkage number; T is the total number of iterations; and t is the current number of iterations.

[0128] In this embodiment, the total number of iterations T is 30, the first iteration t is 1, and the calculated shrinkage number shrink is 1.933; the rand value is 0.6, and the calculated range controller R is 0.387.

[0129] The variable controller E in the Hunger Games search algorithm is used to control the behavior of each animal in searching for the target food. It can be calculated using formula (3):

[0130] (3)

[0131] Where, E is the variable controller; F(i) For the i The cumulative oil production of the CO2 water-gas alternating drive injection-production parameter scheme is calculated by the established CO2 water-gas alternating drive reservoir numerical simulation model; BF is the maximum cumulative oil production corresponding to the CO2 water-gas alternating drive injection-production parameter scheme in the current number of iterations; sech represents the hyperbolic secant function.

[0132] In this example, the first of the 30 CO2 water-gas alternating flooding injection and production parameter schemes is i The cumulative oil production corresponding to the CO2 water-gas alternating flooding injection-production parameter scheme F(i) As shown in Table 11, the maximum cumulative oil production BF corresponding to the CO2 water-gas alternating flooding injection-production parameter scheme in the current iteration number is 302,850 cubic meters, and the calculation results of the variable controller E are shown in Table 12.

[0133] Table 11 F(i) Value table

[0134]

[0135] Table 12 Variable controller E value table

[0136]

[0137] Calculate the initial hunger TH, as shown in formula (4):

[0138] (4)

[0139] Where TH is the initial hunger; WF is the minimum cumulative oil production corresponding to the CO2 water-gas alternating flooding injection-production parameter scheme in the current iteration number; r1 is a random number distributed between (0, 1); UB (j) and LB (j) They are respectively the upper and lower boundaries of the optimization range of injection and production parameters for the jth CO2 water-gas alternating drive.

[0140] In this example, the minimum cumulative oil production WF corresponding to the CO2 water-gas alternating flooding parameter scheme initially generated is 250,570 cubic meters; the random number r1 distributed between (0, 1) is 0.5; the first CO2

[0141] The upper and lower boundaries UB and LB of the optimized range of gas injection rate for well G1 of water-gas alternating flooding injection-production parameters are shown in Table 13, and the calculation results of the initial hunger TH are shown in Table 14.

[0142] Table 13 Upper and lower limits of gas injection rate in Well G1

[0143]

[0144] Table 14 TH value table

[0145]

[0146] After obtaining the initial hunger feeling TH, the hunger feeling H can be calculated using formula (5):

[0147] (5)

[0148] Where H is hunger; r2 is a random number distributed between (0, 1); LH is the lower limit of hunger.

[0149] In this embodiment, the values ​​of the random number r2 distributed between (0, 1) are shown in Table 15; LH is the lower limit of hunger, with a value of 10, and the calculation result of hunger H is shown in Table 16.

[0150] Table 15 r2 value table

[0151]

[0152] Table 16 H value table

[0153]

[0154] After getting hunger H, hunger ( i ) can be expressed by formula (6):

[0155] (6)

[0156] In the formula, hungry ( i ) is the hunger level; AllFitness ( i ) is the number of iterations in the current i Cumulative oil production of three CO2 water-gas alternating flooding injection-production parameter schemes.

[0157] In this example, the first of the 30 CO2 water-gas alternating flooding injection and production parameter schemes is i Cumulative oil production of CO2 water-gas alternating flooding injection-production parameter schemes AllFitness ( i )and F(i) Same as shown in Table 12, hunger ( i ) are shown in Table 17.

[0158] Table 17 hungry ( i ) Value table

[0159]

[0160] In the process of searching for the target food, the Hunger Games search algorithm uses hunger ( i ) to simulate the animal's desire for the target food. The greater the hunger, the greater the animal's desire for the target food.

[0161] 4) Approaching food

[0162] In order to reduce the impact of errors in the calculation process of the Hunger Game search algorithm, enhance the algorithm's adaptability, and avoid local optimality, two variables, the deviation of the actual position in the food search process, W1, and the impact of hunger on the activity range, W2, are introduced. They can be calculated using formulas (7) and (8):

[0163] (7)

[0164] (8)

[0165] Where W1 is the deviation of the position in the actual food search process; W2 is the impact of hunger on the activity range; SHunrgy is the total cumulative oil production of each CO2 water-gas alternating flooding injection and production parameter scheme; r3, r4 and r5 are three random numbers distributed between (0, 1);l is the parameter; exp is an exponential function.

[0166] In this embodiment, the number N of CO2 water-gas alternating flooding injection-production parameter schemes is 30; the total cumulative oil production SHunrgy of each CO2 water-gas alternating flooding injection-production parameter scheme is 8.397 million cubic meters; the three random numbers r3, r4 and r5 distributed between (0, 1) are 0.5, 0.3 and 0.2 respectively; the parameters l The values ​​of are shown in Table 18. The calculation results of the deviation W1 of the position in the actual food search process are shown in Table 19; the effect of hunger on the activity range W2 is 1.

[0167] Table 18 l Value table

[0168]

[0169] Table 19 W1 value table

[0170]

[0171] Finally, the behavior of animals approaching food in the Hunger Games search algorithm is shown in Equation (9);

[0172] (9)

[0173] In the formula, r6 and r7 are two random numbers distributed between (0, 1); X (t) is the t The injection and production parameter scheme of the CO2 water-gas alternating flooding for the first iteration; X ( t +1) for t +1 iteration of CO2 water-gas alternating flooding injection and production parameter scheme; X b This is the optimal CO2 water-gas alternating flooding injection-production parameter scheme among the iterations so far; randn ( l ) is a normally distributed random number between (0, 1).

[0174] In this embodiment, the values ​​of two random numbers r6 and r7 distributed between (0, 1) are shown in Table 20 and Table 21 respectively; X (0) See Table 10; X b is 59.689 t / d. From formula (9), we can see that r6< l The CO2 water-gas alternating flooding injection-production parameter scheme is iterated through the first formula in equation (9) and compared with r6 and l Parameter values, it can be concluded that a total of 14 solutions meet the conditions, specifically randn ( l ) See Table 22 for the values; X (1) and the corresponding cumulative oil production values ​​are shown in Table 23.

[0175] Table 20 r6 value table

[0176]

[0177] Table 21 r7 value table

[0178]

[0179] Table 22 randn ( l ) Value table

[0180]

[0181] Table 23 The position of the first iteration of gas injection rate in Well G1 X (1) and the corresponding cumulative oil production value table

[0182]

[0183] Compare the current number of iterations t The cumulative oil production of each CO2 water-gas alternating flooding injection-production parameter scheme is assigned to BF, and the minimum cumulative oil production corresponding to the CO2 water-gas alternating flooding injection-production parameter scheme is assigned to WF. Increase the number of iterations and repeat the above steps until t = T The calculation is terminated when the optimal CO2 water-gas alternating drive injection-production parameter scheme, the maximum cumulative oil production value, and the changes in each injection-production parameter in the optimal CO2 water-gas alternating drive injection-production parameter scheme obtained in each iteration are recorded in the process. The optimal CO2 water-gas alternating drive injection-production parameter scheme is the optimal CO2 water-gas alternating drive injection-production parameter scheme for the Tth iteration. X b .

[0184] In this example, the cumulative oil production of each CO2 water-gas alternating flooding injection-production parameter scheme in the first iteration is compared, and the maximum cumulative oil production corresponding to the CO2 water-gas alternating flooding injection-production parameter scheme is assigned to BF, which is 332,010 cubic meters, and the minimum cumulative oil production corresponding to the CO2 water-gas alternating flooding injection-production parameter scheme is assigned to WF, which is 263,200 cubic meters. Increase the number of iterations and repeat the above steps until t = T The calculation is terminated when , and the optimal scheme of injection and production parameters of CO2 water-gas alternating flooding, the maximum cumulative oil production value, and the changes of various injection and production parameters in the optimal CO2 water-gas alternating flooding injection and production parameter scheme obtained by each iteration are recorded in the process, such as Figure 13~Figure 21 The optimal CO2 water-gas alternating flooding injection-production parameter scheme is the optimal CO2 water-gas alternating flooding injection-production parameter scheme for the Tth iteration. X b , X b The injection-production parameters are as follows: the water injection rates of G1, G2 and G3 wells are 60 t / d, 7 t / d and 21 t / d respectively; the gas injection rates of G1, G2 and G3 wells are 55 t / d, 68 t / d and 51 t / d respectively, the water injection slug is 37 d, and the gas injection slug is 16 d.

[0185] Table 24 The optimal solution for injection and production parameters of CO2 water-gas alternating flooding and the maximum cumulative oil production value as a function of the number of iterations

[0186]

[0187] (4) The optimal CO2 water-gas alternating drive injection-production parameter scheme was substituted into the model to predict the development indicators of the CO2 water-gas alternating drive reservoir numerical simulation model. The development potential of the optimal CO2 water-gas alternating drive injection-production parameter scheme was evaluated by comparing it with the scheme before optimization.

[0188] The development indicators of the optimal CO2 water-gas alternating flooding injection-production parameter scheme in step (4) are cumulative oil production, water content, gas-oil ratio and remaining oil saturation.

[0189] In this example, the optimal CO2 water-gas alternating flooding injection and production parameter program development indicators are predicted as follows: Figure 22~Figure 25 As shown in the figure, compared with the scheme before optimization, the cumulative oil production of the optimal CO2 water-gas alternating flooding injection-production parameter scheme increased by 58,200 cubic meters, the water content decreased by 10.23%, and the gas-oil ratio decreased by 53.84 m 3 / m 3 , the remaining oil saturation is significantly reduced, indicating that the optimal CO2 water-gas alternating flooding injection-production parameter scheme has good development potential. The chaos mapping function improved hunger game search algorithm can obtain the optimal CO2 water-gas alternating flooding injection-production parameter scheme.

Claims

1. CO based on improved intelligent algorithm 2 Optimization method of injection and production parameters for water-gas alternating flooding, It is characterized in that The steps include: (1) Based on the geological data, rock fluid data and production data of actual oil fields, CO 2 Mechanism of water-gas alternation to enhance oil recovery and water, CO 2 Slug combination method, successively establish three-dimensional fine geological model, CO 2 Fluid model and production dynamic model, and then obtain CO 2 Numerical simulation model of water-gas alternating flooding reservoir; CO 2 The process of establishing the fluid model is as follows: the crude oil is divided into 4 to 6 pseudo-components, CO 2 As a single component; using fluid phase calculation software, fitting the injection CO 2 Expansion test, equal composition expansion test, CO 2 The saturation pressure, expansion coefficient, relative volume, crude oil viscosity, and minimum miscibility pressure parameters of the minimum miscibility pressure experiment are controlled so that the fitting error of each experimental parameter is less than 5%, thereby obtaining the critical temperature, pressure, and interaction coefficient of each component; The number of grids in the three-dimensional fine geological model is greater than 15,000. The oil saturation is determined by the oil-water interface height, reference pressure and reference depth. The reference pressure is the pressure in the middle of the reservoir, and the reference depth is the depth in the middle of the reservoir. By default, all areas above the oil-water interface are oil, and all areas below the oil-water interface are water. (2) Actual CO in oil fields 2 Within the limits of water-gas alternating flooding injection and production parameters, the CO 2 The injection and production parameter values ​​in the numerical simulation model of water-gas alternating flooding oil reservoirs are used to predict the cumulative oil production within the development period of the oil field. The influence of injection and production parameters on the cumulative oil production is studied. The CO 2 Optimization range of injection and production parameters for water-gas alternating flooding; (3) In CO 2 In the optimization range of injection and production parameters of water-gas alternating flooding, the Hunger Game search algorithm was improved by using the chaotic mapping function to perform CO 2 Optimize injection and production parameters for water-gas alternating flooding and determine the optimal CO 2 Water-gas alternating flooding injection-production parameter scheme; Using Chaos Mapping Function to Improve the Hunger Game Search Algorithm for CO 2 The steps for optimizing injection and production parameters of water-gas alternating flooding are as follows: 1) Select the mapping function Take a certain amount of random numbers in the range of 0 to 1, substitute each random number into the chaotic mapping function in turn to obtain the function value, that is, the chaotic value, and obtain a scatter plot of the relationship between the number of calculations and the chaotic value; count the frequency of chaotic values ​​in different ranges, draw a distribution histogram of the frequency of chaotic values ​​in different ranges, analyze the randomness of the scatter plot and the uniformity of the distribution histogram to select the optimal chaotic function. The one with the most random scatter plot and the most uniform distribution histogram is the best, which is used to improve the Hunger Game search algorithm; 2) Generate the initial population According to the determined CO 2 The optimization range of injection and production parameters for water-gas alternating flooding is determined by CO 2 Number of water-gas alternating flooding injection-production parameter schemes N , and determine the initial value of each injection and production parameter scheme through the optimal chaotic mapping function; 3) Hungry Character First, the range controller R in the Hunger Game search algorithm is calculated. It is used to indicate that the range of activity of animals gradually becomes smaller as they get closer to the target food, and to control the convergence of the Hunger Game search algorithm. It is expressed as formula (1): (1) Where R is the range controller; rand is a random number distributed between (0, 1); shrink is the shrinkage number, calculated by formula (2): (2) In the formula, shrink is the shrinkage number; T is the total number of iterations; t is the current number of iterations; Calculate the variable controller E in the Hunger Games search algorithm, which is used to control the behavior of each animal in searching for the target food, using formula (3): (3) Where, E is the variable controller; F(i) For the i CO 2 The cumulative oil production of the water-gas alternating flooding injection-production parameter scheme is established by CO 2 The numerical simulation model of water-gas alternating flooding reservoir is calculated; BF is the CO in the number of iterations up to now. 2 The maximum cumulative oil production corresponding to the water-gas alternating flooding injection-production parameter scheme; sech represents the hyperbolic secant function; Calculate the initial hunger TH, as shown in formula (4): (4) Where TH is the initial hunger; WF is the CO in the number of iterations up to now. 2 The minimum cumulative oil production corresponding to the water-gas alternating flooding injection-production parameter scheme; 1 is a random number distributed between (0, 1); UB (j) and LB (j) are the jth CO 2 The upper and lower boundaries of the optimization range of injection and production parameters for water-gas alternating flooding; After obtaining the initial hunger feeling TH, use formula (5) to calculate the hunger feeling H: (5) Where H is hunger; r 2 is a random number distributed between (0, 1); LH is the lower limit of hunger; After getting hunger H, hunger ( i ) is expressed by formula (6): (6) In the formula, hungry ( i ) is the hunger level; AllFitness ( i ) is the number of iterations in the current i CO 2 Cumulative oil production of water-gas alternating flooding injection-production parameter scheme; In the process of searching for the target food, the Hunger Games search algorithm uses hunger ( i ) to simulate the animal's desire for the target food. The greater the hunger, the greater the animal's desire for the target food. 4) Approaching food Introducing the deviation of the actual position in the process of searching for food W 1 、The impact of hunger on activity range 2 Two variables are calculated using formula (7) and formula (8): (7) (8) Where W 1 is the position deviation in the actual food search process; W 2 is the effect of hunger on activity range; SHunrgy is the effect of hunger on activity range for each CO 2 The total cumulative oil production of the water-gas alternating flooding injection-production parameter scheme; r 3 、r 4 and r 5 are three random numbers distributed between (0, 1); l is the parameter; exp is an exponential function; Finally, the behavior of animals approaching food in the Hunger Games search algorithm is shown in Equation (9); (9) In the formula, r 6 and r 7 are two random numbers distributed between (0, 1); X (t) is the t The CO of the iteration 2 Water-gas alternating flooding injection-production parameter scheme; X ( t +1) for t +1 iteration of CO 2 Water-gas alternating flooding injection-production parameter scheme; X b is the best CO in the current iterations 2 Water-gas alternating flooding injection-production parameter scheme; randn ( l ) is a normally distributed random number between (0, 1); Compare the current number of iterations t Each CO 2 The cumulative oil production of the water-gas alternating flooding injection-production parameter scheme is 2 The maximum cumulative oil production corresponding to the water-gas alternating flooding injection-production parameter scheme is assigned to BF, and CO 2 The minimum cumulative oil production corresponding to the water-gas alternating flooding injection-production parameter scheme is assigned to WF; increase the number of iterations and repeat the above steps until t = T The calculation is terminated when the CO obtained in each iteration is recorded. 2 The optimal solution for injection and production parameters of water-gas alternating flooding, the maximum cumulative oil production value and the optimal CO 2 Changes of various injection and production parameters in the water-gas alternating flooding injection and production parameter scheme; CO 2 The optimal solution for injection and production parameters of water-gas alternating flooding is the optimal CO 2 Water-gas alternating flooding injection-production parameter scheme X b ; (4) Utilizing the optimal CO 2 Water-gas alternating flooding injection-production parameter scheme prediction of CO 2 The numerical simulation model development index of water-gas alternating flooding reservoir is compared with the pre-optimization scheme to evaluate the optimal CO 2 Development potential of injection-production parameter scheme for water-gas alternating flooding.

2. The CO based on improved intelligent algorithm according to claim 1 2 Optimization method of injection and production parameters for water-gas alternating flooding, It is characterized in that The geological data of the actual oil field in step (1) include top surface structure map, thickness map of each small layer, permeability distribution map, porosity distribution map, and seismic interpretation data body; the rock fluid data include oil-water, gas-liquid relative permeability curve, rock compression coefficient, formation oil-water interface depth, reference pressure, reference depth, saturation pressure, CO 2 Minimum miscible pressure experimental data, CO injection 2 Expansion test data, etc. constitute expansion test data; production data includes well trajectory data, perforation data and production history data, and production history data includes injection well CO 2 and water injection volume, injection pressure and bottom hole pressure of production wells, liquid production rate, oil production rate, water production rate, CO 2 Output speed.

3. The CO based on improved intelligent algorithm according to claim 1 2 Optimization method of injection and production parameters for water-gas alternating flooding, It is characterized in that In step (1), CO 2 The mechanism of water-gas alternating flooding to enhance oil recovery includes CO 2 Dissolving and reducing viscosity, improving water-oil mobility ratio, expanding crude oil volume, and reducing interfacial tension mechanism.

4. The CO based on improved intelligent algorithm according to claim 1 2 Optimization method of injection and production parameters for water-gas alternating flooding, It is characterized in that In step (2), CO 2 The injection and production parameters of water-gas alternating flooding include the CO 2 Injection rate, CO 2 Slug and water slug size.

5. The CO based on improved intelligent algorithm according to claim 1 2 Optimization method of injection and production parameters for water-gas alternating flooding, It is characterized in that The chaotic mapping function in step (3) includes a Tent mapping function, a Logistic mapping function, a Gussian mapping function, and a Singer mapping function.

6. The CO based on improved intelligent algorithm according to claim 1 2 Optimization method of injection and production parameters for water-gas alternating flooding, It is characterized in that The optimal CO in step (4) 2 The development indicators of the water-gas alternating flooding injection-production parameter plan are cumulative oil production, water content, gas-oil ratio and remaining oil saturation.

Citation Information

Cited By

  • Method for improving shale oil recovery ratio by utilizing carbon dioxide microbubble displacement

    CN121519889A

  • Method for improving shale oil recovery using carbon dioxide microbubble displacement

    CN121519889B