Pumping unit geometric parameter inversion calculation method, modeling method and related device
By constructing an inversion model and utilizing measured crank rotation angle and suspension point displacement data, the geometric parameters of the pumping unit can be quickly solved, which solves the problems of large data errors and operational difficulties in traditional methods, and achieves efficient and accurate acquisition of pumping unit geometric parameters and establishment of static models.
Patent Information
- Application Number
- CN202511570313.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-30
- Publication Date
- 2026-03-06
AI Technical Summary
In existing technologies, the acquisition of geometric parameters of oil pumping units suffers from large data errors, operational difficulties, and high safety risks. Traditional measurement methods are time-consuming and labor-intensive, and cannot quickly adapt to stroke adjustments.
By acquiring the measured values of crank radius, crank rotation angle, and suspension point displacement, a measured displacement curve and torque factor curve are constructed. Using the inversion model with the goal of minimizing error, the geometric parameters of the pumping unit are solved, and a static model of the pumping unit is established.
It enables rapid and accurate acquisition of pumping unit geometric parameters, improving efficiency, reducing the need for on-site measurements, and eliminating the need for repeated measurements during stroke adjustments, thereby enhancing operation and maintenance efficiency and user experience.
Smart Images

Figure CN121615264A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for inverting and calculating geometric parameters of an oil pumping unit, a modeling method, and related devices, belonging to the technical field of generating dynamometer diagrams from electrical parameters of oilfield extraction equipment. Background Technology
[0002] In oil extraction, the beam pumping unit (commonly known as a "nodding donkey") is one of the most crucial pieces of equipment. To monitor its operation, diagnose faults, and optimize production efficiency, accurate dynamometer diagrams (DDTs) are essential. The creation of DDTs relies on a precise static model of the pumping unit, primarily defined by position factor (PF) and torque factor (TF) curves. These curves are calculated based on the pumping unit's geometric parameters. Generally, the pumping unit's geometric parameters are provided directly by the manufacturer. However, in actual deployment, data errors often arise due to mismanagement or inherent inaccuracies in the official data. Even small errors can significantly impact the DDT results. Manual measurement is not only difficult but also carries high safety risks. Alternatively, photographs can be taken on-site, and geometric parameters can be obtained through image processing. However, this method is complex, time-consuming, labor-intensive, and prone to significant errors. Summary of the Invention
[0003] This invention provides a method for inverting and calculating the geometric parameters of an oil pumping unit, a modeling method, and related apparatus, which solves the problems disclosed in the background art.
[0004] According to one aspect of this application, a method for inverting and calculating the geometric parameters of an oil pumping unit is provided, comprising:
[0005] Obtain the crank radius of the pumping unit, as well as the crank rotation angle and suspension point displacement measurements for at least one working cycle;
[0006] Based on the measured values of crank rotation angle and suspension point displacement, a measured displacement curve and a corresponding torque factor curve are obtained; wherein, the measured displacement curve is the relationship curve between the measured values of crank rotation angle and suspension point displacement, and the corresponding torque factor curve is the relationship curve between the measured values of crank rotation angle and torque factor.
[0007] The crank radius, measured displacement curve, and corresponding torque factor curve are substituted into a pre-constructed inversion model to solve the model and obtain the pumping unit's geometric parameters. The inversion model aims to minimize the errors between the measured displacement curve and the theoretical displacement curve, as well as the errors between the torque factor curve corresponding to the measured displacement curve and the torque factor curve corresponding to the theoretical displacement curve. The theoretical displacement curve and its corresponding torque factor curve are obtained from the pumping unit's geometric model. The theoretical displacement curve represents the relationship between the theoretical value of the suspension point displacement and the pumping unit's geometric parameters, while the corresponding torque factor curve represents the relationship between the torque factor and the pumping unit's geometric parameters.
[0008] Furthermore, based on the measured crank rotation angle and suspension point displacement, the measured displacement curve and the corresponding torque factor curve are obtained, including:
[0009] Based on the measured values of crank rotation angle and suspension point displacement, a displacement measurement curve is constructed.
[0010] Differentiate the measured displacement curve to obtain the torque factor curve corresponding to the measured displacement curve.
[0011] Furthermore, the objective function of the inversion model is:
[0012] ;
[0013] In the formula, P, A, C, and K are the geometric parameters of the pumping unit, namely the length of the connecting rod, the length of the forearm, the length of the rear arm, and the distance between the line connecting the crank rotation center and the swing center of the walking beam, respectively; J is the loss value. As weight, This represents the theoretical value of the suspension point displacement corresponding to the normalized crank rotation angle θ. , This represents the theoretical value of the suspension point displacement corresponding to the crank rotation angle θ. This is the measured value of the suspension point displacement corresponding to the crank rotation angle θ. The smallest , The square of the L2 norm. These are the theoretical and measured values of the torque factor corresponding to the crank rotation angle θ, respectively.
[0014] According to another aspect of this application, a device for inverting and calculating the geometric parameters of an oil pumping unit is provided, comprising:
[0015] The acquisition module acquires the crank radius of the pumping unit, as well as the measured values of the crank rotation angle and suspension point displacement over at least one working cycle.
[0016] The measurement curve acquisition module obtains the measurement displacement curve and the corresponding torque factor curve based on the measured crank rotation angle and the measured suspension point displacement. The measurement displacement curve is the relationship curve between the measured crank rotation angle and the measured suspension point displacement, and the torque factor curve corresponding to the measurement displacement curve is the relationship curve between the measured crank rotation angle and the torque factor.
[0017] The inversion module substitutes the crank radius, the measured displacement curve, and the torque factor curve corresponding to the measured displacement curve into a pre-constructed inversion model to solve the inversion model and obtain the geometric parameters of the pumping unit. The inversion model aims to minimize the error between the measured displacement curve and the theoretical displacement curve, as well as the error between the torque factor curve corresponding to the measured displacement curve and the torque factor curve corresponding to the theoretical displacement curve. The theoretical displacement curve and the torque factor curve corresponding to the theoretical displacement curve are obtained from the geometric model of the pumping unit. The theoretical displacement curve is the relationship curve between the theoretical value of the suspension point displacement and the geometric parameters of the pumping unit, and the torque factor curve corresponding to the theoretical displacement curve is the relationship curve between the torque factor and the geometric parameters of the pumping unit.
[0018] Furthermore, in the inversion module, the objective function of the inversion model is:
[0019] ;
[0020] In the formula, P, A, C, and K are the geometric parameters of the pumping unit, namely the length of the connecting rod, the length of the forearm, the length of the rear arm, and the distance between the line connecting the crank rotation center and the swing center of the walking beam, respectively; J is the loss value. As weight, This represents the theoretical value of the suspension point displacement corresponding to the normalized crank rotation angle θ. , This represents the theoretical value of the suspension point displacement corresponding to the crank rotation angle θ. This is the measured value of the suspension point displacement corresponding to the crank rotation angle θ. The smallest , The square of the L2 norm. These are the theoretical and measured values of the torque factor corresponding to the crank rotation angle θ, respectively.
[0021] According to another aspect of this application, a modeling method is provided, characterized by comprising:
[0022] The geometric parameters of the pumping unit are obtained by using the above-mentioned inversion calculation method for the geometric parameters of the pumping unit.
[0023] Based on the geometric parameters and geometric model of the pumping unit, the static model of the pumping unit is obtained.
[0024] According to another aspect of this application, a modeling apparatus is provided, characterized in that it comprises:
[0025] The geometric parameter acquisition module uses the above-mentioned inversion calculation method for pumping unit geometric parameters to obtain the pumping unit geometric parameters;
[0026] The modeling module obtains the static model of the pumping unit based on its geometric parameters and geometric model.
[0027] According to another aspect of this application, a computer-readable storage medium is provided that stores one or more programs, the one or more programs including instructions that, when executed by a computing device, cause the computing device to perform a method for calculating or modeling the geometric parameters of a pumping unit.
[0028] According to another aspect of this application, a computer device is provided, including one or more processors and one or more memories, wherein one or more programs are stored in the one or more memories and configured to be executed by the one or more processors, and the one or more programs include instructions for performing a method for calculating or modeling the geometric parameters of a pumping unit.
[0029] The beneficial effects achieved by this invention are as follows: Based on the measured displacement curve and the torque factor curve corresponding to the measured displacement curve, this invention can quickly invert the geometric parameters of the pumping unit using an inversion model. Compared with traditional methods, it is more efficient, saves time and effort, and when the pumping unit adjusts its stroke (i.e., changes the crank radius), there is no need to perform on-site measurements again. Simply substitute the new crank radius into the inversion model, and the geometric parameters corresponding to the new stroke can be calculated immediately. Attached Figure Description
[0030] Figure 1 A flowchart of the method for inverting and calculating the geometric parameters of an oil pumping unit;
[0031] Figure 2 This is a schematic diagram of the geometric model of an oil pumping unit;
[0032] Figure 3 A schematic diagram of the pumping unit at the bottom dead center;
[0033] Figure 4 A block diagram of a calculation device for inverting the geometric parameters of an oil pumping unit;
[0034] Figure 5 A flowchart of the modeling method;
[0035] Figure 6 This is a block diagram of the modeling device. Detailed Implementation
[0036] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this application or its application or use. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0037] Unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps described in these embodiments do not limit the scope of this application.
[0038] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.
[0039] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0040] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0041] It should be noted that similar symbols and letters in the following figures represent similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0042] This application provides a method for inverting and calculating the geometric parameters of a pumping unit based on optimization model technology. The method aims to perform inversion calculations of the geometric parameters of a pumping unit using a constructed optimization model. This inversion calculation method can be executed by an inversion calculation device, which can be a terminal device or a server. The terminal device can include, but is not limited to, mobile phones, computers, smart wearable devices, smart vehicle devices, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, big data, and artificial intelligence platforms, etc. Optionally, this inversion calculation method can also be executed collaboratively by multiple electronic devices with computing power. For ease of explanation, subsequent embodiments will be described as being executed by an inversion calculation device.
[0043] See Figure 1 , Figure 1This is a flowchart illustrating a method for inverting and calculating the geometric parameters of an oil pumping unit, as provided in an embodiment of this application. This inversion calculation method can be executed by an inversion calculation device and may include at least the following steps:
[0044] Step 1: Obtain the crank radius of the pumping unit, as well as the crank rotation angle and suspension point displacement measurements for at least one working cycle.
[0045] It should be noted that the crank radius can be obtained by consulting reference materials or by measurement, such as consulting the instruction manual, manual measurement, or visual measurement. The crank rotation angle and suspension point displacement can be obtained by measuring the corresponding sensors, such as measuring the crank rotation angle with an angle sensor and measuring the suspension point displacement with a displacement sensor. Calculations based on high-precision sensor data can ensure the accuracy of subsequent geometric parameters and models. At the same time, the entire data acquisition and calculation process is highly automated, time-saving, and labor-saving.
[0046] Step 2: Based on the measured crank rotation angle and the measured suspension point displacement, obtain the measured displacement curve and the corresponding torque factor curve; wherein, the measured displacement curve is the relationship curve between the measured crank rotation angle and the measured suspension point displacement, and the corresponding torque factor curve is the relationship curve between the measured crank rotation angle and the torque factor.
[0047] It should be noted that since the measured displacement curve is the relationship curve between the measured crank rotation angle and the measured suspension point displacement, the measured displacement curve is constructed by fitting or interpolation based on the measured crank rotation angle and the measured suspension point displacement. Furthermore, the torque factor curve corresponding to the measured displacement curve is obtained by differentiating the measured displacement curve.
[0048] Step 3: Substitute the crank radius, the measured displacement curve, and the torque factor curve corresponding to the measured displacement curve into the pre-constructed inversion model, solve the inversion model, and obtain the pumping unit's geometric parameters. The inversion model aims to minimize the errors between the measured displacement curve and the theoretical displacement curve, as well as the errors between the torque factor curve corresponding to the measured displacement curve and the torque factor curve corresponding to the theoretical displacement curve. The theoretical displacement curve and the torque factor curve corresponding to the theoretical displacement curve are obtained based on the pumping unit's geometric model. The theoretical displacement curve is the relationship curve between the theoretical value of the suspension point displacement and the pumping unit's geometric parameters, and the torque factor curve corresponding to the theoretical displacement curve is the relationship curve between the torque factor and the pumping unit's geometric parameters.
[0049] It should be noted that the geometric model of the oil pumping unit is an abstract geometric model; see [link to relevant documentation]. Figure 2In the diagram, θ represents the crank rotation angle, with the vertical line pointing upwards as the reference point. The direction is clockwise when the crankshaft is to the right, and the unit is radians. P is the length of the pumping unit connecting rod, in meters. R is the radius of rotation at the connection point between the crank and connecting rod, i.e., the crank radius, in meters. A is the length of the pumping unit's forearm, in meters. C is the length of the pumping unit's rear arm, in meters. h is the vertical distance between the crank rotation center and the pumping unit's walking beam swing center, in meters. I is the horizontal distance between the crank rotation center and the pumping unit's walking beam swing center, in meters. K is the distance between the lines connecting the crank rotation center and the pumping unit's walking beam swing center, in meters. The above parameters are geometric parameters; The swing angle of the walking beam is defined by the horizontal line as the reference point. The direction is positive when the intersection of the walking beam and the donkey head is below the horizontal line and negative when it is above the horizontal line. The unit is radians. S is the distance between the line connecting the crank-connecting rod intersection and the swing center of the walking beam of the pumping unit. The unit is meters. α is the angle between the branch containing S and the branch containing h. The unit is radians. δ is the angle between the branch containing S and the branch containing C. The unit is radians. λ is the angle between the branch containing K and the branch containing C. The above parameters are intermediate variables.
[0050] according to Figure 2 From the geometric relationship, the functional relationship between the theoretical values of the suspension point displacement and torque factor and the geometric parameters can be derived. That is, the above theoretical displacement curve and the corresponding torque factor curve can be expressed as:
[0051] ;
[0052] ;
[0053] In the formula, This represents the theoretical value of the suspension point displacement corresponding to the crank rotation angle θ. This is the theoretical value of the torque factor corresponding to the crank rotation angle θ;
[0054] Swing angle of the walking beam Determined by the following formula:
[0055] ;
[0056] The formulas for calculating each angle and distance are as follows:
[0057] ;
[0058] ;
[0059] ;
[0060] Depend on , , , and formula, eliminate , can be obtained and
[0061] These are all univariate equations concerning only the unknown variable θ, which contain six unknown but fixed parameters: P, R, A, C, h, and I. Since R is known, we can obtain... and It is a function of 5 unknown geometric parameters.
[0062] Measured value of suspension point displacement corresponding to crank rotation angle θ The reference zero point (usually the bottom dead center) and the theoretical value The reference zero point (horizontal line) is different, so it is necessary to adjust... Normalization is performed to ensure it has the same reference as the measured value. The processing formula is as follows:
[0063] ;
[0064] In the formula, This represents the theoretical value of the suspension point displacement corresponding to the normalized crank rotation angle θ. The smallest , They are all vectors.
[0065] After normalization and Ideally, the theoretical and measured values should coincide. Therefore, the error between the theoretical and measured values can be used as the optimization objective. The goal is to find a set of parameters (P, A, C, h, I) that minimizes this error. The objective function of the inversion model can be expressed as:
[0066] ;
[0067] In the formula, J is the loss value. The square of the L2 norm. These are the theoretical and measured values of the torque factor corresponding to the crank rotation angle θ, respectively. The weight is any value in [0,1], which determines the degree of contribution of the displacement and torque factors to the optimization result. The reason for this is that, although displacement and torque factors are theoretically equivalent, errors can occur in actual measurements due to factors such as accuracy. In such cases, errors can be addressed by... To control the confidence levels of both.
[0068] when At that time, there were:
[0069] ;
[0070] This means that only the torque factor is optimized.
[0071] when At that time, there were:
[0072] ;
[0073] This means that only the displacement is optimized.
[0074] when At that time, there were:
[0075] ;
[0076] The displacement and torque factors contribute equally to the optimization results.
[0077] Furthermore, the value of J is mainly determined by the parameters (P, A, C, K), while the proportional relationship between I and h only affects the phase of the curve in the horizontal direction. Therefore, the above objective function can be simplified to:
[0078] .
[0079] It should be noted that for K, an additional constraint is needed to uniquely determine I and h. There are several possible methods; for example, the actual length or proportion of I or h can be directly measured, which would then allow the application of the Pythagorean theorem. Directly determine all values. For example, an inclinometer can be used to measure the maximum upward tilt angle of the walking beam. That is, when the pumping unit is at bottom dead center The state of the pumping unit at the bottom dead center is as follows: Figure 3 The following relationship exists:
[0080] ;
[0081] ;
[0082] ;
[0083] In the formula, Given λ as the lower dead center, I and h can be calculated using the above relationship.
[0084] It should be noted that when solving the above inversion model, a set of reasonable initial guesses can be provided for the parameters to be solved (i.e., P, A, C, K) (refer to the design parameters of similar pumping units). The known crank radius R corresponding to the current stroke is used as a fixed value, and an iteration stopping criterion is set, such as the change in the loss function being less than a preset threshold (e.g., 10). -3If the maximum number of iterations is reached (e.g., 20 times), a nonlinear optimization algorithm (e.g., differential evolution algorithm, annealing algorithm, etc.) is used to minimize J and iteratively optimize the parameters P, A, C, and K. The final optimal parameters are the geometric parameters of the pumping unit.
[0085] The above method, which shifts from "forward modeling" to "inverse calculation," overturns the traditional approach. It no longer satisfies the direct measurement of the PF / TF curve, but instead uses this precisely measured curve as the "target answer." By establishing a theoretical inverse model of the pumping unit, a set of geometric parameters that can perfectly fit the curve are calculated in reverse.
[0086] The above method is based on the measured displacement curve and the torque factor curve corresponding to the measured displacement curve. Using the inversion model, the geometric parameters of the pumping unit can be quickly inverted. Compared with the traditional method, it is more efficient, saves time and effort, and when the pumping unit adjusts the stroke (i.e. changes the crank radius), there is no need to perform on-site measurement again. Just substitute the new crank radius into the inversion model, and the geometric parameters corresponding to the new stroke can be calculated immediately.
[0087] See Figure 4 , Figure 4 This is a block diagram of a pumping unit geometry parameter inversion calculation device provided in an embodiment of this application. It is a virtual device that can be loaded and executed by a computer device, which may include the aforementioned inversion calculation device. Figure 4 The apparatus may include an acquisition module, a measurement curve acquisition module, and an inversion module. When performing the above-described method for inverting and calculating the geometric parameters of the pumping unit, it can:
[0088] The acquisition module acquires the crank radius of the pumping unit, as well as the crank rotation angle measurement value and suspension point displacement measurement value within at least one working cycle.
[0089] The measurement curve acquisition module obtains the measurement displacement curve and the corresponding torque factor curve based on the measured crank rotation angle and the measured suspension point displacement. The measurement displacement curve is the relationship curve between the measured crank rotation angle and the measured suspension point displacement, and the corresponding torque factor curve is the relationship curve between the measured crank rotation angle and the torque factor.
[0090] The inversion module substitutes the crank radius, the measured displacement curve, and the torque factor curve corresponding to the measured displacement curve into a pre-constructed inversion model to solve the inversion model and obtain the geometric parameters of the pumping unit. The inversion model aims to minimize the error between the measured displacement curve and the theoretical displacement curve, as well as the error between the torque factor curve corresponding to the measured displacement curve and the torque factor curve corresponding to the theoretical displacement curve. The theoretical displacement curve and the torque factor curve corresponding to the theoretical displacement curve are obtained from the geometric model of the pumping unit. The theoretical displacement curve is the relationship curve between the theoretical value of the suspension point displacement and the geometric parameters of the pumping unit, and the torque factor curve corresponding to the theoretical displacement curve is the relationship curve between the torque factor and the geometric parameters of the pumping unit.
[0091] It should be noted that the objective function of the inversion model in the inversion module is:
[0092] ;
[0093] In the formula, P, A, C, and K are the geometric parameters of the pumping unit, namely the length of the connecting rod, the length of the forearm, the length of the rear arm, and the distance between the line connecting the crank rotation center and the swing center of the walking beam, respectively; J is the loss value. As weight, This represents the theoretical value of the suspension point displacement corresponding to the normalized crank rotation angle θ. , This represents the theoretical value of the suspension point displacement corresponding to the crank rotation angle θ. This is the measured value of the suspension point displacement corresponding to the crank rotation angle θ. The smallest , The square of the L2 norm. These are the theoretical and measured values of the torque factor corresponding to the crank rotation angle θ, respectively.
[0094] The aforementioned device, based on the measured displacement curve and the torque factor curve corresponding to the measured displacement curve, can quickly invert the geometric parameters of the pumping unit using an inversion model. Compared with traditional methods, it is more efficient, saves time and effort, and when the pumping unit adjusts its stroke (i.e., changes the crank radius), there is no need to perform on-site measurements again. Simply substitute the new crank radius into the inversion model, and the geometric parameters corresponding to the new stroke can be calculated immediately.
[0095] See Figure 5 , Figure 5 This is a flowchart of a modeling method provided in an embodiment of this application. The inversion calculation method can be executed by a modeling device, and the modeling method may include at least the following steps:
[0096] S1) The above-mentioned method for inverting the geometric parameters of the pumping unit is used to obtain the geometric parameters of the pumping unit.
[0097] S2) Obtain the static model of the pumping unit based on its geometric parameters and geometric model.
[0098] It should be noted that the PF curve and TF curve can be calculated by substituting the geometric parameters of the pumping unit into the formula obtained from the geometric model, thus obtaining an accurate static model of the pumping unit.
[0099] The above method obtains a static model based on the geometric parameters obtained by inversion. When the pumping unit stroke needs to be adjusted to a new state on site, the on-site personnel only need to provide the crank radius corresponding to the new stroke and replace the old crank radius in the inversion model with the new crank radius. The geometric parameters corresponding to the new stroke can be calculated immediately, and the accurate PF and TF curves corresponding to the new stroke can be calculated immediately. This greatly improves the operation and maintenance efficiency and user experience. Moreover, the above method can obtain a "digital twin" model applicable to all strokes through one modeling (i.e., inversion model), avoiding repetitive on-site work caused by operating condition adjustments and significantly reducing manpower and time costs.
[0100] It should be noted that there are currently two technical approaches to generating dynamometer diagrams: force parameter and electrical parameter. All the methods mentioned above belong to the field of generating dynamometer diagrams using electrical parameters. Visual measurement and sensor measurement can be combined to generate the geometric parameters of the pumping unit. Based on the geometric parameters of the pumping unit, a static model of the pumping unit can be generated. Based on the static model of the pumping unit, the rapid, accurate, and adaptive deployment of the pumping unit dynamometer diagram can be achieved.
[0101] See Figure 6 , Figure 6 This is a block diagram of a modeling apparatus provided in an embodiment of this application. It is a virtual device that can be loaded and executed by a computer device, which may include the aforementioned modeling apparatus. Figure 6 The apparatus may include a geometric parameter acquisition module and a modeling module, which, when used to execute the above modeling method, can:
[0102] The geometric parameter acquisition module uses the above-mentioned inversion calculation method for pumping unit geometric parameters to obtain the pumping unit geometric parameters.
[0103] The modeling module obtains the static model of the pumping unit based on its geometric parameters and geometric model.
[0104] The aforementioned device obtains a static model based on the geometric parameters obtained through inversion. When the pumping unit stroke needs to be adjusted to a new state on-site, on-site personnel only need to provide the crank radius corresponding to the new stroke and replace the old crank radius in the inversion model with the new crank radius. The geometric parameters corresponding to the new stroke can be calculated immediately, thereby immediately calculating the accurate PF and TF curves corresponding to the new stroke. This greatly improves operation and maintenance efficiency and user experience. Furthermore, the aforementioned device can obtain a "digital twin" model applicable to all strokes through a single modeling (i.e., inversion model), avoiding repetitive on-site work caused by operating condition adjustments and significantly reducing manpower and time costs.
[0105] This application also relates to a computer-readable storage medium that stores one or more programs, the one or more programs including instructions that, when executed by a computing device, cause the computing device to perform a method for calculating or modeling the geometric parameters of a pumping unit.
[0106] This application also relates to a computer device including one or more processors and one or more memories, wherein one or more programs are stored in the one or more memories and configured to be executed by the one or more processors, and the one or more programs include instructions for performing a method for calculating or modeling the geometric parameters of a pumping unit.
[0107] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0108] 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.
[0109] 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.
[0110] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0111] The above are merely embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of the claims of the present invention pending approval.
Claims
1. A method for calculating the inversion of geometric parameters of a pumping unit, characterized in that, The method comprises the following steps: obtaining the crank radius of the pumping unit and the crank rotation angle measurement value and the suspension point displacement measurement value in at least one working cycle; obtaining a measured displacement curve and a torque factor curve corresponding to the measured displacement curve according to the crank rotation angle measurement value and the suspension point displacement measurement value; wherein the measured displacement curve is a relationship curve of the crank rotation angle measurement value and the suspension point displacement measurement value, and the torque factor curve corresponding to the measured displacement curve is a relationship curve of the crank rotation angle measurement value and the torque factor; substituting the crank radius, the measured displacement curve and the torque factor curve corresponding to the measured displacement curve into a pre-constructed inversion model to solve the inversion model and obtain the geometric parameters of the pumping unit; wherein the inversion model takes the error between the measured displacement curve and a theoretical displacement curve and the error between the torque factor curve corresponding to the measured displacement curve and a torque factor curve corresponding to the theoretical displacement curve as the target; the theoretical displacement curve and the torque factor curve corresponding to the theoretical displacement curve are obtained according to the geometric model of the pumping unit, the theoretical displacement curve is a relationship curve of the theoretical value of the suspension point displacement and the geometric parameters of the pumping unit, and the torque factor curve corresponding to the theoretical displacement curve is a relationship curve of the torque factor and the geometric parameters of the pumping unit.
2. The method of claim 1, wherein, The method for obtaining the measured displacement curve and the torque factor curve corresponding to the measured displacement curve according to the crank rotation angle measurement value and the suspension point displacement measurement value comprises the following steps: constructing the measured displacement curve according to the crank rotation angle measurement value and the suspension point displacement measurement value; deriving the measured displacement curve to obtain the torque factor curve corresponding to the measured displacement curve.
3. The method of claim 1, wherein, The objective function of the inversion model is: ; In the formula, P, A, C and K are geometric parameters of the pumping unit, respectively, the length of the pumping unit connecting rod, the length of the pumping unit forearm, the length of the pumping unit rear arm and the distance between the rotation center of the crank and the oscillation center of the pumping unit beam, J is a loss value, is a weight, is a theoretical value of the displacement of the suspension point corresponding to the crank rotation angle θ after normalization processing, , is a theoretical value of the displacement of the suspension point corresponding to the crank rotation angle θ, is a measured value of the displacement of the suspension point corresponding to the crank rotation angle θ, is the minimum , is the square of the two norms, are respectively a theoretical value and a measured value of the torque factor corresponding to the crank rotation angle θ.
4. A device for inversion calculation of geometrical parameters of a pumping unit, characterized in that The method comprises the following steps: an obtaining module, which obtains the crank radius of the pumping unit and the crank rotation angle measurement value and the suspension point displacement measurement value in at least one working cycle; a measured curve obtaining module, which obtains a measured displacement curve and a torque factor curve corresponding to the measured displacement curve according to the crank rotation angle measurement value and the suspension point displacement measurement value; wherein the measured displacement curve is a relationship curve of the crank rotation angle measurement value and the suspension point displacement measurement value, and the torque factor curve corresponding to the measured displacement curve is a relationship curve of the crank rotation angle measurement value and the torque factor; an inversion module, which substitutes the crank radius, the measured displacement curve and the torque factor curve corresponding to the measured displacement curve into a pre-constructed inversion model to solve the inversion model and obtain the geometric parameters of the pumping unit; wherein the inversion model takes the error between the measured displacement curve and a theoretical displacement curve and the error between the torque factor curve corresponding to the measured displacement curve and a torque factor curve corresponding to the theoretical displacement curve as the target; the theoretical displacement curve and the torque factor curve corresponding to the theoretical displacement curve are obtained according to the geometric model of the pumping unit, the theoretical displacement curve is a relationship curve of the theoretical value of the suspension point displacement and the geometric parameters of the pumping unit, and the torque factor curve corresponding to the theoretical displacement curve is a relationship curve of the torque factor and the geometric parameters of the pumping unit.
5. The apparatus of claim 4, wherein, In the inversion module, the objective function of the inversion model is: ; In the formula, P, A, C and K are geometric parameters of the pumping unit, respectively, the length of the pumping unit connecting rod, the length of the pumping unit forearm, the length of the pumping unit rear arm and the distance between the rotating center of the crank and the swinging center of the pumping unit beam, J is a loss value, is a weight, is a theoretical value of the displacement of the beam center after normalization processing corresponding to the crank rotation angle θ, , is a theoretical value of the displacement of the beam center corresponding to the crank rotation angle θ, is a measured value of the displacement of the beam center corresponding to the crank rotation angle θ, is the minimum , is the square of the two norms, are respectively a theoretical value of the torque factor and a measured value of the torque factor corresponding to the crank rotation angle θ.
6. A modeling method characterized by, The method comprises the following steps: obtaining the geometric parameters of the pumping unit by using the method in any one of claims 1-3; obtaining a static model of the pumping unit according to the geometric parameters of the pumping unit and the geometric model of the pumping unit.
7. A modeling device, characterized by The method comprises the following steps: The geometric parameter acquisition module acquires the geometric parameters of the pumping unit by using the method in any one of claims 1-3. The modeling module acquires the static model of the pumping unit according to the geometric parameters of the pumping unit and a geometric model of the pumping unit.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores one or more programs, and the one or more programs include instructions which, when executed by a computing device, cause the computing device to perform the method in any one of claims 1-3, 6.
9. A computer device, comprising: Comprise: One or more processors and one or more memories, one or more programs stored in the one or more memories and configured to be executed by the one or more processors, and the one or more programs include instructions for performing the method in any one of claims 1-3, 6.