A method and system for controlling the start and stop of oil pumping units based on RTU
Through the RTU-based pumping machine joint start-stop control method, the target oil production volume and interpulse time are calculated using historical well opening data and current operating parameters, the problem of low precision of interpulse control between oil pumping machines in complex scenarios is solved, and high-precision and automated interpulse control are achieved.
Patent Information
- Application Number
- CN202411527605.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-10-30
AI Technical Summary
The prior art is difficult to effectively realize inter-pier pumping control in complex scenarios, resulting in a reduction in control accuracy.
The RTU-based pumping start-stop control method is used to obtain the oil well historical opening data and the current operating parameters of the pumping machine, calculate the target oil production volume and the oil well pumping time, and divide the start-stop time period according to preset conditions, monitor the pump filling degree to determine the inter-stop end time.
It significantly improves the accuracy and adaptability of the inter-pumping control of the oil pump, realizes safe and reliable inter-pumping automatic operation, and reduces the difficulty of management of well site personnel.
Smart Images

Figure CN119041884B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of oil well production, and in particular to an RTU-based method and system for controlling the start and stop of oil pumping units, and a computer-readable storage medium. Background Art
[0002] In order to improve the oil production efficiency and economic benefits of oil wells and reduce the use burden of pumping units, the intermittent pumping control method of pumping units has been more widely used. At present, the intermittent pumping control of oil wells is mainly achieved by real-time monitoring of key parameters such as oil well production and water content to adjust the real-time operating parameters of the pumping units. However, in a large number of actual scenarios, the working conditions faced by oil wells and pumping units are relatively complex. Only by monitoring the oil well parameters, it is not possible to effectively understand the operating conditions of the oil wells and pumping units in actual scenarios. Therefore, it is not suitable for intermittent pumping control in complex scenarios, which will lead to a decrease in the accuracy of intermittent pumping control of pumping units. Summary of the invention
[0003] The present invention aims to solve one of the technical problems in the related art to at least a certain extent. To this end, the present invention proposes a method and system for controlling the start and stop of intermittent pumping of an oil pumping unit based on an RTU, which can significantly improve the intermittent pumping control accuracy and adaptability of the oil pumping unit and realize safe and reliable intermittent pumping automatic operation.
[0004] In a first aspect, an embodiment of the present invention provides a method for controlling the start and stop of pumping between pumping units based on an RTU, comprising the following steps:
[0005] Step S1, obtaining historical well opening data of the oil well within a preset historical well opening period, determining the differentiated weight value of each historical well opening data according to all the historical well opening data within the preset historical well opening period, and obtaining a first well opening complexity parameter corresponding to all the historical well opening data according to all the historical well opening data and all the differentiated weight values, wherein the historical well opening data includes a first oil production volume, a historical reservoir depth, and an average of historical oil production rates;
[0006] Step S2, obtaining the current stroke conversion parameter, pumping load parameter, pumping speed parameter and second oil production of the pumping unit, and obtaining the second well opening complexity parameter based on the stroke conversion parameter, pumping load parameter and pumping speed parameter;
[0007] Step S3, obtaining a target oil production of the pumping unit according to the first oil production, the first well opening complexity parameter, the second oil production and the second well opening complexity parameter, and determining a pumping stop time of the oil well per unit time according to the target oil production;
[0008] Step S4, determining the inter-well pumping duration within a unit time based on the unit time and the oil well pumping stop duration, dividing the inter-well pumping duration into at least one group of start-stop time periods, and starting the pumping units in sequence according to the sequence of the start-stop time periods of each group;
[0009] Step S5: for any time point in each group of start-stop time periods, determine whether the first parameter condition and the second parameter condition corresponding to the time point are satisfied at the same time; if so, keep the time point in the corresponding start-stop time period; otherwise, delete the time point from the corresponding start-stop time period, wherein the first parameter condition is that the dynamic liquid level depth of the oil well is less than or equal to the first preset parameter threshold, and the second parameter condition is that the oil well pressure is greater than or equal to the second preset parameter threshold and less than or equal to the third preset parameter threshold;
[0010] Step S6: for each group of start-stop time periods, the intermittent pumping start time is obtained according to the length of the start-stop time period, the dynamic liquid level depths of all oil wells, and the pressures of all oil wells, and the pump fullness of the pumping unit in the start-stop time period is monitored, and the intermittent pumping end time is determined according to the pump fullness and the fourth preset parameter threshold, so as to obtain the intermittent pumping start time and the intermittent pumping end time corresponding to each group of start-stop time periods;
[0011] Step S7, obtaining a target operation cycle of the oil pumping unit according to each group of start-stop time periods and the intermittent pumping start time and intermittent pumping end time corresponding to each group of start-stop time periods, and controlling the oil pumping unit to perform intermittent pumping operations of the oil wells according to the target operation cycle.
[0012] Optionally, in one embodiment of the present invention, the step in step S3, obtaining the target oil production of the pumping unit according to the first oil production, the first well opening complexity parameter, the second oil production and the second well opening complexity parameter, comprises the following steps:
[0013] Step S31, the first oil production, the first well opening complexity parameter, the second oil production and the second well opening complexity parameter are substituted into the well opening oil production prediction calculation formula to calculate the target oil production of the pumping unit, wherein the well opening oil production prediction calculation formula is as follows:
[0014] ;
[0015] is the target oil production, is the first well opening complexity parameter, is the second well opening complexity parameter, is the first oil production, The second oil production.
[0016] Optionally, in one embodiment of the present invention, the step in step S6, obtaining the intermittent pumping start time according to the duration of the start-stop time period, the dynamic liquid level depths of all oil wells, and the pressures of all oil wells, comprises the following steps:
[0017] Step S61: Substitute the duration of the start-stop time period, the dynamic liquid level depth of all oil wells, and the pressure of all oil wells into the intermittent pumping time prediction calculation formula to calculate the intermittent pumping start time, wherein the intermittent pumping time prediction calculation formula is as follows:
[0018] ;
[0019] is the intermittent pumping start time, is the duration of the start and stop time period, The first The dynamic liquid level depth of the oil well corresponding to the time point, The first The oil well pressure corresponding to the time point is The total number of time points in the start and stop time period.
[0020] Optionally, in one embodiment of the present invention, the step in step S6, monitoring the pump fullness of the oil pumping unit during the start-stop time period, and determining the end time of the intermittent pumping according to the pump fullness and a fourth preset parameter threshold, comprises the following steps:
[0021] Step S62: generating a third parameter condition according to the pump fullness and the fourth preset parameter threshold, wherein the third parameter condition is that the pump fullness is greater than or equal to the fourth preset parameter threshold;
[0022] Step S63: Determine the end time of intermittent pumping according to the third parameter condition and the pump fullness of the oil pumping unit during the start-stop time period.
[0023] Optionally, in one embodiment of the present invention, the start-stop time period includes a first start time and a first end time; the step S63 includes the following steps:
[0024] Step S631, starting from the first start time, traverse and filter each time point within the start and stop time period according to the third parameter condition. If there is at least one time point that meets the third parameter condition, determine the earliest time point among all time points that meet the third parameter condition as the end time of the intermittent extraction; otherwise, determine the first end time as the end time of the intermittent extraction.
[0025] Optionally, in one embodiment of the present invention, the step in step S1, determining the differentiated weight value of each historical well opening data according to all historical well opening data within a preset historical well opening period, comprises the following steps:
[0026] Step S11, the first oil production volume and the preset length of the historical well opening period are substituted into the first indicator calculation formula to calculate the first differentiated weight value, and the historical reservoir depth and the preset length of the historical well opening period are substituted into the second indicator calculation formula to calculate the second differentiated weight value, and the historical oil production rate average and the preset length of the historical well opening period are substituted into the third indicator calculation formula to calculate the third differentiated weight value, wherein the first indicator calculation formula is as follows:
[0027] ;
[0028] is the first differentiation weight value, To preset the duration of the historical well opening period, is the first oil production;
[0029] The calculation formula of the second indicator is as follows:
[0030] ;
[0031] is the second differentiation weight value, To preset the duration of the historical well opening period, is the historical reservoir depth;
[0032] The calculation formula of the third indicator is as follows:
[0033] ;
[0034] is the third differentiation weight value, To preset the duration of the historical well opening period, is the historical average oil production rate.
[0035] Optionally, in one embodiment of the present invention, the step in step S1, obtaining a first well drilling complexity parameter corresponding to all historical well drilling data according to all historical well drilling data and all differentiated weight values, comprises the following steps:
[0036] Step S12, respectively obtaining the product of the first oil production volume and the first differentiated weight value, the product of the historical reservoir depth and the second differentiated weight value, and the product of the historical oil production rate mean and the third differentiated weight value, and correspondingly obtaining the first well opening parameter, the second well opening parameter, and the third well opening parameter;
[0037] Step S13: Substitute the first well opening parameter, the second well opening parameter and the third well opening parameter into the complexity calculation formula to calculate the first well opening complexity parameter corresponding to all historical well opening data, wherein the complexity calculation formula is as follows:
[0038] ;
[0039] is the first well opening complexity parameter, is the first well opening parameter, is the second well opening parameter, is the third well opening parameter, is the first preset complexity factor, is the second preset complexity factor, , , .
[0040] In a second aspect, an embodiment of the present invention provides an RTU-based pumping start-stop control system for oil pumping units, comprising:
[0041] at least one processor;
[0042] at least one memory for storing at least one program;
[0043] When at least one of the programs is executed by at least one of the processors, the RTU-based inter-pumping start and stop control method as described in the first aspect is implemented.
[0044] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a program executable by a processor, and when the program executable by the processor is executed by the processor, it is used to implement the RTU-based inter-pumping start and stop control method as described in the first aspect.
[0045] The RTU-based pumping start-stop control method and system proposed in the present invention not only considers the actual impact of the historical well-opening data of the oil well within the preset historical well-opening period on the oil production, that is, by assigning differentiated weight values to the first oil production, the historical reservoir depth and the historical oil production speed average to calculate the first well-opening complexity parameter of all historical well-opening data, but also considers the actual impact of the current operating status of the pumping unit on the oil production, that is, the second well-opening complexity parameter is calculated according to the acquired stroke conversion parameter, pumping load parameter and pumping speed parameter, so that the target oil production of the pumping unit can be obtained according to the determined first oil production, first well-opening complexity parameter, second oil production and second well-opening complexity parameter; on this basis, The inter-pumping time of the oil wells corresponding to the pumping unit can be determined effectively and reliably, and then by dividing the inter-pumping time of the oil wells into at least one group of start-stop time periods, the time points in each group of start-stop time periods are traversed and screened, so as to obtain the required start-stop time periods and the inter-pumping start time under the corresponding circumstances, and the influence of the pump fullness of the pumping unit in the start-stop time period on the inter-pumping control is also considered, so that the inter-pumping end time can be determined according to the pump fullness and the corresponding parameter threshold value to obtain the target operation cycle of the pumping unit, and finally the pumping unit is controlled to perform inter-pumping operations of the oil wells according to the target operation cycle, which can significantly improve the inter-pumping control accuracy and adaptability of the pumping unit, realize safe and reliable inter-pumping automatic operation, and help reduce the difficulty of inter-pumping management for well site personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a flow chart of a method for controlling the start and stop of oil pumping units based on an RTU according to an embodiment of the present invention;
[0047] Figure 2 yes Figure 1 A partial flow chart of the step "obtaining a first well drilling complexity parameter corresponding to all historical well drilling data according to all historical well drilling data and all differentiated weight values" in step S1 of FIG.
[0048] Figure 3 yes Figure 1 A partial flow chart of the step S6 of "monitoring the pump fullness of the oil pumping unit during the start-stop time period, and determining the end time of the intermittent pumping according to the pump fullness and the fourth preset parameter threshold";
[0049] Figure 4 yes Figure 3 Flow chart of step S63 in FIG.
[0050] Figure 5 The present invention is a schematic structural diagram of an RTU-based oil pumping start-stop control system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0051] like Figure 1 As shown, an embodiment of the present invention provides an RTU-based inter-pumping start-stop control method for oil pumps, wherein RTU, namely Remote Terminal Unit, is a computer measurement and control unit with a modular structure designed for long communication distances and harsh industrial field environments; the RTU in this embodiment is implemented based on various related hardware and software, and can be but not limited to using a dedicated RTU in a SCADA system to achieve inter-pumping start-stop control of oil pumps. Since the specific structure and form of RTU are well known to those skilled in the art, they are not described here in detail; the RTU-based inter-pumping start-stop control method for oil pumps can be but not limited to including steps S1 to S7.
[0052] Step S1, obtaining historical well opening data of the oil well within a preset historical well opening period, determining differentiated weight values of various historical well opening data according to all historical well opening data within the preset historical well opening period, and obtaining a first well opening complexity parameter corresponding to all historical well opening data according to all historical well opening data and all differentiated weight values, wherein the historical well opening data may include but is not limited to a first oil production volume, a historical reservoir depth, and an average of historical oil production rates, and the preset historical well opening period may be selected and set accordingly according to a specific application scenario, for example, 3 days, one week, half a month, or one month may be selected as the preset historical well opening period, which is not limited here;
[0053] It should be noted that the first oil production volume is the total oil production volume of the statistical oil well in the preset historical well opening period, the historical oil reservoir depth can be but not limited to the maximum value of the oil reservoir depth in the preset historical well opening period, and the historical oil production speed mean is the average value of the pumping speed of the statistical pumping unit in the preset historical well opening period; the historical well opening data can also include but not limited to oil well location parameters, oil well well diameter, drilling fluid parameters, oil well geological parameters and oil well development and production parameters, among which the drilling fluid parameters can include but not limited to density, impurity content and pH value, etc., the oil well geological parameters can include but not limited to oil well permeability, oil well sedimentation parameters, etc., and the common oil well development and production parameters can include but not limited to oil well liquid production, maximum oil production speed, etc., which are not limited here;
[0054] Step S2, obtaining the current stroke conversion parameter, pumping load parameter, pumping speed parameter and second oil production of the oil pumping unit, and obtaining the second well opening complexity parameter based on the stroke conversion parameter, the pumping load parameter and the pumping speed parameter, wherein the stroke conversion parameter can be obtained by monitoring the braking condition inside the oil pumping unit, for example, obtaining the upper stroke conversion point and the lower stroke conversion point of the oil pumping unit, and using them as the stroke conversion parameter, etc., the pumping load parameter can be obtained by setting a load sensor on the oil pumping unit, the pumping speed parameter can be obtained by setting a displacement sensor on the oil pumping unit, and the second oil production is the current oil production of the oil pumping unit as calculated;
[0055] Step S3, obtaining a target oil production of the pumping unit according to the first oil production, the first well opening complexity parameter, the second oil production and the second well opening complexity parameter, and determining a pumping stop time of the oil well per unit time according to the target oil production;
[0056] Step S4, based on the unit time and the oil well pumping stop time, determine the oil well pumping time between units within the unit time, divide the oil well pumping time between units into at least one group of start-stop time periods, and start the oil pumping units in sequence according to the sequence of the start-stop time periods of each group, wherein the specific value of the unit time can be set accordingly according to different application scenarios, for example, set to 1 day, one week, half a month or one month, etc., when the unit time and the corresponding oil well pumping stop time are determined, the oil well pumping time between units within the unit time can be obtained by subtracting the oil well pumping stop time from the unit time, for example, if the unit time is 1 day and the oil well pumping stop time is 10 hours, then the oil well pumping time between units within the unit time is 14 hours; the number of start-stop time periods can be set by oneself, and the specific needs are determined according to the division situation, for example, taking the unit time as 1 day and the oil well pumping stop time corresponding time period as 14:00-24:00 as an example, then the oil well pumping time corresponding time period is 00:00-14:00, if only Divide into one group of start-stop time periods, then the start-stop time period is 00:00-14:00. If divided into three groups of start-stop time periods, it can be but not limited to 00:00-04:00, 05:00-09:00 and 10:00-14:00, etc. Each node can determine it by itself, and start the pumping unit at 00:00 in chronological order, and shut down the pumping unit at 04:00, and so on. Start the pumping unit according to the corresponding start-stop time period, so as to monitor the operation of the pumping unit in each start-stop time period, so as to execute the subsequent corresponding steps; similarly, taking the unit time of 1 day and the time period corresponding to the oil well stop pumping time of 12:00-19:00 as an example, at least two groups of start-stop time periods need to be divided. If two groups of start-stop time periods are divided, the start-stop time periods are 00:00-19:00 and 19:00-24:00. If more groups of start-stop time periods are divided, they can be divided similarly with reference to the specific method of the above example, and no further description is given;
[0057] Step S5: for any time point in each group of start-stop time periods, determine whether the first parameter condition and the second parameter condition corresponding to the time point are satisfied at the same time. If so, keep the time point in the corresponding start-stop time period, otherwise delete the time point from the corresponding start-stop time period, wherein the first parameter condition is that the dynamic liquid level depth of the oil well is less than or equal to the first preset parameter threshold, and the second parameter condition is that the oil well pressure is greater than or equal to the second preset parameter threshold and less than or equal to the third preset parameter threshold, that is, only the corresponding time point that satisfies the first parameter condition and the second parameter condition at the same time is considered valid and can be retained, otherwise delete the time point from the corresponding start-stop time period. point to prevent the time point from affecting the normal start and stop of the oil pump; the specific values of the first preset parameter threshold, the second preset parameter threshold and the third preset parameter threshold can be set accordingly according to different application scenarios, which will not be described in detail here; wherein, the time point can be set accordingly according to the specific scenario, for example, within a certain start and stop time period, the record is archived once every 1 hour, that is, every 1 hour is regarded as a node, which can be regarded as a time point, then the first time point is the 60th minute from the start of the start and stop time period, the 120th minute is the second time point, the 180th minute is the third time point, and so on, all the time points within the start and stop time period can be determined;
[0058] Step S6: for each group of start-stop time periods, the intermittent pumping start time is obtained according to the length of the start-stop time period, the dynamic liquid level depths of all oil wells, and the pressures of all oil wells, and the pump fullness of the pumping unit in the start-stop time period is monitored, and the intermittent pumping end time is determined according to the pump fullness and the fourth preset parameter threshold, so as to obtain the intermittent pumping start time and the intermittent pumping end time corresponding to each group of start-stop time periods;
[0059] Step S7, obtaining a target operation cycle of the oil pumping unit according to each group of start-stop time periods and the intermittent pumping start time and intermittent pumping end time corresponding to each group of start-stop time periods, and controlling the oil pumping unit to perform intermittent pumping operations of the oil wells according to the target operation cycle.
[0060] In this step, not only the actual influence of the historical well-opening data of the oil well within the preset historical well-opening period on the oil production is taken into account, that is, by assigning differentiated weight values to the first oil production, the historical reservoir depth and the historical oil production speed average to calculate the first well-opening complexity parameter of all historical well-opening data, but also the actual influence of the current operating status of the pumping unit on the oil production is taken into account, that is, the second well-opening complexity parameter is calculated according to the acquired stroke conversion parameter, pumping load parameter and pumping speed parameter, so that the target oil production of the pumping unit can be obtained according to the determined first oil production, first well-opening complexity parameter, second oil production and second well-opening complexity parameter; on this basis, the oil pumping unit can be effectively and reliably determined. The inter-pumping time of the oil well corresponding to the pump is obtained, and then the time points in each group of start-stop time periods are traversed and screened by dividing the inter-pumping time of the oil well into at least one group of start-stop time periods, so as to obtain the required start-stop time periods and the inter-pumping start time under the corresponding circumstances. In addition, the influence of the pump fullness of the oil pumping unit in the start-stop time period on the inter-pumping control is also considered, so that the inter-pumping end time can be determined according to the pump fullness and the corresponding parameter threshold value to obtain the target operation cycle of the oil pumping unit. Finally, the oil pumping unit is controlled to perform inter-pumping operations of the oil wells according to the target operation cycle, which can significantly improve the inter-pumping control accuracy and adaptability of the oil pumping unit, realize safe and reliable inter-pumping automatic operation, and help reduce the difficulty of inter-pumping management for well site personnel.
[0061] In one embodiment, the specific method for obtaining the second well drilling complexity parameter based on the stroke conversion parameter, the pumping load parameter and the pumping speed parameter in step S2 can be multiple. For example, it can be but not limited to determining the current operating cycle of the pumping unit according to the stroke conversion parameter, and on this basis, taking the current operating cycle as the statistical range, combining the current pumping load parameter and the pumping speed parameter, calculate the superposition value of the product of the pumping load parameter and the pumping speed parameter in the current operating cycle, and the corresponding calculation method can use integration to obtain the second well drilling complexity parameter, or, technical personnel in this field can select the corresponding calculation method according to the specific application scenario to obtain the second well drilling complexity parameter, etc., which is not limited here.
[0062] In one embodiment, in step S3, there may be multiple specific ways to determine the oil well stop pumping time per unit time according to the target oil production. For example, it may be determined by analyzing the historical well opening data. Specifically, the first oil production in the historical well opening data and the actually recorded oil well stop pumping time are counted to determine the correlation between the two. Among them, multiple historical well opening data may be selected, so that a more accurate and reliable correlation relationship formula can be obtained, and then the target oil production is substituted into the linear relationship formula to determine the oil well stop pumping time per unit time. In one example, when the first oil production is 2 tons, the actually recorded oil well stop pumping time is 4 hours, and when the first oil production is 1.5 tons, the actually recorded oil well stop pumping time is 6 hours, then when the target oil production is 1 ton, the oil well stop pumping time per unit time can be determined to be 8 hours, and so on. The oil well stop pumping time per unit time can be determined according to the target oil production, or those skilled in the art can determine the oil well stop pumping time per unit time according to the target oil production in combination with specific application scenarios, and there is no limitation here.
[0063] In one embodiment, the steps in step S7 can be performed in a variety of specific ways to obtain the target operating cycle of the oil pump based on each group of start-stop time periods and the inter-pumping start time and inter-pumping end time corresponding to each group of start-stop time periods. For example, when the inter-pumping start time and inter-pumping end time corresponding to each group of start-stop time periods are determined respectively, the required target time period can be determined from each group of start-stop time periods, that is, the duration between the inter-pumping start time and the inter-pumping end time is used as the required target time period, and the target time period is used as a part of the target operating cycle of the oil pump. That is to say, the corresponding target time periods in all start-stop time periods are summarized to obtain the target operating cycle of the oil pump.
[0064] In one embodiment, the steps in step S7, controlling the oil pump to perform inter-well pumping operations according to the target operating cycle, can be performed by technical personnel in this field based on the determined target operating cycle. For example, within the determined unit time, the corresponding time portion of the target operating cycle contained in the unit time can be further determined according to the target operating cycle, and the oil pump can be controlled to perform inter-well pumping operations during this time portion. Alternatively, since the target operating cycle is cyclical, if a specific target operating cycle is desired, the oil pump can be controlled to perform inter-well pumping operations during a desired target operating cycle, etc., and there is no limitation here.
[0065] In one embodiment of the present invention, the steps in step S1, determining the differentiated weight value of each historical well opening data according to all historical well opening data within a preset historical well opening period, may include but is not limited to the following steps:
[0066] Step S11, substituting the first oil production volume and the duration of the preset historical well opening period into the first indicator calculation formula to calculate the first differentiated weight value, and substituting the historical reservoir depth and the duration of the preset historical well opening period into the second indicator calculation formula to calculate the second differentiated weight value, and substituting the historical oil production rate mean and the duration of the preset historical well opening period into the third indicator calculation formula to calculate the third differentiated weight value;
[0067] The calculation formula of the first indicator is as follows:
[0068] ;
[0069] is the first differentiation weight value, To preset the duration of the historical well opening period, is the first oil production;
[0070] The calculation formula of the second indicator is as follows:
[0071] ;
[0072] is the second differentiation weight value, To preset the duration of the historical well opening period, is the historical reservoir depth;
[0073] The calculation formula of the third indicator is as follows:
[0074] ;
[0075] is the third differentiation weight value, To preset the duration of the historical well opening period, is the historical average oil production rate.
[0076] In this step, the corresponding differentiated weight values are calculated respectively through various indicator calculation formulas, so as to determine the differentiated weights of the first oil production volume, historical reservoir depth and historical oil production rate average. The differentiated weights can be used to determine the proportion of each historical well drilling data on the well drilling complexity, so as to further obtain the first well drilling complexity parameter corresponding to all historical well drilling data based on all historical well drilling data and all differentiated weight values.
[0077] It should be noted that The specific value of can be configured according to the specific circumstances of different scenarios, which depends on the distribution of the selected preset historical well opening periods. There is no restriction here. For example, if it is necessary to analyze the intermittent pumping of the oil pumping unit in a short-term situation, then the duration of the preset historical well opening period can be selected to be relatively short. Conversely, if it is necessary to analyze the intermittent pumping of the oil pumping unit in a relatively long-term situation, the duration of the preset historical well opening period can be selected to be a relatively large value.
[0078] like Figure 2 As shown, in one embodiment of the present invention, the steps in step S1, obtaining the first well drilling complexity parameter corresponding to all the historical well drilling data according to all the historical well drilling data and all the differentiated weight values, may include but is not limited to the following steps:
[0079] Step S12, respectively obtaining the product of the first oil production volume and the first differentiated weight value, the product of the historical reservoir depth and the second differentiated weight value, and the product of the historical oil production rate mean and the third differentiated weight value, and correspondingly obtaining the first well opening parameter, the second well opening parameter, and the third well opening parameter;
[0080] Step S13, substituting the first well opening parameter, the second well opening parameter and the third well opening parameter into the complexity calculation formula, and calculating and obtaining the first well opening complexity parameter corresponding to all historical well opening data;
[0081] The complexity calculation formula is as follows:
[0082] ;
[0083] is the first well opening complexity parameter, is the first well opening parameter, is the second well opening parameter, is the third well opening parameter, is the first preset complexity factor, is the second preset complexity factor, , , .
[0084] In this step, by calculating the product of each historical well opening data and the corresponding differentiated weight value, the well opening parameters corresponding to each historical well opening data can be obtained respectively. The well opening parameters can be used to characterize the complexity of each historical well opening data. On this basis, the calculated first well opening parameter, second well opening parameter and third well opening parameter are substituted into the complexity calculation formula to accurately calculate the first well opening complexity parameter corresponding to all historical well opening data.
[0085] It should be noted that, since the influence of oil production on intermittent pumping control is greater than that of reservoir depth on intermittent pumping control, in this embodiment, the first preset complexity factor corresponding to the first well opening parameter is set larger than the second preset complexity factor corresponding to the second well opening parameter, that is, , thus reflecting the difference in the degree of impact between the two, but it is necessary to ensure This ensures that the influence of the historical oil production rate mean on the intermittent pumping control is taken into account, making the calculation result of the first well opening complexity parameter more accurate and reliable, thereby achieving the effect of reducing errors.
[0086] In one embodiment of the present invention, the steps in step S3, according to the first oil production rate, the first well opening complexity parameter, the second oil production rate and the second well opening complexity parameter, obtain the target oil production rate of the pumping unit, which may include but is not limited to the following steps:
[0087] Step S31, the first oil production, the first well opening complexity parameter, the second oil production and the second well opening complexity parameter are substituted into the well opening oil production prediction calculation formula to calculate the target oil production of the pumping unit, wherein the well opening oil production prediction calculation formula is as follows:
[0088] ;
[0089] is the target oil production, is the first well opening complexity parameter, is the second well opening complexity parameter, is the first oil production, The second oil production.
[0090] In this step, taking into account the different effects of the size relationship between the first well opening complexity parameter and the second well opening complexity parameter on the target oil production, the target oil production of the oil pump is calculated by distinguishing different situations. Specifically, if the first well opening complexity parameter is equal to the second well opening complexity parameter, it means that there is no differential influence between the two. Therefore, the target oil production of the oil pump can be set to the average value between the first oil production and the second oil production; if the first well opening complexity parameter is greater than the second well opening complexity parameter, the first well opening complexity parameter and the first oil production are used to calculate and obtain the corresponding target oil production; if the first well opening complexity parameter is less than the second well opening complexity parameter, the second well opening complexity parameter and the second oil production are used to calculate and obtain the corresponding target oil production; the target oil production calculated in this way is more accurate and can be adapted to a variety of application scenarios.
[0091] In one embodiment of the present invention, the steps in step S6, obtaining the intermittent pumping start time according to the duration of the start-stop time period, the dynamic liquid level depths of all oil wells, and the pressures of all oil wells, may include but are not limited to the following steps:
[0092] Step S61: Substitute the duration of the start-stop time period, the dynamic liquid level depth of all oil wells, and the pressure of all oil wells into the intermittent pumping time prediction calculation formula to calculate the intermittent pumping start time, wherein the intermittent pumping time prediction calculation formula is as follows:
[0093] ;
[0094] is the intermittent pumping start time, is the duration of the start and stop time period, The first The dynamic liquid level depth of the oil well corresponding to the time point, The first The oil well pressure corresponding to the time point is The total number of time points in the start and stop time period.
[0095] In this step, all time points in the start-stop time period are considered to be included in the calculation scope, that is, the dynamic liquid level depth and oil well pressure corresponding to each time point in the start-stop time period are multiplied, and finally all the product results are superimposed to obtain a corresponding time calculation parameter value, and then the length of the start-stop time period is combined with the calculated time calculation parameter value, so as to effectively and reliably calculate the intermittent pumping start time to reduce the calculation error.
[0096] It should be noted that the dynamic liquid level depth and oil well pressure corresponding to each time point may change at any time. Therefore, the dynamic liquid level depth and oil well pressure corresponding to each time point need to be monitored in real time. Only in this way can we better understand the operation status of the oil well at each time point, so as to calculate a more accurate intermittent pumping start time.
[0097] like Figure 3 As shown, in one embodiment of the present invention, the steps in step S6, monitoring the pump fullness of the oil pumping unit during the start-stop time period, and determining the end time of the intermittent pumping according to the pump fullness and the fourth preset parameter threshold, may include but are not limited to the following steps:
[0098] Step S62: generating a third parameter condition according to the pump fullness and the fourth preset parameter threshold, wherein the third parameter condition is that the pump fullness is greater than or equal to the fourth preset parameter threshold;
[0099] Step S63: Determine the end time of intermittent pumping according to the third parameter condition and the pump fullness of the oil pumping unit during the start-stop time period.
[0100] In this step, under the condition of presetting the fourth preset parameter threshold, the pump fullness is compared with the fourth preset parameter threshold to determine the corresponding third parameter condition, wherein the third parameter condition is that the pump fullness is greater than or equal to the fourth preset parameter threshold, indicating that the pump fullness meets the requirements when it is not less than the fourth preset parameter threshold, and then the end time of the intermittent pumping can be effectively determined based on the third parameter condition and the pump fullness of the pumping unit during the start-stop time period.
[0101] It should be noted that the specific value of the fourth preset parameter threshold can be set accordingly according to different application scenarios and is not limited here.
[0102] like Figure 4 As shown, in one embodiment of the present invention, when the start-stop time period includes a first start time and a first end time, step S63 may include but is not limited to the following steps:
[0103] Step S631, starting from the first start time, traverse and filter each time point within the start and stop time period according to the third parameter condition. If there is at least one time point that meets the third parameter condition, determine the earliest time point among all time points that meet the third parameter condition as the end time of the intermittent extraction; otherwise, determine the first end time as the end time of the intermittent extraction.
[0104] In this step, for each start-stop time period, starting from the first start time of the start-stop time period, the pump fullness corresponding to each time point in the start-stop time period is screened based on the determined third parameter condition. During the screening process, if there is at least one time point that meets the third parameter condition, that is, at least one time point is screened out, then one of the earliest time points can be determined from all the screened time points, that is, one of the time points that first meets the pump fullness greater than or equal to the fourth preset parameter threshold, which can be used as the end time of the intermittent pumping; conversely, if all time points do not meet the third parameter condition, it means that the corresponding pump fullness does not meet the requirements. At this time, considering the integrity of the overall start-stop control, the first end time is determined as the end time of the intermittent pumping.
[0105] Figure 5 FIG. 1 is a schematic diagram of a pumping start-stop control system 1000 based on an RTU provided by an embodiment of the present invention. Figure 5 As shown, the RTU-based pumping unit inter-pumping start-stop control system 1000 includes a memory 1100 and a processor 1200. The number of the memory 1100 and the processor 1200 can be one or more. Figure 5In the embodiment, a memory 1100 and a processor 1200 are taken as an example; the memory 1100 and the processor 1200 in the device may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0106] The memory 1100, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the RTU-based oil pumping unit inter-pumping start-stop control method provided in any embodiment of the present invention. The processor 1200 implements the above-mentioned RTU-based oil pumping unit inter-pumping start-stop control method by running the software programs, instructions and modules stored in the memory 1100.
[0107] The memory 1100 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function. In addition, the memory 1100 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 1100 may further include a memory remotely arranged relative to the processor 1200, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0108] An embodiment of the present invention further provides a computer-readable storage medium storing computer-executable instructions for executing the RTU-based inter-pumping start-stop control method as provided in any embodiment of the present invention.
[0109] An embodiment of the present invention further provides a computer program product, including a computer program or computer instructions, wherein the computer program or computer instructions are stored in a computer-readable storage medium, and a processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device executes the RTU-based inter-pumping start-stop control method provided in any embodiment of the present invention.
[0110] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0111] In hardware implementation, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or transient medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0112] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process or an execution thread, and a component may be located on a computer or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may communicate, for example, through local or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, or a network, such as the Internet interacting with other systems through signals).
Claims
1. A method for controlling the start and stop of oil pumping units based on RTU, characterized in that: The steps include: Step S1, obtaining historical well opening data of the oil well within a preset historical well opening period, determining the differentiated weight value of each historical well opening data according to all the historical well opening data within the preset historical well opening period, and obtaining a first well opening complexity parameter corresponding to all the historical well opening data according to all the historical well opening data and all the differentiated weight values, wherein the historical well opening data includes a first oil production volume, a historical reservoir depth, and an average of historical oil production rates; Step S2, obtaining the current stroke conversion parameter, pumping load parameter, pumping speed parameter and second oil production of the pumping unit, and obtaining the second well opening complexity parameter based on the stroke conversion parameter, pumping load parameter and pumping speed parameter; Step S3, obtaining a target oil production of the pumping unit according to the first oil production, the first well opening complexity parameter, the second oil production and the second well opening complexity parameter, and determining a pumping stop time of the oil well per unit time according to the target oil production; Step S4, determining the inter-well pumping duration within a unit time based on the unit time and the oil well pumping stop duration, dividing the inter-well pumping duration into at least one group of start-stop time periods, and starting the pumping units in sequence according to the sequence of the start-stop time periods of each group; Step S5: for any time point in each group of start-stop time periods, determine whether the first parameter condition and the second parameter condition corresponding to the time point are satisfied at the same time; if so, keep the time point in the corresponding start-stop time period; otherwise, delete the time point from the corresponding start-stop time period, wherein the first parameter condition is that the dynamic liquid level depth of the oil well is less than or equal to the first preset parameter threshold, and the second parameter condition is that the oil well pressure is greater than or equal to the second preset parameter threshold and less than or equal to the third preset parameter threshold; Step S6: for each group of start-stop time periods, the intermittent pumping start time is obtained according to the length of the start-stop time period, the dynamic liquid level depths of all oil wells, and the pressures of all oil wells, and the pump fullness of the pumping unit in the start-stop time period is monitored, and the intermittent pumping end time is determined according to the pump fullness and the fourth preset parameter threshold, so as to obtain the intermittent pumping start time and the intermittent pumping end time corresponding to each group of start-stop time periods; Step S7, obtaining a target operation cycle of the oil pumping unit according to each group of start-stop time periods and the intermittent pumping start time and intermittent pumping end time corresponding to each group of start-stop time periods, and controlling the oil pumping unit to perform intermittent pumping operations of the oil wells according to the target operation cycle.
2. The RTU-based pumping unit start-stop control method according to claim 1 is characterized in that: The step in step S3, obtaining the target oil production of the pumping unit according to the first oil production, the first well opening complexity parameter, the second oil production and the second well opening complexity parameter, comprises the following steps: Step S31, the first oil production, the first well opening complexity parameter, the second oil production and the second well opening complexity parameter are substituted into the well opening oil production prediction calculation formula to calculate the target oil production of the pumping unit, wherein the well opening oil production prediction calculation formula is as follows: ; is the target oil production, is the first well opening complexity parameter, is the second well opening complexity parameter, is the first oil production, The second oil production.
3. The RTU-based pumping unit start-stop control method according to claim 1 is characterized in that: The step in step S6, obtaining the intermittent pumping start time according to the duration of the start-stop time period, the dynamic liquid level depth of all oil wells and the pressure of all oil wells, includes the following steps: Step S61: Substitute the duration of the start-stop time period, the dynamic liquid level depth of all oil wells, and the pressure of all oil wells into the intermittent pumping time prediction calculation formula to calculate the intermittent pumping start time, wherein the intermittent pumping time prediction calculation formula is as follows: ; is the intermittent pumping start time, is the duration of the start and stop time period, The first The dynamic liquid level depth of the oil well corresponding to the time point, The first The oil well pressure corresponding to the time point is The total number of time points in the start and stop time period.
4. The RTU-based pumping unit start-stop control method according to claim 1, characterized in that: The step in step S6, monitoring the pump fullness of the pumping unit during the start-stop time period, and determining the end time of the intermittent pumping according to the pump fullness and the fourth preset parameter threshold, includes the following steps: Step S62: generating a third parameter condition according to the pump fullness and the fourth preset parameter threshold, wherein the third parameter condition is that the pump fullness is greater than or equal to the fourth preset parameter threshold; Step S63: Determine the end time of intermittent pumping according to the third parameter condition and the pump fullness of the oil pumping unit during the start-stop time period.
5. The RTU-based pumping unit start-stop control method according to claim 4 is characterized in that: The start-stop time period includes a first start time and a first end time; the step S63 includes the following steps: Step S631, starting from the first start time, traverse and filter each time point within the start and stop time period according to the third parameter condition. If there is at least one time point that meets the third parameter condition, determine the earliest time point among all time points that meet the third parameter condition as the end time of the intermittent extraction; otherwise, determine the first end time as the end time of the intermittent extraction.
6. The RTU-based pumping unit start-stop control method according to claim 1, characterized in that: The step in step S1, determining the differentiated weight value of each historical well opening data according to all historical well opening data within a preset historical well opening period, includes the following steps: Step S11, the first oil production volume and the preset length of the historical well opening period are substituted into the first indicator calculation formula to obtain the first differentiated weight value, and the historical reservoir depth and the preset length of the historical well opening period are substituted into the second indicator calculation formula to obtain the second differentiated weight value, and the historical oil production rate average and the preset length of the historical well opening period are substituted into the third indicator calculation formula to obtain the third differentiated weight value, wherein the first indicator calculation formula is as follows: ; is the first differentiation weight value, To preset the duration of the historical well opening period, is the first oil production; The calculation formula of the second indicator is as follows: ; is the second differentiation weight value, To preset the duration of the historical well opening period, is the historical reservoir depth; The calculation formula of the third indicator is as follows: ; is the third differentiation weight value, To preset the duration of the historical well opening period, is the historical average oil production rate.
7. The RTU-based pumping unit start-stop control method according to claim 6 is characterized in that: The step in step S1, obtaining a first well drilling complexity parameter corresponding to all historical well drilling data according to all historical well drilling data and all differentiated weight values, comprises the following steps: Step S12, respectively obtaining the product of the first oil production volume and the first differentiated weight value, the product of the historical reservoir depth and the second differentiated weight value, and the product of the historical oil production rate mean and the third differentiated weight value, and correspondingly obtaining the first well opening parameter, the second well opening parameter, and the third well opening parameter; Step S13: Substitute the first well opening parameter, the second well opening parameter and the third well opening parameter into the complexity calculation formula to calculate the first well opening complexity parameter corresponding to all historical well opening data, wherein the complexity calculation formula is as follows: ; is the first well opening complexity parameter, is the first well opening parameter, is the second well opening parameter, is the third well opening parameter, is the first preset complexity factor, is the second preset complexity factor, , , .
8. An RTU-based pumping start-stop control system, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the RTU-based inter-pumping start-stop control method as described in any one of claims 1 to 7 is implemented.
9. A computer-readable storage medium, characterized in that: A program executable by a processor is stored therein, and when the program executable by the processor is executed by the processor, it is used to implement the RTU-based inter-pumping start-stop control method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Parallel association rule mining-based method for predicting running reliability of power distribution network
CN106446016A
Intelligent intermittent pumping control system of beam-pumping unit and control method of intelligent intermittent pumping control system
CN114688009A