Automatic error compensation device and method of electric energy metering device
By building a digital twin model to obtain real-time error information and predict future error information, calculate harmonic flux value and comprehensive flux value, and input it into the error compensation model, the problem of lag in error compensation of electrical energy metering is solved, adaptive adjustment of complex dynamic harmonic environments is achieved, and measurement accuracy and compensation effect are improved.
Patent Information
- Application Number
- CN202510269195.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-07
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2045-03-07
AI Technical Summary
The error compensation of existing power metering instruments has a lag, making it difficult to adaptively adjust in complex dynamic harmonic environments, resulting in limited compensation effect.
By constructing a digital twin model, real-time error information is obtained and future error information is predicted, harmonic flux value and comprehensive flux value are calculated, and input it into the pre-constructed error compensation model to achieve the acquisition of target measurement information.
It effectively solves the problem of hysteresis in error compensation, realizes adaptive adjustment of complex dynamic harmonic environments, and improves the measurement accuracy and compensation effect of the electrical energy metering instrument.
Smart Images

Figure CN119959855A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent meters, and more specifically, to an automatic error compensation device and method for electric energy metering meters. Background Art
[0002] Electronic measuring equipment is extremely sensitive to harmonics in the power system. As a key device for calculating the economic quantity of power grid transmission, the measurement accuracy of electric energy meters is directly related to the economic benefits of power generation and transmission in the power system. In the existing technology, although there are related contents for compensating the measurement information of electric energy meters, thereby improving the accuracy of electric energy meters, there are still certain problems.
[0003] For example, a Chinese patent application with publication number CN113589216A discloses an error compensation method, device and system for an electric energy meter based on direct current and even harmonics. The prior art sets an error compensation function and an error compensation strategy for the electric energy meter to be tested, so that the electric energy meter needs to compensate for the metering error of the electric energy meter in real time according to the current flowing through the electric energy meter.
[0004] Although methods for compensating for the measurement information of electric energy meters have been proposed in the prior art, the above-mentioned technology has a certain lag when compensating through error compensation functions and metering error data. In addition, the prior art is difficult to achieve adaptive adjustment according to the real-time changing operating conditions of the electric energy meter (such as complex dynamic harmonic environment), so the compensation effect is relatively limited.
[0005] In view of this, the present invention proposes an automatic error compensation device and method for an electric energy meter to solve the above problems. Summary of the invention
[0006] In order to overcome the above-mentioned defects of the prior art, the present invention provides an automatic error compensation device and method for an electric energy meter.
[0007] To achieve the above object, the present invention provides the following technical solutions:
[0008] In a first aspect, an automatic error compensation method for an electric energy meter is provided, comprising:
[0009] Acquire real-time measurement information, real-time parameter information and real-time operation information of the electric energy meter during its operation, and build a corresponding digital twin model according to the real-time operation information and preset structural parameter information, wherein the real-time parameter information refers to relevant parameter information collected during the influence of harmonics on the electric energy meter, and the real-time operation information refers to the operation information of the internal components of the electric energy meter;
[0010] Obtain real-time error information based on the digital twin model, predict future error information based on the real-time error information, and calculate harmonic flux values and comprehensive flux values based on real-time parameter information;
[0011] The real-time measurement information, future error information and integrated flux value are input into the pre-built error compensation model to obtain the target measurement information.
[0012] Furthermore, the real-time operation information includes voltage coil temperature, current coil temperature, turntable speed value, turntable acceleration value and magnetic field strength value. The method for constructing a corresponding digital twin model according to the real-time operation information and preset structural parameter information includes:
[0013] A basic structure sub-model is constructed according to the preset structural parameter information, a dynamic response sub-model is constructed according to the turntable speed value and turntable acceleration value in the real-time operation information, and a thermal-magnetic coupling sub-model is constructed according to the voltage coil temperature, current coil temperature and magnetic field strength values in the real-time operation information. The basic structure sub-model, dynamic response sub-model and thermal-magnetic coupling sub-model are integrated to obtain a digital twin model.
[0014] Furthermore, the method of constructing a dynamic response sub-model according to the turntable speed value and the turntable acceleration value in the real-time operation information includes:
[0015] F net =m×a-k f ×ω;
[0016] Among them, F net is the net driving force, m is the mass of the turntable, a is the acceleration of the turntable, k f is the friction coefficient, and ω is the turntable speed.
[0017] Further, the method of constructing a thermal-magnetic coupling sub-model according to the voltage coil temperature, the current coil temperature and the magnetic field strength value in the real-time operation information includes:
[0018] δ(T V ,T C ,B)=δ0+q1(T V -T0)+q2(T C -T0)+q3(B-B0);
[0019] Among them, δ(T V ,T C ,B) is characterized by the electric energy meter at T V 、T C , B, δ0 represents the error of the electric energy meter under the joint action of T0 and B0, T V is the voltage coil temperature, T Cis the current coil temperature, B is the magnetic field strength value, T0 is the standard coil temperature, B0 is the standard magnetic field strength, q1, q2, q3 are all weight factors.
[0020] Furthermore, the method for obtaining real-time error information based on the digital twin model includes:
[0021] By simulating the digital twin model, the magnetic flux distribution information and speed change information are obtained, a magnetic flux distribution map is constructed based on the magnetic flux distribution information, and a speed change curve is constructed based on the speed change information. The magnetic flux distribution map and the speed change curve are used as real-time error information.
[0022] Furthermore, the method for predicting future error information based on real-time error information includes:
[0023] Input the real-time error information into the pre-built error prediction model to obtain future error information;
[0024] The method for constructing the error prediction model includes:
[0025] Preset the sliding step size and sliding window length; use the sliding window method to convert the historical error information into multiple training samples, use the training samples as the input of the error prediction model, and use the historical error information after the predicted sliding step size as the output. The actual historical error information of each training sample is used as the prediction target, and the prediction accuracy is used as the training target to train the error prediction model; generate an error prediction model that predicts future error information based on real-time error information.
[0026] Furthermore, the real-time parameter information includes an angular frequency value, an initial phase angle, a phase lag angle, a coil inductance value, a harmonic voltage amplitude value, and a coil resistance value. The method for calculating the harmonic flux value according to the real-time parameter information includes:
[0027]
[0028] Among them, Φ h is the harmonic flux value under the action of the hth harmonic, U h is the harmonic voltage amplitude generated by the hth harmonic, ω h is the angular frequency value generated by the hth harmonic, L is the coil inductance, and R is the coil resistance.
[0029] Furthermore, the method for calculating the comprehensive magnetic flux value according to the real-time parameter information includes:
[0030] Φ h (t)=∑ t Φ h cos[ω h (t)-θ h -α h ];
[0031] Among them, Φ h (t) is the comprehensive magnetic flux value under the action of the hth harmonic, cos[·] is the cosine function, θ h is the initial phase angle under the action of the hth harmonic, α h is the phase lag angle under the action of the hth harmonic, ω h (t) is represented by the angular frequency value of the hth harmonic changing with time t.
[0032] In a second aspect, an automatic error compensation device for an electric energy meter is provided, which is used to implement the automatic error compensation method for the electric energy meter, comprising:
[0033] The first processing module is used to obtain real-time measurement information, real-time parameter information and real-time operation information of the electric energy meter during its operation, and to build a corresponding digital twin model according to the real-time operation information and preset structural parameter information. The real-time parameter information refers to the relevant parameter information collected during the influence of harmonics on the electric energy meter, and the real-time operation information refers to the operation information of the internal components of the electric energy meter;
[0034] The second processing module is used to obtain real-time error information based on the digital twin model, predict future error information based on the real-time error information, and calculate the harmonic flux value and the comprehensive flux value based on the real-time parameter information;
[0035] Compensation module: used to input real-time measurement information, future error information and comprehensive flux value into the pre-built error compensation model to obtain target measurement information.
[0036] In a third aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed, the automatic error compensation method of the electric energy meter is implemented.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] The present invention first constructs a corresponding digital twin model according to real-time operation information and preset structural parameter information, then obtains real-time error information based on the digital twin model, predicts future error information based on the real-time error information, calculates harmonic flux values and comprehensive flux values based on the real-time parameter information, and finally inputs the real-time measurement information, future error information and comprehensive flux values into a pre-constructed error compensation model to obtain target measurement information. By constructing a digital twin model, the present invention can obtain error information of electric energy metering instruments in real time and predict future error trends based on the error information, thereby effectively solving the problem of lag in error compensation in the prior art. In addition, by calculating harmonic flux values and comprehensive flux values and inputting them into the error compensation model together with real-time measurement information and future error information, adaptive adjustment of complex dynamic harmonic environments is achieved, overcoming the limitation that the prior art is difficult to adapt to changes in operating conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a flow chart of the automatic error compensation method of the electric energy meter in the present invention;
[0040] Figure 2 It is a structural schematic diagram of the automatic error compensation device of the electric energy meter in the present invention;
[0041] Figure 3 It is a schematic diagram of the structure of the internal components of the electric energy meter in the present invention;
[0042] Figure 4 It is a schematic diagram of the process of constructing the corresponding digital twin model in the present invention.
[0043] Reference numerals:
[0044] 10. Voltage coil magnetic circuit; 20. Current coil magnetic circuit; 30. Turntable; 40. Permanent magnet. DETAILED DESCRIPTION
[0045] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] Example 1
[0047] See also Figure 1 As shown, this embodiment discloses an automatic error compensation method for an electric energy meter, comprising:
[0048] S10: acquiring real-time measurement information, real-time parameter information and real-time operation information of the electric energy meter during operation, and constructing a corresponding digital twin model according to the real-time operation information and preset structural parameter information, wherein the real-time parameter information refers to relevant parameter information collected during the influence of harmonics on the electric energy meter, and the real-time operation information refers to the operation information of the internal components of the electric energy meter;
[0049] It should be noted that during the operation of the electric energy meter, the metering accuracy decreases due to the influence of harmonics in the power system. Harmonics can cause nonlinear responses of internal components of the electric energy meter, thereby causing metering errors, such as distortion of the main magnetic flux. The above-mentioned real-time measurement information can be real-time current information, real-time voltage information, and real-time power information, etc.
[0050] It can be understood that the real-time operation information is the operation information of the internal components of the electric energy meter, such as Figure 3 As shown, the internal components of the electric energy meter at least include a voltage coil magnetic circuit 10, a current coil magnetic circuit 20, a turntable 30 and a permanent magnet 40. When the electric energy meter is used for measurement, the magnetic flux generated by the voltage coil magnetic circuit 10 and the current coil magnetic circuit 20 interact with each other to form a torque, which drives the turntable 30 to rotate, and is finally displayed by the meter on the electric energy meter.
[0051] From the above content, it can be seen that the real-time operation information includes the voltage coil temperature, the current coil temperature, the turntable speed value, the turntable acceleration value and the magnetic field strength value. It is not difficult to understand that the voltage coil temperature and the current coil temperature are both obtained by the internal Hall current sensor, the turntable speed value and the turntable acceleration value can be obtained by monitoring the vibration sensor, and the magnetic field strength value refers to the average magnetic field strength around the permanent magnet. The magnetic field strength value can be obtained by the Hall effect sensor, and this embodiment will not go into too much detail.
[0052] It should be added that the above-mentioned structural parameter information refers to the structural parameters of each internal component pre-stored in the data, such as the number of coil windings and coil resistance of the voltage coil magnetic circuit, the radius and mass of the turntable, the magnet size and hysteresis loss value of the permanent magnet, etc. The hysteresis loss value represents the energy loss generated by the permanent magnet during repeated magnetization, and the hysteresis loss value can be obtained through experiments.
[0053] like Figure 4 As shown, the method for constructing a corresponding digital twin model according to real-time operation information and preset structural parameter information includes:
[0054] A basic structure sub-model is constructed according to the preset structural parameter information, a dynamic response sub-model is constructed according to the turntable speed value and turntable acceleration value in the real-time operation information, and a thermal-magnetic coupling sub-model is constructed according to the voltage coil temperature, current coil temperature and magnetic field strength values in the real-time operation information. The basic structure sub-model, dynamic response sub-model and thermal-magnetic coupling sub-model are integrated to obtain a digital twin model.
[0055] It should be noted that the basic structure sub-model represents the static physical structure inside the electric energy meter, the dynamic response sub-model represents the mechanical response of the internal components of the electric energy meter during dynamic operation, and the thermal-magnetic coupling sub-model represents the dynamic impact of the interaction between temperature and magnetic field on the performance of the electric energy meter.
[0056] The above-mentioned integration of the basic structure sub-model, the dynamic response sub-model and the thermal-magnetic coupling sub-model refers to integrating the basic structure sub-model, the dynamic response sub-model and the thermal-magnetic coupling sub-model in the existing multi-physics field simulation software, and using the multi-module and multi-physics field coupling functions of these software to associate the input, output and coupling relationship of each sub-model, so as to build a unified digital twin model. The existing multi-physics field simulation software can be COMSOL Multiphysics or Ansys Workbench. Taking Ansys Workbench as an example, the dynamic response sub-model is constructed using the Ansys Mechanical module, the coupling relationship between the electromagnetic field and the temperature is simulated using the Ansys Maxwell module, and the heat conduction is calculated using the Ansys Fluent or Thermal module. In the Workbench environment, the modules are connected through data flow, and the "multi-physics field simulation" function is used to uniformly solve the thermal-magnetic-mechanical coupling.
[0057] The method of constructing a dynamic response sub-model according to the turntable speed value and the turntable acceleration value in the real-time operation information includes:
[0058] F net =m×a-k f ×ω;
[0059] Among them, F net is the net driving force, m is the mass of the turntable, a is the acceleration of the turntable, k f is the friction coefficient, and ω is the turntable speed.
[0060] It should be added that the net driving force refers to the residual force that can accelerate the turntable after deducting the resistance (including friction and other resistance) from the total driving force acting on the turntable. The net driving force is the core variable of the dynamic response sub-model, which is used to describe the motion state of the turntable and is the driving input of the entire dynamic response sub-model. The friction coefficient is usually related to the turntable material, bearing status, lubrication conditions, etc. The friction coefficient can be obtained through experiments.
[0061] The method of constructing a thermal-magnetic coupling sub-model according to the voltage coil temperature, current coil temperature and magnetic field strength values in the real-time operation information includes:
[0062] δ(T V ,T C ,B)=δ0+q1(T V -T0)+q2(T C -T0)+q3(B-B0);
[0063] Among them, δ(T V ,T C ,B) is characterized by the electric energy meter at T V , T C , B, δ0 represents the error of the electric energy meter under the joint action of T0 and B0, T V is the voltage coil temperature, T C is the current coil temperature, B is the magnetic field strength value, T0 is the standard coil temperature, B0 is the standard magnetic field strength, q1, q2, q3 are all weight factors.
[0064] It should be noted that the above-mentioned standard coil temperature represents the reference operating temperature of the coil and is a reference value for calculating the temperature deviation. The standard magnetic field strength represents the reference magnetic field strength of the electric energy meter under calibration conditions and is a reference value for calculating the magnetic field deviation. Both the standard coil temperature and the standard magnetic field strength can be pre-set according to actual conditions, and this embodiment will not go into details.
[0065] In this embodiment, the above steps are combined in sequence to ensure that the operating status of the electric energy meter is fully acquired, and the information is comprehensively analyzed and coupled through the digital twin model. This global analysis can more accurately identify the source of errors (such as flux distortion, speed changes, etc.) and their dynamic effects, providing strong support for subsequent error prediction and compensation.
[0066] S20: acquiring real-time error information based on the digital twin model, predicting future error information based on the real-time error information, and calculating harmonic flux values and comprehensive flux values based on the real-time parameter information;
[0067] In this embodiment, the method for obtaining real-time error information based on the digital twin model includes:
[0068] By simulating the digital twin model, the magnetic flux distribution information and speed change information are obtained, a magnetic flux distribution map is constructed based on the magnetic flux distribution information, and a speed change curve is constructed based on the speed change information. The magnetic flux distribution map and the speed change curve are used as real-time error information.
[0069] In this embodiment, the flux distribution information represents the distribution of the magnetic flux density in the internal magnetic circuit of the electric energy meter and its dynamic changes. The speed change information represents the changes in the speed and acceleration of the turntable during the dynamic operation. The flux distribution information at least includes the main magnetic flux density, harmonic magnetic flux density and magnetic field direction distribution, etc. The speed change information at least includes the speed fluctuation amplitude and the turntable acceleration value, etc. It can be understood that the flux distribution diagram can be constructed by Ansys Maxwell, and the speed change curve can be constructed by Ansys Mechanical. This embodiment will not go into details.
[0070] The method for predicting future error information based on real-time error information includes:
[0071] The real-time error information is input into the pre-built error prediction model to obtain future error information.
[0072] The method for constructing the error prediction model includes:
[0073] Preset the sliding step size and sliding window length; use the sliding window method to convert the historical error information into multiple training samples, use the training samples as the input of the error prediction model, and use the historical error information after the predicted sliding step size as the output. The actual historical error information of each training sample is used as the prediction target, and the prediction accuracy is used as the training target to train the error prediction model; generate an error prediction model that predicts future error information based on real-time error information, and the error prediction model is an LSTM model.
[0074] It should be noted that the sliding window method is a conventional technical means of the LSTM model, and the present invention will not be further explained in principle here; however, in order to facilitate the implementation of the present invention, the present invention provides the following example of the sliding window method:
[0075] Assume that the historical data [1,2,3,4,5,6] is used to train an LSTM model. In this embodiment, the prediction time step is set to 1 as an example, the sliding step is set to 1, and the sliding window length is set to 3; then 3 groups of training samples and corresponding prediction target data are generated: [1,2,3], [2,3,4] and [3,4,5] are used as training samples, and [4], [5] and [6] are used as prediction targets respectively.
[0076] The prediction accuracy can be measured using mean square error or mean absolute error as the loss function, and the weights and biases of the model are updated through the back-propagation algorithm to generate an error prediction model.
[0077] It should be added that the real-time error information includes the flux distribution diagram and the speed change curve. Similarly, the future error information includes the flux distribution diagram and the speed change curve. The only difference between the future error information and the real-time error information is that the future error information is an estimate of the flux distribution diagram and the speed change curve that may appear in the future, reflecting the error trend that may be caused by future changes in operating conditions. When the flux distribution diagram has areas with too high or too low density, it manifests as abnormal color distribution (for example, some areas are too bright or too dark), or the direction of the flux vector arrow shows irregular changes in the diagram, such as the appearance of "eddy current" or asymmetric distribution, it indicates that the measurement error trend of the electric energy meter is greater; when the speed change curve shows obvious nonlinear steep fluctuations, rapid acceleration or deceleration occurs in a short period of time, or the frequency of change (fluctuation period) of the speed change curve is significantly shortened, it indicates that the measurement error trend of the electric energy meter is greater.
[0078] In this embodiment, the real-time parameter information includes an angular frequency value, an initial phase angle, a phase lag angle, a coil inductance value, a harmonic voltage amplitude value, and a coil resistance value. The angular frequency value refers to the angular frequency of the harmonic voltage. The initial phase angle refers to the initial phase of the harmonic component, that is, the phase offset of the harmonic signal at time t=0. The phase lag angle refers to the phase lag of the magnetic flux generated by the voltage coil relative to the voltage harmonic signal. The phase lag angle is determined by the inductance and resistance values of the coil, indicating the degree to which the magnetic flux lags behind the voltage harmonic signal due to the impedance characteristics of the voltage coil. The coil inductance value refers to the inductance value of the voltage coil, and the coil inductance value characterizes the ability of the voltage coil to store magnetic field energy. The harmonic voltage amplitude value refers to the voltage amplitude of each harmonic component in the voltage coil. The coil resistance value refers to the DC resistance value of the voltage coil.
[0079] The method for calculating the harmonic flux value based on the real-time parameter information includes:
[0080]
[0081] Among them, Φ h is the harmonic flux value under the action of the hth harmonic, U h is the harmonic voltage amplitude generated by the hth harmonic, ω h is the angular frequency value generated by the hth harmonic, L is the coil inductance, and R is the coil resistance.
[0082] The method for calculating the comprehensive magnetic flux value based on the real-time parameter information includes:
[0083] Φ h (t)=∑ t Φ h cos[ω h (t)-θ h -α h ];
[0084] Among them, Φ h (t) is the comprehensive magnetic flux value under the action of the hth harmonic, cos[·] is the cosine function, θ h is the initial phase angle under the action of the hth harmonic, α h is the phase lag angle under the action of the hth harmonic, ω h (t) is represented by the angular frequency value of the hth harmonic changing with time t.
[0085] It should be noted that the above-mentioned harmonic flux value represents a single harmonic flux component under the action of the hth harmonic, that is, the response of the voltage coil to a specific harmonic component. The comprehensive flux value represents the comprehensive effect of the flux of all harmonic components, that is, the flux performance under the joint action of all harmonic components in the voltage coil. The harmonic flux value is the flux component generated in the voltage coil by high-order harmonic voltage or current components. The larger the harmonic flux value, the stronger the interference of the harmonic component on the main flux. Therefore, when the harmonic flux value is larger, the measurement error trend of the electric energy meter is larger. Similarly, when the comprehensive flux value is larger, the measurement error trend of the electric energy meter is larger.
[0086] S30: inputting the real-time measurement information, the future error information and the comprehensive magnetic flux value into a pre-built error compensation model to obtain target measurement information;
[0087] The construction method of the error compensation model includes:
[0088] Acquire a sample data set, wherein the sample data set includes historical measurement information, historical error information, historical comprehensive magnetic flux values, and historical target measurement information;
[0089] Divide the sample data set into a sample training set and a sample test set, and build a regression network;
[0090] The historical measurement information, historical error information and historical comprehensive magnetic flux value in the sample training set are used as input data of the regression network, and the historical target measurement information in the sample training set is used as output data of the regression network, and the regression network is trained to obtain an initial regression network for predicting target measurement information;
[0091] The initial regression network is tested using a sample test set, and the output of the initial regression network that is smaller than the preset error value is used as an error compensation model. The initial regression network is a deep neural network model.
[0092] It can be understood that according to the above content, when areas with too high or too low density appear in the magnetic flux distribution diagram, it will appear as abnormal color distribution (for example, some areas are too bright or too dark). In addition, when the speed change curve shows obvious nonlinear steep fluctuations and sharp acceleration or deceleration occurs in a short period of time, it indicates that the measurement error trend of the electric energy meter is increasing.
[0093] Similarly, by analyzing the magnetic flux distribution diagram and the speed change curve, the deviation direction of the real-time measurement information can be further determined, for example:
[0094] The colors of some areas in the magnetic flux distribution diagram are too bright: it means that the magnetic flux density in this area is abnormally high, resulting in excessive induced electromotive force, and the real-time measurement information is greater than the precise measurement information, resulting in a positive deviation; the colors of some areas in the magnetic flux distribution diagram are too dark: it means that the magnetic flux density in this area is significantly reduced, resulting in low induced electromotive force, and the real-time measurement information is less than the precise measurement information, resulting in a negative deviation.
[0095] Similarly, the speed change curve can also be analyzed. For example, a steep upward fluctuation (sharp acceleration in a short period of time) appears in the speed change curve: it means that the turntable speed has increased significantly, resulting in a larger mechanical torque sensed by the meter. At this time, the real-time measurement information is greater than the precise measurement information, resulting in a positive deviation. On the contrary, a steep downward fluctuation (sharp deceleration in a short period of time) appears in the speed change curve, resulting in a negative deviation.
[0096] This embodiment first constructs a corresponding digital twin model according to real-time operation information and preset structural parameter information, then obtains real-time error information based on the digital twin model, predicts future error information based on the real-time error information, calculates harmonic flux values and comprehensive flux values based on the real-time parameter information, and finally inputs the real-time measurement information, future error information and comprehensive flux values into the pre-constructed error compensation model to obtain target measurement information. This embodiment can obtain the error information of the electric energy meter in real time by constructing a digital twin model, and predict the future error trend based on the error information, thereby effectively solving the problem of lag in error compensation in the prior art. In addition, by calculating the harmonic flux value and the comprehensive flux value, and inputting them into the error compensation model together with the real-time measurement information and the future error information, adaptive adjustment of the complex dynamic harmonic environment is achieved, overcoming the limitation that the prior art is difficult to adapt to changes in operating conditions. The implementation of this embodiment can improve the measurement accuracy of the electric energy meter in a complex harmonic environment, and improve the compensation effect and real-time performance.
[0097] Example 2
[0098] See also Figure 2As shown, based on the same inventive concept, this embodiment discloses an automatic error compensation device for an electric energy meter. For details not provided in this embodiment, please refer to the description of the relevant parts in Embodiment 1. The device includes:
[0099] The first processing module is used to obtain real-time measurement information, real-time parameter information and real-time operation information of the electric energy meter during its operation, and to build a corresponding digital twin model according to the real-time operation information and preset structural parameter information. The real-time parameter information refers to the relevant parameter information collected during the influence of harmonics on the electric energy meter, and the real-time operation information refers to the operation information of the internal components of the electric energy meter;
[0100] It should be noted that during the operation of the electric energy meter, the metering accuracy decreases due to the influence of harmonics in the power system. Harmonics can cause nonlinear responses of internal components of the electric energy meter, thereby causing metering errors, such as distortion of the main magnetic flux. The above-mentioned real-time measurement information can be real-time current information, real-time voltage information, and real-time power information, etc.
[0101] The method of constructing a corresponding digital twin model according to real-time operation information and preset structural parameter information includes:
[0102] A basic structure sub-model is constructed according to the preset structural parameter information, a dynamic response sub-model is constructed according to the turntable speed value and turntable acceleration value in the real-time operation information, and a thermal-magnetic coupling sub-model is constructed according to the voltage coil temperature, current coil temperature and magnetic field strength values in the real-time operation information. The basic structure sub-model, dynamic response sub-model and thermal-magnetic coupling sub-model are integrated to obtain a digital twin model.
[0103] The method of constructing a dynamic response sub-model according to the turntable speed value and the turntable acceleration value in the real-time operation information includes:
[0104] F net =m×a-k f ×ω;
[0105] Among them, F net is the net driving force, m is the mass of the turntable, a is the acceleration of the turntable, k f is the friction coefficient, and ω is the turntable speed.
[0106] The method of constructing a thermal-magnetic coupling sub-model according to the voltage coil temperature, current coil temperature and magnetic field strength values in the real-time operation information includes:
[0107] δ(T V ,T C ,B)=δ0+q1(T V -T0)+q2(T C -T0)+q3(B-B0);
[0108] Among them, δ(T V ,T C ,B) is characterized by the electric energy meter at T V , T C , B, δ0 represents the error of the electric energy meter under the joint action of T0 and B0, T V is the voltage coil temperature, T C is the current coil temperature, B is the magnetic field strength value, T0 is the standard coil temperature, B0 is the standard magnetic field strength, q1, q2, q3 are all weight factors.
[0109] The second processing module is used to obtain real-time error information based on the digital twin model, predict future error information based on the real-time error information, and calculate the harmonic flux value and the comprehensive flux value based on the real-time parameter information;
[0110] In this embodiment, the method for obtaining real-time error information based on the digital twin model includes:
[0111] By simulating the digital twin model, the magnetic flux distribution information and speed change information are obtained, a magnetic flux distribution map is constructed based on the magnetic flux distribution information, and a speed change curve is constructed based on the speed change information. The magnetic flux distribution map and the speed change curve are used as real-time error information.
[0112] The method for calculating the harmonic flux value based on the real-time parameter information includes:
[0113]
[0114] Among them, Φ h is the harmonic flux value under the action of the hth harmonic, U h is the harmonic voltage amplitude generated by the hth harmonic, ω h is the angular frequency value generated by the hth harmonic, L is the coil inductance, and R is the coil resistance.
[0115] The method for calculating the comprehensive magnetic flux value based on the real-time parameter information includes:
[0116] φ h (t)=∑ t φ h cos[ω h (t)-θ h -α h ];
[0117] Among them, Φ h (t) is the comprehensive magnetic flux value under the action of the hth harmonic, cos[·] is the cosine function, θ h is the initial phase angle under the action of the hth harmonic, αh is the phase lag angle under the action of the hth harmonic, ω h (t) is represented by the angular frequency value of the hth harmonic changing with time t.
[0118] Compensation module: used to input real-time measurement information, future error information and comprehensive flux value into the pre-built error compensation model to obtain target measurement information.
[0119] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through a wired network or a wireless network. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD) or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0120] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the present invention can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0122] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only one, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0123] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0124] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0125] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
[0126] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An automatic error compensation method for electric energy metering instrument, characterized in that: include: Acquire real-time measurement information, real-time parameter information and real-time operation information of the electric energy meter during its operation, and build a corresponding digital twin model according to the real-time operation information and preset structural parameter information, wherein the real-time parameter information refers to relevant parameter information collected during the influence of harmonics on the electric energy meter, and the real-time operation information refers to the operation information of the internal components of the electric energy meter; Obtain real-time error information based on the digital twin model, predict future error information based on the real-time error information, and calculate harmonic flux values and comprehensive flux values based on real-time parameter information; The real-time measurement information, future error information and integrated flux value are input into the pre-built error compensation model to obtain the target measurement information.
2. The automatic error compensation method for electric energy metering instrument according to claim 1, characterized in that: The real-time operation information includes voltage coil temperature, current coil temperature, turntable speed value, turntable acceleration value and magnetic field strength value. The method for constructing a corresponding digital twin model according to the real-time operation information and preset structural parameter information includes: A basic structure sub-model is constructed according to the preset structural parameter information, a dynamic response sub-model is constructed according to the turntable speed value and turntable acceleration value in the real-time operation information, and a thermal-magnetic coupling sub-model is constructed according to the voltage coil temperature, current coil temperature and magnetic field strength values in the real-time operation information. The basic structure sub-model, dynamic response sub-model and thermal-magnetic coupling sub-model are integrated to obtain a digital twin model.
3. The automatic error compensation method for electric energy metering instrument according to claim 2 is characterized in that: The method for constructing a dynamic response sub-model according to the turntable speed value and the turntable acceleration value in the real-time operation information includes: F net =m×a-k f ×ω; Among them, F net is the net driving force, m is the mass of the turntable, a is the acceleration of the turntable, k f is the friction coefficient, and ω is the turntable speed.
4. The automatic error compensation method for electric energy metering instrument according to claim 2, characterized in that: The method for constructing a thermal-magnetic coupling sub-model according to the voltage coil temperature, the current coil temperature and the magnetic field strength value in the real-time operation information comprises: δ(T V ,T C ,B)=δ0+q1(T V -T0)+q2(T C -T0)+q3(B-B0); Among them, δ(T V ,T C ,B) is characterized by the electric energy meter at T V 、T C , B, δ0 represents the error of the electric energy meter under the joint action of T0 and B0, T V is the voltage coil temperature, T C is the current coil temperature, B is the magnetic field strength value, T0 is the standard coil temperature, B0 is the standard magnetic field strength, q1, q2, q3 are all weight factors.
5. The automatic error compensation method for electric energy metering instrument according to claim 1, characterized in that: The method for obtaining real-time error information based on the digital twin model includes: By simulating the digital twin model, the magnetic flux distribution information and speed change information are obtained, a magnetic flux distribution map is constructed based on the magnetic flux distribution information, and a speed change curve is constructed based on the speed change information. The magnetic flux distribution map and the speed change curve are used as real-time error information.
6. The automatic error compensation method for electric energy metering instrument according to claim 5, characterized in that: The method for predicting future error information based on real-time error information includes: Input the real-time error information into the pre-built error prediction model to obtain future error information; The method for constructing the error prediction model includes: Preset the sliding step size and sliding window length; use the sliding window method to convert the historical error information into multiple training samples, use the training samples as the input of the error prediction model, and use the historical error information after the predicted sliding step size as the output. The actual historical error information of each training sample is used as the prediction target, and the prediction accuracy is used as the training target to train the error prediction model; generate an error prediction model that predicts future error information based on real-time error information.
7. The automatic error compensation method for electric energy metering instrument according to claim 1, characterized in that: The real-time parameter information includes an angular frequency value, an initial phase angle, a phase lag angle, a coil inductance value, a harmonic voltage amplitude value, and a coil resistance value. The method for calculating the harmonic magnetic flux value according to the real-time parameter information includes: Among them, Φ h is the harmonic flux value under the action of the hth harmonic, U h is the harmonic voltage amplitude generated by the hth harmonic, ω h is the angular frequency value generated by the hth harmonic, L is the coil inductance, and R is the coil resistance.
8. The automatic error compensation method for electric energy metering instrument according to claim 7, characterized in that: The method for calculating the comprehensive magnetic flux value according to the real-time parameter information includes: F h (t)=∑ t F h cos[ω h (t)-θ h -a h ]; Among them, Φ h (t) is the comprehensive magnetic flux value under the action of the hth harmonic, cos[·] is the cosine function, θ h is the initial phase angle under the action of the hth harmonic, α h is the phase lag angle under the action of the hth harmonic, ω h (t) is represented by the angular frequency value of the hth harmonic changing with time t.
9. An automatic error compensation device for an electric energy meter, which is used to implement the automatic error compensation method for an electric energy meter according to any one of claims 1 to 8, characterized in that: include: The first processing module is used to obtain real-time measurement information, real-time parameter information and real-time operation information of the electric energy meter during its operation, and to build a corresponding digital twin model according to the real-time operation information and preset structural parameter information. The real-time parameter information refers to the relevant parameter information collected during the influence of harmonics on the electric energy meter, and the real-time operation information refers to the operation information of the internal components of the electric energy meter; The second processing module is used to obtain real-time error information based on the digital twin model, predict future error information based on the real-time error information, and calculate the harmonic flux value and the comprehensive flux value based on the real-time parameter information; Compensation module: used to input real-time measurement information, future error information and comprehensive flux value into the pre-built error compensation model to obtain target measurement information.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the automatic error compensation method for the electric energy meter according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Electric energy meter error compensation method, device and system based on direct current and even harmonic
CN113589216A
Electric energy meter self-heating error correction method and device, electric energy meter and storage medium
CN114325553A
Detection method, system and device based on ammeter measurement error compensation
CN114660531A
New energy automobile motor temperature field digital twinborn model construction method
CN115310285A
Electric quantity metering monitoring and compensation method and system based on digital twinborn model
CN116430298A
Cited By
Dynamic tuning capacitance compensation matching method and system for transformer simulation test
CN121049617A