Method and device for generating digital twin model based on beam-pumping unit

By generating a digital twin model of a beam pumping unit and combining it with the Internet of Things and commercial software, the problem of insufficient simulation of oilfield production processes has been solved, enabling real-time monitoring and optimization of oil and gas production, and improving safety and production efficiency.

CN114764524BActive Publication Date: 2026-03-27PETROCHINA CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-13
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

Current technologies for information technology in oilfield oil and gas production mainly focus on data acquisition and visualization, neglecting production processes and management. They lack simulation and data analysis of the production process of beam pumping units, resulting in insufficient optimization of production processes and inadequate early warning of safety risks.

Method used

By establishing a digital twin model of a beam pumping unit and combining it with real-time data from the Internet of Things, a mechanical 3D model and a multiphase flow motion model are generated to achieve monitoring, early warning, and dynamic adjustment of the production process. The model is then verified using commercial software for simulation.

Benefits of technology

It enables real-time monitoring, early warning, and dynamic capacity adjustment of oil and gas production, improves the optimization capability of production processes and the prevention of safety risks, and provides intelligent closed-loop control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114764524B_ABST
    Figure CN114764524B_ABST
Patent Text Reader

Abstract

The application provides a method and device for generating a digital twin model of a beam-pumping unit. The method for generating the digital twin model of the beam-pumping unit comprises: generating a mechanical three-dimensional model of the beam-pumping unit according to a station, a mechanical structure of the beam-pumping unit and a relative motion relationship between components; generating a multiphase flow motion model of the beam-pumping unit according to a flow field distribution of an oil-gas mixture in the beam-pumping unit; and generating the digital twin model of the beam-pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model. The application can monitor and diagnose the running state of oil-gas production in real time by establishing a simulation model of a beam-pumping unit process system, simulating the running parameters of the beam-pumping unit and combining the running data of the physical device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of oil and gas field development, and particularly relates to a generation method and device of a digital twin model based on a beam-pumping unit. BACKGROUND

[0002] In the prior art, oil and gas production informatization of an oil field mainly focuses on data acquisition and visualization, and ignores production processes and production management itself, especially lacks simulation of the entire production process of a beam-pumping unit, and lacks analysis of collected data to optimize production processes, and it is urgently needed to establish a digital model of an oil and gas production physical simulation and verification system to realize digital twinning of software simulation and physical simulation, transplant research functions of a physical model to a software simulation level, and expand the scope and capacity of research by superimposing various working conditions in the above requirements in software simulation. The oil and gas production integration operation management is realized, scientific guidance of oil well production increase is realized, and safety risks in the oil and gas production operation process are prevented and warned. SUMMARY

[0003] In view of the problems in the prior art, the generation method and device of the digital twin model based on the beam-pumping unit provided by the present application simulate running parameters of the beam-pumping unit by establishing a beam-pumping unit process system simulation model, combine the running data of the physical device, analyze and verify the running state of the production process of the beam-pumping unit, and realize functions such as monitoring and analysis, early warning and alarm, dynamic capacity adjustment, flow guarantee, capacity analysis, and new process verification of oil and gas production related to the beam-pumping unit by using a digital twin simulation verification system.

[0004] To solve the above technical problems, the present application provides the following technical solutions:

[0005] In a first aspect, the present application provides a generation method of a digital twin model based on a beam-pumping unit, comprising:

[0006] generating a mechanical three-dimensional model of the beam-pumping unit according to a station yard, a mechanical structure of the beam-pumping unit, and a relative motion relationship between components of the beam-pumping unit;

[0007] generating a multiphase flow motion model of the beam-pumping unit according to a flow field distribution of an oil and gas mixture in the beam-pumping unit;

[0008] generating a digital twin model of the beam-pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model.

[0009] In an embodiment, the generating of the mechanical three-dimensional model of the beam-pumping unit according to the station yard, the mechanical structure of the beam-pumping unit, and the relative motion relationship between the components of the beam-pumping unit comprises:

[0010] According to the ball valve diameter, the flow hole diameter, the flow area of the ball valve, the steel ball mass, the steel ball limit and the pressure difference of both sides of the steel ball, a plunger pump ball valve mechanical model is generated;

[0011] According to the stiffness of the pull rod and the elastic deformation of the pull rod, a sucker rod mechanical model is generated;

[0012] According to the envelope parameters and the telescopic parameters of the horse head rope, a horse head rope mechanical model is generated;

[0013] According to the plunger pump ball valve mechanical model, the sucker rod mechanical model and the horse head rope mechanical model, the mechanical three-dimensional model is generated.

[0014] In an embodiment, the generating the multiphase flow motion model of the beam pumping unit according to the flow field distribution of the oil-gas mixture in the beam pumping unit comprises:

[0015] Respectively generating the hydraulic fluid model, the multi-body dynamics model and the CFD fluid mechanics model at different stages of the oil-gas generation process;

[0016] According to the hydraulic fluid model, the multi-body dynamics model and the CFD fluid mechanics model, the multiphase flow motion model is generated.

[0017] In an embodiment, the method for generating the digital twin model of the beam pumping unit further comprises:

[0018] Using the Internet of Things, the production data of the well site and the beam pumping unit are collected in real time through sensors;

[0019] According to the production data and the digital twin model, the production state of the beam pumping unit is monitored.

[0020] In a second aspect, the present application provides a device for generating a digital twin model of a beam pumping unit, comprising:

[0021] A three-dimensional model generation unit is configured to generate a mechanical three-dimensional model of the beam pumping unit according to the station site, the mechanical structure of the beam pumping unit and the relative motion relationship between the components.

[0022] A motion model generation unit is configured to generate a multiphase flow motion model of the beam pumping unit according to the flow field distribution of the oil-gas mixture in the beam pumping unit.

[0023] A twin model generation unit is configured to generate a digital twin model of the beam pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model.

[0024] In an embodiment, the three-dimensional model generation unit comprises:

[0025] The mechanical model generation module of the plug pump ball valve is configured to generate a mechanical model of the plug pump ball valve according to a diameter of the ball valve, a diameter of a through-flow hole, a through-flow area of the ball valve, a mass of a steel ball, a position limit of the steel ball, and a pressure difference between two sides of the steel ball.

[0026] The mechanical model generation module of the sucker rod is configured to generate a mechanical model of the sucker rod according to a stiffness of the rod and an elastic deformation of the rod.

[0027] The mechanical model generation module of the horsehead rope is configured to generate a mechanical model of the horsehead rope according to envelope parameters and stretch parameters of the horsehead rope.

[0028] The three-dimensional model generation module is configured to generate the mechanical three-dimensional model according to the mechanical model of the plug pump ball valve, the mechanical model of the sucker rod, and the mechanical model of the horsehead rope.

[0029] In an embodiment, the motion model generation unit comprises:

[0030] The process model generation module is configured to generate a hydraulic fluid model, a multi-body dynamics model, and a CFD fluid mechanics model for different stages of the oil and gas generation process, respectively.

[0031] The motion model generation module is configured to generate the multiphase flow motion model according to the hydraulic fluid model, the multi-body dynamics model, and the CFD fluid mechanics model.

[0032] In an embodiment, the apparatus for generating a digital twin model of a beam-type pumping unit further comprises:

[0033] The data acquisition unit is configured to acquire production data of the well site and the beam-type pumping unit in real time through sensors by using the Internet of Things.

[0034] The production state monitoring unit is configured to monitor a production state of the beam-type pumping unit according to the production data and the digital twin model.

[0035] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for generating a digital twin model of a beam-type pumping unit when executing the program.

[0036] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program is executable on a processor to implement the steps of the method for generating a digital twin model of a beam-type pumping unit.

[0037] As described above, the method and apparatus for generating a digital twin model of a beam pumping unit provided in this embodiment of the invention first generates a three-dimensional mechanical model of the beam pumping unit based on the station, the mechanical structure of the beam pumping unit, and the relative motion relationships between its components; then, it generates a multiphase flow motion model of the beam pumping unit based on the flow field distribution of the oil-gas mixture in the beam pumping unit; finally, it generates a digital twin model of the beam pumping unit based on the three-dimensional mechanical model and the multiphase flow motion model. This invention relates to simulation control and analysis of beam pumping units; it integrates real-time transmission from the Internet of Things, big data-driven approaches, and multi-body model enhancement, thereby solving the technical difficulties of physical models being unable or difficult to implement. In summary, this invention provides an effective intelligent closed-loop control method for accurately and vividly displaying and controlling the process, optimizing the process, and providing real-time and precise management. Specifically, this invention has the following beneficial effects:

[0038] 1) It is comprehensive and requires a holistic approach.

[0039] This invention simulates the entire oil and gas production process, combining previously independent and decentralized systems through interfaces for comprehensive analysis and overall understanding.

[0040] 2) Strong self-learning ability and strong scalability.

[0041] The model integrates historical data, experience, and the model itself for process control, process optimization, data updates, and closed-loop control, enabling the system to self-learn, update, and be highly scalable.

[0042] 3) Real-time performance.

[0043] The monitoring of production units requires real-time analysis. Real-time data extraction, analysis, and rapid processing are needed to detect and predict production anomalies in real time. Attached Figure Description

[0044] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0045] Figure 1 This is a schematic flowchart illustrating the method for generating a digital twin model of a beam pumping unit in an embodiment of the present invention. Figure 1 ;

[0046] Figure 2 This is a flowchart illustrating step 100 in an embodiment of the present invention;

[0047] Figure 3Flowchart for step 200 in the embodiment of the present application;

[0048] Figure 4 Flowchart for the generation method of the digital twin model based on the beam pumping unit in the embodiment of the present application Figure 2 ;

[0049] Figure 5 Flowchart for the generation method of the digital twin model based on the beam pumping unit in the specific application example of the present application;

[0050] Figure 6 Oil and gas production digital twin control chart in the specific application example of the present application

[0051] Figure 7 Principle diagram of the oil and gas production digital twin system in the specific application example of the present application

[0052] Figure 8 Structure block of the generation device of the digital twin model based on the beam pumping unit in the embodiment of the present application Figure 1 ;

[0053] Figure 9 Structure block diagram of the three-dimensional model generation unit in the embodiment of the present application;

[0054] Figure 10 Structure block diagram of the motion model generation unit in the embodiment of the present application;

[0055] Figure 11 Structure block of the generation device of the digital twin model based on the beam pumping unit in the embodiment of the present application Figure 2 ;

[0056] Figure 12 Structure diagram of the electronic device in the embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0058] Those skilled in the art will appreciate that embodiments of the application can be supplied as a method, a system, or a computer program product. Accordingly, the application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the application can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) embodying computer-readable program code.

[0059] It should be noted that the terms "comprising", "having", "including", and "containing" and any variations thereof in the specification and in the claims are intended to cover a non-exclusive inclusion, such that a process, method, system, product, or apparatus that comprises, has, includes, or contains an item or list of items who have not been explicitly stated or processes, methods, systems, products, or apparatuses that inherently have the items or lists of items specified, but also including other non- explicitly stated or non-inherent items or lists of items.

[0060] It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0061] Embodiments of the present application provide a specific implementation of a method for generating a digital twin model of a beam pumping unit, referring to Figure 1 The method specifically includes the following contents:

[0062] Step 100: generating a mechanical three-dimensional model of the beam pumping unit according to the station, the mechanical structure of the beam pumping unit, and the relative motion relationship between the components.

[0063] Specifically, a digital three-dimensional model is constructed through a multi-body dynamics model expression, the station, and the relative motion relationship between the mechanical structure of the beam pumping unit and the components.

[0064] Step 200: generating a multiphase flow motion model of the beam pumping unit according to the flow field distribution of the oil-gas mixture in the beam pumping unit.

[0065] In the implementation of step 200, specifically: analyzing the flow field distribution of the oil-gas mixture entering the separator through the Euler multiphase flow model, analyzing the influence of different droplet diameters on the separation effect according to the Granular particle model, and analyzing the structural components and the well bottom flow field during the operation of the oil pump in the well according to the fluid-structure coupling, so as to construct the multiphase flow motion model.

[0066] Step 300: generating a digital twin model of the beam pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model.

[0067] It can be understood that the digital twin model in the prior art has the following disadvantages: dispersion: the traditional model only models and applies to a certain part, and the integrity is missing. Poor scalability: the traditional model is automatically updated, and the learning ability is poor, and cannot be expanded. Real-time: the traditional model is generally problem-oriented, and after a problem occurs, the corresponding model is applied to analyze, and the real-time performance is poor. Combining the mechanical three-dimensional model with the multiphase flow motion model can better solve this problem. And by establishing a digital model of a physical simulation and verification system, a digital twin of software simulation and physical simulation is realized, the research function of the physical model is transplanted to the software simulation level, and various working conditions in the above requirements are superimposed in the software simulation to expand the research scope and ability.

[0068] From the above description, the generation method of the digital twin model based on the beam-pumping unit provided by the embodiment of the application first generates a mechanical three-dimensional model of the beam-pumping unit according to the station yard, the mechanical structure of the beam-pumping unit and the relative motion relationship between the components; then generates a multiphase flow motion model of the beam-pumping unit according to the flow field distribution of the oil-gas mixture in the beam-pumping unit; and finally generates a digital twin model of the beam-pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model. The application relates to simulation control and analysis of the beam-pumping unit; fusion of real-time transmission of the Internet of Things, big data driving and multi-body model improvement, thereby solving technical problems that cannot be realized or are not easy to realize by a physical model. In summary, the application provides an effective control method of intelligent closed loop for accurately and vividly displaying and controlling, optimizing a process, and realizing real-time and fine control.

[0069] In an embodiment, referring to Figure 2 , step 100 further includes:

[0070] Step 101: generating a plunger pump ball valve mechanical model according to the ball valve diameter, the through-flow hole diameter, the through-flow area of the ball valve, the steel ball mass, the steel ball limit and the pressure difference on both sides of the steel ball;

[0071] In the process of generating the plunger pump ball valve mechanical model, the ball valve diameter, the through-flow hole diameter, the change of the through-flow area of the ball valve in the opening and closing process, the steel ball mass, the steel ball limit and the influence of the pressure difference on both sides of the steel ball on the opening of the ball valve need to be considered.

[0072] Step 102: generating a sucker rod mechanical model according to the stiffness of the pull rod and the elastic deformation of the pull rod;

[0073] In the implementation process of step 102, the stiffness and elastic deformation of the pull rod need to be considered, and the static stiffness and dynamic stiffness of the laboratory and field sucker rod can be considered in the system model development, so as to realize comprehensive analysis of the influence of the deformation of the sucker rod on the stroke.

[0074] Step 103: generating a horsehead rope mechanical model according to the envelope parameters and the stretch parameters of the horsehead rope;

[0075] Considering the envelope of the horsehead rope in operation, the stretch characteristics of the rope, etc.

[0076] Step 104: generating the mechanical three-dimensional model according to the plunger pump ball valve mechanical model, the sucker rod mechanical model and the horsehead rope mechanical model.

[0077] In addition, the generation of the mechanical three-dimensional model also needs the following factors:

[0078] Modeling of the plunger cavity of the downhole pump mechanism: considering the change of the volume during the reciprocating motion of the plunger cavity; considering the flow and pressure changes in the plunger cavity due to the volume change; considering the upward load generated by the strong oil liquid acting on the lower end surface of the plunger.

[0079] Modeling of the upper end surface load of the downhole pump plunger: considering the downward load generated by the strong upper end surface of the plunger due to the oil pressure.

[0080] Downhole lifting pipeline: considering the pressure generated by the self-weight of the oil liquid at the well depth when the oil liquid is transported upward in the downhole pipeline.

[0081] Modeling of the oil production transmission mechanical structure: respectively for the walking beam, connecting rod and crank. Considering the center of gravity position, mass and moment of inertia of the mechanical structure, etc.

[0082] Other transmission devices: such as motor, gearbox, etc. Here, a simplified model is used. Detailed data can be considered in the later stage: gear ratio, gear clearance, gear shaft stiffness, gear meshing frequency, gear shaft inertia. The motor can consider the control current combined with the output torque of the motor characteristics. The motor model can be selected according to the actual demand: the external characteristic table model, considering the output characteristics and motor efficiency of the motor with the change of speed and current; the average detailed model, considering the equivalent circuit of the motor stator and rotor, which can decompose the factors such as motor power consumption and magnetic loss.

[0083] Oil property definition. Here, the density, viscosity, thermal conductivity, gas content, etc. of the oil at different temperatures and pressures can be considered.

[0084] In an embodiment, referring to Figure 3 , step 200 further comprises:

[0085] Step 201: generating a hydraulic fluid model, a multi-body dynamics model and a CFD fluid mechanics model for different stages of the oil and gas production process, respectively;

[0086] Specifically, the hydraulic fluid model, the multi-body dynamics model and the CFD fluid mechanics model are calculated, and the above models are diversified according to the needs of different research and development stages and different targets.

[0087] Step 202: generating the multiphase flow motion model according to the hydraulic fluid model, the multi-body dynamics model and the CFD fluid mechanics model.

[0088] In an embodiment, referring to Figure 4 The method for generating the digital twin model of the beam pumping unit further comprises:

[0089] Step 400: collecting production data of the well site and the beam pumping unit in real time by sensors through the Internet of Things;

[0090] Virtual sensors can be arranged at any position of the system to obtain model information. For example, a flow sensor can obtain: instantaneous flow (L / min), cumulative flow (L), and cumulative mass flow (kg). More types of virtual sensors can be deployed in the model as needed.

[0091] Step 500: monitoring the production state of the beam pumping unit according to the production data and the digital twin model.

[0092] Specifically, the actual production process is digitally twinned throughout the whole process, the digital twin system is controlled through the Internet of Things, and meanwhile, learning is conducted in combination with a sample library, so as to manage, control, optimize, predict, research and apply each link of oil and gas production, and provide effective means and technical support for the development of intelligent oilfields.

[0093] As can be known from the above description, the method for generating the digital twin model of the beam pumping unit provided by the embodiment of the present application can monitor and diagnose the running state of oil and gas production in real time, predict working conditions and plan operation, and guide oil and gas production measures based on data and model driving. The present application solves the problem that current oilfield informationization of oil and gas production mainly focuses on data collection and visualization, ignores production technology and production management itself, lacks simulation of the whole process of oil and gas production, and lacks analysis of collected data to optimize production technology. Through establishment of an oil and gas process system simulation model, simulation of running parameters of production technology and pipe network, and combination with running data of the entity device, a digital twin simulation verification system for analyzing and verifying the running state of production technology realizes functions and applications of monitoring and analyzing oil and gas production, early warning and alarm, dynamic capacity adjustment, flow guarantee, capacity analysis, new technology verification, etc.

[0094] To further illustrate the present application, the present application further provides a specific application example of the method for generating the digital twin model of the beam pumping unit, specifically comprising the following contents, referring to Figure 5 .

[0095] In this specific application example, the commercial maturity software Amesim, StarCCM+, Motion is used, the special model library is developed based on the mature commercial software, including the models needed for the modeling of the lifting, injection and metering system, including system-level models and local detailed analysis models, the special analysis module is mainly to establish the oil and gas lifting, injection and metering system model and debug and run, the virtual Internet of Things design is mainly the research of data and process model data interface, virtual instrument development and data and instrument association, and the digital twin of the physical simulation and verification system of the oil and gas production Internet of Things.

[0096] Step S10: generating a mechanical three-dimensional model of the beam pumping unit according to the station yard, the mechanical structure of the beam pumping unit and the relative motion relationship between the components.

[0097] Step S20: flexible closed-loop control according to the mechanical three-dimensional model.

[0098] Referring to Figure 6 The digital twin model simulates the pumping motion process and monitors the motor electrical parameters, the torque of the crank motion, the current, the stroke, the speed, and the load during the motion process. It is found that in the initial motion, the static friction resistance is large, and a large power is needed to move the sucker rod. Once the motion changes from static friction to dynamic friction, the motion power decreases. However, in actual operation, the entire motion process is not monitored, and the details are not paid attention to. The power provided by the motor remains unchanged, resulting in a large energy consumption of the entire operation process. At the same time, the sucker rod is in a state of high stress, which aggravates the eccentric wear of the sucker rod, vibration, and high stress conditions, reducing the number of times of fatigue damage of the sucker rod, i.e., the service life of the sucker rod and other equipment is shortened, increasing the number of pump picking operations, and increasing the operation cost. Therefore, the digital twin model is increased with a frequency converter control module to monitor the motion load and the motion characteristics. In the initial process, a certain load is given to make the system move. Once the motion is started, the load is controlled to make the system in a uniform motion state, the stress is minimized, the eccentric wear of the system is reduced, and the corresponding loss of friction is reduced, i.e., the system is in the best motion state.

[0099] Step S30: work diagram analysis according to the mechanical three-dimensional model.

[0100] After the establishment of the oil and gas lifting system simulation model based on digital twin, the following five aspects of analysis and research are supported.

[0101] 1) Control system optimization: study the influence of system parameters on the indicator diagram under different working conditions, and then optimize the system working parameters to ensure the efficient operation of the oil production system.

[0102] 2) Virtual metering: under different working conditions, the system model can give flow information including instantaneous flow, cumulative flow, mass flow, etc. through virtual sensors. The theoretical oil production flow can be obtained according to the defined oil property.

[0103] 3) Sensitivity analysis of oil production mechanism parameters: the stroke, stroke frequency, counterweight, motor control matching and the like of the oil production mechanism are subjected to parameter sensitivity analysis. The influence of various system parameters on the oil production load and flow is obtained. The oil production process is optimized to achieve the purpose of improving efficiency.

[0104] 4) Working condition simulation: through the setting of boundary conditions of system simulation, load monitoring, oil production pressure and flow analysis under different working conditions can be realized. In addition, characteristic analysis of the indicator diagram under different working conditions can be realized.

[0105] 5) Failure analysis: through the means of system simulation, the system performance under extreme working conditions can be studied. Further, more reference quantities can be provided for the early warning judgment mechanism. By setting different failure working conditions, the performance of the system monitoring quantity is obtained. Further, the mapping between the detection quantity and the fault code is realized. The early warning information system is improved.

[0106] Referring to Figure 7 From the above description, it can be known that the generation method of the digital twin model based on the beam-pumping unit provided by the embodiment of the present application realizes the digital twinning of software simulation and physical simulation by establishing a digital model of a physical simulation and verification system. The research function of the physical model is transplanted to the software simulation level. In the software simulation, the range and ability of research are expanded by superimposing various working conditions in the above requirements.

[0107] 1) The digital three-dimensional model of the relative motion relationship between the station and the mechanical mechanism and components of the beam-pumping unit is constructed through the multi-body dynamics model expression. The digital twin of the beam-pumping unit is constructed.

[0108] 2) The flow field distribution of the oil-gas mixture entering the separator is analyzed through the Euler multiphase flow model. The influence of different droplet diameters on the separation effect is analyzed through the granular particle model. The analysis of the structural components and the well bottom flow field during the working process of the oil production pump in the well is performed through the fluid-structure coupling. The digital twin of the rod-pumping unit is constructed.

[0109] 3) The digital twin model simulates the oil pumping motion process, monitors the motor electrical parameters, the torque of the crank motion, the current, the stroke frequency, the rotating speed, and the load during the motion process, and changes the motor motion through feedback to the frequency converter.

[0110] 4) form a complete set of beam pumping unit digital twin, and the actual production collected motor parameters, beam pumping unit well various parameters are collected through the Internet of Things mode and transmitted to the digital twin system on the well site or laboratory beam pumping unit; based on the digital twin dynamometer analysis, mainly the digital twin model adds a virtual mechanism-dynamometer section collection function, combined with working condition simulation, analyzes the dynamometer characteristics under different working conditions, and applies the flexible control method based on the digital twin to optimize the control system.

[0111] Based on the same inventive concept, the embodiment of the present application also provides a beam pumping unit digital twin model generation device, which can be used to realize the method described in the above embodiments, as follows. Since the principle of solving problems of the beam pumping unit digital twin model generation device is similar to that of the beam pumping unit digital twin model generation method, the implementation of the beam pumping unit digital twin model generation device can be referred to the implementation of the beam pumping unit digital twin model generation method, and the repeated parts will not be described here. The term "unit" or "module" used below can be a combination of software and / or hardware that realizes a predetermined function. Although the system described in the following embodiments is preferably realized in software, hardware, or a combination of software and hardware is also possible and is conceived.

[0112] The embodiment of the present application provides a specific implementation of a beam pumping unit digital twin model generation device capable of realizing a beam pumping unit digital twin model generation method, which is described in Figure 8 The beam pumping unit digital twin model generation device specifically includes the following contents:

[0113] A three-dimensional model generation unit 10 is configured to generate a mechanical three-dimensional model of the beam pumping unit according to the relative motion relationship between the station, the beam pumping unit mechanical structure and its components;

[0114] A motion model generation unit 20 is configured to generate a multiphase flow motion model of the beam pumping unit according to the flow field distribution of the oil-gas mixture in the beam pumping unit;

[0115] A twin model generation unit 30 is configured to generate a digital twin model of the beam pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model.

[0116] In an embodiment, referring to Figure 9 The three-dimensional model generation unit 10 includes:

[0117] A plug pump ball valve mechanical model generation module 101 is configured to generate a plug pump ball valve mechanical model according to the ball valve diameter, the through-flow hole diameter, the through-flow area of the ball valve, the steel ball mass, the steel ball limiting position and the pressure difference on both sides of the steel ball.

[0118] The sucker rod mechanical model generation module 102 is configured to generate a sucker rod mechanical model according to the stiffness of the rod and the elastic deformation of the rod.

[0119] The horse head rope mechanical model generation module 103 is configured to generate a horse head rope mechanical model according to the envelope parameters and the telescopic parameters of the horse head rope.

[0120] The three-dimensional model generation module 104 is configured to generate the mechanical three-dimensional model according to the plunger pump ball valve mechanical model, the sucker rod mechanical model and the horse head rope mechanical model.

[0121] In an embodiment, referring to Figure 10 , the motion model generation unit 20 comprises:

[0122] The process model generation module 201 is configured to generate a hydraulic fluid model, a multi-body dynamics model and a CFD fluid mechanics model for different stages of the oil and gas generation process, respectively.

[0123] The motion model generation module 202 is configured to generate the multiphase flow motion model according to the hydraulic fluid model, the multi-body dynamics model and the CFD fluid mechanics model.

[0124] In an embodiment, referring to Figure 11 The generation device of the digital twin model of the beam-type pumping unit further comprises:

[0125] The data acquisition unit 40 is configured to acquire production data of the well site and the beam-type pumping unit in real time through sensors by using the Internet of Things.

[0126] The production state monitoring unit 50 is configured to monitor the production state of the beam-type pumping unit according to the production data and the digital twin model.

[0127] As can be seen from the above description, the generation device of the digital twin model of the beam-type pumping unit provided by the embodiment of the present application firstly generates a mechanical three-dimensional model of the beam-type pumping unit according to the station site, the mechanical structure of the beam-type pumping unit and the relative motion relationship between the components; then generates a multiphase flow motion model of the beam-type pumping unit according to the flow field distribution of the oil and gas mixture in the beam-type pumping unit; and finally generates a digital twin model of the beam-type pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model. The present application relates to simulation control and analysis of the beam-type pumping unit; combines real-time transmission of the Internet of Things, big data driving and multi-body model improvement, thereby solving technical problems that cannot be realized or are not easy to realize by using a physical model. In summary, the present application provides an effective control device that accurately and vividly displays and controls, optimizes a process, and realizes real-time and fine control of an intelligent closed loop.

[0128] The apparatus, module or unit illustrated in the above embodiments can be specifically implemented by a computer chip or entity, or by a product with certain functions. A typical implementation device is an electronic device, specifically, the electronic device can be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0129] In a typical example, the electronic device specifically includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above method for generating a digital twin model of a beam pumping unit when executing the program, and the steps include:

[0130] Step 100: generating a mechanical three-dimensional model of the beam pumping unit according to the station yard, the mechanical structure of the beam pumping unit, and the relative motion relationship between the components;

[0131] Step 200: generating a multiphase flow motion model of the beam pumping unit according to the flow field distribution of the oil-gas mixture in the beam pumping unit;

[0132] Step 300: generating a digital twin model of the beam pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model.

[0133] Reference will be made to the following description Figure 12 which shows a structural schematic diagram of an electronic device 600 suitable for implementing the embodiments of the present application.

[0134] As shown in Figure 12 , the electronic device 600 includes a central processing unit (CPU) 601, which can perform various appropriate operations and processes according to programs stored in a read-only memory (ROM) 602 or programs loaded from a storage portion 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.

[0135] The following components are connected to the I / O interface 605: an input section 606 including input devices such as a keyboard and mouse; an output section 607 including output devices such as a cathode ray tube (CRT) display, liquid crystal display (LCD), and speakers; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a LAN card, modem, and the like. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as necessary. A removable media 611 such as a magnetic disk, optical disk, magneto-optical disk, semiconductor memory, and the like is attached to the drive 610 as necessary, so that a computer program read therefrom is installed in the storage section 608 as necessary.

[0136] In particular, the processes described above with reference to the flowcharts can be implemented as a computer software program in accordance with embodiments of the present application. For example, embodiments of the present application include a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of generating a digital twin model of a beam pumping unit described above, the steps comprising:

[0137] Step 100: generating a mechanical three-dimensional model of the beam pumping unit according to the station yard, mechanical structure of the beam pumping unit, and relative motion relationships between components thereof;

[0138] Step 200: generating a multiphase flow motion model of the beam pumping unit according to a flow field distribution of a mixture of oil and gas in the beam pumping unit;

[0139] Step 300: generating a digital twin model of the beam pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model.

[0140] In such embodiments, the computer program can be downloaded and installed from a network via the communication section 609, and / or installed from the removable media 611.

[0141] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0142] For ease of description, the above devices are described separately by function as various units. Of course, in implementing this application, the functions of each unit can be implemented in one or more software and / or hardware.

[0143] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0144] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0145] These computer program instructions can also be loaded into a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 Figure 1

[0146] It is also important to note that the terms "comprises" and / or "comprising", or "includes" and / or "including" when used in this specification, specify the presence of stated features, integers, steps, operations, elements, or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups thereof.

[0147] The present application can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including memory storage devices.

[0148] Each of the above-described embodiments can be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The present application can also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including memory storage devices.

[0149] The embodiments of the present application described above are merely exemplary and are not intended to limit the present application. The present application can be variously changed and modified by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.​​

Claims

1. A method for generating a digital twin model based on a beam-type pumping unit, characterized by, The method comprises the following steps: generating a mechanical three-dimensional model of the beam pumping unit according to the mechanical structure of the beam pumping unit and the relative motion relationship between components of the beam pumping unit; generating a multiphase flow motion model of the beam pumping unit according to the flow field distribution of the oil-gas mixture in the beam pumping unit; generating a digital twin model of the beam pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model; the generating of the mechanical three-dimensional model of the beam pumping unit according to the mechanical structure of the beam pumping unit and the relative motion relationship between components of the beam pumping unit comprises: generating a plunger pump ball valve mechanical model according to the diameter of the ball valve, the diameter of the through-flow hole, the through-flow area of the ball valve, the mass of the steel ball, the position limitation of the steel ball, and the pressure difference on both sides of the steel ball; generating a sucker rod mechanical model according to the stiffness of the pull rod and the elastic deformation of the pull rod; generating a horsehead rope mechanical model according to the envelope parameters and the telescopic parameters of the horsehead rope; generating the mechanical three-dimensional model according to the plunger pump ball valve mechanical model, the sucker rod mechanical model, and the horsehead rope mechanical model; the generating of the multiphase flow motion model of the beam pumping unit according to the flow field distribution of the oil-gas mixture in the beam pumping unit comprises: generating a hydraulic fluid model, a multi-body dynamics model, and a CFD fluid mechanics model respectively at different stages in the oil-gas generation process; generating the multiphase flow motion model according to the hydraulic fluid model, the multi-body dynamics model, and the CFD fluid mechanics model; the method for generating a digital twin model of a beam pumping unit further comprises: collecting production data of the well site and the beam pumping unit in real time through sensors by using the Internet of Things; monitoring the production state of the beam pumping unit according to the production data and the digital twin model; performing flexible closed-loop control according to the mechanical three-dimensional model; performing a work diagram analysis according to the mechanical three-dimensional model; under different working conditions, the system model gives flow information including instantaneous flow, cumulative flow, and mass flow through virtual sensors; performing parameter sensitivity analysis on the stroke, stroke frequency, counterweight, and motor control matching of the pumping unit; through the setting of system simulation boundary conditions, realizing load monitoring, oil production pressure, and flow analysis under different working conditions; through the means of system simulation, studying the system performance under extreme working conditions; through the setting of different failure working conditions, obtaining the performance of system monitoring quantities, and realizing the mapping between detection quantities and fault codes.

2. A device for generating a digital twin model based on a beam-type pumping unit, characterized by The method comprises the following steps: a three-dimensional model generation unit is configured to generate a mechanical three-dimensional model of the beam pumping unit according to the mechanical structure of the beam pumping unit and the relative motion relationship between components of the beam pumping unit; a motion model generation unit is configured to generate a multiphase flow motion model of the beam pumping unit according to the flow field distribution of the oil-gas mixture in the beam pumping unit; a twin model generation unit is configured to generate a digital twin model of the beam pumping unit according to the mechanical three-dimensional model and the multiphase flow motion model; the three-dimensional model generation unit comprises: a plunger pump ball valve mechanical model generation module is configured to generate a plunger pump ball valve mechanical model according to the diameter of the ball valve, the diameter of the through-flow hole, the through-flow area of the ball valve, the mass of the steel ball, the position limitation of the steel ball, and the pressure difference on both sides of the steel ball; The sucker rod mechanical model generation module is configured to generate a sucker rod mechanical model according to the stiffness of the pull rod and elastic deformation of the pull rod. The horsehead rope mechanical model generation module is configured to generate a horsehead rope mechanical model according to envelope parameters and telescopic parameters of the horsehead rope. The three-dimensional model generation module is configured to generate the mechanical three-dimensional model according to the plunger pump ball valve mechanical model, the sucker rod mechanical model, and the horsehead rope mechanical model. The motion model generation unit comprises: The process model generation module is configured to generate a hydraulic fluid model, a multi-body dynamics model, and a CFD fluid mechanics model for different stages of the oil and gas generation process, respectively. The motion model generation module is configured to generate the multiphase flow motion model according to the hydraulic fluid model, the multi-body dynamics model, and the CFD fluid mechanics model. The device for generating a digital twin model of a beam-type pumping unit further comprises: The data acquisition unit is configured to use the Internet of Things to acquire production data of a well site and the beam-type pumping unit in real time through sensors. The production state monitoring unit is configured to monitor the production state of the beam-type pumping unit according to the production data and the digital twin model, to perform flexible closed-loop control according to the mechanical three-dimensional model, to perform a work diagram analysis according to the mechanical three-dimensional model, to give flow information including instantaneous flow, cumulative flow, and mass flow through virtual sensors under different working conditions, to perform parameter sensitivity analysis on the stroke, stroke frequency, counterweight, and motor control matching of the pumping unit, to realize load monitoring, pumping pressure, and flow analysis under different working conditions through the setting of system simulation boundary conditions, to study the system performance under extreme working conditions through system simulation, and to obtain the performance of system monitoring quantities and realize the mapping between detection quantities and fault codes by setting different failure working conditions.

3. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the steps of the method for generating a digital twin model of a beam-type pumping unit according to claim 1 when executing the program.

4. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program implements the steps of the method for generating a digital twin model of a beam-type pumping unit according to claim 1 when executed by the processor.

Citation Information

Patent Citations

  • Beam-pumping unit loading device

    CN103344447A

  • Intelligent non-beam hydraulic oil pumping technology and hydraulic oil pumping machine

    CN105672952A