High-temperature and high-pressure gas well oil-gas two-phase flow production profile interpretation method
Through the recursive model and iterative algorithm combined with the principle of energy conservation, the output profile of gas-liquid two-phase flow in high-temperature and high-pressure wells is directly calculated, which solves the problem of interpretation error caused by slippage speed and drift speed errors, and improves the interpretation accuracy of output profiles of high-temperature and high-pressure wells .
Patent Information
- Application Number
- CN202411060091.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-12-03
AI Technical Summary
There is a problem of large error in the interpretation of the output profile of gas-liquid two-phase flow in high-temperature and high-pressure wells, which mainly result in low accuracy due to the error of slippage and drift speed, and the error in the interpretation of fluid properties parameters is amplified.
The recursive model is used to combine the principle of energy conservation, and the objective function is established through temperature logging and flow logging data, and the PSO algorithm and L-M algorithm are used to solve iteratively, eliminate the drift speed calculation error, and directly calculate the output of the gas phase and oil phase.
The accuracy of the oil and gas two-phase flow output profile interpretation of high-temperature and high-pressure gas wells is improved, and errors are reduced, and more accurate analysis of oil and gas production situations is provided.
Smart Images

Figure CN119069035A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of production profile interpretation, and in particular to a method for interpreting oil and gas two-phase flow production profiles in high-temperature and high-pressure gas wells. Background Art
[0002] High-temperature and high-pressure wells refer to wells with a bottom temperature exceeding 150°C and a pressure exceeding 70MPa. During the production process, these wells have the characteristics of complex downhole fluid flow patterns, high flow velocities, and high wellhead production. Traditional production logging includes the following four items: temperature logging, pressure logging, density logging, and flow logging. In the standard quantitative production logging process, only density logging data and flow logging data are used for analysis and interpretation. Temperature logging data and pressure logging data are generally only used for qualitative analysis, that is, to determine the flow characteristics of the fluid and the flow area in the well. When interpreting the output profile of conventional gas-liquid two-phase or oil-water two-phase flow production logging, commonly used interpretation methods include semi-empirical models, slip models, drift models, and average flow models. Domestic logging technology experts mainly use slip models and drift models.
[0003] The slip velocity in the slip model and the drift velocity in the drift model are mainly estimated from the semi-empirical relationship in the experiment. Since the actual fluid conditions in the well are much more complicated than those simulated in the experiment, and the density, viscosity and phase retention of the fluid are affected by the flow pattern, temperature and pressure of the fluid, there is a certain error between the actual slip velocity and drift velocity and the velocity calculated by the experiment. Therefore, under the premise of ensuring the measurement accuracy of retention and flow rate, the main reason for the error in the interpretation of the production logging output profile of gas-liquid two-phase and oil-water two-phase comes from the slip velocity or drift velocity.
[0004] In addition to the above errors that lead to low interpretation accuracy of the production profile, fluid property parameters such as fluid density, retention, and interfacial tension will also produce interpretation errors. According to the error transmission theory, the errors generated by calculating these parameters will be brought into the flow profile interpretation results, ultimately resulting in the error of the multiphase flow production logging output profile interpretation results being amplified. Summary of the invention
[0005] The purpose of the present invention is to overcome the above technical deficiencies, propose a method for interpreting the production profile of oil and gas two-phase flow in high-temperature and high-pressure gas wells, and solve the technical problem of large errors in the interpretation of the production profile in the prior art.
[0006] In order to achieve the above technical objectives, the present invention adopts the following technical solutions:
[0007] The present invention provides a method for interpreting a production profile of oil and gas two-phase flow in a high-temperature and high-pressure gas well, comprising the following steps:
[0008] S1. Divide the wellbore section located in the production layer into several control bodies along the depth direction and number them in order from top to bottom;
[0009] S2. Establishing a recursive model, wherein the recursive model can obtain the gas phase production and oil phase production in the control body according to the gas phase flow rate and oil phase flow rate at the upper boundary of the control body, the depth of the upper boundary and the lower boundary of the control body, the average temperature of the fluid in the control body, the pressure drop of the wellbore on the side of the control body, and the actual fluid temperature value of the upper boundary of the control body;
[0010] S3, obtaining the gas phase flow rate and oil phase flow rate of the upper boundary of the first control volume according to the surface gas production and the surface oil production, substituting them into the recursive model, and obtaining the gas phase production and oil phase production in the first control volume;
[0011] S4. The gas flow rate and oil flow rate at the upper boundary of the second control body are obtained by the gas flow rate and oil flow rate at the upper boundary of the first control body and the gas production and oil production in the first control body. Substituting them into the recursive model, the gas production and oil production in the second control body are obtained. Similarly, the gas flow rate and oil flow rate at the upper boundary of the next control body are obtained by the gas flow rate and oil flow rate at the upper boundary of the previous control body and the gas production and oil production in the previous control body each time. Substituting them into the recursive model, the gas production and oil production in the next control body are obtained, thereby obtaining the gas production and oil production in all control bodies respectively, which is the output profile of the oil and gas two-phase flow.
[0012] In some embodiments, in step S2, the method for establishing the recursive model comprises the following steps:
[0013] S21. Calculate the total enthalpy of the lower boundary of the control volume:
[0014] H qb =(q1ρ1C1+q2ρ2C2)×T b
[0015] Where, ρ1 and ρ2 are the densities of the gas phase and the oil phase, respectively; C1 and C2 are the specific heat capacities of the gas phase and the oil phase, respectively; T b is the temperature of the lower boundary of the control body; q1 is the gas phase flow rate in the control body; q2 is the oil phase flow rate in the control body;
[0016] Control the flow of gas and oil phases in the body:
[0017]
[0018] In the formula, r w is the wellbore radius, v1 is the gas phase flow rate in the control body, v2 is the oil phase flow rate in the control body, Z t is the depth of the lower boundary of the control volume, Zh is the depth of the upper boundary of the control volume, and z is the depth;
[0019] S22. Calculate the increased enthalpy of the fluid flowing from the production layer into the control volume:
[0020]
[0021] In the formula, r w is the wellbore radius, ρ1 and ρ2 are the densities of the gas phase and the oil phase respectively; C1 and C2 are the specific heat capacities of the gas phase and the oil phase respectively; v1 is the gas phase flow rate in the control body, v2 is the oil phase flow rate in the control body, and Z t is the depth of the lower boundary of the control volume, Z h is the depth of the upper boundary of the control volume, z is the depth; T f is the formation temperature where the control body is located, which can be calculated by the following formula:
[0022] T f =T g0 +g G Z h
[0023] Where, T g0 is the surface fluid temperature, g G is the geothermal gradient, Z h is the depth of the upper boundary of the control volume;
[0024] S23. Calculate the loss enthalpy of the gas phase by the following formula:
[0025]
[0026] Where ρ1 is the density of the gas phase, C1 is the specific heat of the gas phase, v1 is the gas phase flow rate in the control body, and Z t is the depth of the lower boundary of the control volume, Z h is the depth of the upper boundary of the control volume, z is the depth, M1 is the gas phase volume heat capacity, Δt jt is the temperature loss, which is related to the pressure drop ΔP in the wellbore on the side of the control body jt Proportional to:
[0027] Δt jt =C jt ΔP jt
[0028] In the formula, C jt is the proportionality coefficient, and its value is related to the temperature;
[0029] S24. Calculate the total enthalpy H of the upper boundary of the control volume qt :
[0030] H qt =(q1t ρ1C1+q 2t ρ2C2)×T t
[0031] Where, T t is the theoretical fluid temperature value of the upper boundary of the control volume, q 1t is the gas phase flow rate at the upper boundary of the control volume, q 2t is the oil phase flow rate at the upper boundary of the control volume, ρ1 and ρ2 are the densities of the gas phase and the oil phase respectively; C1 and C2 are the specific heat capacities of the gas phase and the oil phase respectively;
[0032] S25. According to the law of conservation of energy:
[0033] H qt =H qb +ΔH q -H qjt
[0034] S26. Arrange the above formula to get:
[0035]
[0036] Where M i =ρ i C i , M i is the volume heat capacity, i=1,2;
[0037] S27. Get the theoretical fluid temperature value of the upper boundary of the control volume:
[0038]
[0039] Among them, T t is the theoretical fluid temperature value of the upper boundary of the control volume, q 1t is the gas phase flow rate at the upper boundary of the control volume, q 2t is the oil phase flow rate at the upper boundary of the control volume, M1 is the volume heat capacity of the gas phase, M2 is the volume heat capacity of the oil phase, T g0 is the surface fluid temperature, g G is the geothermal gradient, Z h is the depth of the upper boundary of the control volume, Z t is the depth of the lower boundary of the control volume, C jt is the proportionality coefficient, and its value is related to the temperature. The proportionality coefficient can be determined according to the temperature of the production layer. jt is the pressure drop of the wellbore on the side of the control body, v1 is the gas phase flow rate in the control body, v2 is the oil phase flow rate in the control body, z is the depth, r w is the wellbore radius;
[0040] S28. Use the flow rate of each phase fluid as the independent variable X(v1, v2) to establish the theoretical temperature response equation of the wellbore fluid. Combine the error theory and the principle of nonlinear weighted least squares method. The actual fluid temperature value T of the upper boundary of the control volume obtained by temperature logging data is compared with the theoretical fluid temperature value T of the upper boundary of the control volume. t , establish the objective function f(v1,v2), that is:
[0041]
[0042] S29. At the same time, the flow logging data is used as a constraint condition, namely:
[0043] g(X)≥0
[0044] h(X)=0
[0045] Among them, g(X) is the inequality constraint and h(X) is the equality constraint, that is:
[0046] g(X):v1>0v2>0
[0047]
[0048] In the formula, q h is the total flow rate of gas and oil phases at the upper boundary of the control volume, q 1t is the gas phase flow rate at the upper boundary of the control volume, q 2t is the oil phase flow rate at the upper boundary of the control volume;
[0049] S210, taking the objective function f(v1, v2), the inequality constraint g(X) and the equality constraint h(X) as inputs of the PSO algorithm, and using the PSO algorithm to find the optimal value of the independent variable within the constraint range;
[0050] S211. Substitute the optimal value of the independent variable found by the PSO algorithm into the LM algorithm for iterative solution. The LM algorithm continuously approaches the theoretical temperature value Tt of the control body fluid to the corresponding actual fluid temperature value T. When the two are sufficiently close, that is, the objective function value reaches the minimum value, then the independent variable X (v1, v2) used to calculate the theoretical fluid temperature value Tt of the control body is the independent variable X (v1, v2) that best reflects the oil and gas production situation V1, V2 of the actual control body, that is, the flow rate of the gas phase and oil phase of the control body is:
[0051]
[0052] S213. According to the flow rates of the gas phase and the oil phase of the control body, the surface production value of each phase fluid can be calculated by the following formula, that is, the gas phase production and the oil phase production in the control body:
[0053]
[0054] Among them, B1 is the gas phase expansion coefficient, B2 is the oil phase expansion coefficient, q1 is the gas phase flow rate in the control body; q2 is the oil phase flow rate in the control body, Q1 is the gas phase production in the control body, and Q2 is the oil phase production in the control body.
[0055] In some embodiments, in the PSO algorithm, the population size is set to 50, the maximum number of iterations is set to 1000, the cognitive factor C1 is set to 1.5, the social factor C2 is set to 1.2, and the inertia weight w is set to 0.8.
[0056] In some embodiments, in step S4, the method of obtaining the gas phase flow rate and the oil phase flow rate of the upper boundary of the second control volume by using the gas phase flow rate and the oil phase flow rate of the upper boundary of the first control volume and the gas phase production and the oil phase production in the first control volume comprises:
[0057] S41, obtaining the gas phase flow rate and the oil phase flow rate in the first control body according to the gas phase production and the oil phase production in the first control body;
[0058] S42, subtracting the gas phase flow rate in the first control body from the gas phase flow rate at the upper boundary of the first control body to obtain the gas phase flow rate at the upper boundary of the second control body;
[0059] S43. Subtract the oil phase flow rate in the first control body from the oil phase flow rate at the upper boundary of the first control body to obtain the oil phase flow rate at the upper boundary of the second control body.
[0060] In some embodiments, the proportionality factor may be determined based on the temperature of the production formation.
[0061] The present invention also provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the high-temperature and high-pressure gas well oil and gas two-phase flow production profile interpretation method.
[0062] Compared with the prior art, the method for interpreting the production profile of oil and gas two-phase flow in high-temperature and high-pressure gas wells provided by the present invention has the following beneficial effects: according to the energy conservation of the fluid per unit space in the production layer, and through the temperature logging data and the flow logging data, an objective function is established, and the solution to the minimum value of the objective function is obtained by combining the iterative algorithm. This method does not require the calculation of the drift velocity, thereby eliminating the error caused by the calculation of the drift velocity, and is a new exploration of the method for interpreting the production profile of gas and oil two-phase flow in high-temperature and high-pressure production gas wells. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 It is a schematic flow chart of a method for interpreting a production profile of oil and gas two-phase flow in a high-temperature and high-pressure gas well provided by an embodiment of the present invention;
[0064] Figure 2 It is a schematic diagram of control volume division of a method for interpreting a production profile of oil and gas two-phase flow in a high-temperature and high-pressure gas well provided by an embodiment of the present invention;
[0065] Figure 3 yes Figure 2 Schematic diagram of the fluid entry process of two adjacent control bodies;
[0066] Figure 4 It is a schematic diagram of the overall process framework of a method for interpreting a production profile of oil and gas two-phase flow in a high-temperature and high-pressure gas well provided by an embodiment of the present invention;
[0067] Figure 5 yes Figure 1 Schematic diagram of the relationship between proportionality coefficient and temperature;
[0068] Figure 6 It is a schematic diagram of the process of using the PSO algorithm to find the optimal value of the independent variable within the constraints. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0070] Please refer to Figure 1 An embodiment of the present invention provides a method for interpreting a production profile of oil and gas two-phase flow in a high-temperature and high-pressure gas well, comprising the following steps:
[0071] S1. Divide the wellbore section located in the production layer into several control bodies along the depth direction and number them in order from top to bottom;
[0072] In this embodiment, Figure 2 As shown, the wellbore section located in the production layer is divided into 5 control bodies along the depth direction, and are numbered as control bodies 1-5 from top to bottom. In other embodiments, the number of control bodies can also be other numbers, and the present invention is not limited to this.
[0073] like Figure 3 The figure shows a schematic diagram of the model of two adjacent control bodies. The control body as a whole has the top of the production layer as the upper boundary and the wellbore as the side boundary.
[0074] S2. Establishing a recursive model, wherein the recursive model can obtain the gas phase production and oil phase production in the control body according to the gas phase flow rate and oil phase flow rate at the upper boundary of the control body, the depth of the upper boundary and the lower boundary of the control body, the average temperature of the fluid in the control body, the pressure drop of the wellbore on the side of the control body, and the actual fluid temperature value of the upper boundary of the control body;
[0075] In step S2, the method for establishing the recursive model includes the following steps:
[0076] S21. Calculate the total enthalpy of the lower boundary of the control volume:
[0077] H qb =(q1ρ1C1+q2ρ2C2)×T b (1)
[0078] Where, ρ1 and ρ2 are the densities of the gas phase and the oil phase, respectively; C1 and C2 are the specific heat capacities of the gas phase and the oil phase, respectively; T b is the temperature of the lower boundary of the control body; q1 is the gas phase flow rate in the control body; q2 is the oil phase flow rate in the control body.
[0079] Control the flow of gas and oil phases in the body:
[0080]
[0081] In the formula, r w is the wellbore radius, v1 is the gas phase flow rate in the control body, v2 is the oil phase flow rate in the control body, Z t is the depth of the lower boundary of the control volume, Z h is the depth of the upper boundary of the control volume, and z is the depth.
[0082] S22. Calculate the increased enthalpy of the fluid flowing from the production layer into the control volume:
[0083]
[0084] In the formula, r w is the wellbore radius, ρ1 and ρ2 are the densities of the gas phase and the oil phase respectively; C1 and C2 are the specific heat capacities of the gas phase and the oil phase respectively; v1 is the gas phase flow rate in the control body, v2 is the oil phase flow rate in the control body, and Z t is the depth of the lower boundary of the control volume, Z h is the depth of the upper boundary of the control volume, z is the depth; T f is the formation temperature where the control body is located, which can be calculated by the following formula:
[0085] T f =T g0 +g G Z h (5)
[0086] Where, T g0 is the surface fluid temperature, g G is the geothermal gradient, Z h is the depth of the upper boundary of the control volume.
[0087] S23. Due to the influence of the Joule-Thomson effect, the loss enthalpy of the oil can be ignored, but the loss enthalpy of the gas phase is larger and cannot be ignored. The loss enthalpy of the gas phase is calculated by the following formula:
[0088]
[0089] Where ρ1 is the density of the gas phase, C1 is the specific heat of the gas phase, v1 is the gas phase flow rate in the control body, and Z t is the depth of the lower boundary of the control volume, Z h is the depth of the upper boundary of the control volume, z is the depth, M1 is the gas phase volume heat capacity, Δt jt is the temperature loss, which is related to the pressure drop ΔP in the wellbore on the side of the control body jt Proportional to:
[0090] Δt jt =C jt ΔP jt (7)
[0091] In the formula, C jt is the proportionality coefficient, and its value is related to temperature.
[0092] S24. Calculate the total enthalpy H of the upper boundary of the control volume qt :
[0093] H qt =(q 1t ρ1C1+q 2t ρ2C2)×T t (8)
[0094] Where, T t is the theoretical fluid temperature value of the upper boundary of the control volume, q 1t is the gas phase flow rate at the upper boundary of the control volume, q 2t is the oil phase flow rate at the upper boundary of the control volume, ρ1 and ρ2 are the densities of the gas phase and the oil phase respectively; C1 and C2 are the specific heat capacities of the gas phase and the oil phase respectively.
[0095] S25. According to the law of conservation of energy:
[0096] H qt =H qb +ΔH q -H qjt (9)
[0097] S26. Arrange the above formula to get:
[0098]
[0099] Where M i =ρ i Ci , M i is the volume heat capacity, i=1,2.
[0100] S27. Substitute equations (9) and (10) into equation (8) to obtain the theoretical fluid temperature value of the upper boundary of the control volume:
[0101]
[0102] Among them, T t is the theoretical fluid temperature value of the upper boundary of the control volume, q 1t is the gas phase flow rate at the upper boundary of the control volume, q 2t is the oil phase flow rate at the upper boundary of the control volume, M1 is the volume heat capacity of the gas phase, M2 is the volume heat capacity of the oil phase, T g0 is the surface fluid temperature, g G is the geothermal gradient, Z h is the depth of the upper boundary of the control volume, Z t is the depth of the lower boundary of the control volume, C jt is the proportionality coefficient, and its value is related to the temperature. The proportionality coefficient can be determined according to the temperature of the production layer. jt is the pressure drop of the wellbore on the side of the control body, v1 is the gas phase flow rate in the control body, v2 is the oil phase flow rate in the control body, z is the depth, r w is the wellbore radius.
[0103] S28. Use the flow rate of each phase fluid as the independent variable X(v1, v2) to establish the theoretical temperature response equation of the wellbore fluid. Combine the error theory and the principle of nonlinear weighted least squares method. The actual fluid temperature value T of the upper boundary of the control volume obtained by temperature logging data is compared with the theoretical fluid temperature value T of the upper boundary of the control volume. t , establish the objective function f(v1,v2), that is:
[0104]
[0105] S29. At the same time, the flow logging data is used as a constraint condition, namely:
[0106] g(X)≥0 (13)
[0107] h(X)=0 (14)
[0108] Among them, g(X) is the inequality constraint and h(X) is the equality constraint, that is:
[0109] g(X):v1>0 v2>0 (15)
[0110]
[0111] In the formula, q his the total flow rate of gas and oil phases at the upper boundary of the control volume, q 1t is the gas phase flow rate at the upper boundary of the control volume, q 2t is the oil phase flow rate at the upper boundary of the control volume.
[0112] S210, taking the objective function f(v1, v2), the inequality constraint g(X) and the equality constraint h(X) as inputs of the PSO algorithm, and using the PSO algorithm to find the optimal value of the independent variable within the constraint range;
[0113] In this embodiment, in the PSO algorithm, the population size is set to 50, the maximum number of iterations is set to 1000, the cognitive factor C1 is set to 1.5, the social factor C2 is set to 1.2, and the inertia weight w is set to 0.8.
[0114] S211. Substitute the optimal value of the independent variable found by the PSO algorithm into the LM algorithm for iterative solution. The LM algorithm continuously approaches the theoretical temperature value Tt of the control body fluid to the corresponding actual fluid temperature value T. When the two are sufficiently close, that is, the objective function value reaches the minimum value, then the independent variable X (V1, V2) used to calculate the theoretical fluid temperature value Tt of the control body is the independent variable X (V1, V2) that best reflects the oil and gas production situation V1, V2 of the actual control body, that is, the flow rate of the gas phase and oil phase of the control body is:
[0115]
[0116] S213. According to the flow rates of the gas phase and the oil phase of the control body, the surface production value of each phase fluid can be calculated by the following formula, that is, the gas phase production and the oil phase production in the control body:
[0117]
[0118] Among them, B1 is the gas phase expansion coefficient, B2 is the oil phase expansion coefficient, q1 is the gas phase flow rate in the control body; q2 is the oil phase flow rate in the control body, Q1 is the gas phase production in the control body, and Q2 is the oil phase production in the control body.
[0119] S3, obtaining the gas phase flow rate and oil phase flow rate of the upper boundary of the first control volume according to the surface gas production and the surface oil production, substituting them into the recursive model, and obtaining the gas phase production and oil phase production in the first control volume;
[0120] In this embodiment, for the oil-water two-phase flow profile of the high-temperature and high-pressure gas well, a top-to-bottom interpretation method is adopted, that is, the flow rates of oil and gas at the upper boundary of the first control volume can be obtained based on the ground measurement data, and the total flow rate of the flow logging in the production layer at this time is recorded;
[0121] like Figure 4As shown in the figure, the velocity of each phase fluid is taken as the independent variable X(v1, v2), and the theoretical response equation of the wellbore fluid temperature is established according to formula (11). Then, according to the principle of nonlinear weighted least squares method and error theory, the difference between the theoretical fluid temperature Tt and the thermometer measured value T is used to establish the objective function of seeking the minimum value, and the sum of the gas and oil two-phase flow rates at the lower boundary of the control volume is taken as the constraint condition.
[0122] Then, if Figure 5 As shown, the proportionality coefficient C can be determined according to the temperature of the production layer jt .
[0123] Then, if Figure 6 As shown in the figure, the PSO algorithm is first used to find the optimal value of the independent variable within the constraints. In the PSO algorithm, the population size is set to 50, the maximum number of iterations is 1000, the cognitive factor C1 is 1.5, the social factor C2 is 1.2, and the inertia weight w is 0.8. The PSO algorithm can obtain the optimal value of the independent variable within the constraints.
[0124] Then, the optimal value of the independent variable found by the PSO algorithm is substituted into the LM algorithm for iterative solution. The LM algorithm continuously adjusts the theoretical temperature value T of the control body fluid. t The corresponding actual fluid temperature value T is continuously approached. When the two are sufficiently close, that is, the objective function value reaches the minimum value, then the theoretical fluid temperature value T of the control body is calculated. t The independent variable X(v1, v2) used is the one that best reflects the actual oil and gas production situation of each control body. When the optimal v1 and v2 are determined, they are substituted into formulas (17) to (20) to obtain the gas phase production in the first control body and the oil phase production in the first control body.
[0125] S4. The gas flow rate and oil flow rate at the upper boundary of the second control body are obtained by the gas flow rate and oil flow rate at the upper boundary of the first control body and the gas production and oil production in the first control body. Substituting them into the recursive model, the gas production and oil production in the second control body are obtained. Similarly, the gas flow rate and oil flow rate at the upper boundary of the next control body are obtained by the gas flow rate and oil flow rate at the upper boundary of the previous control body and the gas production and oil production in the previous control body each time. Substituting them into the recursive model, the gas production and oil production in the next control body are obtained, thereby obtaining the gas production and oil production in all control bodies respectively, which is the output profile of the oil and gas two-phase flow.
[0126] In this embodiment, the method for obtaining the gas phase flow rate and the oil phase flow rate of the upper boundary of the second control volume by using the gas phase flow rate and the oil phase flow rate of the upper boundary of the first control volume and the gas phase production and the oil phase production in the first control volume includes:
[0127] S41, obtaining the gas phase flow rate and the oil phase flow rate in the first control body through the gas phase production and the oil phase production in the first control body (through formulas (19) and (20));
[0128] S42, subtracting the gas phase flow rate in the first control body from the gas phase flow rate at the upper boundary of the first control body to obtain the gas phase flow rate at the upper boundary of the second control body;
[0129] S43. Subtract the oil phase flow rate in the first control body from the oil phase flow rate at the upper boundary of the first control body to obtain the oil phase flow rate at the upper boundary of the second control body.
[0130] Afterwards, the gas phase flow rate and oil phase flow rate at the upper boundary of the second control body are substituted into the recursive model to obtain the gas phase production in the second control body and the oil phase production in the second control body. The calculation process is similar to that of the first control body and will not be repeated here.
[0131] Subsequently, the gas phase production and oil phase production of each control body are calculated in turn according to the same method, so that the gas phase production and oil phase production in all control bodies can be obtained, which is the production profile of oil and gas two-phase flow.
[0132] The present invention also provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the high-temperature and high-pressure gas well oil and gas two-phase flow production profile interpretation method.
[0133] The beneficial effects of the present invention are as follows: an objective function is established based on the theoretical temperature response equation obtained based on the temperature logging data in production logging and the law of conservation of energy and the actual measured fluid temperature value, and production logging flow logging is used as a constraint condition. The PSO algorithm is first used for heuristic global search to find the best global initial solution within the constraint range, and this best initial solution is substituted into the initial solution of the LM algorithm as an initial input parameter, and the gas phase fluid velocity v1 and the oil phase fluid velocity v2 are continuously adjusted by the LM algorithm to make the objective function obtain a minimum value, and the best interpretation results v1 and v2 at this time are output. The present invention predicts the interpretation results of the high-temperature and high-pressure oil and gas two-phase flow production profile by the LM algorithm optimized by the PSO algorithm, which is more in line with the actual production situation, more accurate than the conventional interpretation methods of the slip model and the drift model, and more suitable for the oil and gas two-phase flow profile of the high-temperature and high-pressure gas well, and can provide new technical support for the interpretation of the high-temperature and high-pressure oil and gas two-phase flow production profile.
[0134] The specific implementation of the present invention described above does not constitute a limitation on the protection scope of the present invention. Any other corresponding changes and modifications made based on the technical concept of the present invention should be included in the protection scope of the claims of the present invention.
Claims
1. A method for interpreting the production profile of oil and gas two-phase flow in a high-temperature and high-pressure gas well, characterized in that: The steps include: S1. Divide the wellbore section located in the production layer into several control bodies along the depth direction and number them in order from top to bottom; S2. Establishing a recursive model, wherein the recursive model can obtain the gas phase production and oil phase production in the control body according to the gas phase flow rate and oil phase flow rate at the upper boundary of the control body, the depth of the upper boundary and the lower boundary of the control body, the average temperature of the fluid in the control body, the pressure drop of the wellbore on the side of the control body, and the actual fluid temperature value of the upper boundary of the control body; S3, obtaining the gas phase flow rate and oil phase flow rate of the upper boundary of the first control volume according to the surface gas production and the surface oil production, substituting them into the recursive model, and obtaining the gas phase production and oil phase production in the first control volume; S4. The gas flow rate and oil flow rate at the upper boundary of the second control body are obtained by the gas flow rate and oil flow rate at the upper boundary of the first control body and the gas production and oil production in the first control body. Substituting them into the recursive model, the gas production and oil production in the second control body are obtained. Similarly, the gas flow rate and oil flow rate at the upper boundary of the next control body are obtained by the gas flow rate and oil flow rate at the upper boundary of the previous control body and the gas production and oil production in the previous control body each time. Substituting them into the recursive model, the gas production and oil production in the next control body are obtained, thereby obtaining the gas production and oil production in all control bodies respectively, which is the output profile of the oil and gas two-phase flow.
2. The method for interpreting the oil and gas two-phase flow production profile of a high-temperature and high-pressure gas well according to claim 1, characterized in that: In step S2, the method for establishing the recursive model includes the following steps: S21. Calculate the total enthalpy of the lower boundary of the control volume: H qb =(q1ρ1C1+q2ρ2C2)×T b Where, ρ1 and ρ2 are the densities of the gas phase and the oil phase, respectively; C1 and C2 are the specific heat capacities of the gas phase and the oil phase, respectively; T b is the temperature of the lower boundary of the control body; q1 is the gas phase flow rate in the control body; q2 is the oil phase flow rate in the control body; Control the flow of gas and oil phases in the body: In the formula, r w is the wellbore radius, v1 is the gas phase flow rate in the control body, v2 is the oil phase flow rate in the control body, Z t is the depth of the lower boundary of the control volume, Z h is the depth of the upper boundary of the control volume, and z is the depth; S22. Calculate the increased enthalpy of the fluid flowing from the production layer into the control volume: In the formula, r w is the wellbore radius, ρ1 and ρ2 are the densities of the gas phase and the oil phase respectively; C1 and C2 are the specific heat capacities of the gas phase and the oil phase respectively; v1 is the gas phase flow rate in the control body, v2 is the oil phase flow rate in the control body, and Z t is the depth of the lower boundary of the control volume, Z h is the depth of the upper boundary of the control volume, z is the depth; T f is the formation temperature where the control body is located, which can be calculated by the following formula: T f =T g0 +g G Z h Where, T g0 is the surface fluid temperature, g G is the geothermal gradient, Z h is the depth of the upper boundary of the control volume; S23. Calculate the loss enthalpy of the gas phase by the following formula: Where ρ1 is the density of the gas phase, C1 is the specific heat of the gas phase, v1 is the gas phase flow rate in the control body, and Z t is the depth of the lower boundary of the control volume, Z h is the depth of the upper boundary of the control volume, z is the depth, M1 is the gas phase volume heat capacity, Δt jt is the temperature loss, which is related to the pressure drop ΔP in the wellbore on the side of the control body jt Proportional to: Δt jt =C jt ΔP jt In the formula, C jt is the proportionality coefficient, and its value is related to the temperature; S24. Calculate the total enthalpy H of the upper boundary of the control volume qt : H qt =(q 1t ρ1C1+q2t ρ2 C2)×T t Where, T t is the theoretical fluid temperature value of the upper boundary of the control volume, q 1t is the gas phase flow rate at the upper boundary of the control volume, q 2t is the oil phase flow rate at the upper boundary of the control volume, ρ1 and ρ2 are the densities of the gas phase and the oil phase respectively; C1 and C2 are the specific heat capacities of the gas phase and the oil phase respectively; S25. According to the law of conservation of energy: H qt =H qb +ΔH q -H qjt S26. Arrange the above formula to get: Where M i =ρ i C i , M i is the volume heat capacity, i=1,2; S27. Get the theoretical fluid temperature value of the upper boundary of the control volume: Among them, T t is the theoretical fluid temperature value of the upper boundary of the control volume, q 1t is the gas phase flow rate at the upper boundary of the control volume, q 2t is the oil phase flow rate at the upper boundary of the control volume, M1 is the volume heat capacity of the gas phase, M2 is the volume heat capacity of the oil phase, T g0 is the surface fluid temperature, g G is the geothermal gradient, Z h is the depth of the upper boundary of the control volume, Z t is the depth of the lower boundary of the control volume, C jt is the proportionality coefficient, and its value is related to the temperature. The proportionality coefficient can be determined according to the temperature of the production layer. jt is the pressure drop of the wellbore on the side of the control body, v1 is the gas phase flow rate in the control body, v2 is the oil phase flow rate in the control body, z is the depth, r w is the wellbore radius; S28. Use the flow rate of each phase fluid as the independent variable X(v1, v2) to establish the theoretical temperature response equation of the wellbore fluid. Combine the error theory and the principle of nonlinear weighted least squares method. The actual fluid temperature value T of the upper boundary of the control volume obtained by temperature logging data is compared with the theoretical fluid temperature value T of the upper boundary of the control volume. t , establish the objective function f(v1,v2), that is: S29. At the same time, the flow logging data is used as a constraint condition, namely: g(X)≥0 h(X)=0 Among them, g(X) is the inequality constraint and h(X) is the equality constraint, that is: g(X):v1>0v2>0 In the formula, q h is the total flow rate of gas and oil phases at the upper boundary of the control volume, q 1t is the gas phase flow rate at the upper boundary of the control volume, q 2t is the oil phase flow rate at the upper boundary of the control volume; S210, taking the objective function f(v1, v2), the inequality constraint g(X) and the equality constraint h(X) as inputs of the PSO algorithm, and using the PSO algorithm to find the optimal value of the independent variable within the constraint range; S211. Substitute the optimal value of the independent variable found by the PSO algorithm into the LM algorithm for iterative solution. The LM algorithm continuously approaches the theoretical temperature value Tt of the control body fluid to the corresponding actual fluid temperature value T. When the two are sufficiently close, that is, the objective function value reaches the minimum value, then the independent variable X (v1, v2) used to calculate the theoretical fluid temperature value Tt of the control body is the independent variable X (v1, v2) that best reflects the oil and gas production situation V1, V2 of the actual control body, that is, the flow rate of the gas phase and oil phase of the control body is: S213. According to the flow rates of the gas phase and the oil phase of the control body, the surface production value of each phase fluid can be calculated by the following formula, that is, the gas phase production and the oil phase production in the control body: Among them, B1 is the gas phase expansion coefficient, B2 is the oil phase expansion coefficient, q1 is the gas phase flow rate in the control body; q2 is the oil phase flow rate in the control body, Q1 is the gas phase production in the control body, and Q2 is the oil phase production in the control body.
3. The method for interpreting the oil and gas two-phase flow production profile of a high-temperature and high-pressure gas well according to claim 2, characterized in that: In the PSO algorithm, the population size is set to 50, the maximum number of iterations is 1000, the cognitive factor C1 is 1.5, the social factor C2 is 1.2, and the inertia weight w is 0.
8.
4. The method for interpreting the oil and gas two-phase flow production profile of a high-temperature and high-pressure gas well according to claim 1, characterized in that: In step S4, the method of obtaining the gas phase flow rate and the oil phase flow rate of the upper boundary of the second control body by using the gas phase flow rate and the oil phase flow rate of the upper boundary of the first control body and the gas phase production and the oil phase production in the first control body includes: S41, obtaining the gas phase flow rate and the oil phase flow rate in the first control body according to the gas phase production and the oil phase production in the first control body; S42, subtracting the gas phase flow rate in the first control body from the gas phase flow rate at the upper boundary of the first control body to obtain the gas phase flow rate at the upper boundary of the second control body; S43. Subtract the oil phase flow rate in the first control body from the oil phase flow rate at the upper boundary of the first control body to obtain the oil phase flow rate at the upper boundary of the second control body.
5. The method for interpreting the oil and gas two-phase flow production profile of a high-temperature and high-pressure gas well according to claim 2, characterized in that: The proportionality factor can be determined based on the temperature of the production layer.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the high-temperature and high-pressure gas well oil and gas two-phase flow production profile interpretation method as described in any one of claims 1-5.
