Downhole pump indicator diagram conversion method and system based on finite difference method

The finite difference method and micro-element analysis method are used to simplify the conversion of downhole pump power diagrams, optimize the damping coefficient and correction coefficient, solve the problem of inaccurate calculation of pump power diagrams affected by well deviation and other factors in the existing technology, and realize a more efficient downhole pump. Work map conversion and data processing.

CN118709474APending Publication Date: 2024-09-27PLANT RESOURCE TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410735990.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When the existing pump power diagram conversion technology considers factors such as well inclination and centralizer, the calculation results are not accurate enough, and the parameters are numerous and complex, making actual operation difficult.

Method used

The finite difference method is used to construct the initial downhole pump power diagram conversion model, and the micro-element analysis method is used to establish the motion law model of the pumping well. The wave equations of vertical wells and inclined wells are derived respectively, and the damping coefficient and correction coefficient are solved and optimized. The wave equation is simplified to solve and reduce parameter requirements.

Benefits of technology

It improves the accuracy and ease of operation of pump power diagram conversion, reduces data collection time, and enhances the generalization ability of the algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709474A
    Figure CN118709474A
Patent Text Reader

Abstract

The invention relates to the technical field of oil well instruments and meters, and particularly discloses a downhole pump indicator diagram conversion method and system based on a finite difference method.The method comprises the steps that an initial downhole pump indicator diagram conversion model is built based on the finite difference method; acquiring data of an underground pump indicator diagram based on the underground pump indicator diagram conversion model; determining a damping coefficient and a correction coefficient based on the actual working fluid level, the actual fluid production capacity, the simulated working fluid level and the simulated fluid production capacity; and carrying out iterative optimization on the damping coefficient and the correction coefficient to determine a final downhole pump indicator diagram conversion model, and simplifying wave equation solution by adopting a finite difference method. When a conversion equation is deduced, uncertain resistance factors are attributed to a damping coefficient and a correction coefficient, and parameter solving of a wave equation is reduced; by optimizing the damping coefficient and the correction coefficient, the generalization ability of the algorithm is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of oil well instrumentation, and in particular to a downhole pump work diagram conversion method and system based on a finite difference method. Background Art

[0002] Most of the existing pump diagram conversion technologies are derived from the one-dimensional wave equation of the sucker rod string considering viscous resistance proposed by Gibbs in 1966. The sucker rod string is regarded as the medium for transmitting downhole working condition information, and the working environment at the pump is used as the initiation condition of the working condition information. The actual working condition is presented in the form of stress. The actual working condition of the pump is transmitted step by step along the sucker rod string in the form of load, and the indicator diagram at the suspension point is reached when it reaches the ground. Therefore, the indicator diagram contains relevant information about the downhole working condition. According to the principle of damped vibration, a one-dimensional damped wave equation of the sucker rod string considering viscous resistance is established. The equation takes the dynamic load and displacement at the suspension point as boundary conditions. By solving the equation, the load and displacement values ​​at the corresponding depth position of the sucker rod string can be obtained, so that the indicator diagram of the corresponding depth position of each depth section of the sucker rod and the indicator diagram at the pump position can be drawn, so that the indicator diagram can be used to analyze and calculate the working condition. The traditional one-dimensional viscous damping wave equation based on Gibbs theory only uses a fixed damping coefficient to solve the wave equation, and does not consider the influence of well inclination, stabilizers, etc. The calculated pump power diagram is not very accurate. Some improved methods take into account the influencing factors such as well inclination, stabilizers, pump rod properties and various machine material properties. Although the indicator diagram after solution has a significant improvement, because there are too many parameters required, it takes a lot of time to collect data in actual operation, and the parameters of each well need to be collected, which is not conducive to actual operation. Summary of the invention

[0003] The object of the present invention is to provide a downhole pump diagram conversion method and system based on the finite difference method to solve the problems raised in the above background technology.

[0004] To achieve the above object, the present invention provides the following technical solution: a downhole pump work diagram conversion method based on finite difference method, the method comprising:

[0005] The initial downhole pump diagram conversion model is constructed based on the finite difference method;

[0006] Acquiring data of a downhole pump performance diagram based on a downhole pump performance diagram conversion model;

[0007] Generate simulated dynamic liquid level and liquid production based on data from downhole pump performance diagram;

[0008] Acquire the actual dynamic liquid surface and liquid production, and determine the damping coefficient and the correction coefficient based on the actual dynamic liquid surface and liquid production and the simulated dynamic liquid surface and liquid production;

[0009] Iteratively optimize the damping coefficient and correction coefficient to determine the final downhole pump work diagram conversion model;

[0010] Based on the final downhole pump diagram conversion model, the downhole pump diagrams of oil wells under different working conditions are converted.

[0011] As a further solution of the present invention, the step of constructing the initial downhole pump performance diagram conversion model based on the finite difference method specifically includes:

[0012] Construct a pumping well motion law model and perform force analysis on the micro-element of the rod based on the micro-element analysis method;

[0013] Establish wave equations for vertical wells and inclined wells respectively, and determine boundary conditions and initial conditions of the wave equations based on the motion law model of the pumping well;

[0014] The wave equation is solved based on the difference method and the initial downhole pump work diagram conversion model is determined.

[0015] As a further solution of the present invention, the step of obtaining data of the downhole pump performance diagram based on the downhole pump performance diagram conversion model specifically includes:

[0016] Obtain data of suspension point indicator diagram;

[0017] Based on the downhole pump performance diagram conversion model, the data of the suspension point indicator diagram is converted into the data of the downhole pump performance diagram;

[0018] The pump performance diagram data is smoothed based on the average displacement to generate processed downhole pump performance diagram data.

[0019] As a further solution of the present invention, the step of smoothing the pump performance diagram data based on the average displacement to generate the processed downhole pump performance diagram data specifically includes:

[0020] Calculate the difference of load or displacement, and set the original data whose difference value is greater than the preset threshold to empty;

[0021] Missing values ​​are filled based on the linear interpolation method, and data smoothing is performed according to the preset moving smoothing span;

[0022] Calculate the quantiles of the smoothed data and set the extremely large values ​​to empty;

[0023] The missing values ​​are filled by linear interpolation method to obtain the final data value.

[0024] As a further solution of the present invention, the step of obtaining data of the downhole pump performance diagram based on the downhole pump performance diagram conversion model further includes:

[0025] Preprocess the initial downhole pump performance diagram data.

[0026] As a further solution of the present invention, the step of preprocessing the initial downhole pump performance diagram data specifically includes:

[0027] Obtain initial downhole pump performance diagram data;

[0028] Construct downhole pump performance diagram dataset;

[0029] Processing of outliers in downhole pump performance diagram data sets;

[0030] The downhole pump performance diagram dataset is filled based on the interpolation method and the complete downhole pump performance diagram dataset is extracted.

[0031] As a further solution of the present invention, the step of iteratively optimizing the damping coefficient and the correction coefficient to determine the final downhole pump work diagram conversion model specifically includes:

[0032] Construct damping coefficient and correction coefficient data sets based on oil wells with different working conditions;

[0033] Based on the damping coefficient and correction coefficient data set, a grid search algorithm is used to iteratively optimize the damping coefficient and the correction coefficient;

[0034] Determine the final downhole pump diagram conversion model based on the iterative optimization results;

[0035] The present invention also provides a downhole pump work diagram conversion system based on a finite difference method, the system comprising:

[0036] A conversion model building module, used to build an initial downhole pump work diagram conversion model based on a finite difference method;

[0037] A data acquisition module, used for acquiring data of a downhole pump performance diagram based on a downhole pump performance diagram conversion model;

[0038] A parameter generation module, used to generate simulated dynamic liquid level and liquid production based on the data of the downhole pump performance diagram;

[0039] A coefficient determination module, used for obtaining the actual dynamic liquid surface and liquid production, and determining the damping coefficient and the correction coefficient based on the actual dynamic liquid surface and liquid production and the simulated dynamic liquid surface and liquid production;

[0040] The final model determination module is used to iteratively optimize the damping coefficient and the correction coefficient to determine the final downhole pump work diagram conversion model;

[0041] The oil well conversion module is used to convert the downhole pump diagrams of oil wells under different working conditions based on the final downhole pump diagram conversion model.

[0042] As a further solution of the present invention, the conversion model building module specifically includes:

[0043] The force analysis unit is used to construct a pumping well motion law model and perform force analysis on the micro-element of the rod based on the micro-element analysis method;

[0044] The equation determination unit is used to establish the wave equations of the vertical well and the inclined well respectively, and determine the boundary conditions and initial conditions of the wave equation based on the motion law model of the pumping well;

[0045] The solving unit is used to solve the wave equation based on the difference method and determine the initial downhole pump work diagram conversion model.

[0046] As a further solution of the present invention, the data acquisition module specifically includes:

[0047] A data acquisition unit, used for acquiring data of the suspension point dynamometer diagram;

[0048] A conversion unit, used for converting the data of the suspension point indicator diagram into the data of the downhole pump diagram based on the downhole pump diagram conversion model;

[0049] The smoothing processing unit is used to perform smoothing processing on the pump performance diagram data based on the average displacement to generate processed downhole pump performance diagram data.

[0050] Compared with the prior art, the invention has the following beneficial effects: the finite difference method is adopted to simplify the solution of the wave equation. When deriving the transformation equation, the uncertain resistance factor is attributed to the damping coefficient and the correction coefficient, which reduces the number of parameters of the wave equation; and the generalization ability of the algorithm is improved by optimizing the damping coefficient and the correction coefficient. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.

[0052] Figure 1 A flowchart of a downhole pump work diagram conversion method based on a finite difference method is provided in an embodiment of the present invention.

[0053] Figure 2 An architectural diagram of a downhole pump work diagram conversion method based on a finite difference method provided in an embodiment of the present invention.

[0054] Figure 3 A force analysis diagram of a vertical well provided in an embodiment of the present invention.

[0055] Figure 4 A force analysis diagram of an inclined well provided in an embodiment of the present invention.

[0056] Figure 5A flowchart of the steps of constructing an initial downhole pump work diagram conversion model based on the finite difference method provided in an embodiment of the present invention.

[0057] Figure 6 A flowchart of the steps for obtaining data of a downhole pump performance diagram based on a downhole pump performance diagram conversion model provided in an embodiment of the present invention.

[0058] Figure 7 A flowchart of the steps of smoothing pump performance diagram data based on average displacement to generate processed downhole pump performance diagram data is provided in an embodiment of the present invention.

[0059] Figure 8 A flowchart of the steps of iteratively optimizing the damping coefficient and the correction coefficient to determine the final downhole pump work diagram conversion model provided in an embodiment of the present invention.

[0060] Fig. 9 A structural block diagram of a downhole pump work diagram conversion system based on a finite difference method provided in an embodiment of the present invention.

[0061] Fig.10 This is a structural block diagram of the composition of the conversion model construction module provided in an embodiment of the present invention.

[0062] Fig.11 This is a structural block diagram of the data acquisition module provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0063] In order to make the technical problems, technical solutions and beneficial effects to be solved by 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.

[0064] like Figure 1 , Figure 2 As shown, in an embodiment of the present invention, a downhole pump work diagram conversion method based on a finite difference method comprises:

[0065] Step S100, constructing an initial downhole pump work diagram conversion model based on a finite difference method;

[0066] Step S200, acquiring data of a downhole pump performance diagram based on a downhole pump performance diagram conversion model;

[0067] Step S300, generating a simulated dynamic liquid level and liquid production based on the data of the downhole pump performance diagram;

[0068] Step S400, obtaining the actual dynamic liquid surface and liquid production, and determining the damping coefficient and the correction coefficient based on the actual dynamic liquid surface and liquid production and the simulated dynamic liquid surface and liquid production;

[0069] Step S500, iteratively optimizing the damping coefficient and the correction coefficient to determine the final downhole pump work diagram conversion model;

[0070] Step S600: converting the downhole pump diagrams of oil wells under different working conditions based on the final downhole pump diagram conversion model.

[0071] like Figures 3 to 5 As shown, as a preferred embodiment of the present invention, the step of constructing the initial downhole pump work diagram conversion model based on the finite difference method specifically includes:

[0072] Step S101, constructing a pumping well motion law model, and performing force analysis on the micro-element of the rod based on the micro-element analysis method;

[0073] Step S102, establishing wave equations for vertical wells and inclined wells respectively, and determining boundary conditions and initial conditions of the wave equations based on the pumping well motion law model;

[0074] Step S103, solving the wave equation based on the difference method and determining the initial downhole pump performance diagram conversion model.

[0075] In this embodiment, the data that the pump performance diagram conversion relies on is the indicator diagram data collected on the well. The rod is used as a carrier for information transmission. Analysis of the motion law can clarify the relationship between the indicator diagram data and the downhole pump performance diagram data, thereby providing theoretical support for the establishment of the wave equation.

[0076] The data of the indicator diagram comes from the data collected at the crank, which is a distance away from the starting point of the pump rod. The obtained data needs to be converted into the data at the initial point. According to the thinking deduction of the finite difference method, the initial rod displacement can be obtained, and the load is as follows:

[0077] u(0,j)=-u j ;

[0078]

[0079] The above formula is used to calculate its initial displacement and load, where: u(0,j) represents the initial displacement of the j-level rod; u j represents the first displacement of the j-th rod; F j represents the initial load of the first-stage rod; E represents the elastic modulus of the rod column; A rj represents the cross-sectional area of ​​the j-th sucker rod string; represents the partial derivative of s; u 1,j represents the second displacement of the j-th rod; u 0,j represents the first displacement of the j-th rod; △s represents the length of the microelement.

[0080] There are vertical wells and inclined wells in oil wells. There are some differences in the calculation of their theoretical pump work diagrams, so their respective wave equations need to be derived separately.

[0081] When deriving the wave equation, the differential force analysis is performed. Figure 3 as well as Figure 4 The force analysis of vertical well and inclined well is shown respectively. By analyzing the force and combining it with the operation of the rod, the force balance condition is obtained, and the wave equation is derived from it.

[0082] Figure 3 The stress conditions are as follows: F(s,t) represents the axial force on the cross section of the microelement; f a Represents the inertial force of the microelement; W f represents the buoyancy of the microelement in the liquid; W represents the self-weight of the microelement; f rl represents the viscous damping force of the liquid on the microelement; F(s+Δs,t) represents the axial force of the lower section of the microelement.

[0083] Figure 4 The force conditions are as follows: F (x,t) Indicates the axial force on the cross section of the microelement; F (x,t) +△F (x,t) W represents the axial force of the lower section of the microelement; rf W represents the buoyancy of the sucker rod microelement in the oil; r represents the deadweight of the sucker rod microelement; f a represents the inertial force of the microelement; f rt represents the rigid friction force of the microelement; f rl Indicates the viscous resistance of oil to the microelement; N (x) Represents the reaction force of the oil pipe on the microelement.

[0084] Establish a pumping well motion model, analyze the motion model, use the mathematical method of micro-element analysis to analyze the forces on the micro-element of the rod, establish corresponding wave equations according to the differences in vertical and inclined wells, analyze the motion law of the suspension point to determine the boundary conditions and initial conditions of the wave equation, use the finite difference method to solve the equation, and determine the final pump diagram conversion formula.

[0085] The wave equation of a multi-stage rod string in a vertical well is:

[0086] The above formula is a wave equation derived from the principle of force balance, where: c is the damping coefficient, E is the elastic modulus of the rod column; ρ r represents the density of the rod in the air; ρf represents the density of the oil; ρ′ r is the relative density of the microelement in the oil, ρ′ r =ρ r -ρ f .

[0087] The wave equation of the multi-stage rod motion in the inclined well is:

[0088] The above formula is the wave equation of the inclined well based on the principle of force balance, where: c k =c e / ρ rk A rk 、h k =μ k / ρ rk A rk , g′ k =ρ′ rk g / ρ rk ; E rk is the elastic modulus of the sucker rod; ρ rk is the density of the sucker rod in the air; A rk represents the cross-sectional area of ​​the k-th sucker rod string; c ε is the damping coefficient; μ k is the friction coefficient between the k-th sucker rod string and the tubing; ρ f is the oil density; ρ′ rk is the relative density of the microelement in the oil, ρ′ rk =ρ rk -ρ f ; α is the wellbore inclination angle.

[0089] According to the threshold of the motion law of the light rod and the suspension point, the displacement of the ground suspension point at different times is u j , the suspension point motion load is F j ,j=1,2,3,……,n. The bottom dead center is the zero point of displacement, and the upward running direction of the suspension point is the positive direction of displacement, then the boundary conditions are:

[0090] u(0,j)=-u j ;

[0091]

[0092] Considering the coupling as a primary pipe string, the following continuity conditions must be met at the interface between the rod string and the coupling:

[0093] u(s,t) i =u(s,t) i+1 , i=1,2,3,L;

[0094] F(s, t) i =F(s, t) i+1 , i=1,2,3,L;

[0095] The finite difference method is used to convert the suspension point diagram into the pump power diagram. The calculation method is as follows:

[0096] First, calculate the initial displacement. The calculation steps are as follows:

[0097] u(0,j)=-u j ;

[0098]

[0099] Determine the segment distance Δx of the rod, and iterate and calculate the mean rod segment displacement using the following calculation formula;

[0100]

[0101]

[0102]

[0103] g′=ρ′ r g / ρ r ;

[0104] ρ′ r =ρ r -ρ f ;

[0105] The above formula is an iterative formula for the mean segment displacement, and its stability condition is κ≤1; Δt means discretizing the period t into n time periods, and the time step is Δt.

[0106] The combined rod segment is iteratively calculated using the following calculation formula;

[0107]

[0108] α s =α k +α k+1 ;

[0109] β s =β k +β sk+1 ;

[0110]

[0111]

[0112]

[0113]

[0114] τ (i,j)k =δ i,j h i,k Ni,j -g′ ik cos a i ;

[0115] τ (i,j)k+1 =δ i,j h i,k+1 N i,j -g′ ik+1 cos a i ;

[0116] Where: E r Indicates the elastic modulus of the sucker rod; E rk is the elastic modulus of the k-th sucker rod; A r Indicates the cross-sectional area of ​​the sucker rod string; A rk represents the cross-sectional area of ​​the k-th sucker rod string; ρ rk is the density of the sucker rod in the air; N i,j The reaction force of the tubing on the microelement (i.e., the hydrostatic pressure of the rod-tubing annulus liquid on the sucker rod string); δ is a sign function, with the upper and lower strokes taking -1 and +1 respectively.

[0117] The pump load is calculated using the pump load solution formula;

[0118]

[0119] Among them: ratio takes the value of 1, u m,j Represents the m+1th displacement calculated for the jth sucker rod.

[0120] like Figure 6 As shown, as a preferred embodiment of the present invention, the step of obtaining data of the downhole pump performance diagram based on the downhole pump performance diagram conversion model specifically includes:

[0121] Step S201, obtaining data of the suspension point indicator diagram;

[0122] Step S202, converting the data of the suspension point indicator diagram into data of the downhole pump diagram based on the downhole pump diagram conversion model;

[0123] Step S203, smoothing the pump performance diagram data based on the average displacement to generate processed downhole pump performance diagram data.

[0124] In this embodiment, relevant information of the experimental pumping wells is collected, including vertical and inclined wells, pump diameter, pump length, material properties of rods, etc.; well performance diagram data for conversion and corresponding actual production and dynamic liquid level data for verification are collected. The conversion of the pump performance diagram depends on the support of previous data. Collecting data from different wells in different time periods is conducive to the final determination of the conversion parameters.

[0125] Combined with the collected displacement and load data of the wellbore indicator diagram, the pump diagram displacement and load are solved by the formula. Because the indicator diagram data is not continuous, the pump diagram data is also discrete. Discrete data is not used to find the effective stroke later to calculate the dynamic liquid level and production. Therefore, after obtaining the converted pump diagram data, this method also smoothes the pump diagram data based on the average displacement to obtain the final pump diagram data.

[0126] like Figure 7 As shown, as a preferred embodiment of the present invention, the step of smoothing the pump performance diagram data based on the average displacement to generate the processed downhole pump performance diagram data specifically includes:

[0127] Step S2031, calculating the difference of load or displacement, and setting the original data whose difference value is greater than a preset threshold to blank;

[0128] Step S2032, filling missing values ​​based on a linear interpolation method, and performing data smoothing according to a preset moving smoothing span;

[0129] Step S2033, calculating the quantiles of the smoothed data and setting the extremely large values ​​to blank;

[0130] Step S2034, fill in the missing values ​​based on the linear interpolation method to obtain the final data value.

[0131] In this embodiment, during the whole process of solving the pump power diagram, the formula is not much different from the traditional calculation method. The main difference lies in the calculation of the damping coefficient and the final addition of a correction coefficient to correct the error in the theoretical calculation result. The data transformed by finite difference has extreme values. In this case, the following method is used to smooth the data:

[0132] Calculate the difference of load or displacement, and set the original data whose difference value is greater than a certain difference threshold to empty;

[0133] Linear interpolation method is used to fill missing values, and then a moving smoothing span of 5 is used to smooth the data;

[0134] Calculate the quantiles of the smoothed data, set the extremely large values ​​to empty, and then use linear interpolation to fill in the missing values ​​to get the final data value.

[0135] A complete cycle of a pump performance diagram, including displacement and load, will collect 216 points in chronological order. Taking displacement as an example, the 216 points collected in chronological order are u 1 ,u 2 ,u 3 ,……,u 216 , bridging two cycles, that is, 432 points are obtained, which is u1 ,u 2 ,u 3 ,……,u 216 , U 1 , U 2 , ..., U 216 , and then smooth the data with a sliding window of 5, that is, (u 1 ,u 2 ,u 3 ,u 4 ,u 5 ) Find the average to get the new u 1 , with (u 2 ,u 3 ,u 4 ,u 5 ,u 6 ) Find the average to get the new u 2 , and so on, to obtain the displacement data after smoothing (U 1 , U 2 , ..., U 216 ), with this displacement.

[0136] The converted pump performance diagram data is smoothed and abnormal data is eliminated to pave the way for subsequent calculations and ensure the accuracy of the pump performance diagram conversion.

[0137] As a preferred embodiment of the present invention, the step of acquiring data of the downhole pump performance diagram based on the downhole pump performance diagram conversion model further includes:

[0138] Preprocess the initial downhole pump performance diagram data.

[0139] As a preferred embodiment of the present invention, the step of preprocessing the initial downhole pump performance diagram data specifically includes:

[0140] Obtain initial downhole pump performance diagram data;

[0141] Construct downhole pump performance diagram dataset;

[0142] Processing of outliers in downhole pump performance diagram data sets;

[0143] The downhole pump performance diagram dataset is filled based on the interpolation method and the complete downhole pump performance diagram dataset is extracted.

[0144] In this embodiment, after obtaining the conversion formula of the pump work diagram, when performing the pump work diagram conversion, the initial pump work diagram data needs to be processed. The pump work diagram data is a set of displacement and load values. The displacement should start with displacement 0 and end with displacement 0, so the data needs to be preprocessed. The data preprocessing process is as follows:

[0145] Collect initial pump diagram data. Collect initial pump diagram data (displacement, load) for a complete cycle.

[0146] Reconstruct the data set, assuming that the complete cycle pump power diagram data sample set is (x 1 , ..., x n ), repeat two cycles, that is, (x 1 ,……,x n ,x 1 ,……,x n ).

[0147] Data outlier processing, negative load values ​​Because some extremely small or extremely large data will appear during sensor transmission, which will affect the calculation results, it is necessary to process them. The load is data greater than 0, and all loads less than 0 are abnormal data, so the loads less than 0 need to be set to null values ​​for processing; displacement generally fluctuates between 0 and 5, and displacement data greater than 5 and less than -1 can be set to null values.

[0148] Data filling: During the data collection process, there will be some measurement points where no data is collected, that is, the data set is empty. Interpolation method is needed to fill the data set. The interpolation method uses the first and last data to fit a curve, and then predicts the missing data to achieve the purpose of data filling.

[0149] Extract the pump performance diagram data set. Extract the complete pump performance diagram data set with the starting displacement of 0 and the ending displacement of 0 (x m ,……,x (m+n) ) as the required pump diagram data.

[0150] After data preprocessing, the pump work diagram data is obtained using the pump work diagram conversion formula. After data smoothing, the effective stroke and maximum load data are extracted from the pump work diagram data, and the dynamic liquid level and output are calculated as theoretical calculation values.

[0151] After obtaining the theoretical calculated value, compare it with the actual value and then use the above-mentioned damping coefficient and correction coefficient optimization method to obtain the optimal coefficient in this well.

[0152] like Figure 8 As shown, as a preferred embodiment of the present invention, the step of iteratively optimizing the damping coefficient and the correction coefficient to determine the final downhole pump work diagram conversion model specifically includes:

[0153] Step S501, constructing a damping coefficient and correction coefficient data pair set based on oil wells in different working conditions;

[0154] Step S502, iteratively optimizing the damping coefficient and the correction coefficient using a grid search algorithm based on the damping coefficient and the correction coefficient data pair set;

[0155] Step S503: determining the final downhole pump diagram conversion model based on the iterative optimization result.

[0156] In this embodiment, the calculation of the dynamic liquid level and liquid production of the pump performance diagram is based on the effective stroke method and the maximum load difference. The pump performance diagram data obtained through the above steps can more accurately obtain the effective stroke and the maximum load difference through the algorithm program. After calculation, the dynamic liquid level and liquid production of the pump performance diagram can be obtained, and compared with the dynamic liquid level and liquid production obtained by actual measurement. When there is a deviation, the damping coefficient in the optimization equation is optimized, and a correction coefficient is added to make the theoretical calculation value approach the actual value continuously.

[0157] By performing the above steps on wells under different working conditions, different combinations of damping coefficients and correction coefficients are obtained. The algorithm is used to exhaustively enumerate the damping coefficients and correction coefficients, and iterative optimization is performed to find the optimal combination so that the theoretical values ​​of wells under all working conditions are closest to the actual values, and finally a universally applicable conversion method is obtained.

[0158] The more influencing factors are considered in the calculation of the damping coefficient, the more complicated the calculation is. In this method, the damping coefficient is initially determined by polynomial fitting. The damping coefficient obtained by only using polynomial fitting often has a large gap with the actual value. During subsequent optimization, the initial damping coefficient value is used as the basis. By adjusting the value, the theoretical value is calculated and compared with the actual value, and the damping coefficient corresponding to the final theoretical value is found. The optimal damping coefficient range is determined within a range of 20% above and below.

[0159] Selection of correction coefficient: The correction coefficient is equivalent to the constant term in the mathematical formula, and its value is equal to the ratio of the actual value to the theoretical value. The calculation of the correction coefficient depends on the dynamometer data of the same well in different time periods. After the damping coefficient is determined, the correction coefficient is calculated in a set of data, and then other data are used to verify and optimize the correction coefficient, and finally a set of optimal damping coefficients and correction coefficients are obtained. The other data mainly include the dynamic liquid level obtained in actual measurement, daily liquid production, abnormal dynamometer diagrams occurring in daily operation, daily oil production reports, operation summaries and other data.

[0160] Different wells have different optimal damping coefficients and correction coefficients. On this basis, different coefficient combinations can be used to calculate the theoretical values ​​of the wells with collected data, and a set of the best coefficient combinations can be found as the universal coefficient combination, which will serve as the initial value for subsequent iterations of new wells.

[0161] The grid search algorithm and self-update iteration are used to optimize the damping coefficient and correction coefficient, and improve the generalization ability of the algorithm.

[0162] like Fig. 9 As shown, in an embodiment of the present invention, a downhole pump work diagram conversion system based on a finite difference method is also provided, and the system comprises:

[0163] A conversion model building module 100 is used to build an initial downhole pump work diagram conversion model based on a finite difference method;

[0164] A data acquisition module 200, for acquiring data of a downhole pump performance diagram based on a downhole pump performance diagram conversion model;

[0165] A parameter generation module 300, for generating a simulated dynamic liquid level and liquid production based on data of a downhole pump performance diagram;

[0166] A coefficient determination module 400 is used to obtain the actual dynamic liquid surface and liquid production, and determine the damping coefficient and the correction coefficient based on the actual dynamic liquid surface and liquid production and the simulated dynamic liquid surface and liquid production;

[0167] The final model determination module 500 is used to iteratively optimize the damping coefficient and the correction coefficient to determine the final downhole pump work diagram conversion model;

[0168] The oil well conversion module 600 is used to convert the downhole pump diagrams of oil wells in different working conditions based on the final downhole pump diagram conversion model.

[0169] like Fig.10 As shown, as a preferred embodiment of the present invention, the conversion model building module 100 specifically includes:

[0170] A force analysis unit 101 is used to construct a pumping well motion law model and perform force analysis on the micro-element of the rod based on the micro-element analysis method;

[0171] The equation determination unit 102 is used to establish the wave equations of the vertical well and the inclined well respectively, and determine the boundary conditions and initial conditions of the wave equation based on the motion law model of the pumping well;

[0172] The solving unit 103 is used to solve the wave equation based on the difference method and determine the initial downhole pump work diagram conversion model.

[0173] like Fig.11 As shown, as a preferred embodiment of the present invention, the data acquisition module 200 specifically includes:

[0174] A data acquisition unit 201 is used to acquire data of a suspension point dynamometer diagram;

[0175] A conversion unit 202, for converting the data of the suspension point indicator diagram into data of the downhole pump diagram based on a downhole pump diagram conversion model;

[0176] The smoothing processing unit 203 is used to perform smoothing processing on the pump performance diagram data based on the average displacement to generate processed downhole pump performance diagram data.

[0177] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A downhole pump diagram conversion method based on finite difference method, characterized in that: The method comprises: The initial downhole pump diagram conversion model is constructed based on the finite difference method; Acquiring data of a downhole pump performance diagram based on a downhole pump performance diagram conversion model; Generate simulated dynamic liquid level and liquid production based on data from downhole pump performance diagram; Acquire the actual dynamic liquid surface and liquid production, and determine the damping coefficient and the correction coefficient based on the actual dynamic liquid surface and liquid production and the simulated dynamic liquid surface and liquid production; Iteratively optimize the damping coefficient and correction coefficient to determine the final downhole pump work diagram conversion model; Based on the final downhole pump diagram conversion model, the downhole pump diagrams of oil wells under different working conditions are converted.

2. According to the method for downhole pump diagram conversion based on finite difference method in claim 1, the step of constructing an initial downhole pump diagram conversion model based on finite difference method specifically comprises: Construct a pumping well motion law model and perform force analysis on the micro-element of the rod based on the micro-element analysis method; Establish wave equations for vertical wells and inclined wells respectively, and determine boundary conditions and initial conditions of the wave equations based on the motion law model of the pumping well; The wave equation is solved based on the difference method and the initial downhole pump work diagram conversion model is determined.

3. According to a downhole pump diagram conversion method based on the finite difference method as claimed in claim 1, the step of obtaining data of the downhole pump diagram based on the downhole pump diagram conversion model specifically comprises: Obtain data of suspension point indicator diagram; Based on the downhole pump performance diagram conversion model, the data of the suspension point indicator diagram is converted into the data of the downhole pump performance diagram; The pump performance diagram data is smoothed based on the average displacement to generate processed downhole pump performance diagram data.

4. According to the method for converting a downhole pump performance diagram based on the finite difference method in claim 3, the step of smoothing the pump performance diagram data based on the average displacement to generate the processed downhole pump performance diagram data specifically comprises: Calculate the difference of load or displacement, and set the original data whose difference value is greater than the preset threshold to empty; Missing values ​​are filled based on the linear interpolation method, and data smoothing is performed according to the preset moving smoothing span; Calculate the quantiles of the smoothed data and set the extremely large values ​​to empty; The missing values ​​are filled by linear interpolation method to obtain the final data value.

5. According to the method for converting a downhole pump diagram based on the finite difference method in claim 3, the step of obtaining data of the downhole pump diagram based on the downhole pump diagram conversion model further comprises: Preprocess the initial downhole pump performance diagram data.

6. According to the method for converting downhole pump performance diagram based on finite difference method in claim 5, the step of preprocessing the initial downhole pump performance diagram data specifically comprises: Obtain initial downhole pump performance diagram data; Construct downhole pump performance diagram dataset; Processing of outliers in downhole pump performance diagram data sets; The downhole pump performance diagram dataset is filled based on the interpolation method and the complete downhole pump performance diagram dataset is extracted.

7. According to the method for converting a downhole pump diagram based on the finite difference method in claim 1, the step of iteratively optimizing the damping coefficient and the correction coefficient to determine the final downhole pump diagram conversion model specifically comprises: Construct damping coefficient and correction coefficient data sets based on oil wells with different working conditions; Based on the damping coefficient and correction coefficient data set, a grid search algorithm is used to iteratively optimize the damping coefficient and the correction coefficient; The final downhole pump diagram conversion model is determined based on the iterative optimization results.

8. A downhole pump diagram conversion system based on finite difference method, characterized in that: The system comprises: A conversion model building module, used to build an initial downhole pump work diagram conversion model based on a finite difference method; A data acquisition module, used for acquiring data of a downhole pump performance diagram based on a downhole pump performance diagram conversion model; A parameter generation module, used to generate simulated dynamic liquid level and liquid production based on the data of the downhole pump performance diagram; A coefficient determination module, used for obtaining the actual dynamic liquid surface and liquid production, and determining the damping coefficient and the correction coefficient based on the actual dynamic liquid surface and liquid production and the simulated dynamic liquid surface and liquid production; The final model determination module is used to iteratively optimize the damping coefficient and the correction coefficient to determine the final downhole pump work diagram conversion model; The oil well conversion module is used to convert the downhole pump diagrams of oil wells under different working conditions based on the final downhole pump diagram conversion model.

9. According to the downhole pump work diagram conversion system based on the finite difference method of claim 8, the conversion model building module specifically comprises: The force analysis unit is used to construct a pumping well motion law model and perform force analysis on the micro-element of the rod based on the micro-element analysis method; The equation determination unit is used to establish the wave equations of the vertical well and the inclined well respectively, and determine the boundary conditions and initial conditions of the wave equation based on the motion law model of the pumping well; The solving unit is used to solve the wave equation based on the difference method and determine the initial downhole pump work diagram conversion model.

10. According to the downhole pump work diagram conversion system based on finite difference method in claim 7, the data acquisition module specifically comprises: A data acquisition unit, used for acquiring data of the suspension point dynamometer diagram; A conversion unit, used for converting the data of the suspension point indicator diagram into the data of the downhole pump diagram based on the downhole pump diagram conversion model; The smoothing processing unit is used to perform smoothing processing on the pump performance diagram data based on the average displacement to generate processed downhole pump performance diagram data.

Citation Information

Cited By

  • Pumping unit working fluid level control method based on multiple regression optimization

    CN119373466A