Intermittent operation switching method and system for oil and gas fields based on localization of swan Mongolia system

Through the domestically produced oil and gas field operation switching method based on the Hongmeng system, an inter-opening control system is built and inter-opening control is solved, and the problem of difficulty in determining the inter-opening operation cycle of the oil pump in the existing technology is solved, and higher control accuracy and ability to adapt to complex scenarios are achieved.

CN119933609AInactive Publication Date: 2025-05-06西安众望能源科技有限公司
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202510412546.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-03
Publication Date
2025-05-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art is difficult to effectively determine the inter-pumping operation cycle of the oil pump in complex scenarios, resulting in a reduction in the inter-pumping control accuracy.

Method used

The domestically produced oil and gas field operation switching method is adopted, and the inter-operation control system is built, multiple inter-operation sampling time periods are determined, and inter-operation extraction control is performed within each time period, and the operation status parameters are obtained to determine the target inter-operation mode and differential impact parameters, and then the start-up and downtime are adjusted.

Benefits of technology

Effectively and reliably determine the inter-pumping operation cycle of the oil pump, improve the inter-pumping control accuracy, and is suitable for oil and gas field production management in complex scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119933609A_ABST
    Figure CN119933609A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of oil well production management, and discloses an oil-gas field intermittent operation switching method and system based on the localization of a swan-gap system, the intermittent operation switching of the oil-gas field is realized through an intermittent control system constructed based on the swan-gap system, and specifically, a plurality of different intermittent sampling time periods corresponding to an oil pumping unit are determined, and a plurality of different intermittent sampling time periods corresponding to the oil pumping unit are determined; the intermittent operation condition of the oil pumping unit in each intermittent sampling time period is obtained in all directions, and particularly, intermittent pumping control is carried out on the oil pumping unit in a first time window and a second time window in each intermittent sampling time period. The intermittent operation switching data corresponding to each intermittent sampling time period is determined by performing the operations such as intermittent operation switching and differential evaluation in the first time window and the second time window of different intermittent sampling time periods, so that the intermittent operation period of the oil pumping unit is determined in a matching manner; the intermittent pumping operation period of the pumping unit is effectively and reliably determined, and the intermittent pumping control precision of the pumping unit is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of oil well production management, and in particular to a method and system for switching between oil and gas field operations based on the localization of the Hongmeng system, 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 widely used. At present, the intermittent pumping control of oil wells is mainly achieved by real-time monitoring of key parameters such as pressure and water content of oil wells; generally speaking, this evaluation and control method is only carried out under normal conditions, such as when the pumping unit is in a continuous operation state. Although the intermittent pumping evaluation of oil wells is actually achieved, the influencing factors of the pumping unit in the actual intermittent pumping situation are not considered, so it is impossible to know the operating effect of the oil well and the pumping unit under the specific intermittent pumping operation situation. Therefore, it is impossible to effectively determine the intermittent pumping operation cycle in complex scenarios, resulting in a decrease in the intermittent pumping control accuracy of the pumping unit. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems in the related art to a certain extent. To this end, the present invention proposes a method and system for switching between oil and gas field operation based on the localization of the Hongmeng system, which can effectively and reliably determine the inter-pumping operation cycle of the pumping unit and improve the inter-pumping control accuracy of the pumping unit.

[0004] In the first aspect, an embodiment of the present invention provides an oil and gas field inter-operation switching method based on the localization of the Hongmeng system, which is applied to an inter-operation control system built based on the Hongmeng system, and the inter-operation control system is connected to a pre-configured pumping unit, and the pumping unit is used to produce oil through the oil and gas field; the method comprises the following steps: Step S1, determining a plurality of different intermittent sampling time periods corresponding to the oil pumping unit, wherein each intermittent sampling time period includes a first time window and a second time window, and the first time window is located before the second time window; Step S2: for each intermittent sampling time period, when in the first time window, control the oil pump to start and run continuously, and when the first preset start-up time is reached, control the oil pump to stop for the first preset stop time; obtain the first operating state parameter and the second operating state parameter of the oil pump in the first time window, and determine the corresponding target intermittent operation mode according to the first operating state parameter, wherein the first preset start-up time corresponding to any two intermittent sampling time periods are different, and the sum of the first preset start-up time and the first preset stop time does not exceed the time corresponding to the first time window; Step S3: for each intermittent sampling time period, when in the second time window, control the oil pump to continue to operate in the target intermittent operation mode; obtain the second operation state parameter of the oil pump in the second time window, and determine the difference influencing parameter corresponding to the second time window according to the difference between the second operation state parameters of the oil pump in the first time window and the second time window; Step S4, determining a second preset startup duration according to the difference influencing parameter and the preset difference influencing condition in combination with the first preset startup duration; and when the second preset startup duration is reached, controlling the oil pump to shut down; Step S5, determine the target startup time and target shutdown time of the oil pump according to the acquired groups of intermittent operation switching data, and generate the intermittent operation cycle of the oil pump based on the target startup time and the target shutdown time, wherein each group of intermittent operation switching data includes a first preset startup time, a first preset shutdown time, and a second preset startup time corresponding to one of the intermittent sampling time periods.

[0005] Optionally, in one embodiment of the present invention, the step in step S5, determining the target startup time and target shutdown time of the oil pump according to the acquired operation switching data between each group, includes the following steps: Step S51, setting a multi-parameter range corresponding to the intermittent operation switching data through a threshold filtering algorithm, and preliminarily screening each group of intermittent operation switching data according to the multi-parameter range to obtain at least one group of intermittent operation switching data; Step S52: for each group of inter-operation switching data obtained by the initial screening, obtain the average of the first preset startup time and the second preset startup time, obtain the third preset startup time, and form inter-operation simulation switching data through the third preset startup time and the first preset shutdown time; calculate the Euclidean distance between the inter-operation simulation switching data and the ideal inter-operation switching data, wherein the ideal inter-operation switching data includes the ideal startup time and the ideal shutdown time; Step S53, traverse all calculated Euclidean distances, and use the third preset startup time in a group of intermittent operation simulation switching data corresponding to the minimum Euclidean distance as the target startup time, and the first preset shutdown time as the target shutdown time.

[0006] Optionally, in one embodiment of the present invention, when the second operating state parameter includes load data and displacement data of a sucker rod in a pumping unit and an actual liquid production corresponding to a dynamic liquid level associated with the pumping unit, the steps in step S3, according to the difference between the second operating state parameters of the pumping unit in the first time window and the second time window, determine the difference influencing parameter corresponding to the second time window, including the following steps: Step S31, respectively calculating the difference in load data, displacement data and actual liquid production of the oil pump in the first time window and the second time window, and obtaining a first difference, a second difference and a third difference accordingly; Step S32, normalizing the first difference, the second difference, and the third difference respectively to obtain a first standard value, a second standard value, and a third standard value accordingly; Step S33: when it is determined that the first preset condition and the second preset condition are satisfied at the same time, assigning the first weight to the third standard value , assign a second weight to the first standard value and the second standard value Otherwise, the third weight is assigned to the first standard value and the second standard value. , the third standard value gives the second weight ; The first preset condition is that the first standard value is less than or equal to the first preset standard threshold and the second standard value is less than or equal to the second preset standard threshold, and the second preset condition is that the third standard value is greater than the third preset standard threshold; and , ; Step S34: according to the first standard value, the second standard value, the third standard value, the first weight , second weight And the third weight The difference influence parameter corresponding to the second time window is obtained.

[0007] Optionally, in one embodiment of the present invention, step S34 includes the following steps: Step S341: when it is determined that both the first preset condition and the second preset condition are satisfied, the difference impact parameter corresponding to the second time window is calculated by the first difference impact formula; otherwise, the difference impact parameter corresponding to the second time window is calculated by the second difference impact formula; wherein the first difference impact formula is as follows: ; The second difference impact formula is as follows: ; is the differential impact parameter corresponding to the second time window, is the first standard value, is the second standard value, The third standard value.

[0008] Optionally, in one embodiment of the present invention, when the difference impact condition includes a balance difference impact threshold and a maximum difference impact threshold, the steps in step S4, according to the difference impact parameter and the preset difference impact condition, combined with the first preset power-on time, determine the second preset power-on time, including the following steps: Step S41: when the difference impact parameter is greater than or equal to the balance difference impact threshold and less than or equal to the maximum difference impact threshold, the first preset power-on time is used as the second preset power-on time; or, When the difference impact parameter is less than the balance difference impact threshold or greater than the maximum difference impact threshold, the first preset power-on time is updated by the difference impact parameter to obtain a second preset power-on time.

[0009] Optionally, in one embodiment of the present invention, when the first operating state parameter includes the motor efficiency ratio and the motor operating power, the step in step S2, determining the corresponding target intermittent operating mode according to the first operating state parameter, includes the following steps: Step S21, determining whether the motor efficiency ratio is greater than or equal to a preset high efficiency efficiency ratio threshold value, if so, setting the target intermittent operation mode to the continuous operation mode, otherwise executing step S22; Step S22, determine whether the motor operating power is greater than or equal to the first preset motor power and less than or equal to the second preset motor power. If so, set the target intermittent operating mode to the first intermittent operating mode in which the motor operating power is constant; otherwise, set the target intermittent operating mode to the second intermittent operating mode in which the motor operating power is variable.

[0010] Optionally, in one embodiment of the present invention, the first preset downtime duration is determined by the following steps: Obtain the difference between the duration corresponding to the first time window and the first preset startup duration to obtain the maximum shutdown duration; set the first preset shutdown duration to a value within a range that is less than or equal to the maximum shutdown duration; or, Continuously detect the fullness parameters of the oil pump in the shutdown state; when the fullness parameters are detected to reach a preset fullness threshold range, record the corresponding target detection time, and obtain the first preset shutdown duration based on the target detection time and the predetermined shutdown start time.

[0011] In a second aspect, an embodiment of the present invention provides an oil and gas field operation switching system based on the localization of the Hongmeng system, including: at least one processor; at least one memory for storing at least one program; When at least one program is executed by at least one processor, the oil and gas field operation switching method based on the localization of the Hongmeng system as in the first aspect is implemented.

[0012] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the oil and gas field start-up and operation switching method based on the localization of the Hongmeng system as in the first aspect.

[0013] The method for switching oil and gas field intermittent operation based on the localization of the Hongmeng system proposed in the present invention realizes the switching of oil and gas field intermittent operation through an intermittent control system constructed based on the Hongmeng system, which has greater flexibility and scalability. Specifically, the intermittent control system determines a plurality of different intermittent sampling time periods corresponding to the oil pump, so as to perform intermittent operation control for each intermittent sampling time period respectively, so as to obtain the intermittent operation status of the oil pump in each intermittent sampling time period in all directions. In particular, a first time window and a second time window are set for each intermittent sampling time period, and the oil pump is intermittently controlled in the first time window and the second time window respectively, so that by performing intermittent operation switching and differentiated evaluation in the first time window and the second time window of different intermittent sampling time periods, the intermittent operation switching data corresponding to each intermittent sampling time period can be determined, so that the intermittent operation cycle of the oil pump can be finally matched and determined according to each group of intermittent operation switching data, which can not only effectively and reliably determine the intermittent operation cycle of the oil pump, but also improve the intermittent control accuracy of the oil pump. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a flow chart of a method for switching between oil and gas field operations based on the localization of the Hongmeng system provided by an embodiment of the present invention; Figure 2 yes Figure 1 A partial flow chart of the step "determining the corresponding target intermittent operation mode according to the first operation state parameter" in step S2 of FIG. Figure 3 yes Figure 1 A partial flow chart of the step S3 of “determining the difference influencing parameter corresponding to the second time window according to the difference of the second operating state parameter of the oil pumping unit in the first time window and the second time window”; Figure 4 yes Figure 3 Flow chart of step S34 in; Figure 5 yes Figure 1 A partial flow chart of the step S4 in step “determining the second preset power-on time according to the difference impact parameter and the preset difference impact condition in combination with the first preset power-on time”; Figure 6 yes Figure 1 Partial flow chart of the step S5 of step "determining the target startup time and target shutdown time of the oil pumping unit according to the acquired startup and operation switching data between each group"; Figure 7 It is a structural schematic diagram of an oil and gas field start-up and operation switching system based on the localization of the Hongmeng system provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0015] like Figure 1 As shown, an embodiment of the present invention provides an oil and gas field interoperability switching method based on the localization of the Hongmeng system. The method can be but is not limited to being applied to an interoperability control system built based on the Hongmeng system. The interoperability control system is connected to a preconfigured oil pump, which is used to produce oil through the oil and gas field. The oil and gas field interoperability switching method specifically can include but is not limited to steps S1 to S5; wherein the interoperability control system in this embodiment can be but is not limited to being built based on the localization of the open source Hongmeng system. For example, the hardware architecture and software architecture associated with the interoperability control system can be built based on the microkernel of the open source Hongmeng system, thereby realizing the construction of the associated architecture based on the localization of the Hongmeng system. It can be understood that through the efficient computing environment and stable data logic framework provided by the open source Hongmeng system, the interoperability switching control of the oil and gas field is performed, so as to effectively and reliably determine the interoperability of the oil pump. Pumping operation cycle to improve the inter-pumping control accuracy of the pumping unit. Since the Hongmeng system is a distributed operating system well known to technical personnel in this field, in order to avoid redundancy, the domestically produced Hongmeng system will not be described here. The specific architecture and parameters of the inter-open control system built on the Hongmeng system can be set as needed. There is no restriction here. It is only necessary to ensure that it is applied to the oil and gas field inter-opening operation switching method provided in this embodiment. For example, technical means such as data acquisition, communication protocol and hardware interaction related to the inter-opening control system can be but not limited to reference to existing patent 1 (CN118945004A, publication date: 2024-11-12), existing patent 2 (CN119011694A, publication date: 2024-11-22) and existing patent 3 (CN117573631A, publication date: 2024-02-20), etc.

[0016] Step S1, determining a plurality of different intermittent sampling time periods corresponding to the oil pumping unit, wherein each intermittent sampling time period includes a first time window and a second time window, and the first time window is located before the second time window; It should be noted that there is no limitation on the specific method of determining multiple different intermittent sampling time periods corresponding to the oil pumps. In different practical application scenarios, the specific types and parameters of the intermittent sampling time periods may be different, and may be set accordingly according to the appropriate scenario. For example, the intermittent sampling time periods may be set based on, but not limited to, hours, days, half a month, and months. In one case, they are set to the first, third, or fifth day of equal intervals. In other words, the difference between different intermittent sampling time periods lies only in their specific time periods, and there are no differences in other aspects. This ensures the identity of different intermittent sampling time periods. The respective durations of the first time window and the second time window can be set as needed, that is, the respective durations of the first time window and the second time window are not limited to be the same, and can be set to be continuous or discontinuous. For example, taking the intermittent sampling period as one day as an example, the first time window can be 09:00-15:00 of the day, and the second time window can be 15:00-21:00 or 16:00-22:00 of the day, etc., which is not limited here; in actual application scenarios, the sum of the duration corresponding to the first time window and the duration corresponding to the second time window does not exceed the duration corresponding to the intermittent sampling period; Step S2: for each intermittent sampling time period, when in the first time window, control the oil pump to start and run continuously, and when the first preset start-up time is reached, control the oil pump to stop for the first preset stop time; obtain the first operating state parameter and the second operating state parameter of the oil pump in the first time window, and determine the corresponding target intermittent operation mode according to the first operating state parameter, wherein the first preset start-up time corresponding to any two intermittent sampling time periods are different, and the sum of the first preset start-up time and the first preset stop time does not exceed the time corresponding to the first time window; the first preset start-up time can be set according to the needs, and it is only necessary to ensure that any two intermittent sampling time periods The first preset start-up time lengths corresponding to the respective time periods are different. The purpose of such setting is to ensure that the intermittent conditions of different intermittent sampling time periods are not exactly the same, which is more conducive to sampling and studying different intermittent sampling time periods respectively, so as to obtain different intermittent operation switching data; since the first operation state parameter can be used to characterize the intermittent operation condition in the first time window, the corresponding target intermittent operation mode is determined by the first operation state parameter, and the target intermittent operation mode can be used as the basic condition for intermittent operation in the second time window, which reflects the influence of the intermittent operation in the first time window on the second time window, and is conducive to obtaining more accurate and reliable intermittent operation results; Step S3, for each intermittent sampling time period, when in the second time window, control the oil pump to continue to operate in the target intermittent operation mode; obtain the second operating state parameter of the oil pump in the second time window, and determine the difference influencing parameter corresponding to the second time window according to the difference between the second operating state parameters of the oil pump in the first time window and the second time window. It can be seen that since the second operating state parameter of the oil pump in the second time window corresponds to the target intermittent operation mode, and the second operating state parameter of the oil pump in the first time window is not limited to the target intermittent operation mode, the difference in parameters of the oil pump in different intermittent operation modes can be effectively known by obtaining the difference between the second operating state parameters of the oil pump in the first time window and the second time window, so as to better clarify the operation of the oil pump in different intermittent operation modes; Step S4, determining a second preset startup duration according to the difference influencing parameter and the preset difference influencing condition in combination with the first preset startup duration; and when the second preset startup duration is reached, controlling the oil pump to shut down; Step S5, determine the target startup time and target shutdown time of the oil pump according to the acquired groups of intermittent operation switching data, and generate the intermittent operation cycle of the oil pump based on the target startup time and the target shutdown time, wherein each group of intermittent operation switching data includes a first preset startup time, a first preset shutdown time, and a second preset startup time corresponding to one of the intermittent sampling time periods.

[0017] In this step, the intermittent operation switching of the oil and gas fields is realized by the intermittent control system built based on the Hongmeng system, which has greater flexibility and scalability. Specifically, the intermittent control system determines a plurality of different intermittent sampling time periods corresponding to the oil pump, so as to perform intermittent operation control for each intermittent sampling time period respectively, so as to obtain the intermittent operation status of the oil pump in each intermittent sampling time period in all directions. In particular, a first time window and a second time window are set for each intermittent sampling time period, and the oil pump is intermittently controlled in the first time window and the second time window respectively. Therefore, by performing intermittent operation switching and differentiated evaluation in the first time window and the second time window of different intermittent sampling time periods, the intermittent operation switching data corresponding to each intermittent sampling time period can be determined, so that the intermittent operation cycle of the oil pump can be finally matched and determined according to each group of intermittent operation switching data, which can not only effectively and reliably determine the intermittent operation cycle of the oil pump, but also improve the intermittent control accuracy of the oil pump.

[0018] In one embodiment, the first preset downtime duration may be determined by, but is not limited to, the following steps: Obtain the difference between the duration corresponding to the first time window and the first preset start-up duration to obtain the maximum shutdown duration; set the first preset shutdown duration to one of the values ​​within a range less than or equal to the maximum shutdown duration; or, continuously detect the fullness parameter of the oil pump in the shutdown state; when it is detected that the fullness parameter reaches a preset fullness threshold range, record the corresponding target detection time, and obtain the first preset shutdown duration based on the target detection time and the predetermined shutdown start time.

[0019] Specifically, in one case, a first preset shutdown time is randomly set, but the first preset shutdown time must meet the prerequisite of being less than or equal to the maximum shutdown time; in another case, the fullness parameters of the oil pump in the shutdown state are continuously detected to determine whether the real-time fullness of the oil pump has recovered to a corresponding level. The "corresponding level" here is characterized by a preset fullness threshold range, that is, if the real-time fullness of the oil pump is restored to the fullness threshold range for the first time, the corresponding target detection time is determined to be the required detection time. Since the shutdown start time can be obtained through the situation in the first time window (for example, the machine is shut down when the first preset startup time is reached, then this time can be determined as the shutdown start time), the first preset shutdown time can be obtained according to the difference between the target detection time and the predetermined shutdown start time.

[0020] It should be noted that the specific values ​​of the two boundary points of the fullness threshold range (corresponding to the minimum fullness threshold and the maximum fullness threshold, respectively) are not limited and can be set accordingly by technicians in this field according to actual application scenarios, which will not be elaborated here.

[0021] like Figure 2 As shown, in one embodiment of the present invention, when the first operating state parameter may include but is not limited to the motor efficiency ratio and the motor operating power, the steps in step S2, determining the corresponding target intermittent operating mode according to the first operating state parameter, may specifically include but is not limited to the following steps: Step S21, determining whether the motor efficiency ratio is greater than or equal to a preset high efficiency efficiency ratio threshold value, if so, setting the target intermittent operation mode to the continuous operation mode, otherwise executing step S22; Step S22, determine whether the motor operating power is greater than or equal to the first preset motor power and less than or equal to the second preset motor power. If so, set the target intermittent operating mode to the first intermittent operating mode in which the motor operating power is constant; otherwise, set the target intermittent operating mode to the second intermittent operating mode in which the motor operating power is variable.

[0022] In this step, the target intermittent operation mode is identified by first determining whether the motor efficiency ratio is greater than or equal to the preset high-efficiency efficiency ratio threshold. If so, it can be determined that the motor efficiency ratio of the oil pump has reached the expected efficiency ratio, and the motor efficiency ratio of the oil pump can be maintained at this time to continue operating, that is, the target intermittent operation mode can be set to the continuous operation mode. Otherwise, it is not appropriate to set the target intermittent operation mode to the continuous operation mode, and it is necessary to continue to determine the actual situation of the motor operating power, that is, to determine whether it is greater than or equal to the first preset motor power and less than or equal to the second preset motor power. If so, it means that the motor operating power is in a relatively stable state, and the target intermittent operation mode is set to the first intermittent operation mode with constant motor operating power. Otherwise, the motor operating power needs to be set to variable to meet the actual scenario requirements.

[0023] In one embodiment, the specific values ​​of the high-efficiency power ratio threshold, the first preset motor power, and the second preset motor power are not limited, and can be set accordingly by technical personnel in this field according to different application scenarios; the motor power ratio characterizes the effective application degree of the motor power, which can be expressed as the ratio of the electric power required for oil well operations to the motor power, wherein the electric power required for oil well operations needs to be determined based on actual conditions. For example, oil well operations may involve drilling, exploration, oil testing, and fluid production, etc. One or more electric powers of the corresponding types of oil well operations required can be counted to obtain the electric power required for the oil well operations.

[0024] In one embodiment, the variable motor operating power means that the motor operating power is adjustable during operation. This configuration can be achieved through relevant existing technologies and is not a main invention point of this embodiment. For example, the adjustable range of the motor operating power is set according to needs, etc., which will not be elaborated here; the intermittent operation mode is well known to relevant technical personnel in the field, such as but not limited to intermittent pumping swing mode, intermittent pumping non-swing mode and intermittent pumping tracking mode, etc. For example, the intermittent pumping swing mode is for oil wells with insufficient liquid production. Through a comprehensive analysis of the liquid production of the oil wells, a scientific intermittent pumping cycle is formulated, and the pumping equipment is started and stopped reasonably to achieve the purpose of energy saving and consumption reduction; specifically, when the liquid production of the oil well is lower than a certain set value, the pumping unit will automatically stop working for a period of time and then restart, which can reduce energy consumption and improve the utilization efficiency of the equipment. To avoid redundancy, it will not be elaborated here.

[0025] like Figure 3As shown, in one embodiment of the present invention, when the second operating state parameter may include but is not limited to load data and displacement data of a sucker rod in a pumping unit and an actual liquid production corresponding to a dynamic liquid surface associated with the pumping unit, the steps in step S3, according to the difference between the second operating state parameters of the pumping unit in the first time window and the second time window, determine the difference influencing parameter corresponding to the second time window, may include but is not limited to the following steps: Step S31, respectively calculating the difference in load data, displacement data and actual liquid production of the oil pump in the first time window and the second time window, and obtaining a first difference, a second difference and a third difference accordingly; Step S32, normalizing the first difference, the second difference, and the third difference respectively to obtain a first standard value, a second standard value, and a third standard value accordingly; Step S33: when it is determined that both the first preset condition and the second preset condition are satisfied, assign the first weight to the third standard value, and assign the second weight to the first standard value and the second standard value; otherwise, assign the third weight to the first standard value and the second standard value, and assign the second weight to the third standard value; Step S34, obtaining a difference influence parameter corresponding to the second time window according to the first standard value, the second standard value, the third standard value, the first weight, the second weight and the third weight; It should be noted that the first preset condition is that the first standard value is less than or equal to the first preset standard threshold and the second standard value is less than or equal to the second preset standard threshold, and the second preset condition is that the third standard value is greater than the third preset standard threshold; is the first weight, is the second weight, is the third weight, and , , preferably, is 0.46, is 0.23, is 0.21.

[0026] In this step, by respectively calculating the difference in load data, displacement data and actual liquid production of the oil pump in the first time window and the second time window, and normalizing them respectively, the first standard value, the second standard value and the third standard value can be obtained. Here, the load data, displacement data of the sucker rod in the oil pump and the actual liquid production corresponding to the dynamic liquid level associated with the oil pump are selected as the significant second operating state parameters, which can better reflect the intermittent real-time operating conditions of the second time window; and then by comparing the degree of matching of each standard value with the first preset condition and the second preset condition to determine the weight value assigned to each standard value, the differential influencing parameters corresponding to the second time window can be accurately and reliably calculated based on each standard value and weight value.

[0027] In one embodiment, there may be multiple specific methods for normalization processing, the purpose of which is to convert the first difference, the second difference and the third difference into standardized values, aiming to scale each difference proportionally so that it falls within a specific range (for example, 0~1 or -1~1) to eliminate the dimensional differences between different differences; some common normalization processing methods in the art may include but are not limited to: minimum (maximum) normalization algorithm, Z-Score normalization algorithm and calibration normalization algorithm, etc. In this embodiment, the Z-Score normalization algorithm is adopted, which will not be described in detail here.

[0028] like Figure 4 As shown, in one embodiment of the present invention, step S34 may include but is not limited to the following steps: Step S341: when it is determined that both the first preset condition and the second preset condition are satisfied, the difference influence parameter corresponding to the second time window is calculated by the first difference influence formula; otherwise, the difference influence parameter corresponding to the second time window is calculated by the second difference influence formula; wherein the first difference influence formula is derived as follows: ; The second difference impact formula is derived as follows: ; is the differential impact parameter corresponding to the second time window, is the first standard value, is the second standard value, The third standard value.

[0029] In this step, in the first difference impact formula, It is used to characterize the comprehensive difference impact corresponding to each standard value when the first preset condition and the second preset condition are met at the same time. Characterizes the difference caused by the possible errors other than the first weight and the second weight. In other words, if is 0.5, is 0.25, then is 0, that is, the difference impact caused by the error can be regarded as non-existent; the calculation principle of the second difference impact formula is similar to that of the first difference impact formula, which will not be repeated here.

[0030] like Figure 5 As shown, in one embodiment of the present invention, when the difference impact condition includes a balance difference impact threshold and a maximum difference impact threshold, the steps in step S4, according to the difference impact parameter and the preset difference impact condition, combined with the first preset power-on time, determine the second preset power-on time, which may include but is not limited to the following steps: Step S41: when the difference impact parameter is greater than or equal to the balanced difference impact threshold and less than or equal to the maximum difference impact threshold, the first preset power-on time is used as the second preset power-on time; or, when the difference impact parameter is less than the balanced difference impact threshold or greater than the maximum difference impact threshold, the first preset power-on time is updated by the difference impact parameter to obtain the second preset power-on time.

[0031] In this step, when the difference impact parameter is greater than or equal to the balanced difference impact threshold and less than or equal to the maximum difference impact threshold, it means that the calculated difference impact parameter meets the balanced difference requirement, which can prove that the subsequent intermittent operation based on the first preset power-on time in the first time window meets expectations. In this case, the first preset power-on time can be used as the second preset power-on time. Otherwise, it means that the difference impact parameter does not meet the balanced difference requirement. At this time, the first preset power-on time needs to be updated through the difference impact parameter to obtain a more accurate and compliant second preset power-on time.

[0032] In one embodiment, the balanced difference impact threshold and the maximum difference impact threshold can be set accordingly according to the actual scenario, and there is no limitation here; in one case, the balanced difference impact threshold should be greater than the minimum difference impact threshold.

[0033] In one embodiment, there may be multiple specific ways to update the first preset power-on time, such as but not limited to: calculating the product of the first preset power-on time and the difference impact parameter to obtain the impact time caused by the operation difference of the time window, and then adding the impact time to the first preset power-on time to obtain the second preset power-on time, wherein, if the difference promotes the intermittent operation, which is a positive impact, the impact time is taken as a positive value, otherwise it is taken as a negative value.

[0034] like Figure 6 As shown, in one embodiment of the present invention, the steps in step S5, determining the target startup time and target shutdown time of the oil pumping unit according to the acquired operation switching data between each group, may include but is not limited to the following steps: Step S51, setting a multi-parameter range corresponding to the intermittent operation switching data through a threshold filtering algorithm, and preliminarily screening each group of intermittent operation switching data according to the multi-parameter range to obtain at least one group of intermittent operation switching data; Step S52: for each group of inter-operation switching data obtained by the initial screening, obtain the average of the first preset startup time and the second preset startup time, obtain the third preset startup time, and form inter-operation simulation switching data through the third preset startup time and the first preset shutdown time; calculate the Euclidean distance between the inter-operation simulation switching data and the ideal inter-operation switching data, wherein the ideal inter-operation switching data includes the ideal startup time and the ideal shutdown time; Step S53, traverse all calculated Euclidean distances, and use the third preset startup time in a group of intermittent operation simulation switching data corresponding to the minimum Euclidean distance as the target startup time, and the first preset shutdown time as the target shutdown time.

[0035] In this step, a multi-parameter range corresponding to the intermittent operation switching data is set by a threshold filtering algorithm. Since the intermittent operation switching data includes a first preset start-up time, a first preset stop time and a second preset start-up time, the multi-parameter range is divided into three parameter ranges, corresponding to the first preset start-up time, the first preset stop time and the second preset start-up time, respectively. The corresponding time within each parameter range is screened to obtain a part of the intermittent operation switching data that meets the requirements; and then the intermittent operation switching data is converted into intermittent operation simulation switching data, and the Euclidean distance between the intermittent operation simulation switching data and the ideal intermittent operation switching data is further calculated. The data situation of the intermittent operation simulation switching data is characterized by the Euclidean distance, so as to find a group of intermittent operation simulation switching data corresponding to the smallest Euclidean distance, and use its third preset start-up time as the target start-up time and the first preset stop time as the target stop time, so as to obtain the required target start-up time and target stop time.

[0036] In one embodiment, the specific method of generating the intermittent operation cycle of the oil pump based on the target startup time and the target shutdown time in step S5 can be multiple. For example, the intermittent operation cycle can be determined by combining a corresponding number of target startup time and target shutdown time. A continuous target startup time and a target shutdown time can be combined to obtain an intermittent operation cycle, wherein the basic values ​​of the target startup time and the target shutdown time can also be set to more. The principle is similar and will not be repeated here.

[0037] Figure 7 This is a schematic diagram of the structure of an oil and gas field operation switching system 1000 based on the localization of the Hongmeng system provided by an embodiment of the present invention. Figure 7 As shown, the oil and gas field operation switching system 1000 based on the localization of the Hongmeng system includes a memory 1100 and a processor 1200. The number of the memory 1100 and the processor 1200 can be one or more. Figure 7In 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 7 The example of connecting through bus is taken in the following.

[0038] The memory 1100, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as the program instructions / modules corresponding to the oil and gas field operation switching method based on the localization of the Hongmeng system provided in any embodiment of the present invention. The processor 1200 implements the above-mentioned oil and gas field operation switching method based on the localization of the Hongmeng system by running the software programs, instructions and modules stored in the memory 1100.

[0039] 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.

[0040] An embodiment of the present invention also provides a computer-readable storage medium storing computer-executable instructions, which are used to execute the oil and gas field start-up and operation switching method based on the localization of the Hongmeng system as provided in any embodiment of the present invention.

[0041] An embodiment of the present invention also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. 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 oil and gas field start-up and operation switching method based on the localization of the Hongmeng system as provided in any embodiment of the present invention.

[0042] 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.

[0043] 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.

[0044] 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. The oil and gas field operation switching method based on the localization of Hongmeng system is characterized by: Applied to an intermittent control system built on the Hongmeng system, the intermittent control system is connected to a pre-configured pumping unit, and the pumping unit is used to produce oil through an oil and gas field; the method comprises the following steps: Step S1, determining a plurality of different intermittent sampling time periods corresponding to the oil pumping unit, wherein each intermittent sampling time period includes a first time window and a second time window, and the first time window is located before the second time window; Step S2: for each intermittent sampling time period, when in the first time window, control the oil pump to start and run continuously, and when the first preset start-up time is reached, control the oil pump to stop for the first preset stop time; obtain the first operating state parameter and the second operating state parameter of the oil pump in the first time window, and determine the corresponding target intermittent operation mode according to the first operating state parameter, wherein the first preset start-up time corresponding to any two intermittent sampling time periods are different, and the sum of the first preset start-up time and the first preset stop time does not exceed the time corresponding to the first time window; Step S3: for each intermittent sampling time period, when in the second time window, control the oil pump to continue to operate in the target intermittent operation mode; obtain the second operation state parameter of the oil pump in the second time window, and determine the difference influencing parameter corresponding to the second time window according to the difference between the second operation state parameters of the oil pump in the first time window and the second time window; Step S4, determining a second preset startup duration according to the difference influencing parameter and the preset difference influencing condition in combination with the first preset startup duration; and when the second preset startup duration is reached, controlling the oil pump to shut down; Step S5, determine the target startup time and target shutdown time of the oil pump according to the acquired groups of intermittent operation switching data, and generate the intermittent operation cycle of the oil pump based on the target startup time and the target shutdown time, wherein each group of intermittent operation switching data includes a first preset startup time, a first preset shutdown time, and a second preset startup time corresponding to one of the intermittent sampling time periods.

2. According to the method for switching between oil and gas fields based on the localization of Hongmeng system in claim 1, it is characterized in that: The step in step S5, determining the target startup time and target shutdown time of the oil pumping unit according to the acquired startup and operation switching data between each group, includes the following steps: Step S51, setting a multi-parameter range corresponding to the intermittent operation switching data through a threshold filtering algorithm, and preliminarily screening each group of intermittent operation switching data according to the multi-parameter range to obtain at least one group of intermittent operation switching data; Step S52: for each group of intermittent operation switching data obtained by the initial screening, obtain the average of the first preset power-on time and the second preset power-on time, obtain the third preset power-on time, and form intermittent operation simulation switching data through the third preset power-on time and the first preset shutdown time; Calculate the Euclidean distance between the simulated switching data of the inter-break operation and the ideal switching data of the inter-break operation, wherein the ideal switching data of the inter-break operation includes an ideal startup time and an ideal shutdown time; Step S53, traverse all calculated Euclidean distances, and use the third preset startup time in a group of intermittent operation simulation switching data corresponding to the minimum Euclidean distance as the target startup time, and the first preset shutdown time as the target shutdown time.

3. The oil and gas field operation switching method based on the localization of Hongmeng system according to claim 1 is characterized in that: When the second operating state parameter includes load data and displacement data of a sucker rod in the pumping unit and an actual liquid production corresponding to a dynamic liquid level associated with the pumping unit, the steps in step S3, according to the difference between the second operating state parameters of the pumping unit in the first time window and the second time window, determine the difference influencing parameter corresponding to the second time window, including the following steps: Step S31, respectively calculating the difference in load data, displacement data and actual liquid production of the oil pump in the first time window and the second time window, and obtaining a first difference, a second difference and a third difference accordingly; Step S32, normalizing the first difference, the second difference, and the third difference respectively to obtain a first standard value, a second standard value, and a third standard value accordingly; Step S33: when it is determined that the first preset condition and the second preset condition are satisfied at the same time, assigning the first weight to the third standard value , assign a second weight to the first standard value and the second standard value Otherwise, the third weight is assigned to the first standard value and the second standard value. , the third standard value gives the second weight ; The first preset condition is that the first standard value is less than or equal to the first preset standard threshold and the second standard value is less than or equal to the second preset standard threshold, and the second preset condition is that the third standard value is greater than the third preset standard threshold; and , ; Step S34: according to the first standard value, the second standard value, the third standard value, the first weight , second weight And the third weight The difference influence parameter corresponding to the second time window is obtained.

4. The method for switching between oil and gas field operations based on the localization of the Hongmeng system according to claim 3 is characterized in that: Step S34 includes the following steps: Step S341: when it is determined that both the first preset condition and the second preset condition are satisfied, the difference impact parameter corresponding to the second time window is calculated by the first difference impact formula; otherwise, the difference impact parameter corresponding to the second time window is calculated by the second difference impact formula; wherein the first difference impact formula is as follows: ; The second difference impact formula is as follows: ; is the differential impact parameter corresponding to the second time window, is the first standard value, is the second standard value, The third standard value.

5. The method for switching between oil and gas fields based on the localization of Hongmeng system according to claim 1 is characterized in that: When the difference impact condition includes a balance difference impact threshold and a maximum difference impact threshold, the steps in step S4, according to the difference impact parameter and the preset difference impact condition, combined with the first preset power-on time, determine the second preset power-on time, including the following steps: Step S41: when the difference impact parameter is greater than or equal to the balance difference impact threshold and less than or equal to the maximum difference impact threshold, the first preset power-on time is used as the second preset power-on time; or, When the difference impact parameter is less than the balance difference impact threshold or greater than the maximum difference impact threshold, the first preset power-on time is updated by the difference impact parameter to obtain a second preset power-on time.

6. The method for switching between oil and gas field operations based on the localization of Hongmeng system according to claim 1 is characterized in that: When the first operating state parameter includes the motor efficiency ratio and the motor operating power, the steps in step S2, determining the corresponding target intermittent operating mode according to the first operating state parameter, include the following steps: Step S21, determining whether the motor efficiency ratio is greater than or equal to a preset high efficiency efficiency ratio threshold value, if so, setting the target intermittent operation mode to the continuous operation mode, otherwise executing step S22; Step S22, determine whether the motor operating power is greater than or equal to the first preset motor power and less than or equal to the second preset motor power. If so, set the target intermittent operating mode to the first intermittent operating mode in which the motor operating power is constant; otherwise, set the target intermittent operating mode to the second intermittent operating mode in which the motor operating power is variable.

7. The method for switching between oil and gas fields based on the localization of the Hongmeng system according to any one of claims 1 to 6 is characterized in that: The first preset downtime duration is determined by the following steps: Obtain the difference between the duration corresponding to the first time window and the first preset startup duration to obtain the maximum shutdown duration; set the first preset shutdown duration to a value within a range that is less than or equal to the maximum shutdown duration; or, Continuously detect the fullness parameters of the oil pump in the shutdown state; when the fullness parameters are detected to reach a preset fullness threshold range, record the corresponding target detection time, and obtain the first preset shutdown duration based on the target detection time and the predetermined shutdown start time.

8. An oil and gas field operation switching system based on the localization of Hongmeng system, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one program is executed by at least one processor, the oil and gas field operation switching method based on the localization of the Hongmeng system as described in any one of claims 1 to 7 is implemented.

9. A computer-readable storage medium, characterized in that: A processor-executable program is stored therein, and when the processor-executable program is executed by the processor, it is used to implement the oil and gas field start-up and operation switching method based on the localization of the Hongmeng system as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Coal mine underground mobile terminal data processing method and system

    CN117573631A

  • Data acquisition method, system and terminal of soft bus industrial Internet of Things

    CN118945004A

  • Industrial software protocol automatic adaptation method and device based on swan mongolian system

    CN119011694A

  • Well condition change identification method based on pumping unit electrical parameters

    CN110259435A

  • Video monitoring system and method based on oil well equipment

    CN117853986A