A method for flooding oil in bottom water sandstone reservoir

The digital twin model and particle swarm algorithm are used to simulate the carbon dioxide oil displacement process, and the neural network model is used to optimize the injection parameters. This solves the problem of inaccurate oil production estimates in carbon dioxide oil displacement technology and improves the accuracy of crude oil output and oil displacement efficiency. .

CN115822533BActive Publication Date: 2024-09-20XINJIANG DUNHUA PETROLEUM TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202211499156.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-28
Publication Date
2024-09-20
Estimated Expiration
2042-11-28

AI Technical Summary

Technical Problem

Existing carbon dioxide flooding technology cannot accurately predict the amount of oil recovered in the underground environment, resulting in the inability to effectively adjust carbon dioxide injection parameters and affecting oil displacement efficiency.

Method used

The method of combining digital twin model and particle swarm algorithm is used to construct the carbon dioxide transportation pipeline and crude oil output pipeline model to simulate the carbon dioxide oil displacement process. The carbon dioxide injection parameters are optimized through the neural network model and similarity calculation, and the injection amount, speed and frequency are adjusted to achieve the desired results. Improve the accuracy of crude oil output.

Benefits of technology

Through refined simulation and iterative optimization, the calculation accuracy of crude oil output is improved, optimal parameters are provided for adjusting carbon dioxide injection parameters, and oil displacement efficiency and oil recovery rate are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115822533B
    Figure CN115822533B
Patent Text Reader

Abstract

The invention discloses a bottom water sandstone reservoir oil recovery method, which includes establishing a carbon dioxide transmission pipeline, a crude oil output pipeline, and an underground environment digital twin model; using a particle swarm algorithm to simulate the oil recovery process of carbon dioxide and crude oil, and using a neural network model method and a similarity calculation method to respectively obtain the output oil volume; and obtaining the final output oil volume through iterative optimization of the three algorithms; and obtaining a corresponding output oil volume curve by adjusting carbon dioxide injection parameters to obtain the optimal carbon dioxide injection parameters, thereby improving the accuracy of carbon dioxide oil recovery estimation and the accuracy of obtaining the carbon dioxide injection parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of oil recovery methods, and in particular relates to an oil recovery method for bottom water sandstone reservoirs. Background Art

[0002] my country is facing the prominent problems of oil shortage and the failure to effectively develop a large amount of oil resources. The remaining oil resources in the country are gradually decreasing, while the recovery rate of heavy oil reservoirs is low. Heavy oil reservoirs will be an important position for future oil field development.

[0003] At present, the use of carbon dioxide flooding as an emerging technology is gradually being applied in oil production scenarios. Carbon dioxide flooding technology is a technology that injects carbon dioxide into oil layers to increase the oil recovery rate of oil fields. When carbon dioxide is injected into the oil layer, due to the good mutual solubility of carbon dioxide and crude oil, it can significantly reduce the viscosity of crude oil, which can be reduced to about 1 / 10 of the original viscosity. The higher the initial viscosity of the crude oil, the greater the viscosity difference after the reduction. After the viscosity is reduced, the flow capacity of the crude oil increases, and the crude oil production is increased. At the same time, after carbon dioxide is injected into the oil reservoir, the volume of crude oil expands significantly, which can increase the elastic energy of the formation, and is also conducive to the remaining oil after expansion to break away from the constraints of formation water and rock surface, and become movable oil, which increases the oil recovery efficiency and improves the recovery rate of crude oil.

[0004] However, in the current scenario of using carbon dioxide for oil recovery, it is difficult to estimate the oil recovery for different underground environments, resulting in a lack of guiding data for parameters such as the injection amount and injection rate of carbon dioxide. Based on this, the present invention proposes a method for oil recovery in bottom water sandstone reservoirs. Summary of the invention

[0005] In view of the problem that the oil production of the current underground environment cannot be accurately estimated in the existing carbon dioxide flooding scenario, resulting in the inability to effectively adjust the carbon dioxide injection parameters, the present invention proposes a bottom water sandstone reservoir flooding method, the method comprising the following steps:

[0006] S1. Build digital twin models of carbon dioxide transmission pipelines, crude oil output pipelines, and underground environments;

[0007] S2. Initialize carbon dioxide injection parameters, the injection parameters including injection amount, injection speed, and injection frequency;

[0008] S3. Use particle swarm algorithm to simulate the carbon dioxide flooding process and obtain the output oil volume Y1 of the crude oil output pipeline;

[0009] S4. Using the neural network model, the crude oil output pipeline output oil volume Y2 is obtained according to the carbon dioxide injection parameters and underground environmental parameters;

[0010] S5. Based on the oil production data in the historical experience database, the crude oil output pipeline output volume Y3 is obtained by similarity calculation method;

[0011] S6. Optimize the neural network model according to the error between Y3 and Y2 to obtain the optimized crude oil output pipeline output volume Y4 output by the neural network model;

[0012] S7. Calculate the crude oil output pipeline output volume Y5 based on Y4 and Y1;

[0013] S8. Adjust the carbon dioxide injection parameters to obtain a dynamic curve of the oil output volume of the crude oil output pipeline, and obtain the optimal carbon dioxide injection parameters according to the dynamic curve.

[0014] Wherein, the step S1 constructs the digital twin model of the carbon dioxide transmission pipeline, crude oil output pipeline, and underground environment, specifically including:

[0015] S11. construct digital twin models of the carbon dioxide transmission pipeline and the crude oil output pipeline according to the structural parameters and material parameters of the carbon dioxide transmission pipeline and the crude oil output pipeline;

[0016] S12. Constructing a digital twin model of the underground environment according to the underground environment parameters to form a connected digital twin model including a carbon dioxide transmission pipeline, a crude oil output pipeline, and an underground environment;

[0017] The construction of the digital twin model of the underground environment specifically includes:

[0018] Acquire the three-dimensional structure data of the underground environment in advance, as well as the temperature parameters, pressure parameters, crude oil reserves, water content, rock structure, and geological parameters of each location point;

[0019] The geological parameters include permeability, saturation, temperature, relative permeability, mass fraction, density, porosity, thermal conductivity, and rock layer thickness.

[0020] The step S3 uses a particle swarm algorithm to simulate the carbon dioxide flooding process and obtain the output oil volume Y1 of the crude oil output pipeline, which specifically includes:

[0021] S31. Calculate the time when the carbon dioxide reaches the bottom of the delivery pipeline based on the length of the carbon dioxide delivery pipeline and the carbon dioxide injection rate;

[0022] S32. When the carbon dioxide reaches the bottom of the pipeline, the particle swarm algorithm is started to construct a carbon dioxide particle swarm, and a crude oil particle swarm is constructed at the crude oil position in the digital twin model;

[0023] The number of the carbon dioxide particle group is determined according to the carbon dioxide injection amount;

[0024] The number of particles in the crude oil particle group at the crude oil location is determined according to the crude oil reserves at the crude oil location;

[0025] S33. Initialize the parameters of the carbon dioxide particle group, the parameters include the direction of movement and the speed of movement; initialize the parameters of the crude oil particle group, the parameters include the direction of movement, the speed of movement, the expansion rate, and the viscosity;

[0026] S34. When the carbon dioxide particles reach the position of the crude oil particle group, the expansion rate and viscosity of each crude oil particle in the crude oil particle group, and the number of particles in the remaining carbon dioxide particle group are calculated according to the temperature parameter, pressure parameter, number of particles in the carbon dioxide particle group, and number of particles in the crude oil particle group at the current position;

[0027] The number of particles in the remaining carbon dioxide particle group is the number of particles in the carbon dioxide particle group remaining after the carbon dioxide particle group reacts with the crude oil particle group at the current position;

[0028] S35. Calculate the flow rate of the crude oil particle group according to the geological parameters, the expansion rate and viscosity of each crude oil particle in the particle group;

[0029] The crude oil particle group flow rate is the number of crude oil particles that can flow to the crude oil output pipeline at the current position;

[0030] S36. When the remaining carbon dioxide particle group reaches the position of the next crude oil particle group, repeat steps S34-S35 to obtain the flow rate of the crude oil particle group at the current position;

[0031] S37. Calculate the output oil volume Y1 of the crude oil output pipeline according to the flow volume of the crude oil particle group at each crude oil particle group position in the underground environment.

[0032] The step S4 uses a neural network model to obtain the output oil volume Y2 of the crude oil output pipeline according to the carbon dioxide injection parameters and the underground environmental parameters, and specifically includes:

[0033] S41. Construct a neural network model, obtain the carbon dioxide injection parameters, underground environmental parameters, and corresponding output pipeline oil volume data in the historical experience database, and take each carbon dioxide injection parameter, underground environmental parameter, and corresponding output pipeline oil volume data as a sample; select N samples from the historical experience database;

[0034] S42. construct training samples and test samples from N samples in a ratio of 7:3;

[0035] S43. Using the training samples in step S42 to train the neural network model;

[0036] The input data of the neural network model are carbon dioxide injection parameters and underground environmental parameters;

[0037] The output data of the neural network model is the output oil volume of the output pipeline;

[0038] S44. Testing the neural network model using the test sample in step S42;

[0039] S45. When the difference between the test result in step S44 and the actual result corresponding to the test sample exceeds the preset threshold value T, the weight parameters in the neural network model are adjusted, and N samples are obtained again from the remaining samples in the historical experience database, and steps S42 to S45 are repeated until the difference between the test result and the actual result corresponding to the test sample is less than the preset threshold value T, and a trained neural network model is obtained;

[0040] S46. Obtain the underground environmental parameters in step S12 and the carbon dioxide injection parameters in step S2, and input the underground environmental parameters and the carbon dioxide injection parameters into the trained neural network model to obtain the output oil volume Y2 of the crude oil output pipeline.

[0041] The step S5 uses a similarity calculation method to obtain the output oil volume Y3 of the crude oil output pipeline based on the oil production data in the historical experience database, and specifically includes:

[0042] S51. Obtaining CO2 injection parameters, underground environmental parameters, and corresponding output pipeline oil output data from the historical experience database; and taking each CO2 injection parameter, underground environmental parameter, and corresponding output pipeline oil output data as a sample;

[0043] S52. Obtaining the underground environmental parameters in step S12 and the carbon dioxide injection parameters in step S2;

[0044] S53. Compare the carbon dioxide injection parameters and underground environmental parameters obtained in step S52 with the carbon dioxide injection parameters and underground environmental parameters of each sample obtained in step S51 to obtain a similarity r. When the similarity r is higher than a preset threshold value T1, the output pipeline oil volume data corresponding to the sample is used as the crude oil output pipeline output oil volume Y3.

[0045] The step S53 compares the carbon dioxide injection parameters and underground environmental parameters obtained in step S52 with the carbon dioxide injection parameters and underground environmental parameters of each sample obtained in step S51 to obtain a similarity r, specifically including:

[0046] S531. Obtaining the similarity r1 between the carbon dioxide injection parameter obtained in step S52 and the carbon dioxide injection parameter of each sample obtained in step S51;

[0047] S532. Obtaining the similarity r2 between the underground environmental parameters obtained in step S52 and the underground environmental parameters obtained in step S51;

[0048] S533. Obtain the similarity r in step S53 according to the similarity r1 and the similarity r2.

[0049] The step S533 obtains the similarity r in the step S53 according to the similarity r1 and the similarity r2, specifically including:

[0050] r=λ1r1+λ2r2

[0051] Among them, λ1 is the first weight value; λ2 is the second weight value.

[0052] The step S6 optimizes the neural network model according to the error between Y3 and Y2 to obtain the optimized crude oil output pipeline output oil volume Y4 output by the neural network model, which specifically includes:

[0053] S61. Calculate the error value between Y3 and Y2. When the error value is greater than or equal to the preset threshold value T2, execute steps S62 to S65. When the error value is less than the preset threshold value T2, do not perform the neural network model optimization, and directly use the output pipeline oil volume Y2 obtained in step S46 as the output pipeline oil volume Y4;

[0054] S62. Obtain N samples that have not participated in training from the historical experience database as training samples;

[0055] S63. Adjust the weight parameters in the neural network model, and train the neural network model using the training samples in step S62;

[0056] The input data of the neural network model are carbon dioxide injection parameters and underground environmental parameters;

[0057] The output data of the neural network model is the output oil volume of the output pipeline;

[0058] S64. Input the underground environmental parameters in step S12 and the carbon dioxide injection parameters in step S2 into the trained neural network model in step S63 to obtain a new output pipeline oil volume Y2;

[0059] S65. Repeat steps S61 to S65 until the error value between Y2 and Y3 is less than the preset threshold value T2, and obtain the final neural network model and the final output pipeline oil volume Y4.

[0060] The step S7 calculates the output oil volume Y5 of the crude oil output pipeline according to Y4 and Y1, and specifically includes:

[0061] Y5=λ3Y1+λ4Y4

[0062] Among them, λ3 is the third weight value; λ4 is the fourth weight value.

[0063] The step S8 adjusts the carbon dioxide injection parameters to obtain a dynamic curve of the oil output volume of the crude oil output pipeline, and obtains the optimal carbon dioxide injection parameters according to the dynamic curve, specifically including:

[0064] Adjust the carbon dioxide injection parameters, obtain different crude oil output pipeline output oil volumes according to different carbon dioxide injection parameters, make a dynamic curve according to multiple crude oil output pipeline output oil volumes obtained under different carbon dioxide injection parameters, and obtain the optimal carbon dioxide injection parameters according to the dynamic curve.

[0065] The beneficial effects of the present invention are as follows:

[0066] 1) The present invention simulates the process of carbon dioxide oil recovery by combining the digital twin model with the particle swarm algorithm, and performs a preliminary calculation of the output oil volume of the oil pipeline, so that the oil recovery process is dynamic and observable; at the same time, the digital twin model is used to simulate the underground environment to the maximum extent, and the particle swarm algorithm is used to perform a refined simulation calculation of the oil volume based on the temperature, pressure, crude oil reserves and the amount of carbon dioxide at different underground locations, rather than a rough calculation based on the total amount of carbon dioxide and the total amount of crude oil, thereby improving the accuracy of the output crude oil calculation.

[0067] 2) The present invention constructs a neural network model, calculates the crude oil output according to the neural network model, and calculates the crude oil output by similarity calculation of current injection parameters, underground environmental parameters and sample data in a historical experience database, and uses the error between the two as a condition for adjusting the neural network model, so that the neural network model can be iteratively optimized, thereby further improving the accuracy of crude oil output calculation.

[0068] 3) The present invention combines the crude oil output obtained by simulating and calculating the digital twin model with the particle swarm algorithm with the crude oil output obtained by the output of the neural network model optimized by the similarity calculation results to obtain the final crude oil output, making the calculation result more accurate and providing an accurate data basis for adjusting the carbon dioxide injection parameters to obtain the optimal oil production.

[0069] 4) The present invention adjusts the carbon dioxide injection parameters to display the crude oil output curve to obtain the optimal carbon dioxide injection parameters, making the calculation result more accurate.

[0070] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above description and other purposes, features and advantages of the present invention more obvious and easy to understand, the preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0072] Figure 1 The present invention is a flow chart of a method for oil recovery in bottom water sandstone reservoirs. DETAILED DESCRIPTION

[0073] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0074] In the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be connected, detachably connected, or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0075] The technical solution adopted by the present invention to solve the above technical problems is:

[0076] A method for flooding a bottom water sandstone reservoir, the method comprising the following steps:

[0077] S1. Build digital twin models of carbon dioxide transmission pipelines, crude oil output pipelines, and underground environments;

[0078] The step S1 constructs a digital twin model of a carbon dioxide transmission pipeline, a crude oil output pipeline, and an underground environment, specifically including:

[0079] S11. construct digital twin models of the carbon dioxide transmission pipeline and the crude oil output pipeline according to the structural parameters and material parameters of the carbon dioxide transmission pipeline and the crude oil output pipeline;

[0080] S12. Constructing a digital twin model of the underground environment according to the underground environment parameters to form a connected digital twin model including a carbon dioxide transmission pipeline, a crude oil output pipeline, and an underground environment;

[0081] The construction of the digital twin model of the underground environment specifically includes:

[0082] Acquire the three-dimensional structure data of the underground environment in advance, as well as the temperature parameters, pressure parameters, crude oil reserves, water content, rock structure, and geological parameters of each location point;

[0083] The geological parameters include permeability, saturation, temperature, relative permeability, mass fraction, density, porosity, thermal conductivity, and rock layer thickness.

[0084] The digital twin model is constructed by using existing common software;

[0085] The structural parameters and material parameters of the carbon dioxide transmission pipeline and crude oil output pipeline, the three-dimensional structural data of the underground environment and the temperature parameters, pressure parameters, crude oil reserves, water content, rock structure, and geological parameters of each location point are all obtained by pre-measurement;

[0086] S2. Initialize carbon dioxide injection parameters, the injection parameters including injection amount, injection speed, and injection frequency;

[0087] S3. Use particle swarm algorithm to simulate the carbon dioxide flooding process and obtain the output oil volume Y1 of the crude oil output pipeline;

[0088] The step S3 uses a particle swarm algorithm to simulate the carbon dioxide flooding process and obtain the output oil volume Y1 of the crude oil output pipeline, which specifically includes:

[0089] S31. Calculate the time when the carbon dioxide reaches the bottom of the delivery pipeline based on the length of the carbon dioxide delivery pipeline and the carbon dioxide injection rate;

[0090] S32. When the carbon dioxide reaches the bottom of the pipeline, the particle swarm algorithm is started to construct a carbon dioxide particle swarm, and a crude oil particle swarm is constructed at the crude oil position in the digital twin model;

[0091] The number of the carbon dioxide particle group is determined according to the carbon dioxide injection amount;

[0092] The number of particles in the crude oil particle group at the crude oil location is determined according to the crude oil reserves at the crude oil location;

[0093] The number of carbon dioxide particle groups is determined according to the carbon dioxide injection amount, and the number of particles in the crude oil particle group at the crude oil position is determined according to the crude oil reserves at the crude oil position. Specifically, the number of particles in the particle group is calculated using a preset conversion calculation method.

[0094] S33. Initialize the parameters of the carbon dioxide particle group, the parameters include the direction of movement and the speed of movement; initialize the parameters of the crude oil particle group, the parameters include the direction of movement, the speed of movement, the expansion rate, and the viscosity;

[0095] S34. When the carbon dioxide particles reach the position of the crude oil particle group, the expansion rate and viscosity of each crude oil particle in the crude oil particle group, and the number of particles in the remaining carbon dioxide particle group are calculated according to the temperature parameter, pressure parameter, number of particles in the carbon dioxide particle group, and number of particles in the crude oil particle group at the current position;

[0096] The expansion rate and viscosity of the crude oil particles are calculated using methods in the prior art and are not further limited herein.

[0097] The number of particles in the remaining carbon dioxide particle group is the number of particles in the carbon dioxide particle group remaining after the carbon dioxide particle group reacts with the crude oil particle group at the current position;

[0098] A reaction calculation model between carbon dioxide particles and crude oil particles is pre-set in the digital twin model.

[0099] S35. Calculate the flow rate of the crude oil particle group according to the geological parameters, the expansion rate and viscosity of each crude oil particle in the particle group;

[0100] The crude oil particle group flow rate is the number of crude oil particles that can flow to the crude oil output pipeline at the current position;

[0101] The method for calculating the flow rate of crude oil particle groups based on geological parameters, the expansion rate and viscosity of each crude oil particle in the particle group adopts the method in the prior art and is not further limited here.

[0102] S36. When the remaining carbon dioxide particle group reaches the position of the next crude oil particle group, repeat steps S34-S35 to obtain the flow rate of the crude oil particle group at the current position;

[0103] S37. Calculate the output oil volume Y1 of the crude oil output pipeline according to the flow volume of the crude oil particle group at each crude oil particle group position in the underground environment.

[0104] The calculation of the output oil volume of the crude oil output pipeline according to the flow volume of the crude oil particle groups at the positions of each crude oil particle group in the underground environment is obtained by calculation according to a preset conversion calculation method of the number of particle groups and the oil volume.

[0105] S4. Using the neural network model, the crude oil output pipeline output oil volume Y2 is obtained according to the carbon dioxide injection parameters and underground environmental parameters;

[0106] The step S4 uses a neural network model to obtain the output oil volume Y2 of the crude oil output pipeline according to the carbon dioxide injection parameters and the underground environmental parameters, and specifically includes:

[0107] S41. Construct a neural network model, obtain the carbon dioxide injection parameters, underground environmental parameters, and corresponding output pipeline oil volume data in the historical experience database, and take each carbon dioxide injection parameter, underground environmental parameter, and corresponding output pipeline oil volume data as a sample; select N samples from the historical experience database;

[0108] S42. construct training samples and test samples from N samples in a ratio of 7:3;

[0109] S43. Using the training samples in step S42 to train the neural network model;

[0110] The input data of the neural network model are carbon dioxide injection parameters and underground environmental parameters;

[0111] The output data of the neural network model is the output oil volume of the output pipeline;

[0112] S44. Testing the neural network model using the test sample in step S42;

[0113] S45. When the difference between the test result in step S44 and the actual result corresponding to the test sample exceeds the preset threshold value T, the weight parameters in the neural network model are adjusted, and N samples are obtained again from the remaining samples in the historical experience database, and steps S42 to S45 are repeated until the difference between the test result and the actual result corresponding to the test sample is less than the preset threshold value T, and a trained neural network model is obtained;

[0114] S46. Obtain the underground environmental parameters in step S12 and the carbon dioxide injection parameters in step S2, and input the underground environmental parameters and the carbon dioxide injection parameters into the trained neural network model to obtain the output oil volume Y2 of the crude oil output pipeline.

[0115] S5. Based on the oil production data in the historical experience database, the crude oil output pipeline output volume Y3 is obtained by similarity calculation method;

[0116] The step S5 uses a similarity calculation method to obtain the output oil volume Y3 of the crude oil output pipeline based on the oil production data in the historical experience database, and specifically includes:

[0117] S51. Obtaining CO2 injection parameters, underground environmental parameters, and corresponding output pipeline oil output data from the historical experience database; and taking each CO2 injection parameter, underground environmental parameter, and corresponding output pipeline oil output data as a sample;

[0118] S52. Obtaining the underground environmental parameters in step S12 and the carbon dioxide injection parameters in step S2;

[0119] S53. Compare the carbon dioxide injection parameters and underground environmental parameters obtained in step S52 with the carbon dioxide injection parameters and underground environmental parameters of each sample obtained in step S51 to obtain a similarity r. When the similarity r is higher than a preset threshold value T1, the output pipeline oil volume data corresponding to the sample is used as the crude oil output pipeline output oil volume Y3.

[0120] The step S53 compares the carbon dioxide injection parameters and underground environmental parameters obtained in step S52 with the carbon dioxide injection parameters and underground environmental parameters of each sample obtained in step S51 to obtain a similarity r, specifically including:

[0121] S531. Obtaining the similarity r1 between the carbon dioxide injection parameter obtained in step S52 and the carbon dioxide injection parameter of each sample obtained in step S51;

[0122] S532. Obtaining the similarity r2 between the underground environmental parameters obtained in step S52 and the underground environmental parameters obtained in step S51;

[0123] S533. Obtain the similarity r in step S53 according to the similarity r1 and the similarity r2.

[0124] The step S533 obtains the similarity r in the step S53 according to the similarity r1 and the similarity r2, specifically including:

[0125] r=λ1r1+λ2r2

[0126] Among them, λ1 is the first weight value; λ2 is the second weight value.

[0127] Furthermore, the first weight and the second weight can be flexibly set based on experience.

[0128] S6. Optimize the neural network model according to the error between Y3 and Y2 to obtain the optimized crude oil output pipeline output volume Y4 output by the neural network model;

[0129] The step S6 optimizes the neural network model according to the error between Y3 and Y2 to obtain the optimized crude oil output pipeline output oil volume Y4 output by the neural network model, which specifically includes:

[0130] S61. Calculate the error value between Y3 and Y2. When the error value is greater than or equal to the preset threshold value T2, execute steps S62 to S65. When the error value is less than the preset threshold value T2, do not perform the neural network model optimization, and directly use the output pipeline oil volume Y2 obtained in step S46 as the output pipeline oil volume Y4;

[0131] S62. Obtain N samples that have not participated in training from the historical experience database as training samples;

[0132] S63. Adjust the weight parameters in the neural network model, and train the neural network model using the training samples in step S62;

[0133] The input data of the neural network model are carbon dioxide injection parameters and underground environmental parameters;

[0134] The output data of the neural network model is the output oil volume of the output pipeline;

[0135] S64. Input the underground environmental parameters in step S12 and the carbon dioxide injection parameters in step S2 into the trained neural network model in step S63 to obtain a new output pipeline oil volume Y2;

[0136] S65. Repeat steps S61 to S65 until the error value between Y2 and Y3 is less than the preset threshold value T2, and obtain the final neural network model and the final output pipeline oil volume Y4.

[0137] S7. Calculate the crude oil output pipeline output volume Y5 based on Y4 and Y1;

[0138] The step S7 calculates the output oil volume Y5 of the crude oil output pipeline according to Y4 and Y1, and specifically includes:

[0139] Y5=λ3Y1+λ4Y4

[0140] Among them, λ3 is the third weight value; λ4 is the fourth weight value.

[0141] Furthermore, the third weight and the fourth weight can be flexibly set based on experience.

[0142] S8. Adjust the carbon dioxide injection parameters to obtain a dynamic curve of the oil output volume of the crude oil output pipeline, and obtain the optimal carbon dioxide injection parameters according to the dynamic curve.

[0143] The step S8 specifically includes:

[0144] Adjust the carbon dioxide injection parameters, obtain different crude oil output pipeline output oil volumes according to different carbon dioxide injection parameters, make a dynamic curve according to multiple crude oil output pipeline output oil volumes obtained under different carbon dioxide injection parameters, and obtain the optimal carbon dioxide injection parameters according to the dynamic curve.

[0145] The advantages of the present invention are:

[0146] 1) The present invention simulates the process of carbon dioxide oil recovery by combining the digital twin model with the particle swarm algorithm, and performs a preliminary calculation of the output oil volume of the oil pipeline, so that the oil recovery process is dynamic and observable; at the same time, the digital twin model is used to simulate the underground environment to the maximum extent, and the particle swarm algorithm is used to perform a refined simulation calculation of the oil volume based on the temperature, pressure, crude oil reserves and the amount of carbon dioxide at different underground locations, rather than a rough calculation based on the total amount of carbon dioxide and the total amount of crude oil, thereby improving the accuracy of the output crude oil calculation.

[0147] 2) The present invention constructs a neural network model, calculates the crude oil output according to the neural network model, and calculates the crude oil output by similarity calculation of current injection parameters, underground environmental parameters and sample data in a historical experience database, and uses the error between the two as a condition for adjusting the neural network model, so that the neural network model can be iteratively optimized, thereby further improving the accuracy of crude oil output calculation.

[0148] 3) The present invention combines the crude oil output obtained by simulating and calculating the digital twin model with the particle swarm algorithm with the crude oil output obtained by the output of the neural network model optimized by the similarity calculation results to obtain the final crude oil output, making the calculation result more accurate and providing an accurate data basis for adjusting the carbon dioxide injection parameters to obtain the optimal oil production.

[0149] 4) The present invention adjusts the carbon dioxide injection parameters to display the crude oil output curve to obtain the optimal carbon dioxide injection parameters, making the calculation result more accurate.

[0150] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for flooding oil from a bottom water sandstone reservoir, characterized in that: The method comprises the following steps: S1. Build digital twin models of carbon dioxide transmission pipelines, crude oil output pipelines, and underground environments; S2. Initialize carbon dioxide injection parameters, the injection parameters including injection amount, injection speed, and injection frequency; S3. Use particle swarm algorithm to simulate the carbon dioxide flooding process and obtain the output oil volume Y1 of the crude oil output pipeline; S4. Using the neural network model, the crude oil output pipeline output oil volume Y2 is obtained according to the carbon dioxide injection parameters and underground environmental parameters; S5. Based on the oil production data in the historical experience database, the crude oil output pipeline output volume Y3 is obtained by similarity calculation method; S6. Optimize the neural network model according to the error between Y3 and Y2 to obtain the optimized crude oil output pipeline output volume Y4 output by the neural network model; S7. Calculate the crude oil output pipeline output volume Y5 based on Y4 and Y1; S8. Adjust the carbon dioxide injection parameters to obtain a dynamic curve of the crude oil output pipeline output oil volume, and obtain the optimal carbon dioxide injection parameters according to the dynamic curve; The step S1 specifically includes: S11. construct digital twin models of the carbon dioxide transmission pipeline and the crude oil output pipeline according to the structural parameters and material parameters of the carbon dioxide transmission pipeline and the crude oil output pipeline; S12. Constructing a digital twin model of the underground environment according to the underground environment parameters to form a connected digital twin model including a carbon dioxide transmission pipeline, a crude oil output pipeline, and an underground environment; The construction of the digital twin model of the underground environment specifically includes: Acquire the three-dimensional structure data of the underground environment in advance, as well as the temperature parameters, pressure parameters, crude oil reserves, water content, rock structure, and geological parameters of each location point; The geological parameters include permeability, saturation, temperature, relative permeability, mass fraction, density, porosity, thermal conductivity, and rock thickness; The step S3 specifically includes: S31. Calculate the time when the carbon dioxide reaches the bottom of the delivery pipeline based on the length of the carbon dioxide delivery pipeline and the carbon dioxide injection rate; S32. When the carbon dioxide reaches the bottom of the pipeline, the particle swarm algorithm is started to construct a carbon dioxide particle swarm, and a crude oil particle swarm is constructed at the crude oil position in the digital twin model; The number of the carbon dioxide particle group is determined according to the carbon dioxide injection amount; The number of particles in the crude oil particle group at the crude oil location is determined according to the crude oil reserves at the crude oil location; S33. Initialize the parameters of the carbon dioxide particle group, the parameters include the direction of movement and the speed of movement; initialize the parameters of the crude oil particle group, the parameters include the direction of movement, the speed of movement, the expansion rate, and the viscosity; S34. When the carbon dioxide particles reach the position of the crude oil particle group, the expansion rate and viscosity of each crude oil particle in the crude oil particle group, and the number of particles in the remaining carbon dioxide particle group are calculated according to the temperature parameter, pressure parameter, number of particles in the carbon dioxide particle group, and number of particles in the crude oil particle group at the current position; The number of particles in the remaining carbon dioxide particle group is the number of particles in the carbon dioxide particle group remaining after the carbon dioxide particle group reacts with the crude oil particle group at the current position; S35. Calculate the flow rate of the crude oil particle group according to the geological parameters, the expansion rate and viscosity of each crude oil particle in the particle group; The crude oil particle group flow rate is the number of crude oil particles that can flow to the crude oil output pipeline at the current position; S36. When the remaining carbon dioxide particle group reaches the position of the next crude oil particle group, repeat steps S34-S35 to obtain the flow rate of the crude oil particle group at the current position; S37. Calculate the output oil volume Y1 of the crude oil output pipeline according to the flow of crude oil particle groups at the positions of each crude oil particle group in the underground environment; The step S5 specifically includes: S51. Obtaining CO2 injection parameters, underground environmental parameters, and corresponding output pipeline oil output data from the historical experience database; and taking each CO2 injection parameter, underground environmental parameter, and corresponding output pipeline oil output data as a sample; S52. Obtaining the underground environmental parameters in step S12 and the carbon dioxide injection parameters in step S2; S53. Compare the carbon dioxide injection parameters and underground environmental parameters obtained in step S52 with the carbon dioxide injection parameters and underground environmental parameters of each sample obtained in step S51 to obtain a similarity r. When the similarity r is higher than a preset threshold value T1, the output pipeline oil volume data corresponding to the sample is used as the crude oil output pipeline output oil volume Y3; The step S53 compares the carbon dioxide injection parameters and underground environmental parameters obtained in step S52 with the carbon dioxide injection parameters and underground environmental parameters of each sample obtained in step S51 to obtain a similarity r, specifically including: S531. Obtaining the similarity r1 between the carbon dioxide injection parameter obtained in step S52 and the carbon dioxide injection parameter of each sample obtained in step S51; S532. Obtaining the similarity r2 between the underground environmental parameters obtained in step S52 and the underground environmental parameters obtained in step S51; S533. Obtain the similarity r in step S53 according to the similarity r1 and the similarity r2; The step S533 obtains the similarity r in the step S53 according to the similarity r1 and the similarity r2, specifically including: r=λ1r1+λ2r2 Among them, λ1 is the first weight; λ2 is the second weight; The step S8 specifically includes: Adjust the carbon dioxide injection parameters, obtain different crude oil output pipeline output oil volumes according to different carbon dioxide injection parameters, make a dynamic curve according to multiple crude oil output pipeline output oil volumes obtained under different carbon dioxide injection parameters, and obtain the optimal carbon dioxide injection parameters according to the dynamic curve.

2. The method for flooding oil from a bottom water sandstone reservoir according to claim 1, characterized in that: The step S4 uses a neural network model to obtain the output oil volume Y2 of the crude oil output pipeline according to the carbon dioxide injection parameters and the underground environmental parameters, and specifically includes: S41. Construct a neural network model, obtain the carbon dioxide injection parameters, underground environmental parameters, and corresponding output pipeline oil volume data in the historical experience database, and take each carbon dioxide injection parameter, underground environmental parameter, and corresponding output pipeline oil volume data as a sample; select N samples from the historical experience database; S42. construct training samples and test samples from N samples in a ratio of 7:3; S43. Using the training samples in step S42 to train the neural network model; The input data of the neural network model are carbon dioxide injection parameters and underground environmental parameters; The output data of the neural network model is the output oil volume of the output pipeline; S44. Testing the neural network model using the test sample in step S42; S45. When the difference between the test result in step S44 and the actual result corresponding to the test sample exceeds the preset threshold value T, the weight parameters in the neural network model are adjusted, and N samples are obtained again from the remaining samples in the historical experience database, and steps S42 to S45 are repeated until the difference between the test result and the actual result corresponding to the test sample is less than the preset threshold value T, and a trained neural network model is obtained; S46. Obtain the underground environmental parameters in step S12 and the carbon dioxide injection parameters in step S2, and input the underground environmental parameters and the carbon dioxide injection parameters into the trained neural network model to obtain the output oil volume Y2 of the crude oil output pipeline.

Citation Information

Patent Citations

  • Steam flooding injection and production scheme determining method based on stochastic disturbance particle swarm optimization

    CN102606120A

  • Carbon dioxide huffing-puffing oil extraction method and device

    CN111749658A

  • Method for optimizing CO2 huff-puff cycle injection volume by numerical simulation

    CN112145137A

  • Method for establishing CO2 huff and puff effect prediction model and CO2 huff and puff effect evaluation method

    CN113592194A

  • Logging curve reconstruction method based on nonlinear autoregressive neural network model

    CN113947198A