A method for distributing common busbar power for long-stroke oil pumping units
By establishing a common bus system in the long-stroke pumping unit and dynamically adjusting the electric energy distribution, the energy loss problem in the energy conversion process of the traditional long-stroke pumping unit is solved, and the efficient use of electric energy and the improvement of system energy efficiency are achieved.
Patent Information
- Application Number
- CN202411479279.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-01-17
- Estimated Expiration
- 2044-10-23
AI Technical Summary
Traditional long-stroke oil pumps have energy loss problems during energy conversion, especially during braking, when excess mechanical energy is converted into heat energy and dissipated, resulting in energy waste and increased operating costs.
By establishing a common bus system, multiple long-stroke pumping units are connected to the same power transmission line to monitor and analyze the operating status and positional relationship of each long-stroke pumping unit in real time, dynamically adjust the distribution and flow direction of electric energy, and realize the optimization of electric energy. supply and utilize each other.
Through common bus technology, the mutual supply and utilization of electric energy between long-stroke pumping units is realized, which reduces energy waste, lowers operating costs, and improves the overall energy efficiency of the system.
Smart Images

Figure CN119010045B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of electric energy distribution, and in particular to a method for distributing electric energy of a common busbar of a long-stroke oil pump. Background Art
[0002] As an important equipment in the process of oil extraction, the long-stroke pumping unit has the main function of extracting underground oil to the surface through mechanical action. In this process, the working cycle of the long-stroke pumping unit mainly includes two basic energy conversion processes. First, the long-stroke pumping unit consumes electrical energy and converts it into mechanical energy to drive the pumping equipment to extract oil. In this process, the electrical energy is converted into mechanical energy by the motor to drive the pump rod and the sucker rod to move up or down to complete the extraction of oil. The second process that follows involves the braking and energy recovery of the long-stroke pumping unit. During the upward or downward movement of the sucker rod, the traditional long-stroke pumping unit usually uses electrical energy to create damping for braking to control the movement of the equipment and prepare for the next working cycle. In this braking process, the excess mechanical energy is converted into heat energy and eventually dissipated into the environment without effective recovery. This not only causes energy waste, but also increases operating costs. Especially when energy prices are high, this non-product consumption of energy has a significant impact on economic benefits.
[0003] Common bus technology is a method of electric energy management and distribution, which mainly realizes the effective distribution and use of energy by connecting multiple power devices to the same power line (i.e., common bus). By realizing the efficient flow of electric energy between multiple devices, common bus technology can effectively reduce energy loss and improve the overall energy efficiency of the system. Common bus technology has been widely used in electric vehicles, renewable energy systems, and automated production lines in modern factories. For example, in the battery management system of electric vehicles, common bus technology can optimize the energy distribution between battery packs, improve the efficiency of battery use and extend its service life. In solar power generation systems, common buses are used to uniformly manage and distribute electric energy from different solar panels to meet different load requirements. These applications show the potential of common bus technology to improve energy efficiency and reduce energy consumption in diversified equipment and systems.
[0004] In view of the energy loss problem of traditional long-stroke oil pumping units in the energy conversion process, the present invention proposes a long-stroke oil pumping unit common busbar power distribution method. The method connects multiple long-stroke oil pumping units to the same power transmission line by establishing a common busbar system. By real-time monitoring and analyzing the operating status and position relationship of each long-stroke oil pumping unit, the present invention can dynamically adjust the distribution and flow of power, so that the mutual supply and utilization of power can be achieved between the long-stroke oil pumping units. Summary of the invention
[0005] The present invention provides a method for distributing common busbar electric energy of a long-stroke oil pump, the method comprising the following steps:
[0006] S1: Get the current operating point set S = {Si | 1≤i≤N} of multiple long-stroke pumping units, where Si represents the operating point of the i-th long-stroke pumping unit, and N represents the number of long-stroke pumping units;
[0007] S2: Establish a knowledge graph based on the positional relationship, power demand, and power supply of multiple long-stroke pumping units;
[0008] S3: Input the knowledge graph into the common bus power supply network to obtain a power distribution plan for long-stroke oil pumps.
[0009] The present invention provides a long-stroke oil pumping unit common busbar power distribution system, the system comprising:
[0010] State acquisition module: The state acquisition module obtains the operating point set S={Si | 1≤i≤N} of multiple long-stroke pumping units at the current moment, where Si represents the operating point of the i-th long-stroke pumping unit, and N represents the number of long-stroke pumping units;
[0011] Knowledge graph construction module: establish a knowledge graph based on the positional relationship, power demand, and power supply of multiple long-stroke pumping units;
[0012] Power distribution module: The power distribution module is used to input the knowledge graph into the common bus power supply network to obtain a power distribution plan for long-stroke oil pumps.
[0013] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for distributing common busbar power of long-stroke oil pumps when executing the computer program.
[0014] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned long-stroke oil pumping unit common bus power distribution method is implemented.
[0015] Compared with the prior art, the present invention obtains the energy demand and supply of multiple long-stroke pumping units in real time, and redistributes excess electric energy according to the positional relationship of multiple long-stroke pumping units. In the specific distribution process, the present invention introduces a multi-level connection relationship and an indirect connection relationship to assist energy distribution and finely manage excess electric energy. In addition, the local connection relationship is taken into account in the distribution process, and energy is transported to a certain area in a centralized manner to avoid power loss due to long energy transmission distances. Load electric energy is distributed through a common bus to achieve the purpose of saving energy. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 It is a flow chart of a common busbar power distribution method for long-stroke oil pumping units in the present application; DETAILED DESCRIPTION
[0018] The embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0019] The following describes the implementation methods of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, in the absence of conflict, the following embodiments and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work belong to the scope of protection of the present application.
[0020] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present application, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number and aspect described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0021] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the examples can be practiced without these specific details.
[0022] The embodiment of this specification proposes a method for distributing common busbar power of long-stroke oil pumping units, the method comprising the following steps:
[0023] S1: Get the current operating point set S = {Si | 1≤i≤N} of multiple long-stroke pumping units, where Si represents the operating point of the i-th long-stroke pumping unit, and N represents the number of long-stroke pumping units;
[0024] S2: Establish a knowledge graph based on the positional relationship, power demand, and power supply of multiple long-stroke pumping units;
[0025] S3: Input the knowledge graph into the common bus power supply network to obtain a power distribution plan for long-stroke oil pumps.
[0026] The present invention adopts a common bus connection method when supplying electric energy, that is, a common bus system for connecting N long-stroke oil pumping units is established, wherein each long-stroke oil pumping unit can not only obtain electric energy from the common bus, but also provide or receive electric energy to the bus or other long-stroke oil pumping units.
[0027] The long-stroke pumping unit may be a cantilever long-stroke pumping unit, for example, a long-stroke pumping unit, a standard series walking beam long-stroke pumping unit, and a flexible beam long-stroke pumping unit.
[0028] The common busbar structure is a main wire (or conductor rail), and all long-stroke pumping units are connected to this busbar through their own access points. Each long-stroke pumping unit needs to be equipped with a bidirectional inverter, which can not only convert DC power into AC power for the long-stroke pumping unit, but also convert excess power back to the busbar.
[0029] Each access point on the common busbar adopted by the present invention is equipped with a controllable circuit breaker to achieve control of a single long-stroke oil pumping unit, including emergency power off.
[0030] Each long-stroke pumping unit is connected to the busbar through a controllable interface, which includes a bidirectional inverter and a smart grid interface, allowing each machine to act as both a receiver and supplier of electricity. In addition, each long-stroke pumping unit is equipped with a power management system that can use data obtained by sensors to monitor power demand and supply in real time and automatically adjust power flow as needed. Each machine is equipped with sensors and control units that communicate with the central control room via high-speed industrial Ethernet to ensure real-time transmission and processing of data.
[0031] The long-stroke pumping unit also includes automatic circuit breakers and disconnectors, which can quickly disconnect the power supply when abnormal current or equipment failure is detected to prevent the fault from spreading to the entire system. In addition, the entire busbar system should follow the safety standards of the International Electrotechnical Commission (IEC) to ensure the safety of all equipment and operators.
[0032] In addition, the transmission system also has a backup bus path and a backup power system, which allows the system to automatically switch to the backup bus when a main bus fails, while ensuring uninterrupted power supply.
[0033] S1: Get the current working point set of multiple long-stroke pumping units including:
[0034] S1-1: placing a sensor on the side of the sucker rod of the long-stroke pumping unit to be determined, and setting a data collection time interval;
[0035] The sensor selected in this embodiment should have high accuracy (error range ±0.1 mm) and high response speed (response time 1 ms) to meet the rapidly changing measurement requirements. In addition, the sensor should have good environmental adaptability and be able to work stably in the temperature range of -10°C to +50°C, suitable for harsh environments such as oil fields.
[0036] S1-2: using a data processing system to receive the position data collected by the sensor;
[0037] The data processing system selected in this embodiment should support high-speed data transmission and real-time data processing, and have good anti-interference ability to ensure the accuracy of data in complex industrial environments. In addition, the system should support efficient integration with the long-stroke pumping unit control system to analyze and adjust operating parameters in real time.
[0038] S1-3: Calculate the speed information and acceleration information of the sucker rod of the long-stroke pumping unit to be determined by using the difference method;
[0039] The speed is calculated by the difference method of position data. Specifically, the position difference between two adjacent time points is divided by the time interval to obtain the average speed in that time period. This method is simple and efficient, and is suitable for fast speed calculation in real-time systems.
[0040] The speed formula obtained by the differential method of position data is: ;
[0041] The acceleration formula obtained by the differential method of velocity data is: ;
[0042] S1-4: Traverse the acceleration information, set the position information corresponding to the acceleration becoming a negative value during the ascending process as the upper operating point of the long-stroke pumping rod to be determined, and set the position information corresponding to the acceleration becoming a negative value for the first time during the descending process as the lower operating point of the long-stroke pumping rod to be determined.
[0043] The upper operating point and the lower operating point both correspond to the moment when the energy conversion direction of the long-stroke pumping unit changes. Next, the process of the pumping rod rising is used to explain:
[0044] The sucker rod gradually accelerates from a standstill to its maximum speed. During this process, the motor starts and begins to convert electrical energy into mechanical energy, driving the sucker rod to move upward. When the sucker rod reaches a certain height, it needs to start decelerating to avoid impact and prepare for energy consumption and damping. During this process, the motor no longer drives the rise and the mechanical energy begins to decrease. Therefore, the position corresponding to the maximum speed is the critical point of the conversion of electrical energy to mechanical energy. During the acceleration process, the acceleration is always positive, while the acceleration is always negative during the deceleration process to avoid mechanical overshoot. Therefore, this scheme monitors the sign change of acceleration in real time. When the acceleration changes from positive to negative, the position at this time is recorded. This position is the maximum speed point, which is also the operating point where the working state of the long-stroke pumping unit changes.
[0045] Optionally, in one embodiment, before establishing a knowledge graph based on the positional relationship, power demand, and power supply of multiple long-stroke pumping units, it is necessary to determine the working modes of the multiple long-stroke pumping units based on the current power consumption of the power grid;
[0046] The current power consumption of the power grid includes two situations: power shortage and normal power consumption. The method for confirming the current power consumption of the power grid includes:
[0047] Calculate the grid frequency deviation index:
[0048] ;
[0049] In the process of power distribution in the power grid, due to the factors of transmission lines and interference from power equipment, the power grid will experience deviations between the actual power frequency and the standard frequency during operation; the difference between the actual frequency and the standard frequency has a nonlinear impact on the power grid, and this nonlinear relationship can show different impact intensities in different frequency deviation ranges. Specifically:
[0050] When the frequency deviation is small, the frequency regulation and load regulation system of the power grid can usually effectively handle such small deviations, and the impact on the stability of the power grid and equipment is small. At this stage, the increase in damage is relatively slow, and the power grid is suitable for continuing to supply power to electrical equipment;
[0051] When the deviation is slightly larger, the frequency deviation begins to have a significant impact on the stability of the power grid, which may cause the automatic protection device of the power system to be activated, such as load shedding. In this range, the damage increases faster than a small range of deviations. At this time, due to the damage to the power equipment due to overfrequency or underfrequency, it is no longer suitable to continue to provide power to the power equipment;
[0052] If the frequency deviation is larger, it will greatly threaten the safety of the power grid and may cause large-scale damage to power equipment, system instability or even system collapse. At this stage, the increase in harm is very rapid and drastic.
[0053] This embodiment uses the grid frequency deviation as a factor to determine whether the current grid is suitable for providing electrical energy to electrical equipment. When the deviation is large, the grid power supply is reduced and the working mode is switched to common bus power supply. This not only helps to save electricity, but also can maximize the protection of the safety of electrical equipment.
[0054] Calculate the grid load index: ;
[0055] The relationship between grid load and power shortage needs to consider the basic principle of power supply and demand balance. When the grid load increases, if the power generation capacity cannot be increased accordingly, the power shortage will increase. If the current load is close to the preset maximum load, the grid load index increases rapidly, simulating the sharp increase in power shortage. When the grid is close to the maximum load capacity, load reduction and other protective measures may be implemented. Therefore, this embodiment reduces the grid load index as a factor in determining the current power shortage of the grid. When the grid shortage increases, the working mode is switched to the common bus power supply to ensure the normal operation of the electrical equipment.
[0056] Calculate the electricity price volatility index: ;
[0057] in, is a positive adjustment coefficient used to control the sensitivity of the function to electricity price deviations. The larger the value of is, the more sensitive the electricity price fluctuation index is to the change of electricity price; P represents the current electricity price, represents the historical average electricity price;
[0058] when When , the value of the exp exponential function decreases, resulting in a smaller electricity price fluctuation index. At this time, the electricity price provided by the power grid is lower. For economic reasons, the power supply of electrical equipment is more inclined to the power supply of the power grid;
[0059] when When , the value of the exp exponential function is larger, resulting in a larger electricity price fluctuation index. At this time, the electricity price provided by the power grid has exceeded the average electricity price. For economic reasons, it is more inclined to supplement electricity in the form of mutual supply of common bus electricity.
[0060] Calculate the Weather Impression Index:
[0061] ;
[0062] Where T represents the current temperature, and The submeter is defined as a low temperature threshold and a high temperature threshold. When the temperature is lower than the low temperature threshold or higher than the high temperature threshold, it is not recommended to use grid electricity to reduce the power consumption burden of the grid. The optimum temperature, around which the use of electrical energy is most recommended.
[0063] Calculate the comprehensive electricity tension index:
[0064] ,According to the electricity tension index CESI and the preset threshold, it is confirmed that the current power grid is in electricity tension or normal electricity consumption, where w1-w4 represent four weight factors respectively.
[0065] This patent can more accurately reflect the real-time supply and demand status and operational safety of the power grid by comprehensively considering the four key factors of current power load, power price, power grid frequency deviation and weather conditions. The power load and price information determine the current operation of the power grid, and the monitoring of power grid frequency deviation is the key to ensure the stable operation of the power grid. At the same time, the addition of weather conditions, taking into account the direct impact of climate change on power consumption, makes the decision on power use predictive. This method not only optimizes the allocation of power resources and improves the reliability of the power grid, but also enhances the ability to respond to emergencies and ensures the continuity and safety of power supply to the power grid. By accurately judging the degree of power shortage, you can flexibly choose to start the common bus power mutual supply working mode or continue to supply power independently, thereby ensuring power supply safety while optimizing energy efficiency.
[0066] If the current power grid is in a state of power shortage, the working mode of multiple long-stroke pumping units is determined to be a common busbar energy mutual supply mode;
[0067] If the current power grid is in a state of power shortage, the working mode of the multiple long-stroke pumping units is determined to be a grid power supply mode alone.
[0068] The power demand is divided into an upward power demand and a downward power demand. Each long-stroke pumping unit can only have one of the upward power demand and the downward power demand at a certain moment.
[0069] The upward power demand refers to the power required from any position to the upper operating point during the period when the sucker rod of the long-stroke pumping unit rises from the bottom of the pumping well to the upper operating point;
[0070] The downward power demand refers to the power required from any position of the long-stroke pumping unit to the lower operating point during the period when the sucker rod moves from the highest point to the lower operating point;
[0071] The formula for calculating the power demand is:
[0072] ;
[0073] Where ED represents the electric energy demand, x represents the ground distance measured by the sensor, and They represent the position information of the upper and lower operating points respectively, KE and PE represent the kinetic energy and potential energy functions respectively, Indicates the power conversion efficiency.
[0074] The power supply degree is divided into an upward power supply degree and a downward power supply degree. Each long-stroke pumping unit can only have one of the upward power supply degree or the downward power supply degree at a certain moment.
[0075] The upward electric energy supply degree refers to the electric energy generated by the long-stroke pumping unit from any position to the highest point during the period when the sucker rod moves from the upper working point to the highest point of the upward movement;
[0076] The downward power supply degree refers to the power generated by the long-stroke pumping unit from any position to the bottom of the pumping well during the period when the pumping rod moves from the lower working point to the bottom of the pumping well;
[0077] ;
[0078] S2: Establish a knowledge graph based on the positional relationship, power demand, and power supply of multiple long-stroke pumping units;
[0079] Optionally, in one embodiment, when the working mode is a common bus power supply mode, a knowledge graph is established according to the position relationship, power demand, and power supply of multiple long-stroke pumping units; the knowledge graph is in the form of a three-level three-dimensional matrix In the form of i and j, the row and column numbers of the elements in the matrix are respectively, ;
[0080] First level three-dimensional matrix Characterize the data between long-stroke pumping units with a first-level relationship, where the first-level relationship is defined as a long-stroke pumping unit connected to another long-stroke pumping unit through a common busbar and the two long-stroke pumping units are directly connected, excluding other long-stroke pumping units. The second-level three-dimensional matrix Characterize the data between long-stroke pumping units with a secondary relationship, where the secondary relationship is defined as a long-stroke pumping unit connected to another long-stroke pumping unit through a common busbar and there is only one other long-stroke pumping unit between the two long-stroke pumping units. The third-level three-dimensional matrix Characterize data between long-stroke pumping units with a three-level relationship, wherein the three-level relationship is defined as a long-stroke pumping unit connected to another long-stroke pumping unit through a common busbar and the two long-stroke pumping units only contain two other long-stroke pumping units;
[0081] Among them, each level of three-dimensional matrix consists of three N*N two-dimensional matrices , and constitute, Indicates whether there is a first-level relationship between the i-th long-stroke pumping unit and the j-th long-stroke pumping unit. If so, the element at that position is 1, otherwise it is 0, and the element at position i=j is 0; Indicates the power supply degree of the i-th long-stroke pumping unit. If, at the current moment, the i-th long-stroke pumping unit has an upward power supply degree or a downward power supply degree, then all the element values in this row are the upward power supply degree or the downward power supply degree, otherwise the element values in this row are 0; It represents the power demand of the j-th long-stroke oil pump. If, at the current moment, the j-th long-stroke oil pump has an upward power demand or a downward power demand, then all the element values in this column are the upward power demand or the downward power demand, otherwise the element values in this column are 0.
[0082] For example, if there are four long-stroke pumping units A1-A4 in a certain area, and the four long-stroke pumping units A1-A4 are sequentially connected by a common bus power line, the first-level three-dimensional matrix can be expressed as:
[0083] ; ; ;
[0084] The element 1 represents: two long-stroke pumping units A2 and A1 are connected at the first level through a common busbar; The element 1 represents: the power supply degree of the second long-stroke pumping unit A2 located in row number 2 is 1; The element 3 means: the power demand of the first long-stroke pumping unit A1 in column 1 is 3; then the array ; It means that two long-stroke pumping units A2 and A1 are connected through a common busbar, and the power supply degree of A2 is 1, and the power demand degree of A3 is 3;
[0085] Similarly, The element 1 represents that the two long-stroke pumping units A1 and A2 are connected at one level through a common busbar; The element 0 means: the power supply degree of the first long-stroke pumping unit located in row number 1 is 0; The element 0 means: the power demand of the second long-stroke pumping unit in column number 2 is 0; then the array It means that the two long-stroke pumping units A1 and A2 are connected through a common busbar, but the power supply of A1 is 0 and the power demand of A3 is 0.
[0086] S4: Input the knowledge graph into the common bus power supply network to obtain a power distribution plan for long-stroke oil pumps.
[0087] The common busbar power supply network includes a location enhancement network and a power distribution network;
[0088] The input of the position enhancement network is the first to third level three-dimensional matrix , , , the output is , the location enhancement network is defined as:
[0089] ;
[0090] ;
[0091] ;
[0092] in represents the cth two-dimensional matrix of the kth three-dimensional matrix, where 1 ≤ k ≤ 3, 1 ≤c ≤3, Represents a convolution operation from single channel to single channel. The convolution layer uses the same padding. represents the activation function, and mask is the mask operation, which ensures that after convolution, the output of the position where the value is 0 in the original matrix is still 0. represents the cth two-dimensional matrix of the kth three-dimensional matrix after feature extraction, It represents the c-th two-dimensional matrix that fuses the first to third level three-dimensional matrices. Concat represents channel concatenation. The output of the position enhancement network is .
[0093] In energy sharing operations, the design of an effective power distribution scheme is of vital importance to improve overall system efficiency and reduce operational complexity. Traditional energy distribution methods often do not fully consider the positional relationship, energy sharing and demand between long-stroke pumping units, resulting in high complexity and error rates in practical applications. Especially when multiple machines are connected through a common bus, a simple direct or sequential energy sharing method is not always the most efficient or stable solution.
[0094] The present invention uses a three-level matrix to represent various connection modes between long-stroke pumping units, from direct to indirect. Through this hierarchical representation, the best path for power distribution can be clearly identified, whether it is a direct connection or an indirect connection that requires one or two intermediary long-stroke pumping units. This method makes the distribution of power not only dependent on the urgency of demand, but also takes into account the convenience and efficiency of transmission.
[0095] In order to further optimize energy distribution, the present invention implements a strategy of information enhancement by channel in a multi-level matrix. This strategy ensures that the impact of more indirect connection methods on energy sharing schemes is taken into account in the decision-making process by strengthening the channels of data processing and information flow, better reflects the energy needs of each long-stroke pumping unit, and avoids the singleness and complexity of simple multi-path direct energy distribution to multiple nearest long-stroke pumping units, which can improve the stability and response speed of the overall system.
[0096] The electrical energy distribution network will be located to enhance the output of the network M different regions are segmented, and local information is enhanced by calculating the weights of the M regions, and the distribution probability is calculated; the power distribution network is defined as:
[0097] ;
[0098] ;
[0099] ;
[0100] ;
[0101] Among them, Split represents region segmentation, M represents the number of segmented regions, represents the mth segmentation area, Indicates a convolution operation with a convolution kernel of 3*3, stride and padding represent the step size and padding respectively. The mth segmentation area after feature extraction, and Respectively represent weighted fusion and position-by-position dot product, Max and Avg represent maximum pooling and average pooling, represents spatial splicing, h is the feature after local information enhancement, represents the assignment probability matrix.
[0102] In practical applications, multiple long-stroke pumping units are connected to a common busbar device in a sequential manner. During the power transmission process, the power loss increases with the increase of the power transmission distance. Therefore, in the actual power transmission process, priority should be given to the power demand of other long-stroke pumping units near the long-stroke pumping units that provide power. The present invention divides the two-dimensional matrix representing the positional relationship between long-stroke pumping units to obtain M small local areas, and guides the distribution model to distribute power to the long-stroke pumping units with large power demand in the local area through local area information enhancement, so as to achieve the purpose of reducing the loss as much as possible during the power distribution process.
[0103] The training process of the common bus power supply network adopts computer random simulation and expert labeling to construct training samples, that is, computer software is used to randomly generate the common bus connection relationship of multiple groups of long-stroke pumping units and the power demand and supply of each long-stroke pumping unit, and the distribution probability matrix is labeled according to expert experience. The main diagonal elements in the distribution probability matrix are all labeled as 0. If the i-th long-stroke pumping unit provides corresponding energy to the j-th long-stroke pumping unit, the corresponding positive value is labeled at the corresponding matrix position. If the i-th long-stroke pumping unit receives corresponding energy from the j-th long-stroke pumping unit, the corresponding negative value is labeled at the corresponding matrix position.
[0104] The present invention provides a long-stroke oil pumping unit common busbar power distribution system, the system comprising:
[0105] State acquisition module: The state acquisition module obtains the operating point set S={Si | 1≤i≤N} of multiple long-stroke pumping units at the current moment, where Si represents the operating point of the i-th long-stroke pumping unit, and N represents the number of long-stroke pumping units;
[0106] Knowledge graph construction module: establish a knowledge graph based on the positional relationship, power demand, and power supply of multiple long-stroke pumping units;
[0107] Power distribution module: The power distribution module is used to input the knowledge graph into the common bus power supply network to obtain a power distribution plan for long-stroke oil pumps.
[0108] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for distributing common busbar power of long-stroke oil pumps when executing the computer program.
[0109] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned long-stroke oil pumping unit common bus power distribution method is implemented.
[0110] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0111] In this specification, the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments described later, the description is relatively simple, and the relevant parts can be referred to the partial description of the previous embodiments.
[0112] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for distributing common busbar power for long-stroke oil pumping units, characterized in that: The electric energy distribution method comprises the following steps: S1: Obtain the operating point set S = {Si|1≤i≤N} of multiple long-stroke pumping units at the current moment, where Si represents the operating point of the i-th long-stroke pumping unit, and N represents the number of long-stroke pumping units; S2: Establish a knowledge graph based on the positional relationship, power demand, and power supply of multiple long-stroke pumping units; S3: Input the knowledge graph into the common bus power supply network to obtain a long-stroke pumping unit power distribution plan; obtain a set of operating points of multiple long-stroke pumping units at the current moment, including: S1-1: placing a sensor on the side of the sucker rod of the long-stroke pumping unit to be determined, and setting a data collection time interval; S1-2: using a data processing system to receive the position data collected by the sensor; S1-3: Calculate the speed information and acceleration information of the sucker rod of the long-stroke pumping unit to be determined by using the difference method; S1-4: traverse the acceleration information, set the position information corresponding to the acceleration becoming a negative value during the ascending process as the upper operating point of the long-stroke pumping rod to be determined, and set the position information corresponding to the acceleration becoming a negative value for the first time during the descending process as the lower operating point of the long-stroke pumping rod to be determined; The power demand is divided into an upward power demand and a downward power demand. Each long-stroke pumping unit can only have one of the upward power demand and the downward power demand at a certain moment. The upward power demand refers to the power required from any position to the upper operating point during the period when the sucker rod of the long-stroke pumping unit rises from the bottom of the pumping well to the upper operating point; The downward power demand refers to the power required from any position of the long-stroke pumping unit to the lower operating point during the period when the sucker rod moves from the highest point to the lower operating point; The formula for calculating the power demand is: Where ED represents the electric energy demand, x represents the ground distance measured by the sensor, and x up and x down They represent the position information of the upper operating point and the lower operating point, KE and PE represent the kinetic energy and potential energy functions, respectively, and η represents the electric energy conversion efficiency; The power supply degree is divided into an upward power supply degree and a downward power supply degree. Each long-stroke pumping unit can only have one of the upward power supply degree or the downward power supply degree at a certain moment. The upward electric energy supply degree refers to the electric energy generated by the long-stroke pumping unit from any position to the highest point during the period when the sucker rod moves from the upper working point to the highest point of the upward movement; The downward power supply degree refers to the power generated by the long-stroke pumping unit from any position to the bottom of the pumping well during the period when the pumping rod moves from the lower working point to the bottom of the pumping well; The knowledge graph is represented in the form of a three-level three-dimensional matrix I(i, j), where i and j represent the number of rows and columns of the elements in the matrix, respectively, 1≤i≤N, 1≤j≤N; the first-level three-dimensional matrix I 1 (i, j) represents the data between long-stroke pumping units with a first-level relationship, where the first-level relationship is defined as a long-stroke pumping unit connected to another long-stroke pumping unit through a common busbar and the two long-stroke pumping units are directly connected, excluding other long-stroke pumping units. The second-level three-dimensional matrix I 2 (i, j) represents the data between the long-stroke pumping units with a secondary relationship, wherein the secondary relationship is defined as a long-stroke pumping unit connected to another long-stroke pumping unit through a common busbar and there is only one other long-stroke pumping unit between the two long-stroke pumping units. The third-level three-dimensional matrix I 3 (i, j) data representing the existence of a three-level relationship between long-stroke pumping units, wherein the three-level relationship is defined as a long-stroke pumping unit connected to another long-stroke pumping unit through a common busbar and the two long-stroke pumping units only contain two other long-stroke pumping units; Among them, each level of three-dimensional matrix consists of three N*N two-dimensional matrices and constitute, Indicates whether there is a first-level relationship between the i-th long-stroke pumping unit and the j-th long-stroke pumping unit. If so, the element at this position is 1, otherwise it is 0, and the element at position i=j is 0; Indicates the power supply degree of the i-th long-stroke pumping unit. If, at the current moment, the i-th long-stroke pumping unit has an upward power supply degree or a downward power supply degree, then all the element values in this row are the upward power supply degree or the downward power supply degree, otherwise the element values in this row are 0; represents the power demand of the j-th long-stroke pumping unit. If the j-th long-stroke pumping unit has an upward power demand or a downward power demand at the current moment, then all the element values in this column are the upward power demand or the downward power demand, otherwise the element values in this column are 0; the common bus power supply network includes a position enhancement network and a power distribution network; the input of the position enhancement network is the first to third level three-dimensional matrix I 1 (i, j), I 2 (i, j), I 3 (i, j), the output is f e , the location enhancement network is defined as: f e =concat(f 1 ,f 2 ,f 3 ); in Represents the cth two-dimensional matrix of the kth three-dimensional matrix, where 1≤k≤3, 1≤c≤3, Conv 1→1 It represents the convolution operation from single channel to single channel. The convolution layer uses the same padding. σ represents the activation function. Mask is the mask operation. It ensures that after the convolution, the output of the position where the value is 0 in the original matrix is still 0. represents the cth two-dimensional matrix of the kth three-dimensional matrix after feature extraction, f C represents the cth two-dimensional matrix that fuses the first to third level three-dimensional matrices, concat represents channel concatenation, and the output of the position enhancement network is f e .
2. The long-stroke pumping unit common busbar power distribution method according to claim 1 is characterized in that: The power distribution network will position the output of the augmentation network f e M different regions are segmented, and local information is enhanced by calculating the weights of the M regions, and the distribution probability is calculated; the power distribution network is defined as: {f m |1≤m≤M}=Split(f e ); X m =σ(Conv 3*3 (f m ,stride=1,padding=1)); Pr(i,j)=σ(Conv 3*3 (σ(Conv 3*3 (f m ,stride=1,padding=1)),stride=1,padding=1); Among them, Split represents region segmentation, M represents the number of segmented regions, and f m represents the mth segmentation area, Conv 3*3 Indicates a convolution operation with a convolution kernel of 3*3, stride and padding represent the step size and padding respectively, X m The mth segmentation area after feature extraction, and Respectively represent weighted fusion and position-by-position dot product, Max and Avg represent maximum pooling and average pooling, Concat s represents spatial splicing, h is the feature after local information enhancement, and Pr(i, j) represents the allocation probability matrix; The main diagonal elements in the distribution probability matrix are all marked as 0. If the i-th long-stroke pumping unit provides corresponding energy to the j-th long-stroke pumping unit, the corresponding matrix position is a corresponding positive value. If the i-th long-stroke pumping unit receives corresponding energy from the j-th long-stroke pumping unit, the corresponding matrix position is a corresponding negative value.
3. A long-stroke pumping unit common busbar power distribution system, the distribution system is used to execute the long-stroke pumping unit common busbar power distribution method according to any one of claims 1-2, characterized in that: The system includes: State acquisition module: The state acquisition module obtains a set of operating points S = {Si|1≤i≤N} of multiple long-stroke pumping units at the current moment, wherein Si represents the operating point of the i-th long-stroke pumping unit, and N represents the number of long-stroke pumping units; Knowledge graph construction module: establish a knowledge graph based on the positional relationship, power demand, and power supply of multiple long-stroke pumping units; Power distribution module: The power distribution module is used to input the knowledge graph into the common bus power supply network to obtain a power distribution plan for long-stroke oil pumps.
4. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for distributing common bus power for long-stroke oil pumps as described in any one of claims 1 to 2 is implemented.
5. A programmable controller storing a computer program, wherein the computer program, when executed by a processor, implements the common bus power distribution method for long-stroke oil pumps as described in any one of claims 1 to 2.
Citation Information
Patent Citations
Whole-walking-beam self-balancing device
CN103195398A
Energy-saving wind power / network power combined system of oil pumping unit in oil field
CN201714347U