Method, device, equipment, medium and program for optimizing on-way flow profile of horizontal well
The genetic algorithm is used to optimize the skin coefficient distribution of horizontal wells, which solves the problem of uneven flow along the horizontal well, extends the oil production period and improves the recovery rate.
Patent Information
- Application Number
- CN202310264956.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-14
- Publication Date
- 2024-09-20
AI Technical Summary
Existing technology is difficult to effectively solve the problem of uneven flow distribution along the horizontal well, resulting in premature water breakthrough and low recovery rate in the oil well.
An optimization method based on a genetic algorithm is used to divide physical properties, establish an initial flow model, and optimize the distribution of skin coefficients to generate an optimized flow profile to ensure balanced flow in each well section and avoid the occurrence of water cones in high-permeability sections.
The waterless oil production period and the horizontal well production life are extended, the ultimate recovery rate is improved, and the flow rate along the horizontal well is evenly distributed.
Smart Images

Figure CN118673783A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil and gas field development, and in particular to a method, device, electronic equipment, medium and program for optimizing a flow profile along a horizontal well. Background Art
[0002] Horizontal wells are an important technology for improving oil and gas field recovery. With the advancement of technology, the production cost of horizontal wells has been greatly reduced. Horizontal wells have developed rapidly with their unique effects and advantages. The use of horizontal wells to exploit oil reservoirs is becoming more and more widespread. Whether horizontal wells can be reasonably designed and their production capacity can be correctly predicted has become a key issue affecting the expected development effect of oil fields.
[0003] For heterogeneous reservoirs, because there are large differences in flow rates at different locations, the flow rate in high permeability layers is large, and water cones are prone to occur, resulting in premature water breakthrough and premature scrapping of oil wells. Nowadays, the production capacity is low. Among them, there are analytical, semi-analytical and numerical simulation methods for calculating the production capacity of horizontal wells, but none of them solves the problem of uneven flow distribution along the oil and gas fields. Therefore, how to optimize the flow profile along the way has become an urgent problem to be solved. Summary of the invention
[0004] In view of the above problems, embodiments of the present invention provide a method, device, electronic equipment, medium and program for optimizing the flow profile along the horizontal well.
[0005] In a first aspect, an embodiment of the present invention provides a method for optimizing a flow profile along a horizontal well, comprising:
[0006] Performing physical property division on the target horizontal well to obtain segmented horizontal wells of the target horizontal well;
[0007] Establishing an initial flow model of the segmented horizontal well, configuring flow parameters of the initial flow model, and obtaining an intermediate flow model of the initial flow model;
[0008] Generate an initial flow profile of the segmented horizontal well using a preset skin coefficient distribution and the intermediate flow model, optimize parameters of the intermediate flow model according to a genetic algorithm and the initial flow profile, and obtain an optimized flow model;
[0009] The acid distribution rule of the target horizontal well is determined according to the optimized flow model, the flow uniform value of the target horizontal well is generated according to the acid distribution rule, and the optimized flow profile of the target horizontal well is determined using the flow uniform value.
[0010] According to an embodiment of the present invention, the step of establishing the initial flow model of the segmented horizontal well includes:
[0011] Marking the coordinates of the segmented horizontal well to obtain a marked horizontal well of the segmented horizontal well;
[0012] Generate the instantaneous point source value of the marked horizontal well, and use the preset reservoir pressure drop algorithm and the instantaneous point source value to build the initial flow model of the marked horizontal well, wherein the preset reservoir pressure drop algorithm is:
[0013]
[0014] Among them, A ij (x i ,y i ,z i ,t) is the jth segment horizontal well causing the reservoir to be at point (x i ,y i ,z i ) at production time t, (x i ,y i ,z i ) is the i-th point in space, i is the point identifier in space, t is the production time, j is the identifier of the segmented horizontal well, indicating the j-th segmented horizontal well, φ is the porosity of the reservoir, C t is the comprehensive compressibility of the fluid in the reservoir, n seg is the total number of horizontal wells in the segment, y j,1 is the first position mark of the jth segment horizontal well, y j,2 is the second position mark of the j-th segment horizontal well, (x 0 ,y 0 ,z 0 ) is the coordinate of a fixed point in the reservoir, S 1 (x i ,x 0 ,τ) is the oil reservoir at point (x 0 ,y 0 ,z 0 ) is the instantaneous point source value in the x-axis direction, S 2 (y i ,y 0 ,τ) is the oil reservoir at point (x 0 ,y 0 ,z 0 ) is the instantaneous point source value in the y-axis direction, S 3 (z i ,z 0 ,τ) is the oil reservoir at point (x 0 ,y 0 ,z 0 ) is the instantaneous point source value in the z-axis direction, y 0 is the coordinate of the reservoir in the y-axis direction, τ is the time variable, is a double integral, sj is the skin coefficient of the jth segmented horizontal well, μ is the viscosity of the fluid, K j,x is the permeability of the reservoir in the x direction at the location of the jth segmented horizontal well, K j,z is the permeability of the reservoir in the z direction at the location of the jth segmented horizontal well, L j is the length of the jth segmented horizontal well.
[0015] According to an embodiment of the present invention, generating the instantaneous point source value of the marked horizontal well includes:
[0016] The closed instantaneous point source value of the marked horizontal well is generated according to a preset closed instantaneous point source algorithm, wherein the preset closed instantaneous point source algorithm is:
[0017]
[0018] Among them, S(δ i ,δ 0 ,τ) is the closed instantaneous point source value of the marked horizontal well, δ i is the direction mark of the i-th spatial point, δ 0 is the coordinate of the reservoir, τ is the time variable, p is the reservoir parameter, k represents a natural number, K δ,j is the permeability of the reservoir in the δ direction at the location of the jth segmented horizontal well, j is the identifier of the segmented horizontal well, indicating the jth segmented horizontal well, x indicates the x direction of the segmented horizontal well, y indicates the y direction of the segmented horizontal well, z indicates the z direction of the segmented horizontal well, φ is the porosity of the reservoir, C t is the comprehensive compressibility of the fluid in the reservoir, and μ is the viscosity of the fluid;
[0019] The bottom water instantaneous point source value of the marked horizontal well is generated according to a preset bottom water instantaneous point source algorithm, wherein the preset bottom water instantaneous point source algorithm is:
[0020]
[0021] Among them, S(z i ,z 0 ,τ) is the instantaneous point source value of the bottom water of the marked horizontal well, h is the reservoir thickness, k represents a natural number, z i is the vertical coordinate of the i-th point in space, z 0 is the coordinate of the reservoir in the z-axis direction, τ is the time variable, φ is the porosity of the reservoir, C t is the comprehensive compressibility coefficient of the fluid in the reservoir, μ is the viscosity of the fluid, K z,j is the permeability of the reservoir in the z direction at the location of the i-th segmented horizontal well;
[0022] The reservoir type in which the marked horizontal well is located is determined, and the instantaneous point source value of the marked horizontal well is generated according to the reservoir type, the closed instantaneous point source value and the bottom water instantaneous point source value.
[0023] According to an embodiment of the present invention, configuring traffic parameters of the initial traffic model to obtain an intermediate traffic model of the initial traffic model includes:
[0024] The spatial pressure drop of the target horizontal well is generated using a preset spatial pressure drop algorithm, wherein the preset spatial pressure drop algorithm is:
[0025]
[0026] Where ΔP i is the i-th spatial point (x i ,y i ,z i ) space pressure drop, q j is the flow rate of the jth segmented horizontal well, j is the identifier of the segmented horizontal well, n seg is the total number of horizontal wells in the segment, A ij (x i ,y i ,z i ,t) is the jth segment horizontal well causing the reservoir to be at point (x i ,y i ,z i ) at production time t, where i is the identifier of the spatial point;
[0027] The well section pressure drop of the target horizontal well is generated using a preset well section pressure drop algorithm, wherein the preset well section pressure drop algorithm is:
[0028]
[0029] Among them, P j is the wellbore pressure of the jth segmented horizontal well, P j+1 is the wellbore pressure of the j+1th horizontal well, f j is the friction factor of the jth segmented horizontal well, ρ is the fluid density, L j is the length of the jth segmented horizontal well, L j+1 is the length of the j+1th segmented horizontal well, q a,j is the main flow rate of the jth segment horizontal wellbore, q j is the flow rate of the jth segmented horizontal well, D is the wellbore diameter of the target horizontal well, n seg is the total number of the segmented horizontal wells, and j is the identifier of the segmented horizontal well;
[0030] The wellbore variable of the segmented horizontal well is determined according to the spatial pressure drop, the well section pressure drop and a preset flow superposition algorithm, wherein the preset flow superposition algorithm is:
[0031]
[0032] Among them, Q total is the total flow rate of the target horizontal well, n seg is the total number of the segmented horizontal wells, j is the identifier of the segmented horizontal well, q j is the flow rate of the jth segmented horizontal well;
[0033] The flow parameters of the initial flow model are configured using the wellbore variables to obtain an intermediate flow model of the initial flow model.
[0034] According to an embodiment of the present invention, the step of performing parameter optimization on the intermediate flow model according to the genetic algorithm and the initial flow profile to obtain an optimized flow model includes:
[0035] S11, constructing the fitness function of the intermediate traffic model, wherein the fitness function is
[0036]
[0037] in, is the minimum target difference between the maximum flow section and the minimum flow section in the segmented horizontal well, s 1 is the skin factor of the first segmented horizontal well, s 2 is the skin factor of the second segmented horizontal well, It is nth seg The skin factor of a segmented horizontal well, q 1 is the flow rate of the first segmented horizontal well, q 2 is the flow rate of the second segmented horizontal well, It is nth seg The flow rate of a segmented horizontal well, L 1 is the length of the first segmented horizontal well, L 2 is the length of the second segmented horizontal well, It is nth seg The length of the segmented horizontal well, max(*) is the maximum value function, min(*) is the minimum value function, n seg is the total number of horizontal wells in the segment;
[0038] S12, performing cross-variation processing on the preset skin coefficient distribution according to the fitness function and the initial flow profile to obtain a standard skin coefficient distribution;
[0039] S13, calculating the standard blending fitness of the standard skin coefficient distribution, and comparing the standard blending fitness with a preset fitness threshold;
[0040] S14. When the standard allocation fitness is greater than or equal to the preset fitness threshold, repeat steps S12-S13. When the standard allocation fitness is greater than or equal to the preset fitness threshold, end the training and obtain the optimized traffic model.
[0041] According to an embodiment of the present invention, determining the acid distribution rule of the target horizontal well according to the optimized flow model includes:
[0042] Determine the optimized skin coefficient distribution of the segmented horizontal well according to the optimized flow model, and select the maximum skin coefficient in the optimized skin coefficient distribution as the benchmark skin coefficient;
[0043] The acid distribution rule of the target horizontal well is generated according to the benchmark skin coefficient and the preset acid distribution amount formula, wherein the preset acid distribution amount formula is:
[0044]
[0045] Among them, Q acid,j is the acid distribution amount of the j-th segmented horizontal well, Q acid,total is the total acid distribution amount of the target horizontal well, s j is the skin factor of the jth segmented horizontal well, s max is the reference skin factor of the target horizontal well, j is the identifier of the segmented horizontal well, and n seg is the total number of horizontal wells in the segment.
[0046] In a second aspect, an embodiment of the present invention provides a device for optimizing flow profile along a horizontal well, characterized in that it comprises:
[0047] A physical property division module, used for performing physical property division on a target horizontal well to obtain segmented horizontal wells of the target horizontal well;
[0048] A parameter configuration module, used to establish an initial flow model of the segmented horizontal well, configure flow parameters of the initial flow model, and obtain an intermediate flow model of the initial flow model;
[0049] A parameter optimization module, used to generate an initial flow profile of the segmented horizontal well using a preset skin coefficient distribution and the intermediate flow model, and to optimize parameters of the intermediate flow model according to a genetic algorithm and the initial flow profile to obtain an optimized flow model;
[0050] A flow profile module is used to determine the acid distribution rule of the target horizontal well according to the optimized flow model, generate the flow uniform value of the target horizontal well according to the acid distribution rule, and determine the optimized flow profile of the target horizontal well using the flow uniform value.
[0051] In a third aspect, an embodiment of the present invention provides an electronic device, comprising:
[0052] processor;
[0053] a memory for storing instructions executable by the processor;
[0054] Wherein, the processor is configured to execute the instructions to implement a method for optimizing the flow profile along the horizontal well as described in the first aspect.
[0055] In a fourth aspect, an embodiment of the present invention provides a medium having a computer program stored thereon, which, when executed by a processor, implements a method for optimizing a flow profile along a horizontal well as described in the first aspect.
[0056] Compared with the prior art, the above technical solution of the present invention has the following beneficial effects:
[0057] In order to solve the problem of uneven flow rate at various locations, the embodiment of the present invention optimizes the flow rate along the horizontal well by introducing the skin coefficient, takes the difference between the maximum flow rate and the minimum flow rate of each horizontal well section as the fitness function, and adopts a genetic algorithm to optimize the distribution of the skin coefficient along the way, so that the maximum flow rate and the minimum flow rate of each well section are minimized, thereby controlling the balanced distribution of the flow in each section. Based on the distribution of the skin coefficient, the amount of acid used for acidizing can be further calculated, and non-uniform acidizing is proposed to make the flow rate along the horizontal well evenly distributed, avoid the generation of water cones in high permeability layers, extend the water-free oil production period and the production life of the horizontal well, and improve the ultimate recovery rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0059] Figure 1 The flowchart of the method for optimizing the flow profile along the horizontal well according to the first embodiment of the present invention is shown;
[0060] Figure 2 A schematic diagram of a horizontal well model in a bottom water reservoir according to the first embodiment of the present invention is shown;
[0061] Figure 3The permeability distribution diagram along the route of the first embodiment of the present invention is shown;
[0062] Figure 4 The figure shows the flow calculation result along the route of the first embodiment of the present invention;
[0063] Figure 5 The figure shows the calculation result of the pressure along the route according to the first embodiment of the present invention;
[0064] Figure 6 The skin coefficient distribution diagram along the horizontal well of the first embodiment of the present invention is shown;
[0065] Figure 7 The diagram of acid usage along the horizontal well in Example 1 of the present invention is shown;
[0066] Figure 8 A functional module diagram showing a device for optimizing flow profile along a horizontal well according to a second embodiment of the present invention is shown;
[0067] Fig. 9 A schematic diagram of the composition structure of an electronic device for implementing the method for optimizing the flow profile along a horizontal well according to the third embodiment of the present invention is shown. DETAILED DESCRIPTION
[0068] The present disclosure is further described below in conjunction with the embodiments shown in the accompanying drawings.
[0069] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0070] The present invention proposes a method for optimizing the flow profile along the horizontal well based on artificial intelligence technology. Based on the genetic algorithm theory and combined with the model parameter optimization method, a horizontal well transient flow model is built to optimize the flow profile of the horizontal well. Compared with the traditional method, the optimization efficiency of the horizontal well flow profile based on the genetic algorithm is higher, the flow balance along the horizontal well is maintained, and the mining life of the horizontal well is extended.
[0071] Embodiment 1
[0072] like Figure 1 As shown, the present invention proposes a method for optimizing the flow profile along the horizontal well, comprising the following steps:
[0073] S1. Performing physical property division on a target horizontal well to obtain segmented horizontal wells of the target horizontal well.
[0074] In the embodiment of the present invention, the target horizontal well refers to one or more horizontal wells that are the target research object. Horizontal wells are an important technology for improving the recovery rate of oil and gas field development. They have been rapidly developed due to their unique effects and advantages, especially for the development of heterogeneous reservoirs, thin oil layer reservoirs, fault block reservoirs, low permeability oil and gas reservoirs, bottom water oil and gas reservoirs, heavy oil reservoirs and shale gas reservoirs.
[0075] In detail, the physical property division refers to dividing the target horizontal well into several segments at equal distances, that is, each horizontal segment is regarded as a small horizontal well, the first segment is the segment closest to the toe end of the horizontal well, and the last segment is the segment closest to the heel end. The last segment can be represented by the nth segment. seg Segment indicates.
[0076] S2. Establishing an initial flow model of the segmented horizontal well, configuring flow parameters of the initial flow model, and obtaining an intermediate flow model of the initial flow model.
[0077] In an embodiment of the present invention, the initial flow model of the segmented horizontal well is generated based on a preset reservoir pressure drop algorithm and an instantaneous point source algorithm, wherein the preset reservoir pressure drop algorithm is generated according to the Green function and the Newman product principle, and the instantaneous power source algorithm is divided into a closed instantaneous power source algorithm and a bottom water instantaneous power source algorithm.
[0078] In detail, the flow parameter configuration of the initial flow model refers to the use of the generated spatial pressure drop, well section pressure drop and a preset flow superposition algorithm. The flow parameters can be calculated based on the spatial pressure drop, the well section pressure drop and the preset flow superposition algorithm.
[0079] In an embodiment of the present invention, the step of establishing the initial flow model of the segmented horizontal well includes:
[0080] Marking the coordinates of the segmented horizontal well to obtain a marked horizontal well of the segmented horizontal well;
[0081] Generate the instantaneous point source value of the marked horizontal well, and use the preset reservoir pressure drop algorithm and the instantaneous point source value to build the initial flow model of the marked horizontal well, wherein the preset reservoir pressure drop algorithm is:
[0082]
[0083] Among them, A ij (x i ,y i ,z i ,t) is the jth segment horizontal well causing the reservoir to be at point (x i ,y i ,zi ) at production time t, (x i ,y i ,z i ) is the i-th point in space, i is the point identifier in space, t is the production time, j is the identifier of the segmented horizontal well, indicating the j-th segmented horizontal well, φ is the porosity of the reservoir, C t is the comprehensive compressibility of the fluid in the reservoir, n seg is the total number of horizontal wells in the segment, y j,1 is the first position mark of the jth segment horizontal well, y j,2 is the second position mark of the j-th segment horizontal well, (x 0 ,y 0 ,z 0 ) is the coordinate of a fixed point in the reservoir, S 1 (x i ,x 0 ,τ) is the oil reservoir at point (x 0 ,y 0 ,z 0 ) is the instantaneous point source value in the x-axis direction, S 2 (y i ,y 0 ,τ) is the oil reservoir at point (x 0 ,y 0 ,z 0 ) is the instantaneous point source value in the y-axis direction, S 3 (z i ,z 0 ,τ) is the oil reservoir at point (x 0 ,y 0 ,z 0 ) is the instantaneous point source value in the z-axis direction, y 0 is the coordinate of the reservoir in the y-axis direction, τ is the time variable, is a double integral, s j is the skin coefficient of the jth segmented horizontal well, μ is the viscosity of the fluid, K j,x is the permeability of the reservoir in the x direction at the location of the jth segmented horizontal well, K j,z is the permeability of the reservoir in the z direction at the location of the jth segmented horizontal well, L j is the length of the jth segmented horizontal well.
[0084] In the embodiment of the present invention, the coordinate marking refers to marking the geographical location of the segmented horizontal well according to the coordinates to distinguish different segmented horizontal wells. Assuming that the letter j represents the number of segments of the segmented horizontal well, the first segmented horizontal well at the toe of the horizontal well can be represented by j=1, and the last segmented horizontal well at the heel of the horizontal well can be represented by j=n. seg reflect.
[0085] In detail, the instantaneous point source value of the marked horizontal well is generated according to the closed instantaneous point source algorithm and the bottom water instantaneous point source algorithm.
[0086] In detail, the first position mark and the second position mark mark the position of the segmented horizontal well. For example, at t=0, the fluid of the jth well section is produced at a unit flow rate, and the well section is parallel to the y-axis, then the first position of the well section can be marked as position (x 0 ,y j,1 ,z 0 ), the second position of the well section can be identified as (x 0 ,y j,2 ,z 0 ).
[0087] In detail, due to the heterogeneity of the formation, the permeability of each segmented horizontal well is different. Assuming that the jth segmented horizontal well is L j , the permeability of the reservoir in the x direction is K j,x , the permeability in the y direction is K j,y , the permeability in the z direction is K j,z .
[0088] In detail, Figure 3 As shown, it is the average reservoir permeability distribution along the horizontal well direction. In each horizontal segment, the permeabilities in the x and y directions are equal, and the permeabilities of horizontal wells in different segments are different.
[0089] In detail, the generating of the instantaneous point source value of the marked horizontal well includes:
[0090] The closed instantaneous point source value of the marked horizontal well is generated according to a preset closed instantaneous point source algorithm, wherein the preset closed instantaneous point source algorithm is:
[0091]
[0092] Among them, S(δ i ,δ 0 ,τ) is the closed instantaneous point source value of the marked horizontal well, δ i is the direction mark of the i-th spatial point, δ 0 is the coordinate of the reservoir, τ is the time variable, p is the reservoir parameter, k represents a natural number, K δ,j is the permeability of the reservoir in the δ direction at the location of the jth segmented horizontal well, j is the identifier of the segmented horizontal well, indicating the jth segmented horizontal well, x indicates the x direction of the segmented horizontal well, y indicates the y direction of the segmented horizontal well, z indicates the z direction of the segmented horizontal well, φ is the porosity of the reservoir, C tis the comprehensive compressibility of the fluid in the reservoir, and μ is the viscosity of the fluid;
[0093] The bottom water instantaneous point source value of the marked horizontal well is generated according to a preset bottom water instantaneous point source algorithm, wherein the preset bottom water instantaneous point source algorithm is:
[0094]
[0095] Among them, S(z i ,z 0 ,τ) is the instantaneous point source value of the bottom water of the marked horizontal well, h is the reservoir thickness, k represents a natural number, z i is the vertical coordinate of the i-th point in space, z 0 is the coordinate of the reservoir in the z-axis direction, τ is the time variable, φ is the porosity of the reservoir, C t is the comprehensive compressibility coefficient of the fluid in the reservoir, μ is the viscosity of the fluid, K z,j is the permeability of the reservoir in the z direction at the location of the i-th segmented horizontal well;
[0096] The reservoir type in which the marked horizontal well is located is determined, and the instantaneous point source value of the marked horizontal well is generated according to the reservoir type, the closed instantaneous point source value and the bottom water instantaneous point source value.
[0097] In the embodiment of the present invention, the closed instantaneous point source algorithm can be concretized to close the position reservoir according to the x direction, the y direction and the z direction.
[0098] For example, the lateral closed instantaneous point source algorithm in the x direction is obtained by substituting δ=x, p=a into the preset closed instantaneous point source algorithm, wherein the lateral closed instantaneous point source algorithm is:
[0099]
[0100] Among them, S(x i ,x 0 ,τ) is the lateral closure instantaneous point source value of the marked horizontal well, x i is the direction mark of the i-th spatial point, x 0 is the coordinate of the reservoir, τ is the time variable, a is the length of the reservoir, k represents a natural number, K x,j is the permeability of the reservoir in the x direction at the location of the j-th segmented horizontal well, j is the identifier of the segmented horizontal well, indicating the j-th segmented horizontal well, x indicates the x direction of the segmented horizontal well, φ is the porosity of the reservoir, C t is the comprehensive compressibility coefficient of the fluid in the reservoir, and μ is the viscosity of the fluid.
[0101] For example, the longitudinal closed instantaneous point source algorithm in the y direction is obtained by substituting δ=y, p=b into the preset closed instantaneous point source algorithm, wherein the longitudinal closed instantaneous point source algorithm is:
[0102]
[0103] Among them, S(y i ,y 0 ,τ) is the vertical closure instantaneous point source value of the marked horizontal well, y i is the direction mark of the i-th spatial point, y 0 is the coordinate of the reservoir, τ is the time variable, b is the reservoir width, k represents a natural number, K y, is the permeability of the reservoir in the y direction at the location of the jth segmented horizontal well, j is the identifier of the segmented horizontal well, indicating the jth segmented horizontal well, y indicates the y direction of the segmented horizontal well, φ is the porosity of the reservoir, and C t is the comprehensive compressibility coefficient of the fluid in the reservoir, and μ is the viscosity of the fluid.
[0104] For example, the vertical closed instantaneous point source algorithm in the z direction is obtained by substituting δ=z into the preset closed instantaneous point source algorithm, wherein the vertical closed instantaneous point source algorithm is:
[0105]
[0106] Among them, S(z i ,z 0 ,τ) is the vertical closure instantaneous point source value of the marked horizontal well, z i is the direction mark of the i-th spatial point, z 0 is the coordinate of the reservoir, τ is the time variable, h is the reservoir thickness, k represents a natural number, K z,j is the permeability of the reservoir in the z direction at the location of the jth segmented horizontal well, j is the identifier of the segmented horizontal well, indicating the jth segmented horizontal well, z indicates the z direction of the segmented horizontal well, φ is the porosity of the reservoir, C t is the comprehensive compressibility coefficient of the fluid in the reservoir, and μ is the viscosity of the fluid.
[0107] In the embodiment of the present invention, the reservoir type includes: a closed reservoir and a bottom water reservoir. When the reservoir type is a closed reservoir, the instantaneous point source value of the marked horizontal well can be generated according to the lateral closed instantaneous point source value, the longitudinal closed instantaneous point source value and the vertical closed instantaneous point source value of the marked horizontal well; when the reservoir type is a bottom water reservoir, Figure 2As shown, it is a schematic diagram of a horizontal well model in a bottom water reservoir, in which the closed boundary, bottom water, pressure in various directions and the identification of the segmented horizontal wells of the target horizontal well are indicated. The instantaneous point source value of the marked horizontal well can be generated according to the horizontal closed instantaneous point source value, the vertical closed instantaneous point source value and the bottom water instantaneous point source value of the marked horizontal well.
[0108] In the embodiment of the present invention, configuring the traffic parameters of the initial traffic model to obtain an intermediate traffic model of the initial traffic model includes:
[0109] The spatial pressure drop of the target horizontal well is generated using a preset spatial pressure drop algorithm, wherein the preset spatial pressure drop algorithm is:
[0110]
[0111] Where ΔP i is the i-th spatial point (x i ,y i ,z i ) space pressure drop, q j is the flow rate of the jth segmented horizontal well, j is the identifier of the segmented horizontal well, n seg is the total number of horizontal wells in the segment, A ij (x i ,y i ,z i ,t) is the jth segment horizontal well causing the reservoir to be at point (x i ,y i ,z i ) at production time t, where i is the identifier of the spatial point;
[0112] The well section pressure drop of the target horizontal well is generated using a preset well section pressure drop algorithm, wherein the preset well section pressure drop algorithm is:
[0113]
[0114] Among them, P j is the wellbore pressure of the jth segmented horizontal well, P j+1 is the wellbore pressure of the j+1th horizontal well, f j is the friction factor of the jth segmented horizontal well, ρ is the fluid density, L j is the length of the jth segmented horizontal well, L j+1 is the length of the j+1th segmented horizontal well, q a,j is the main flow rate of the jth segment horizontal wellbore, q j is the flow rate of the jth segmented horizontal well, D is the wellbore diameter of the target horizontal well, n segis the total number of the segmented horizontal wells, and j is the identifier of the segmented horizontal well;
[0115] The wellbore variable of the segmented horizontal well is determined according to the spatial pressure drop, the well section pressure drop and a preset flow superposition algorithm, wherein the preset flow superposition algorithm is:
[0116]
[0117] Among them, Q total is the total flow rate of the target horizontal well, n seg is the total number of the segmented horizontal wells, j is the identifier of the segmented horizontal well, q j is the flow rate of the jth segmented horizontal well;
[0118] The flow parameters of the initial flow model are configured using the wellbore variables to obtain an intermediate flow model of the initial flow model.
[0119] In detail, the preset spatial pressure drop algorithm uses the principle of time-space superposition, and the preset well section pressure drop algorithm is because the flow rate in the wellbore gradually increases from the toe end to the heel end of the target horizontal well. Considering the flow of fluid in the horizontal wellbore, there is a pressure drop between each well section.
[0120] In detail, the wellbore variables of the segmented horizontal well are determined according to the spatial pressure drop, the well section pressure drop and the preset flow superposition algorithm because the preset spatial pressure drop algorithm, the preset well section pressure drop algorithm and the preset flow superposition algorithm can generate 2n seg equation, so we can solve unknown quantities, among which,
[0121] The unknown quantity is n seg The wellbore pressure and n seg Wellbore flow rate.
[0122] S3. Generate an initial flow profile of the segmented horizontal well using a preset skin coefficient distribution and the intermediate flow model, and optimize parameters of the intermediate flow model according to a genetic algorithm and the initial flow profile to obtain an optimized flow model.
[0123] In an embodiment of the present invention, the preset skin coefficient distribution can be randomly generated, and the skin coefficient in the preset skin coefficient distribution is assigned to the segmented horizontal well through a genetic algorithm, because the skin coefficient can control the uniform distribution of flow along the horizontal well.
[0124] In an embodiment of the present invention, the initial flow profile of the segmented horizontal well is generated by calculating the wellbore flow rate based on a determined skin coefficient distribution; and the parameter optimization refers to optimizing the preset skin coefficient distribution.
[0125] In the embodiment of the present invention, the step of optimizing the parameters of the intermediate flow model according to the genetic algorithm and the initial flow profile to obtain the optimized flow model includes:
[0126] S11, constructing the fitness function of the intermediate traffic model, wherein the fitness function is
[0127]
[0128] in, is the minimum target difference between the maximum flow section and the minimum flow section in the segmented horizontal well, s 1 is the skin factor of the first segmented horizontal well, s 2 is the skin factor of the second segmented horizontal well, It is nth seg The skin factor of a segmented horizontal well, q 1 is the flow rate of the first segmented horizontal well, q 2 is the flow rate of the second segmented horizontal well, It is nth seg The flow rate of a segmented horizontal well, L 1 is the length of the first segmented horizontal well, L 2 is the length of the second segmented horizontal well, It is nth seg The length of the segmented horizontal well, max(*) is the maximum value function, min(*) is the minimum value function, n seg is the total number of horizontal wells in the segment;
[0129] S12, performing cross-variation processing on the preset skin coefficient distribution according to the fitness function and the initial flow profile to obtain a standard skin coefficient distribution;
[0130] S13, calculating the standard blending fitness of the standard skin coefficient distribution, and comparing the standard blending fitness with a preset fitness threshold;
[0131] S14. When the standard allocation fitness is greater than or equal to the preset fitness threshold, repeat steps S12-S13. When the standard allocation fitness is greater than or equal to the preset fitness threshold, end the training and obtain the optimized traffic model.
[0132] In detail, the genetic algorithm is a random global search optimization method, which simulates the phenomena of replication, crossover and mutation that occur in natural selection and inheritance. Starting from any initial population, it produces a group of individuals that are more suitable for the environment through random selection, crossover and mutation operations, so that the group evolves to better and better areas in the search space, and in this way, it continues to multiply and evolve from generation to generation, and finally converges to a group of individuals that are most adapted to the environment, thereby obtaining a high-quality solution to the problem. Simply put, the genetic algorithm is an optimization algorithm.
[0133] In detail, the relevant parameters of the genetic algorithm include: population size, crossover probability, mutation probability and maximum genetic algebra, wherein the population size refers to the number of models compared in the same generation, and the population size affects the final result and execution efficiency of the genetic algorithm optimization. When the population size is too small, the optimization performance of the genetic algorithm is poor, and a larger population size can reduce the chance of the genetic algorithm falling into a local optimal solution, but the calculation complexity is high; the crossover probability controls the frequency of the genetic algorithm crossover operation, and a larger crossover probability can enhance the ability of the genetic algorithm to open up new search areas, but the possibility of high-performance models being destroyed increases, and when the crossover probability is too low, the genetic algorithm search may fall into a sluggish state; mutation is an auxiliary search operation in the genetic algorithm, which is mainly to maintain the diversity of the solution population. Generally, low-frequency mutation can prevent the loss of important and single genes in the population, and high-frequency mutation will make the genetic algorithm tend to pure random search; and the maximum algebra affects the calculation speed of genetic optimization. A maximum genetic algebra greater than 1500 will result in too long calculation time, and a maximum genetic algebra less than 100 cannot obtain the optimal result. Generally, the maximum algebra is taken between 100 and 1500.
[0134] In detail, the crossover and mutation processing is performed based on the crossover probability and the mutation probability; the preset fitness threshold is determined based on the maximum genetic generation, and the genetic algorithm calculation parameters can be set: the maximum genetic generation is 100, the number of populations is 5, the crossover probability is 0.5, the mutation probability is 0.1, and the skin coefficient value range is 0 to 25, and the following is obtained: Figure 4 The flow profile shown and Figure 5 The pressure profile shown, where the white curve is the final optimization result.
[0135] In detail, when the flow of the horizontal well enters a steady state or a quasi-steady state, a value range of the skin coefficient is set, and a skin coefficient value is assigned to each segmented horizontal well through a genetic algorithm according to a preset skin coefficient distribution. Then, the difference between the maximum flow section and the minimum flow section of each segmented horizontal well in the target horizontal well is calculated, and continuous evolution is carried out through crossover and mutation, so that the fitness function value gradually decreases. When the maximum number of iterations is reached, the calculation is terminated, and the flow distribution and skin coefficient distribution along the horizontal well are obtained.
[0136] S4. Determine the acid distribution rule of the target horizontal well according to the optimized flow model, generate the flow uniform value of the target horizontal well according to the acid distribution rule, and determine the optimized flow profile of the target horizontal well using the flow uniform value.
[0137] In the embodiment of the present invention, the acid distribution rule is the basis for the acid consumption of each segmented horizontal well of the target horizontal well, such as Figure 6 As shown in the figure, the valley value of the skin coefficient is located in the middle of the target horizontal well, and the skin coefficient is large at the location with better physical properties, indicating that in order to make the flow distribution uniform, the seepage resistance should be increased at this location, and the location with a large skin coefficient indicates that a small amount of acid needs to be added, and the location with a small skin coefficient indicates that a large amount of acid needs to be added. Because a reasonable acid distribution strategy can make the flow along the horizontal well uniformly distributed, for example, the total acid injection volume can be set to 300m 3 , you will get Figure 7 The acid usage profile distribution of each segmented horizontal well is shown, and the peak value of the acid usage is located in the middle of the target horizontal well.
[0138] In detail, the flow rate average value refers to the basis for generating the optimized flow rate profile of the target horizontal well, and is a weighted embodiment of each segmented horizontal well of the target horizontal well.
[0139] In the embodiment of the present invention, the step of determining the acid distribution rule of the target horizontal well according to the optimized flow model includes:
[0140] Determine the optimized skin coefficient distribution of the segmented horizontal well according to the optimized flow model, and select the maximum skin coefficient in the optimized skin coefficient distribution as the benchmark skin coefficient;
[0141] The acid distribution rule of the target horizontal well is generated according to the benchmark skin coefficient and the preset acid distribution amount formula, wherein the preset acid distribution amount formula is:
[0142]
[0143] Among them, Q acid,j is the acid distribution amount of the j-th segmented horizontal well, Q acid,total is the total acid distribution amount of the target horizontal well, s j is the skin factor of the jth segmented horizontal well, s max is the reference skin factor of the target horizontal well, j is the identifier of the segmented horizontal well, and n seg is the total number of horizontal wells in the segment.
[0144] For example, for a carbonate reservoir, the acid injection volume at the segmented horizontal well where the benchmark skin coefficient is located is set to 0, and the acid injection volumes at the segmented horizontal wells at other locations are set based on the benchmark skin coefficient.
[0145] In order to solve the problem of uneven flow rate at various locations, the embodiment of the present invention optimizes the flow rate along the horizontal well by introducing the skin coefficient, takes the difference between the maximum flow rate and the minimum flow rate of each horizontal well section as the fitness function, and adopts a genetic algorithm to optimize the distribution of the skin coefficient along the way, so that the maximum flow rate and the minimum flow rate of each well section are minimized, thereby controlling the balanced distribution of the flow in each section. Based on the distribution of the skin coefficient, the amount of acid used for acidizing can be further calculated, and non-uniform acidizing is proposed to make the flow rate along the horizontal well evenly distributed, avoid the generation of water cones in high permeability layers, extend the water-free oil production period and the production life of the horizontal well, and improve the ultimate recovery rate.
[0146] Embodiment 2
[0147] like Figure 8 As shown, this embodiment also provides a functional module diagram of a device for optimizing the flow profile along the horizontal well.
[0148] The device 100 for optimizing flow profiles along the horizontal well described in this embodiment can be installed in an electronic device. According to the functions to be implemented, the device 100 for optimizing flow profiles along the horizontal well can include a physical property classification module 101, a parameter configuration module 102, a parameter optimization module 103 and a flow profile module 104. The module described in the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0149] In this embodiment, the functions of each module / unit are as follows:
[0150] The physical property division module 101 is used to divide the physical properties of the target horizontal well to obtain segmented horizontal wells of the target horizontal well;
[0151] The parameter configuration module 102 is used to establish an initial flow model of the segmented horizontal well, configure flow parameters of the initial flow model, and obtain an intermediate flow model of the initial flow model;
[0152] The parameter optimization module 103 is used to generate the initial flow profile of the segmented horizontal well using the preset skin coefficient distribution and the intermediate flow model, and optimize the parameters of the intermediate flow model according to the genetic algorithm and the initial flow profile to obtain an optimized flow model;
[0153] The flow profile module 104 is used to determine the acid distribution rule of the target horizontal well according to the optimized flow model, generate the flow uniform value of the target horizontal well according to the acid distribution rule, and determine the optimized flow profile of the target horizontal well using the flow uniform value.
[0154] In detail, each module described in the user portrait-based product recommendation device 100 described in the embodiment of the present invention adopts the same technical means as the user portrait-based product recommendation method described in Example 1 and Example 2 when used, and can produce the same technical effects, which will not be repeated here.
[0155] Embodiment 3
[0156] like Fig. 9 As shown, this embodiment also provides a computer electronic device, which may include a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as a product recommendation program based on user portraits.
[0157] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing a product recommendation program based on user portraits, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device and process data.
[0158] The memory 11 includes at least one type of medium, including flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 can be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 can also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device. Further, the memory 11 can also include both an internal storage unit of the electronic device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the electronic device, such as the code of a product recommendation program based on user portraits, but can also be used to temporarily store data that has been output or is to be output.
[0159] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0160] The communication interface 13 is used for communication between the above-mentioned electronic device and other electronic devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0161] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0162] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0163] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0164] The product recommendation program based on user portrait stored in the memory 11 of the electronic device is a combination of multiple instructions, and when running in the processor 10, it can achieve:
[0165] Performing physical property division on the target horizontal well to obtain segmented horizontal wells of the target horizontal well;
[0166] Establishing an initial flow model of the segmented horizontal well, configuring flow parameters of the initial flow model, and obtaining an intermediate flow model of the initial flow model;
[0167] Using a preset skin coefficient distribution and the intermediate flow model to generate an initial flow profile of the segmented horizontal well, optimizing parameters of the intermediate flow model according to a genetic algorithm and the initial flow profile to obtain an optimized flow model;
[0168] The acid distribution rule of the target horizontal well is determined according to the optimized flow model, the flow uniform value of the target horizontal well is generated according to the acid distribution rule, and the optimized flow profile of the target horizontal well is determined using the flow uniform value.
[0169] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0170] Furthermore, if the module / unit integrated in the electronic device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a medium. The medium can be volatile or non-volatile. For example, the medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0171] Embodiment 4
[0172] This embodiment provides a medium storing a computer program. When the computer program is executed by a processor, the steps of the method for optimizing the flow profile along the horizontal well as described above are implemented.
[0173] These program codes can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 The steps of a specified function in a process or multiple processes.
[0174] The medium includes permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, modules of programs or other data. Examples of media can 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0175] Embodiment 5
[0176] An embodiment of the present invention provides a computer program, which, when executed by a processor, implements the steps of optimizing the flow profile along the horizontal well as described in the first aspect.
[0177] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer programs can also be stored in a medium, and these computer programs make the computer, programmable data processing device and / or other equipment work in a specific way, so that the medium storing the computer program includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0178] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. When the terms "include" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components and / or their combinations.
[0179] It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or described herein.
[0180] In the several embodiments provided by the present invention, it should be understood that the disclosed electronic device, apparatus and method can be implemented in other ways. For example, the apparatus embodiment described above is only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0181] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0182] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0183] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0184] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0185] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0186] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0187] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for optimizing the flow profile along the horizontal well. It is characterized in that The method comprises: Performing physical property division on the target horizontal well to obtain segmented horizontal wells of the target horizontal well; Establishing an initial flow model of the segmented horizontal well, configuring flow parameters of the initial flow model, and obtaining an intermediate flow model of the initial flow model; Using a preset skin coefficient distribution and the intermediate flow model to generate an initial flow profile of the segmented horizontal well, optimizing parameters of the intermediate flow model according to a genetic algorithm and the initial flow profile to obtain an optimized flow model; The acid distribution rule of the target horizontal well is determined according to the optimized flow model, the flow uniform value of the target horizontal well is generated according to the acid distribution rule, and the optimized flow profile of the target horizontal well is determined using the flow uniform value.
2. The method for optimizing the flow profile along the horizontal well according to claim 1, It is characterized in that The step of establishing the initial flow model of the segmented horizontal well comprises: Marking the coordinates of the segmented horizontal well to obtain a marked horizontal well of the segmented horizontal well; Generate the instantaneous point source value of the marked horizontal well, and use the preset reservoir pressure drop algorithm and the instantaneous point source value to build the initial flow model of the marked horizontal well, wherein the preset reservoir pressure drop algorithm is: Among them, A ij (x i ,y i ,z i ,t) is the jth segment horizontal well causing the reservoir to be at point (x i ,y i ,z i ) at production time t, (x i ,y i ,z i ) is the i-th point in space, i is the point identifier in space, t is the production time, j is the identifier of the segmented horizontal well, indicating the j-th segmented horizontal well, φ is the porosity of the reservoir, C t is the comprehensive compressibility of the fluid in the reservoir, n seg is the total number of horizontal wells in the segment, y j, is the first position mark of the jth segment horizontal well, y j, is the second position mark of the j-th segment horizontal well, (x 0 ,y 0 ,z 0 ) is the coordinate of the point along the horizontal section in the reservoir, S 1 (x i ,x 0 ,τ) is the oil reservoir at point (x 0 ,y 0 ,z 0 ) is the instantaneous point source value in the x-axis direction, S 2 (y i ,y 0 ,τ) is the oil reservoir at point (x 0 ,y 0 ,z 0 ) is the instantaneous point source value in the y-axis direction, S 3 (z i ,z 0 ,τ) is the oil reservoir at point (x 0 ,y 0 ,z 0 ) is the instantaneous point source value in the z-axis direction, y 0 is the coordinate of the reservoir in the y-axis direction, τ is the time variable, is a double integral, s j is the skin coefficient of the jth segmented horizontal well, μ is the viscosity of the fluid, K j, is the permeability of the reservoir in the x direction at the location of the jth segmented horizontal well, K j, is the permeability of the reservoir in the z direction at the location of the jth segmented horizontal well, L j is the length of the jth segmented horizontal well.
3. The method for optimizing the flow profile along the horizontal well as claimed in claim 2, It is characterized in that The generating the instantaneous point source value of the marked horizontal well comprises: The closed instantaneous point source value of the marked horizontal well is generated according to a preset closed instantaneous point source algorithm, wherein the preset closed instantaneous point source algorithm is: Among them, S(δ i ,δ 0 ,τ) is the closed instantaneous point source value of the marked horizontal well, δ i is the direction mark of the i-th spatial point, δ 0 is the coordinate of the reservoir, τ is the time variable, p is the reservoir parameter, k represents a natural number, K δ, is the permeability of the reservoir in the δ direction at the location of the jth segmented horizontal well, j is the identifier of the segmented horizontal well, indicating the jth segmented horizontal well, x indicates the x direction of the segmented horizontal well, y indicates the y direction of the segmented horizontal well, z indicates the z direction of the segmented horizontal well, φ is the porosity of the reservoir, C t is the comprehensive compressibility of the fluid in the reservoir, and μ is the viscosity of the fluid; The bottom water instantaneous point source value of the marked horizontal well is generated according to a preset bottom water instantaneous point source algorithm, wherein the preset bottom water instantaneous point source algorithm is: Among them, S(z i ,z 0 ,τ) is the instantaneous point source value of the bottom water of the marked horizontal well, h is the reservoir thickness, k represents a natural number, z i is the vertical coordinate of the i-th point in space, z 0 is the coordinate of the reservoir in the z-axis direction, τ is the time variable, φ is the porosity of the reservoir, C t is the comprehensive compressibility coefficient of the fluid in the reservoir, μ is the viscosity of the fluid, K z, is the permeability of the reservoir in the z direction at the location of the i-th segmented horizontal well; The reservoir type in which the marked horizontal well is located is determined, and the instantaneous point source value of the marked horizontal well is generated according to the reservoir type, the closed instantaneous point source value and the bottom water instantaneous point source value.
4. The method for optimizing the flow profile along the horizontal well according to claim 1, It is characterized in that The configuring the traffic parameters of the initial traffic model to obtain an intermediate traffic model of the initial traffic model includes: The spatial pressure drop of the target horizontal well is generated using a preset spatial pressure drop algorithm, wherein the preset spatial pressure drop algorithm is: Where ΔP i is the i-th spatial point (x i ,y i ,z i ) space pressure drop, q j is the flow rate of the jth segmented horizontal well, j is the identifier of the segmented horizontal well, n seg is the total number of horizontal wells in the segment, A ij (x i ,y i ,z i ,t) is the jth segment horizontal well causing the reservoir to be at point (x i ,y i ,z i ) at production time t, where i is the identifier of the spatial point; The well section pressure drop of the target horizontal well is generated using a preset well section pressure drop algorithm, wherein the preset well section pressure drop algorithm is: Among them, P j is the wellbore pressure of the jth segmented horizontal well, P j+1 is the wellbore pressure of the j+1th horizontal well, f j is the friction factor of the jth segmented horizontal well, ρ is the fluid density, L j is the length of the jth segmented horizontal well, L j+1 is the length of the j+1th segmented horizontal well, q a, is the main flow rate of the jth segment horizontal wellbore, q j is the flow rate of the jth segmented horizontal well, D is the wellbore diameter of the target horizontal well, n seg is the total number of the segmented horizontal wells, and j is the identifier of the segmented horizontal well; The wellbore variable of the segmented horizontal well is determined according to the spatial pressure drop, the well section pressure drop and a preset flow superposition algorithm, wherein the preset flow superposition algorithm is: Among them, Q total is the total flow rate of the target horizontal well, n seg is the total number of the segmented horizontal wells, j is the identifier of the segmented horizontal well, q j is the flow rate of the jth segmented horizontal well; The flow parameters of the initial flow model are configured using the wellbore variables to obtain an intermediate flow model of the initial flow model.
5. The method for optimizing the flow profile along the horizontal well according to claim 4, It is characterized in that The step of optimizing the parameters of the intermediate flow model according to the genetic algorithm and the initial flow profile to obtain an optimized flow model comprises: S11, constructing the fitness function of the intermediate traffic model, wherein the fitness function is in, is the minimum target difference between the maximum flow section and the minimum flow section in the segmented horizontal well, s 1 is the skin factor of the first stage horizontal well, s 2 is the skin factor of the second segmented horizontal well, It is nth seg The skin factor of a segmented horizontal well, q 1 is the flow rate of the first segmented horizontal well, q 2 is the flow rate of the second segmented horizontal well, It is nth seg The flow rate of a segmented horizontal well, L 1 is the length of the first segmented horizontal well, L 2 is the length of the second segmented horizontal well, It is nth seg The length of the segmented horizontal well, max(*) is the maximum value function, min(*) is the minimum value function, n seg is the total number of horizontal wells in the segment; S12, performing cross-variation processing on the preset skin coefficient distribution according to the fitness function and the initial flow profile to obtain a standard skin coefficient distribution; S13, calculating the standard blending fitness of the standard skin coefficient distribution, and comparing the standard blending fitness with a preset fitness threshold; S14. When the standard allocation fitness is greater than or equal to the preset fitness threshold, repeat steps S12-S13. When the standard allocation fitness is greater than or equal to the preset fitness threshold, end the training and obtain the optimized traffic model.
6. The method for optimizing the flow profile along the horizontal well according to claim 1, It is characterized in that The step of determining the acid distribution rule of the target horizontal well according to the optimized flow model includes: Determine the optimized skin coefficient distribution of the segmented horizontal well according to the optimized flow model, and select the maximum skin coefficient in the optimized skin coefficient distribution as the benchmark skin coefficient; The acid distribution rule of the target horizontal well is generated according to the benchmark skin coefficient and the preset acid distribution amount formula, wherein the preset acid distribution amount formula is: Among them, Q acid, is the acid distribution amount of the j-th segmented horizontal well, Q acid,total is the total acid distribution amount of the target horizontal well, s j is the skin factor of the jth segmented horizontal well, s max is the reference skin factor of the target horizontal well, j is the identifier of the segmented horizontal well, and n seg is the total number of horizontal wells in the segment.
7. A device for optimizing the flow profile along the horizontal well, It is characterized in that The device comprises: A physical property division module, used for performing physical property division on a target horizontal well to obtain segmented horizontal wells of the target horizontal well; A parameter configuration module, used to establish an initial flow model of the segmented horizontal well, configure flow parameters of the initial flow model, and obtain an intermediate flow model of the initial flow model; A parameter optimization module, used to generate an initial flow profile of the segmented horizontal well using a preset skin coefficient distribution and the intermediate flow model, and to optimize parameters of the intermediate flow model according to a genetic algorithm and the initial flow profile to obtain an optimized flow model; A flow profile module is used to determine the acid distribution rule of the target horizontal well according to the optimized flow model, generate the flow uniform value of the target horizontal well according to the acid distribution rule, and determine the optimized flow profile of the target horizontal well using the flow uniform value.
8. An electronic device, wherein include: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the method for optimizing the flow profile along the horizontal well as described in any one of claims 1 to 6.
9. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the program is executed by a processor, the method for optimizing the flow profile along the horizontal well as described in any one of claims 1 to 6 is implemented.
10. A computer program, It is characterized in that When the program is executed by a processor, the method for optimizing the flow profile along a horizontal well as described in any one of claims 1 to 6 is implemented.
