Method for alternately developing gas and water in oil and gas field, control device and storage medium

By optimizing the gas-water block ratio using immune genetic algorithms and grey scale analysis, the gas channeling problem was solved, enabling efficient development of oil and gas fields and improving the accuracy of recovery rate and production capacity prediction.

CN121328256APending Publication Date: 2026-01-13CHINA PETROLEUM & CHEMICAL CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410930143.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2026-01-13

AI Technical Summary

Technical Problem

Existing gas-water alternating injection schemes have failed to effectively suppress gas channeling, resulting in reduced oil production. Furthermore, optimization methods are limited and prediction tools are too simplistic.

Method used

An immune genetic algorithm combined with grey analysis and numerical simulation was used to dynamically optimize the gas-water sluice block ratio. By constructing a cumulative oil production prediction model, the optimal development scheme was determined.

Benefits of technology

It improved the recovery rate, reduced gas channeling, and provided a more effective gas-water alternation development strategy for oil and gas fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121328256A_ABST
    Figure CN121328256A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a method for gas-water alternate development of an oil and gas field, a control device and a storage medium, and belongs to the technical field of oil and gas field development. The method comprises the steps that main control factors influencing the accumulated oil production of a target oil and gas field are determined, wherein the main control factors comprise the gas-water slug ratio and at least one piece of basic feature information; based on the main control factors, an initial scheme for gas-water alternate development of the target oil and gas field is constructed; and based on an immune genetic algorithm, through the initial scheme and a preset cumulative oil production prediction model, determining an optimal scheme for gas-water alternate development of the target oil and gas field. According to the embodiment of the invention, in oil reservoir yield prediction of the target oil and gas field, the immune genetic algorithm is combined with numerical simulation, and the optimal scheme and the production strategy for gas-water alternate development of the target oil and gas field are determined by utilizing engineering constraints to improve the recovery efficiency to the maximum extent, reduce the gas-oil ratio and reduce gas channeling.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of oil and gas field development, in particular to a method, a control device and a storage medium for gas-water alternating development of an oil and gas field. BACKGROUND

[0002] With the continuous development of onshore oilfield development, old oilfields have entered the late stage of high water cut, and the target of oil and gas exploration and development has gradually shifted to low permeability reservoirs. Compared with conventional reservoirs, low permeability reservoirs have complex pore space structure, usually have nanometer pore throat and strong heterogeneity, and water flooding development often has problems such as water injection difficulty and low recovery. Therefore, gas injection development can better solve the problems of large seepage resistance and reservoir water sensitivity faced by water flooding of low permeability reservoirs. Gas injection method has been used as a common method to improve recovery, especially having obvious advantages in the development of low permeability reservoirs.

[0003] The existing gas injection methods can include CO2 continuous injection and gas-water alternating injection. Among them, CO2 continuous injection is easy to operate on site, CO2 oil displacement efficiency is high, CO2 consumption is large, but CO2 channeling speed is fast, resulting in small CO2 sweep area; gas-water alternating injection can better improve the recovery and expand the swept volume. However, the current design of gas-water alternating injection scheme is mostly constant gas-water slug ratio, without considering the dynamic change of gas-water slug ratio. In this way, once gas channeling occurs, the oil production decreases, and the original gas-water slug ratio cannot effectively inhibit gas channeling. And the method of optimizing gas-water slug ratio through numerical simulation technology has great limitations, and the prediction means is single. SUMMARY

[0004] The purpose of the embodiments of the present application is to provide a method for gas-water alternating development of an oil and gas field, which realizes dynamic optimization of gas-water slug ratio for oil and gas field gas-water alternating development.

[0005] In order to achieve the above-mentioned purpose, the embodiments of the present application provide a method for gas-water alternating development of an oil and gas field, which comprises: determining the main control factors affecting the cumulative oil production of the target oil and gas field, the main control factors including gas-water slug ratio and at least one basic characteristic information; based on the main control factors, an initial scheme for gas-water alternating development of the target oil and gas field is constructed; and based on an immune genetic algorithm and through the initial scheme and a preset cumulative oil production prediction model, an optimal scheme for gas-water alternating development of the target oil and gas field is determined.

[0006] Optionally, the at least one basic characteristic information includes porosity, permeability, effective thickness, permeability variation coefficient, formation pressure, formation dip angle, residual oil saturation, crude oil viscosity, formation temperature and water volume.

[0007] Optionally, the determining the main controlling factor affecting the cumulative oil production of the target oil and gas field comprises: obtaining basic factors affecting the cumulative oil production of the target oil and gas field, the basic factors comprising the gas-water slug ratio and the at least one basic characteristic information; calculating the influence degree of the basic factors on the cumulative oil production of the target oil and gas field by using a gray degree analysis method; and determining the main controlling factor and the corresponding weight among the basic factors by the calculated influence degree.

[0008] Optionally, after the determining the main controlling factor affecting the cumulative oil production of the target oil and gas field, the method for the gas-water alternating development of the oil and gas field further comprises: grading the main controlling factor; and determining the variation range of the main controlling factor.

[0009] Optionally, after the constructing the initial scheme for the gas-water alternating development of the target oil and gas field, the method for the gas-water alternating development of the oil and gas field further comprises encoding the initial scheme, comprising: dividing each main controlling factor into N grade indexes, each grade index corresponding to an encoding; and merging the encodings corresponding to each main controlling factor to obtain the encoding of the initial scheme.

[0010] Optionally, the determining the optimal scheme for the gas-water alternating development of the target oil and gas field based on the immune genetic algorithm and by the initial scheme and the preset cumulative oil production prediction model comprises: inputting the initial scheme into the preset cumulative oil production prediction model as a current scheme to calculate the corresponding cumulative oil production. When the end condition of the immune genetic algorithm is not reached, cyclically performing: analyzing the current scheme and the corresponding cumulative oil production, and constructing a new current scheme by a vaccine crossover or a vaccine mutation method; and inputting the new current scheme into the preset cumulative oil production prediction model to calculate the corresponding cumulative oil production. When the end condition of the immune genetic algorithm is reached, determining the optimal scheme for the gas-water alternating development of the target oil and gas field by all the schemes and the corresponding cumulative oil productions.

[0011] Optionally, the determining the optimal scheme for the gas-water alternating development of the target oil and gas field by all the schemes and the corresponding cumulative oil productions comprises: determining the optimal scheme for the gas-water alternating development of the target oil and gas field by analyzing the variation law of the cumulative oil productions corresponding to all the schemes.

[0012] Optionally, the determining the optimal scheme for the gas-water alternating development of the target oil and gas field by all the schemes and the corresponding cumulative oil productions comprises: calculating the corresponding recovery rates by the cumulative oil productions corresponding to all the schemes; and determining the optimal scheme for the gas-water alternating development of the target oil and gas field by analyzing the variation law of the recovery rates corresponding to all the schemes.

[0013] The embodiment of the present application also provides a control device for gas-water alternating development of an oil and gas field, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to realize the method for gas-water alternating development of an oil and gas field.

[0014] The embodiment of the present application also provides a machine readable storage medium, which stores instructions for causing a machine to execute the method for gas-water alternating development of an oil and gas field.

[0015] Through the above technical solution, in the prediction of reservoir production of a target oil and gas field, the embodiment of the present application combines an immune genetic algorithm with numerical simulation, uses engineering constraint maximum amplitude to improve recovery ratio and reduce gas-oil ratio, and reduces gas channeling occurrence, so as to determine an optimal scheme and production strategy for gas-water alternating development of the target oil and gas field. The optimal scheme and production strategy can maximize the recovery ratio and provide a new method for the production capacity prediction of the target oil and gas field. Further, the embodiment of the present application successfully combines the grey theory, numerical simulation and immune genetic algorithm, determines the feasibility of the yield prediction based on the immune genetic algorithm in the gas injection development of an oil and gas reservoir, and lays a foundation for the reservoir development, yield planning and scheme deployment of the target oil and gas field.

[0016] Other features and advantages of the embodiment of the present application will be described in detail in the following specific implementation part. BRIEF DESCRIPTION OF DRAWINGS

[0017] The accompanying drawings are included to provide a further understanding of the embodiment of the present application, and constitute a part of the specification, and are used together with the following specific implementation part to explain the embodiment of the present application, but do not constitute a limitation on the embodiment of the present application. In the drawings:

[0018] Figure 1 is a method flowchart provided by the embodiment of the present application for gas-water alternating development of an oil and gas field;

[0019] Figure 2 is an example method flowchart for gas-water alternating development of an oil and gas field;

[0020] Figure 3 is a schematic diagram of an example change range of a formation dip angle;

[0021] Figure 4 is a schematic diagram of an example change range corresponding to a water body volume;

[0022] Figure 5 is a schematic diagram of an example change range corresponding to other main control factors;

[0023] Figure 6is a graph showing cumulative oil production of an example optimized scheme versus an initial scheme;

[0024] Figure 7 is a graph showing recovery factor comparison values of example different schemes; and

[0025] Figure 8 is a graph showing recovery factor comparison of an example optimized scheme versus an initial scheme. DETAILED DESCRIPTION

[0026] The specific embodiments of the present application will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely intended to illustrate and explain the present application, and are not intended to limit the present application.

[0027] Figure 1 is a flowchart of a method for gas-water alternating development of an oil and gas field provided by an embodiment of the present application, please refer to Figure 1 The method for gas-water alternating development of an oil and gas field can include the following steps:

[0028] Step S110: determining a main control factor affecting cumulative oil production of a target oil and gas field, wherein the main control factor includes a gas-water slug ratio and at least one basic characteristic information.

[0029] The target oil and gas field is, for example, a complex fault block reservoir, which has strong reservoir heterogeneity. After implementation of a conventional gas injection mode, gas channeling is serious, which seriously affects CO2 sweep efficiency and recovery factor.

[0030] The at least one basic characteristic information can include, for example, porosity, permeability, effective thickness, permeability variation coefficient, formation pressure, formation dip angle, residual oil saturation, crude oil viscosity, formation temperature, water volume, etc. Further, the at least one basic characteristic information can also include gas injection speed, water injection speed, and the two parameters of gas injection speed and water injection speed for affecting the gas-water slug ratio.

[0031] Preferably, step S110 can include: obtaining a basic factor affecting cumulative oil production of a target oil and gas field, wherein the basic factor includes the gas-water slug ratio and the at least one basic characteristic information; calculating, by using a gray degree analysis method, an influence degree of the basic factor on the cumulative oil production of the target oil and gas field; and determining the main control factor in the basic factor by using the calculated influence degree.

[0032] Please refer to Figure 2 For example, based on characteristic data of a target oil and gas field, the influence degree of each basic factor (including the gas-water slug ratio and the at least one basic characteristic information) on the cumulative oil production of the target oil and gas field is calculated by using a gray degree analysis method.

[0033] Preferably, when calculating the influence degree of the basic factors on the cumulative oil production of the target oil and gas field by using the grey degree analysis method, step S110 can further include: determining the influence law of the basic factors on the cumulative oil production of the target oil and gas field by using the grey degree analysis method. For example, the relationship between each basic factor and the cumulative oil production of the target oil and gas field is positive correlation (for example, as the basic factor increases, the cumulative oil production of the target oil and gas field increases, or as the basic factor decreases, the cumulative oil production of the target oil and gas field decreases), or negative correlation (for example, as the basic factor increases, the cumulative oil production of the target oil and gas field decreases, or as the basic factor decreases, the cumulative oil production of the target oil and gas field increases).

[0034] Preferably, after step S110, the method for gas-water alternating development of oil and gas fields can further include: grading the main control factors; and determining the change range of the main control factors.

[0035] In the above example, after the main control factors affecting the cumulative oil production of the target oil and gas field, the main control factors are graded, for example, as shown in Table 1. The embodiment of the present application constructs the input data set of the cumulative oil production prediction model through the main control factors (or input parameters) and the corresponding data obtained from the target oil and gas field, so that the grading of the main control factors can also be used as the input parameters.

[0036] Table 1 shows the grading system of the main control factors

[0037]

[0038] In the above example, after the main control factors affecting the cumulative oil production of the target oil and gas field, the change range of the main control factors can also be determined. For example, according to the characteristics of each main control factor and in combination with the application of the target oil and gas field, the maximum value and the minimum value corresponding to each main control factor are counted to determine the corresponding change range, so as to ensure that each main control factor can cover all targets and can delete the corresponding data that does not meet the requirements. Please refer to Figure 3 For example, in all wells of the target oil and gas field, the minimum inclination is 0° and the maximum inclination is 20°, so the change range of the formation inclination is determined as 0-20. Figure 4 The change range corresponding to the water volume is also shown.

[0039] Step S120: based on the main control factors, an initial scheme for gas-water alternating development of the target oil and gas field is constructed.

[0040] Please refer to Figure 2For example, based on the determined main control factors (e.g., gas injection volume, water injection volume, gas-water slug ratio, gas-oil ratio, etc.), an initial scheme for the gas-water alternating development of the target oil and gas field is constructed. The initial scheme can include one or more groups of data sets composed of gas injection volume, water injection volume, gas-water slug ratio, etc., that is, the initial scheme can include one or more populations.

[0041] Preferably, step S120 can include constructing, by the main control factors, multiple populations of the initial scheme for the gas-water alternating development of the target oil and gas field by using a multi-factor orthogonal design or a response surface method.

[0042] For example, the initial scheme for the gas-water alternating development of the target oil and gas field can be constructed by using a multi-factor orthogonal design: for example, gas injection volume, water injection volume, gas-water slug ratio, and gas-oil ratio as the main control factors; gas injection volume, for example, 150m 3 , 200m 3 , 300m 3 , injection volume level, for example, 10t, 20t, 30t, gas-water slug ratio, for example, 4:3, 3:2, 2:1, and gas-oil ratio, for example, 1000m 3 / m 3 , 2000m 3 / m 3 , 3000m 3 / m 3 . By the orthogonal design, multiple groups of data sets (multiple populations) can be obtained as the initial scheme. The response surface method can also be used to construct the initial scheme for the gas-water alternating development of the target oil and gas field. Please refer to Figure 5 The population size in the initial scheme is, for example, 10, and the values of the main control parameters in the initial scheme are also shown in the figure, so that the entire variation range of each main control factor is covered in each initial population.

[0043] Step S130: based on the immune genetic algorithm and by the initial scheme and a preset cumulative oil production prediction model, an optimal scheme for the gas-water alternating development of the target oil and gas field is determined.

[0044] The preset cumulative oil production prediction model can be a neural network model trained in advance with cumulative oil production (i.e., antigen) as the target function.

[0045] Preferably, before step S130, the method for the gas-water alternating development of the oil and gas field can further include encoding the initial scheme, including: dividing each main control factor into N level indicators, each level indicator corresponding to an encoding; and combining the encodings corresponding to each main control factor to obtain the encoding of the initial scheme.

[0046] Taking the binary coding of the initial scheme as an example: according to the upper and lower limits of each main control factor (i.e., the variation range of each main control factor determined above) and in ascending order, each main control factor can be divided into N (for example, N = 16) level indicators; each level indicator can correspond to a binary code. For example, the interval range of porosity is 0.1-0.25, wherein 0.1 can be the first level (corresponding to the code 0001), 0.11 can be the second level (corresponding to the code 0010), 0.12 can be the third level (corresponding to the code 0011), and so on, and 0.25 can be the 16th level (corresponding to the code 1111). The codes corresponding to each main control factor of the initial scheme are combined to obtain the code of the initial scheme. As known from the above, the initial scheme can include one population or multiple populations. For example, in one population of the initial scheme, the code corresponding to the porosity is 0001, and the code corresponding to the permeability is 0101, and the code corresponding to the population is 00010101. It should be noted that for multiple populations of the initial scheme, the codes can be combined respectively, for example, the codes corresponding to the example initial scheme are: 00010101, 00010100, 00011101, and so on. Since the coding method of each population is the same, one population of the scheme is taken as an example in the following description.

[0047] Preferably, step S130 can include: inputting the initial scheme into the preset cumulative oil production prediction model to calculate the corresponding cumulative oil production. When the end condition of the immune genetic algorithm is not reached, the following steps are repeatedly performed: analyzing the current scheme and the corresponding cumulative oil production, and constructing a new current scheme by the vaccine crossover or vaccine mutation method; and inputting the new current scheme into the preset cumulative oil production prediction model to calculate the corresponding cumulative oil production. When the end condition of the immune genetic algorithm is reached, the optimal scheme for the gas-water alternating development of the target oil and gas field is determined by all the schemes and the corresponding cumulative oil production.

[0048] For example, please refer to Figure 2 The initial scheme obtained above (i.e., extracting the vaccine) is input into the preset cumulative oil production prediction model to calculate the corresponding cumulative oil production (i.e., fitness calculation). When the end condition of the immune genetic algorithm is not reached, the following steps are repeatedly performed: analyzing the initial scheme and the corresponding cumulative oil production, constructing a new current scheme, and coding the new current scheme; inputting the new current scheme (i.e., population replacement) into the preset cumulative oil production prediction model to calculate the corresponding cumulative oil production. When the end condition of the immune genetic algorithm is reached, the optimal scheme for the gas-water alternating development of the target oil and gas field is determined by all the schemes and the corresponding cumulative oil production.

[0049] Preferably, the new current scheme can be constructed by vaccine cross or vaccine variation method. For example, the initial scheme (in multiple populations) and the corresponding cumulative oil production are analyzed, and the population corresponding to the maximum cumulative oil production is selected for genetic. For the new current scheme constructed by the vaccine cross method, the positions of the codes of the current scheme can be exchanged. For example, the positions of any two non-overlapping codes of not more than 4 bits are exchanged. For example, the positions of the 1-4 bits and the 6-9 bits of the code of the current scheme 0001010101111 are exchanged, and the code of the new current scheme is 1010000011111. For the new current scheme constructed by the vaccine variation method, for example, the codes of not more than 4 bits are changed. For example, the codes of the 5-8 bits of the code of the current scheme 0001010101111 are changed, and the code of the new current scheme is 0001101001111.

[0050] In addition, as described above, the embodiments of the present application can affect the gas-water slug ratio through the injection speed and the water injection speed. When the optimal scheme for the target oil and gas field is determined by the preset cumulative oil production prediction model, the gas-oil ratio is dynamically changed with time, and therefore, the embodiments of the present application can set the slug ratio as the main control factor which dynamically changes with the gas-oil ratio. For example, when the gas-oil ratio is 1500 m 3 / m 3 , the original gas-water slug ratio 2:1 is changed to the gas-water slug ratio 3:2, when the gas-oil ratio is 2000 m 3 / m 3 , the gas-water slug ratio is changed to 4:3, and so on.

[0051] For example, the optimal population in each generation scheme (i.e., the population corresponding to the maximum cumulative oil production) is inherited to the next generation scheme. The cumulative oil production of the optimal population of each generation scheme is compared. When the cumulative oil production of the optimal population of K (K>1) consecutive generations increases by less than a preset increment (for example, the preset increment is 1x10 -6 ), it is considered that the maximum cumulative oil production is obtained, and the iteration is ended at this time.

[0052] Further, with the population replacement, the gas-oil ratio in the current scheme can be greater than the preset threshold value, and at this time, the obtained scheme has no significance. Therefore, when the immune genetic algorithm reaches the end condition, it is also required that the gas-oil ratio of the optimal scheme is greater than the preset threshold value (for example, the gas-oil ratio>3000).

[0053] Preferably, determining the optimal scheme for gas-water alternating development of the target oil and gas field by considering all schemes and their corresponding cumulative oil production can include: analyzing the variation patterns of the cumulative oil production corresponding to all schemes to determine the optimal scheme for gas-water alternating development of the target oil and gas field.

[0054] Preferably, determining the optimal scheme for gas-water alternating development of the target oil and gas field based on all schemes and their corresponding cumulative oil production may include: calculating the corresponding recovery rate based on the cumulative oil production of all schemes; and determining the optimal scheme for gas-water alternating development of the target oil and gas field by analyzing the variation law of the recovery rate corresponding to all schemes.

[0055] Following the example above, such as Figure 6 As shown, at a gas-oil ratio of 1500m 3 / m 3 At that time, the original gas-water slug ratio of 2:1 was changed to a gas-water slug ratio of 3:2, with a gas-oil ratio of 2000m. 3 / m 3 When the gas-water slug ratio was changed to 4:3, the recovery rate was increased by 5.13% and the oil exchange rate was increased by 0.27t / t compared with the initial scheme; compared with the original depletion scheme, the recovery rate was increased by 7.94% and the oil exchange rate was increased by 0.41t / t.

[0056] Taking a fractured reservoir in a basin as an example, the reservoir fractures are well-developed, with both high-angle and horizontal fractures identifiable in the core samples; fractures are also present in both sandstone and mudstone; for instance, continuous gas injection to enhance oil recovery is not suitable for controlling gas channeling. Under continuous gas injection conditions, at the end of the injection period, the gas-oil ratio rises to 3000 m... 3 / m 3 A total of 54 wells were shut in, with some wells showing gas activity after 4-6 months of gas injection, resulting in low recovery rates. For this example fractured reservoir, CO2-water alternating injection was implemented. First, grey analysis was used to determine the main controlling factors affecting the cumulative oil production of the target oil and gas field and their corresponding weights. These main controlling factors included, for example, the gas-water slug ratio, reserves, permeability variation coefficient, permeability, effective thickness, water volume, gas injection rate, water injection rate, and gas-oil ratio. The range of variation for these main controlling factors was determined, and the cumulative oil production (i.e., antigen) variation law or the corresponding recovery rate variation law was determined using vaccine cross-validation or vaccine mutation methods. For example, by using the fitness function between predicted production data and the main controlling factors (i.e., the preset cumulative oil production prediction model), and based on the error matrix, the current scheme was adjusted (i.e., vaccine cross-validation and mutation) to maximize the cumulative oil production or recovery rate, thus determining the optimal scheme for gas-water alternating development of the target oil and gas field. For example, in this example, at a gas-oil ratio of 1500m... 3 / m 3 When changing the original gas-water slug ratio from 4:3 to 3:2, please refer to [the relevant documentation].Figure 7 and Figure 8 Compared with the initial scheme, the recovery rate is improved by 4%, and the oil change rate is 0.35t / t.

[0057] Therefore, in the oil reservoir production prediction of the target oil and gas field, the embodiment of the application combines the immune genetic algorithm with numerical simulation, uses the engineering constraint maximum amplitude to improve the recovery rate, reduces the gas oil ratio, and reduces the gas channeling occurrence, to determine the optimal scheme and production strategy for the gas-water alternating development of the target oil and gas field. The optimal scheme and production strategy can maximize the recovery rate, and provide a new method for the production capacity prediction of the target oil and gas field. Further, the embodiment of the application successfully combines the grey theory, numerical simulation, immune genetic algorithm, orthogonal experiment or response surface method, determines the feasibility of the yield prediction based on the immune genetic algorithm in the gas injection development of the oil and gas reservoir, and lays a foundation for the oil reservoir development, yield planning, scheme deployment and the like of the target oil and gas field.

[0058] The embodiment of the application also provides a control device for the gas-water alternating development of an oil and gas field, the control device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to realize the method for the gas-water alternating development of an oil and gas field.

[0059] The embodiment of the application also provides a machine readable storage medium, and the machine readable storage medium stores instructions, and the instructions make the machine execute the method for the gas-water alternating development of an oil and gas field.

[0060] Those skilled in the art should understand that the embodiments of the application can be provided as a method, a system or a computer program product. Therefore, the application can adopt a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the application can adopt a computer program product in the form of one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.

[0061] The application is described with reference to the flowcharts and / or block diagrams according to the methods, devices (systems) and computer program products of the embodiments of the application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams and the combination of the flows and / or blocks can be realized by computer program instructions. The computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a machine that realizes the functions described in the flowcharts and / or block diagrams. Figure 1 one flow or multiple flows and / or blocks Figure 1means for performing the function specified by the block or blocks.

[0062] These computer program instructions can also be stored in a computer- readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flow Figure 1 flow or flows and / or blocks Figure 1 means for performing the function specified by the block or blocks.

[0063] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 flow or flows and / or blocks Figure 1 means for performing the function specified by the block or blocks.

[0064] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0065] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) about which the processor can execute instructions. The memory can also include non-volatile memory, such as read only memory (ROM), electrically programmable read only memory (EPROM), electrically erasable programmable read only memory (EEPROM), flash memory, or other memory technologies, about which the processor can execute instructions. The memory is an example of computer readable media.

[0066] Computer readable media includes permanent and non-permanent, moveable and non- moveable media that can be implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile discs (DVDs) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that is accessible to a computing device. According to the definition provided herein, computer readable media excludes transitory media, such as modulated data signals and carrier waves.

[0067] It should also be noted that the terms "comprising", "comprises" or other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can also include other elements not expressly listed or inherent to such process, method, article, or apparatus.

[0068] The above embodiments are only used to illustrate the present application, but not to limit it. Instead of the above, various modifications and changes can be made to the application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall fall into the scope of the claims of the application.

Claims

1. A method for gas water alternating gas development of an oil and gas field, characterized in that, The method for gas-water alternating development of an oil and gas field comprises: determining a main control factor affecting cumulative oil production of a target oil and gas field, the main control factor comprising a gas-water slug ratio and at least one basic characteristic information; constructing an initial scheme for gas-water alternating development of the target oil and gas field based on the main control factor; and determining an optimal scheme for gas-water alternating development of the target oil and gas field based on an immune genetic algorithm and through the initial scheme and a preset cumulative oil production prediction model.

2. The method for gas water alternating gas development of oil and gas fields according to claim 1, characterized in that, The at least one basic characteristic information comprises porosity, permeability, effective thickness, permeability variation coefficient, formation pressure, formation dip angle, residual oil saturation, crude oil viscosity, formation temperature and water volume.

3. The method for gas water alternating gas development of oil and gas fields according to claim 1, characterized in that, The determining a main control factor affecting cumulative oil production of a target oil and gas field comprises: obtaining a basic factor affecting cumulative oil production of the target oil and gas field, the basic factor comprising the gas-water slug ratio and the at least one basic characteristic information; calculating an influence degree of the basic factor on cumulative oil production of the target oil and gas field by using a grey degree analysis method; and determining the main control factor from the basic factor through the calculated influence degree.

4. The method for gas water alternating gas development of oil and gas fields according to claim 1, characterized in that, After the determining a main control factor affecting cumulative oil production of a target oil and gas field, the method for gas-water alternating development of an oil and gas field further comprises: grading the main control factor; and determining a variation range of the main control factor.

5. The method for gas water alternating gas development of oil and gas fields according to claim 1, characterized in that, After the constructing an initial scheme for gas-water alternating development of a target oil and gas field, the method for gas-water alternating development of an oil and gas field further comprises encoding the initial scheme, comprising: dividing each main control factor into N grade indexes, each grade index corresponding to an encoding; and merging the encodings corresponding to the main control factors to obtain an encoding of the initial scheme.

6. The method for gas water alternating gas development of oil and gas fields according to claim 5, characterized in that, The determining an optimal scheme for gas-water alternating development of a target oil and gas field based on an immune genetic algorithm and through an initial scheme and a preset cumulative oil production prediction model comprises: inputting the initial scheme as a current scheme into the preset cumulative oil production prediction model to calculate corresponding cumulative oil production; when an end condition of the immune genetic algorithm is not reached, cyclically performing: analyzing the current scheme and the corresponding cumulative oil production and constructing a new current scheme by a vaccine crossover or vaccine mutation method; and inputting the new current scheme into the preset cumulative oil production prediction model to calculate corresponding cumulative oil production; when the end condition of the immune genetic algorithm is reached, determining an optimal scheme for gas-water alternating development of the target oil and gas field through all schemes and the corresponding cumulative oil production.

7. The method for gas water alternating gas development of oil and gas fields according to claim 6, characterized in that, The determining an optimal scheme for gas-water alternating development of a target oil and gas field through all schemes and the corresponding cumulative oil production comprises: determining the optimal scheme for gas-water alternating development of the target oil and gas field by analyzing variation laws of the cumulative oil production corresponding to all schemes.

8. The method for gas water alternating gas development of oil and gas fields according to claim 6, characterized in that, The determining an optimal scheme for gas-water alternating development of a target oil and gas field through all schemes and the corresponding cumulative oil production comprises: calculating a corresponding recovery ratio through the cumulative oil production corresponding to all schemes; and By analyzing the change rule of recovery factor corresponding to all schemes, the optimal scheme for gas-water alternating development of the target oil and gas field is determined.

9. A control device for gas water alternating development of an oil and gas field, characterized in that, The control device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, and the processor executes the computer program to implement the method for gas-water alternating development of oil and gas fields according to any one of claims 1-8.

10. A machine-readable storage medium, characterized in that, The machine readable storage medium stores instructions, which make the machine execute the method for gas-water alternating development of oil and gas fields according to any one of claims 1-8.