A method for predicting the productivity of complex structure wells based on flexible line source analysis method

Through flexible linear source method and source function theory, a mathematical model of complex structural wells was established, which solved the problem that the existing technology could not effectively simulate the boundaries of complex reservoirs and the calculation time-consuming, and achieved high-precision production capacity prediction for complex structural wells and Simulation of pressure distribution in three-dimensional space.

CN114943138BActive Publication Date: 2024-11-22SOUTHWEST PETROLEUM UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210406582.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-18
Publication Date
2024-11-22
Estimated Expiration
2042-04-18

AI Technical Summary

Technical Problem

The existing production capacity prediction methods for complex structural wells cannot effectively simulate the boundary situation of complex reservoirs, and the numerical simulation calculation takes time. The semi-analytical method can only be applied to specific types of wells and cannot be applied to any type of complex structural wells.

Method used

The flexible linear source method is used to depict the wellbore trajectory, and a mathematical model of non-steady state seepage differential equation based on source function theory and Newman product method is established. The complex structural wells are discretely coupled to solve the results by using the flexible linear source semi-analytical method to achieve production capacity prediction.

Benefits of technology

The capacity prediction of arbitrary well structures in multiple shapes is realized, and non-steady state pressure and capacity can be simulated in three-dimensional space, improving the accuracy and calculation efficiency of capacity prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114943138B_ABST
    Figure CN114943138B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of oil and gas field development, and to a method for predicting the productivity of a complex structure well based on a flexible line source analysis method, which comprises the following steps: S1: using coordinates as calculation nodes, the wellbore structure is flexibly line sourced according to the actual wellbore trajectory, and a physical model of a complex structure well is established; S2: according to the source function theory and the Newman product method, a mathematical model of a complex structure well of a non-steady-state seepage differential equation of discrete units in a hexahedral reservoir is established; S3: the wellbore of the complex structure well is discretized to obtain the discretized units; S4: for the discretized units, the flexible line source analysis method is used to solve the wellbore discrete coupling iterative calculation, so as to predict the productivity of the complex structure well. The present invention can better predict the productivity of a complex structure well.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of oil and gas field development, and in particular to a method for predicting the productivity of a complex structure well based on a flexible line source analysis method. Background Art

[0002] In the field of oil and gas field development, since general vertical wells are difficult to meet the exploitation requirements of various oil and gas layers, complex structure wells are widely used in oil and gas exploitation. Therefore, research on accurately predicting the production capacity of complex structure wells is of great significance in reducing drilling costs, increasing production, improving the development effect of old oil fields, and increasing recovery rates.

[0003] At present, domestic and foreign scholars have conducted research on the production capacity prediction of various types of complex structure wells. There are three main methods for solving the production capacity model of complex structure wells: analytical method, numerical method and semi-analytical method. In the method of using analytical solution to simulate the seepage process, since all models are assumed to be linear or radial flow, this assumption is too idealized and cannot simulate complex reservoir boundary conditions. As for the numerical simulation method, since the generated matrix is ​​large, it takes more time to calculate using the numerical simulation method. The semi-analytical method is another effective method to simulate branch structure wells, but this method still requires assumptions and can only predict the production capacity of specific types of complex structure wells, and cannot be applied to any type of complex structure wells. Summary of the invention

[0004] The present invention provides a method for predicting the production capacity of complex structure wells based on flexible line source analytical method, which for the first time proposes a flexible line source method to depict the wellbore trajectory of complex structure wells, and then uses a flexible line source semi-analytical method to discretize the wellbore.

[0005] A method for predicting the productivity of a complex structure well based on a flexible line source analysis method according to the present invention comprises the following steps:

[0006] S1: Using coordinates as calculation nodes, the wellbore structure is flexibly linearized according to the actual wellbore trajectory to establish a physical model of a complex structure well;

[0007] S2: Based on the source function theory and Newman product method, a mathematical model of complex structure wells for the unsteady seepage differential equations of discrete units in hexahedral reservoirs is established;

[0008] S3: Discretize the wellbore of the complex structure to obtain the discretized unit;

[0009] S4: For the discretized units, the flexible line source analysis method is used to iteratively calculate the wellbore discrete coupling solution, so as to predict the production capacity of complex structure wells.

[0010] Preferably, in step S1, an XYZ three-dimensional space coordinate system is established outside the wellbore trajectory of the complex structure well, and then the wellbore trajectory is converted into a flexible line source, the actual wellbore trajectory is divided into multiple flexible line sources, and then each line source is represented by a spatial coordinate (x, y, z), and the coordinate calculation node (x, y, z) of the line source is obtained, and the coordinate node (x, y, z) is used to establish a physical model of the complex structure well.

[0011] As a preferred embodiment, in the mathematical model of a complex well structure, in an infinite homogeneous isotropic medium, at the moment when the time variable τ=0, there is an instantaneous point source with a constant intensity of q at the origin of the coordinate system. The pressure distribution function at any point M (x, y, z) in the formation at the moment t>0 is:

[0012]

[0013] Where: r D is the dimensionless radius, L is the length dimension; t D is dimensionless time; Δp is pressure difference; q is volume flow rate; η is pressure conductivity; φ is porosity at initial pressure; C t is the comprehensive compression coefficient; t is the time; r is the distance between point M and the origin;

[0014] Define Δp / [q / (φC t )] is the instantaneous Green source function. The instantaneous Green source function is obtained from the pressure distribution function of formula (1):

[0015]

[0016] Where: S(r,t)=Δp / [q / (φC t )],η r is the pressure conductivity coefficient in the radial direction of the formation;

[0017] If the anisotropy of the stratum is considered, the instantaneous Green source function of the infinite stratum is:

[0018]

[0019] Where: η x , η y , η z is the pressure conductivity or diffusion coefficient in the x, y and z directions; M' is the coordinate of the desired point source in the formation;

[0020] In the mathematical model of complex well structure, if the intensity of infinite line, surface and volume source is q / (φC t ) instantaneous source distribution, the pressure drop distribution formula corresponding to line source, surface source and volume source is obtained as follows:

[0021]

[0022] Where: M' w Represents source Γ w point on the source; q(M') is the instantaneous pulse volume of the fluid per unit length, unit area, or unit volume of the source;

[0023] The instantaneous Green source functions corresponding to line source, surface source and volume source are:

[0024] Infinite line source:

[0025]

[0026] Where: x', y', z' are the coordinates of the point source, that is, the point source is located at M'(x', y', z'), x = x', y = y', -∞ <z'<+∞;

[0027] Infinite area source:

[0028]

[0029] Where: x = x', -∞ <y'<+∞,-∞<z'<+∞;

[0030] Infinite source:

[0031]

[0032] Where: -∞ <x'<+∞,-∞<y'<+∞,-∞<z'<+∞;

[0033] If the boundary conditions of the reservoir are considered, the instantaneous Green source function when the boundary condition is the fault is:

[0034]

[0035] Where: d is the distance between the point source and the boundary;

[0036] If the boundary conditions of the reservoir are considered, the instantaneous Green source function of the boundary condition at the normal pressure supply boundary is:

[0037]

[0038] Where M1 is the coordinate of the point source in the mirror image;

[0039] The planes z = 0 and z = h are impermeable boundaries, where 0 < z' < h. According to the mirror reflection, after the point source is reflected into the infinite reservoir, its point source coordinates are (x', y', z' + 2nh) and (x', y', -z' + 2nh), n = 0, ±1, ±2,.... Using the superposition principle, the instantaneous point source solution of the problem is expressed by the Green source function:

[0040]

[0041] If the reservoir is an infinite flat-plate reservoir, the instantaneous Green source function when the planes z = 0 and z = h are constant-pressure boundaries is:

[0042]

[0043] If the reservoir is an infinite flat-plate reservoir, the instantaneous Green source function when the plane z = 0 is an impermeable boundary and z = h is a constant-pressure boundary is:

[0044]

[0045] If the reservoir is a cuboid, located in the rectangular coordinate system within 0 ≤ x ≤ x e 、0 ≤ y ≤ y e 、and 0 ≤ z ≤ h, where x e and y e are the length and width of the reservoir reservoir respectively; the six sides of the cuboid are all impermeable interfaces, and the instantaneous point source is located at M'(x', y', z') in the cuboid; using the mirror reflection principle, with the six sides of the cuboid as mirrors, the problem is mirror-reflected into the problem of infinite well rows producing along three coordinate axes in the infinite reservoir; using the superposition principle, the instantaneous Green source function is:

[0046]

[0047] If the Neumann product method is considered, based on the source function theory and the Neumann product method, the unsteady seepage differential equation (Equation 14) of the discrete element in the hexahedron reservoir is established; regarding the discrete element as a line source, based on the superposition principle, the change in the potential at any point in space is obtained; its instantaneous Green function is:

[0048]

[0049] source = NISF xD ·NIPF yD ·NIPF zD (15)

[0050]

[0051]

[0052]

[0053] Where: is the dimensionless average pressure difference; q D is the dimensionless output; τ D is a dimensionless time variable; t D is dimensionless time; x D 、x' D ,y D ,y' D+ ,y' D- is the dimensionless coordinate of a point at the bottom of the well; L xD , L yD , L zD L is the dimensionless half length of the horizontal well section in the x, y, and z directions; y is the half length of the horizontal well section on the y axis; l r is the radius of the horizontal well section; k, k z are the total permeability and the permeability in the z-axis direction respectively; source is the total source function in spatial coordinates; NISF xD NISF yD NISF zD are the source functions in the x, y, and z directions respectively.

[0054] Preferably, in step S3, after the mathematical model is established, a flexible line source semi-analytical method is used to discretize the wellbore into a flexible line source node form, the line source density is controlled by the calculation speed and calculation accuracy, and a numerical grid is used to discretize the wellbore of a complex structure to obtain a discretized unit.

[0055] Preferably, step S4 includes the following steps:

[0056] 4.1. Assume that at the initial time t=0, the pressure drop between two adjacent wellbore nodes is assigned to be 0;

[0057] 4.2. Assemble the coefficient matrix in the Laplace space, and bring the voltage drop value into the matrix after Laplace transformation;

[0058] 4.3. Obtain the fluid inflow qi of each wellbore node by solving the matrix;

[0059] 4.4. The pressure difference ΔP' between the wellbore nodes after calculation based on the mathematical model i ;

[0060] 4.5. Compare the ΔP assigned in step 4.1 i The initial value and ΔP' i If the required calculation accuracy is achieved, go to the next step, otherwise the calculated ΔP'i Multiply by the relevant weight coefficient and assign it to ΔP again i , and repeat the steps after 4.2;

[0061] 4.6. If the error accuracy meets the requirements, determine whether the current time step is the last step. If it is, the calculation ends; if not, the current result ΔP' that meets the calculation accuracy is i Assigned as a new initial value to ΔP i , repeat the steps after 4.2 until the calculation is completed.

[0062] The present invention has the following advantages:

[0063] 1. The physical meaning of the present invention is clear, and a flexible line source method is adopted to describe the direction of the wellbore according to the actual wellbore trajectory, and it can be applied to any wellbore structure of various shapes.

[0064] 2. The present invention realizes the simulation of permeability changes in three coordinate directions and can calculate non-steady-state pressure and production capacity in three-dimensional space.

[0065] 3. The present invention introduces source function theory and semi-analytical method, and through the wellbore discrete coupling solution iterative calculation, the production capacity prediction accuracy of complex structure wells is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 This is a flow chart of a method for predicting the productivity of a complex structure well based on the flexible line source analysis method in Example 1;

[0067] Figure 2 This is a schematic diagram of the physical model of the complex structure well of flexible line source in Example 1;

[0068] Figure 3 This is a schematic diagram of the mirror reflection of a point source near the linear fault in Example 1;

[0069] Figure 4 This is a schematic diagram of the mirror image of the infinite flat oil reservoir in Example 1;

[0070] Figure 5 Schematic diagram of the wellbore trajectory discretization method in Example 1;

[0071] Figure 6 This is a schematic diagram of the flexible line source semi-analytical method in Example 1;

[0072] Figure 7 Schematic diagram of a typical coefficient matrix in Example 1;

[0073] Figure 8 It is a schematic diagram of the iterative solution process of the wellbore of a complex structure well in Example 1;

[0074] Fig. 9This is a schematic diagram of the comparison results of the production of fixed output of the model in Example 1;

[0075] Fig.10 This is a schematic diagram of the comparison results of the constant pressure production of the model in Example 1. DETAILED DESCRIPTION

[0076] In order to further understand the content of the present invention, the present invention is described in detail in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments are only for explaining the present invention and are not intended to limit it.

[0077] Example 1

[0078] like Figure 1 As shown, this embodiment provides a method for predicting the productivity of a complex structure well based on a flexible line source analysis method, which includes the following steps:

[0079] S1: Using coordinates as calculation nodes, the wellbore structure is flexibly linearized according to the actual wellbore trajectory to establish a physical model of a complex structure well;

[0080] An XYZ three-dimensional space coordinate system is established outside the wellbore trajectory of a complex structure well, and then the wellbore trajectory is converted into a flexible line source, the actual wellbore trajectory is divided into multiple flexible line sources, and then each line source is represented by a space coordinate (x, y, z), and the coordinate calculation node (x, y, z) of the line source is obtained. The coordinate node (x, y, z) is used to establish a physical model of the complex structure well, such as Figure 2 shown.

[0081] S2: Based on the source function theory and Newman product method, a mathematical model of complex structure wells for the unsteady seepage differential equations of discrete units in hexahedral reservoirs is established;

[0082] In the mathematical model of complex structure wells:

[0083] 1) In an infinite homogeneous isotropic medium, at the moment when the time variable τ = 0, there is an instantaneous point source with a constant intensity of q at the origin of the coordinate system. The pressure distribution function at any point M (x, y, z) in the formation at the moment t>0 is:

[0084]

[0085] Where: For r D is the dimensionless radius, L is the length dimension; t D is dimensionless time; Δp is pressure difference; q is volume flow rate; η is pressure conductivity; φ is porosity at initial pressure; C t is the comprehensive compression coefficient; t is the time; r is the distance between point M and the origin;

[0086] τ represents an instantaneous point source in an infinite reservoir. In seepage mechanics, an instantaneous point source is defined as: a trace amount of fluid is injected into a point M (x', y', z') in a saturated porous medium at the moment t = τ ≥ 0, with a volume of δV and a mass of δm = ρδV. No fluid is injected before or after the moment t = τ and outside the point M'.

[0087] Define Δp / [q / (φC t )] is the instantaneous Green source function. The instantaneous Green source function is obtained from the pressure distribution function of formula (1):

[0088]

[0089] Where: S(r,t)=Δp / [q / (φC t )],η r is the pressure conductivity coefficient in the radial direction of the formation.

[0090] 2) If the anisotropy of the stratum is considered, the instantaneous Green source function of the infinite stratum is:

[0091]

[0092] Where: η x , η y , η z is the pressure conductivity coefficient or diffusion coefficient in the x, y and z directions; M is the coordinate of any point in the formation, and M' is the coordinate of the point source in the formation.

[0093] 3) If we consider the infinite line, surface and volume source with intensity q / (φC t ) Instantaneous source distribution, the pressure drop distribution formula corresponding to line source, surface source and volume source can be obtained as follows:

[0094]

[0095] Where: M' w Represents source Γ w point on the source; q(M') is the instantaneous pulse volume of the fluid per unit length, unit area, or unit volume of the source;

[0096] The instantaneous Green source functions corresponding to line source, surface source and volume source are:

[0097] Infinite line source:

[0098]

[0099] Where: x', y', z' are the coordinates of the point source, that is, the point source is located at M'(x', y', z'), x = x', y = y', -∞ <z'<+∞;

[0100] Infinite plane source:

[0101]

[0102] where: x = x', -∞ < y' < +∞, -∞ < z' < +∞;

[0103] Infinite body source:

[0104]

[0105] where: -∞ < x' < +∞, -∞ < y' < +∞, -∞ < z' < +∞;

[0106] 4) If the boundary conditions of the reservoir are considered, such as Figure 3 shown, then the boundary condition for the instantaneous Green's function of the fault is:

[0107]

[0108] where: d is the distance between the point source and the boundary;

[0109] 5) If the boundary conditions of the reservoir are considered, then the boundary condition for the instantaneous Green's function of the constant pressure supply boundary is:

[0110]

[0111] where, M1 is the point source coordinate in the mirror image (such as Figure 3 shown);

[0112] 6) The planes z = 0 and z = h are impermeable boundaries, where 0 < z' < h. According to the mirror image reflection, after the point source is reflected into the infinite reservoir, its point source coordinates are (x', y', z' + 2nh) and (x', y', -z' + 2nh), n = 0, ±1, ±2,... (such as Figure 4 shown). Using the superposition principle, the instantaneous point source solution of this problem can be expressed by the Green's function:

[0113]

[0114] 7) If the reservoir is an infinite flat plate reservoir, then the instantaneous Green's function when the planes z = 0 and z = h are constant pressure boundaries is:

[0115]

[0116] 8) If the reservoir is an infinite flat plate reservoir, then the instantaneous Green's function when the plane z = 0 is an impermeable boundary and z = h is a constant pressure boundary is:

[0117]

[0118] 9) If the reservoir is a cuboid, it is located at 0≤x≤x in the rectangular coordinate system. e , 0≤y≤y e , and 0≤z≤h, where x e and e are the length and width of the reservoir respectively; the six sides of the cuboid are all impermeable interfaces, and the instantaneous point source is located at M'(x', y', z') in the cuboid; using the mirror reflection principle, with the six sides of the cuboid as mirrors, the problem is mirrored into an infinite well row production problem along the three coordinate axes in an infinite reservoir; using the superposition principle, the instantaneous Green source function is:

[0119]

[0120] 10) If the Newman product method is considered, based on the source function theory and the Newman product method, the unsteady-state seepage differential equation of the discrete unit in the hexahedral reservoir is established (Equation 14). The discrete unit is regarded as a line source (sink), and based on the superposition principle, the change in potential at any point in space can be obtained. This method can fully consider the distribution of discrete units in space and truly realize the calculation of unsteady-state pressure and production capacity in three-dimensional space. At the same time, the permeability change simulation in the three coordinate directions is realized, and its instantaneous Green function is:

[0121]

[0122] source = NISF xD ·NIPF yD ·NIPF zD (15)

[0123]

[0124]

[0125]

[0126] Where: is the dimensionless average pressure difference; q D is the dimensionless output; τ D is a dimensionless time variable; t D is dimensionless time; x D 、x' D ,y D ,y' D+ ,y' D- is the dimensionless coordinate of a point at the bottom of the well; L xD , L yD , L zD L is the half length of the dimensionless branch horizontal well section in the x, y, and z axis directions;y is the half length of the horizontal well section on the y axis; l r is the radius of the horizontal well section; k, k z are the total permeability and the permeability in the z-axis direction respectively; source is the total source function in spatial coordinates; NISF xD NISF yD NISF zD are the source functions in the x, y, and z directions respectively.

[0127] S3: Discretize the wellbore of the complex structure to obtain the discretized unit;

[0128] After the mathematical model is established, the flexible line source semi-analytical method is used to discretize the wellbore into flexible line source node forms. The line source density (number of nodes) is controlled by the calculation speed and calculation accuracy. The numerical grid is used to discretize the wellbore of the complex structure to obtain the discretized unit. The discretization form is as follows: Figure 5 As shown, the left side is a schematic diagram of horizontal wellbore discretization, and the right side is a schematic diagram of arbitrary wellbore discretization.

[0129] S4: For the discretized units, the flexible line source analysis method is used to iteratively calculate the wellbore discrete coupling solution, so as to predict the production capacity of complex structure wells.

[0130] The flexible line source semi-analytical method establishes the discrete numerical grid space in the form of Figure 6 As shown; specifically including the following steps:

[0131] 4.1. Assume that at the initial time (t=0), the pressure drop between two adjacent wellbore nodes is assigned to be 0;

[0132] 4.2. Assemble the coefficient matrix in Laplace space, such as Figure 7 As shown, the voltage drop value is Laplace transformed and then brought into the matrix;

[0133] 4.3. Obtain the fluid inflow q of each wellbore node by solving the matrix i ;

[0134] 4.4. The pressure difference ΔP' between the wellbore nodes is calculated according to the mathematical model of formula (14): i ;

[0135] 4.5. Compare the ΔP assigned in step 4.1 i The initial value and ΔP' i If the required calculation accuracy is achieved, go to the next step, otherwise the calculated ΔP' i Multiply by the relevant weight coefficient and assign it to ΔP again i , and repeat the steps after 4.2;

[0136] 4.6. If the error accuracy meets the requirements, determine whether the current time step is the last step. If it is, the calculation ends; if not, the current result ΔP' that meets the calculation accuracy is i Assigned as a new initial value to ΔP i Repeat the steps after 4.2 until the calculation is completed. The flowchart is as follows: Figure 8 shown.

[0137] Model validation and software development

[0138] The core calculation module was written in C++ programming language, and TXT text input was used to make the calculation process clear and easy to operate. In the model verification phase, the model was compared with commercial software Saphir and Eclipse to verify the accuracy of the capacity model. Table 1 gives the basic data of the model comparison calculation.

[0139] Table 1 Basic data for model comparison calculation

[0140] parameter Numeric parameter Numeric parameter Numeric Permeability 0.2mD Porosity 0.2 Formation size 1000*500*20m Comprehensive compression factor 0.0051 / MPa Fluid Viscosity 1cp Horizontal well length 200m

[0141] Fig. 9 The calculation results under fixed production are given. From the pressure and pressure derivative curves, the calculation model in this paper has a good fitting effect with the calculation results of commercial software. From the pressure and pressure derivative curves, when the time is less than 0.5 hours, the calculation curve has some deviations. This is because the truncation error generated by the calculation is large, but the time is short and can be ignored.

[0142] Fig.10 The calculation results under constant pressure are given. The pressure curve has deviations in the later stage, and the production calculated by this model is slightly lower than the production calculated by the software Saphir. This is mainly because the Saphir software uses a uniform flow model (the flow rate at each point in the wellbore is equal), while this model can calculate the flow distribution at different positions in the wellbore, which is closer to the actual situation.

[0143] From the comparison results (such as Fig. 9 , Fig.10 ) It can be seen that the calculation result of this program is better. In addition, a convenient software interface is developed in this embodiment, and the interface is simple and easy to operate.

[0144] The present invention and its embodiments are described schematically above, and the description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. Therefore, if a person skilled in the art is inspired by it and designs a structural method and an embodiment similar to the technical solution without creativity without departing from the purpose of the invention, they shall all fall within the protection scope of the present invention.

Claims

1. A method for predicting the production capacity of complex structure wells based on flexible line source analysis method, characterized by: It includes the following steps: S1: Adopt a method with coordinates as calculation nodes, linearize the wellbore structure in a flexible line source manner according to the actual wellbore trajectory, and establish a physical model of a complex structure well; S2: According to the source function theory and the Newman product method, establish a mathematical model of a complex structure well for the unsteady seepage differential equation of discrete elements in a hexahedral reservoir; In the mathematical model of a complex structure well, in an infinite homogeneous isotropic medium, at the instant when the time variable τ = 0, there is an instantaneous point source with a constant strength q at the origin of coordinates. The pressure distribution function at any point M(x, y, z) in the formation at t > 0 is: Where: r D is the dimensionless radius, L is the length dimension; t D is dimensionless time; Δp is pressure difference; q is volume flow rate; η is pressure conductivity; φ is porosity at initial pressure; C t is the comprehensive compression factor; t is time; r is the distance between point M and the origin; Define Δp / [q / (φC t )] is the instantaneous Green source function. The instantaneous Green source function is obtained from the pressure distribution function of formula (1): Where: S(r,t)=Δp / [q / (φC t )],η r is the pressure conductivity coefficient in the radial direction of the formation; If the anisotropy of the formation is considered, the instantaneous Green's source function for an infinite formation is: Where: η x , η y , η z is the pressure conductivity or diffusion coefficient in the x, y and z directions; M' is the coordinate of the desired point source in the formation; In the mathematical model of complex well structure, if the intensity of infinite line, surface and volume source is q / (φC t ) instantaneous source distribution, the pressure drop distribution formula corresponding to line source, surface source and volume source is obtained as follows: Where: M' w Represents source Γ w point on the source; q(M') is the instantaneous pulse volume of the fluid per unit length, unit area, or unit volume of the source; Then the instantaneous Green's source functions corresponding to the line source, surface source, and volume source are respectively: Infinite line source: Where: x', y', z' are the coordinates of the point source, that is, the point source is located at M'(x', y', z'), x = x', y = y', -∞ < z' < +∞; Infinite surface source: Where: x = x', -∞ < y' < +∞, -∞ < z' < +∞; Infinite volume source: Where: -∞ < x' < +∞, -∞ < y' < +∞, -∞ < z' < +∞; If the boundary conditions of the reservoir are considered, the instantaneous Green's source function for the boundary condition of a fault is: Where: d is the distance between the point source and the boundary; If the boundary conditions of the reservoir are considered, the instantaneous Green's source function for the boundary condition of a constant pressure supply boundary is: Where, M1 is the coordinate of the point source in the mirror image; The planes z = 0 and z = h are impermeable boundaries, where 0 < z' < h. According to the mirror image reflection, after the point source is reflected into an infinite reservoir, its point source coordinates are (x', y', z' + 2nh) and (x', y', -z' + 2nh), n = 0, ±1, ±2,.... Using the superposition principle, the solution of the instantaneous point source problem with problems is expressed by the Green's source function: If the reservoir is an infinite flat plate reservoir, the instantaneous Green's source function when the planes z = 0 and z = h are constant pressure boundaries is: If the reservoir is an infinite flat plate reservoir, the instantaneous Green's source function when the plane z = 0 is an impermeable boundary and z = h is a constant pressure boundary is: If the reservoir is a cuboid, it is located at 0≤x≤x in the rectangular coordinate system. e , 0≤y≤y e , and 0≤z≤h, where x e and e are the length and width of the oil reservoir, respectively; the six sides of the cuboid are all impermeable interfaces, and the instantaneous point source is located at M'(x', y', z') in the cuboid; Using the mirror image reflection principle, with the six side faces of the cuboid as mirrors, the problem is mirror image reflected into an infinite well row production problem along the three coordinate axes in the infinite reservoir; using the superposition principle, the instantaneous Green's source function is: If the Newman product method is considered, based on the source function theory and the Newman product method, establish the unsteady seepage differential equation (Equation 14) of discrete elements in a hexahedral reservoir; regard the discrete elements as line segments sources, and based on the superposition principle, obtain the change amount of the potential at any point in space; Its instantaneous Green's function is: source=NISF xD ·NIPF yD ·NIPF zD (15) Where: is the dimensionless average pressure difference; q D is the dimensionless output; τ D is a dimensionless time variable; t D is dimensionless time; x D 、x' D ,y D ,y' D+ ,y' D- is the dimensionless coordinate of a point at the bottom of the well; L xD , L yD , L zD L is the dimensionless half length of the horizontal well section in the x, y, and z directions; y is the half length of the horizontal well section on the y axis; l r is the radius of the horizontal well section; k, k z are the total permeability and the permeability in the z-axis direction respectively; source is the total source function in spatial coordinates; NISF xD NISF yD NISF zD are the source functions in the x, y, and z directions respectively; S3: Discretize the wellbore of the complex structure well to obtain the discrete elements; S4: For the discrete elements, use the flexible line source analysis method to perform iterative calculations for the discrete coupling solution of the wellbore, so as to predict the productivity of the complex structure well.

2. The method for predicting the production capacity of a complex structure well based on the flexible line source analysis method according to claim 1 is characterized by: In step S1, an XYZ three-dimensional space coordinate system is established outside the wellbore trajectory of the complex structure well, and then the wellbore trajectory is converted into a flexible line source, the actual wellbore trajectory is divided into multiple flexible line sources, and then each line source is represented by a spatial coordinate (x, y, z), and the coordinate calculation node (x, y, z) of the line source is obtained, and the coordinate node (x, y, z) is used to establish a physical model of the complex structure well.

3. The method for predicting the production capacity of a complex structure well based on the flexible line source analysis method according to claim 1 is characterized by: In step S3, after the mathematical model is established, the flexible line source semi-analytical method is used to discretize the wellbore into flexible line source node forms, the line source density is controlled by the calculation speed and calculation accuracy, and the complex structure wellbore is discretized using a numerical grid to obtain the discretized unit.

4. The method for predicting the production capacity of a complex structure well based on the flexible line source analysis method according to claim 1 is characterized by: Step S4 includes the following steps: 4.

1. Assume that at the initial time t=0, the pressure drop between two adjacent wellbore nodes is assigned to be 0; 4.

2. Assemble the coefficient matrix in the Laplace space, and bring the voltage drop value into the matrix after Laplace transformation; 4.

3. Obtain the fluid inflow q of each wellbore node by solving the matrix i ; 4.

4. The pressure difference ΔP' between the wellbore nodes after calculation based on the mathematical model i ; 4.

5. Compare the ΔP assigned in step 4.1 i The initial value and ΔP' i If the required calculation accuracy is achieved, go to the next step, otherwise the calculated ΔP' i Multiply by the relevant weight coefficient and assign it to ΔP again i , and repeat the steps after 4.2; 4.

6. If the error accuracy meets the requirements, determine whether the current time step is the last step. If it is, the calculation ends; if not, the current result ΔP' that meets the calculation accuracy is i Assigned as a new initial value to ΔP i , repeat the steps after 4.2 until the calculation is completed.