Method and System for Handling Electricity Quantity Recovery and Compensation of Electric Energy Metering Devices Based on Digital Twin

Through digital twin technology, the power metering device model is built, faults are diagnosed and the power recovery and compensation is calculated, and the automatic calculation problem after the power metering is inaccurate, achieving efficient and accurate power recovery is achieved.

CN115421095BActive Publication Date: 2025-07-25GUANGDONG INST OF METROLOGY +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211127718.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-16
Publication Date
2025-07-25
Estimated Expiration
2042-09-16

AI Technical Summary

Technical Problem

In the prior art, the power compensation calculation lacks automation after the metering of the electric energy metering device is inaccurate, the manual calculation efficiency is low and the error is large, and the digital twin technology is insufficiently used in the field of smart electric energy metering.

Method used

Digital twin technology is used to build a digital model of the power metering device. By diagnosing the fault type and collecting power load data, and calculating the power recovery and compensation based on actual operating data, it is suitable for the wrong wiring and other fault types of three-phase, four-wire, three-phase and three-wire electrical energy metering devices.

Benefits of technology

It realizes intelligent power recovery and compensation after the metering of the electric energy metering device is inaccurate. The calculation results are more reliable and the error is small. It is suitable for a variety of power metering devices and fault types, improving the accuracy and efficiency of power recovery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115421095B_ABST
    Figure CN115421095B_ABST
Patent Text Reader

Abstract

The present invention relates to a method and system for processing electricity refund and compensation of an electric energy metering device based on digital twin. The method includes: determining the measurement period for electricity refund and compensation, as well as its start time and end time, diagnosing the fault type during the fault period of the electric energy metering device starting from the start time, collecting the electricity load data for each recording time interval, obtaining the actual operation data for each recording time interval based on the electricity load data associated with the fault type and the electricity load data, the digital twin model obtaining the actual electric energy for each recording time interval according to the input electricity load data and the actual operation data, and determining the refund and compensation electricity quantity for the measurement period of electricity refund and compensation. The present invention realizes the mapping of the electric energy metering device to be verified through the innovative application of digital twin technology, and accurately calculates the electricity quantity that needs to be refunded or compensated after the metering of the electric energy metering device is inaccurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for processing electricity refund and supplement for an electric energy metering device based on digital twin, and belongs to the technical field of electric energy metering. Background Art

[0002] Electric energy metering devices include electric energy metering devices installed by electricity users, electric energy metering devices installed in charging piles, and instruments related to energy monitoring with electric energy metering functions. The accuracy of electric energy metering is directly related to the economic interests of power supply departments and electricity users. An inaccurate electric energy metering device will lead to unfairness in electric energy trade settlement. Therefore, the supervision, management, and dispute handling of electric energy metering devices are particularly important. For the situation of inaccurate metering of electric energy metering devices, it is necessary to accurately calculate the refund and supplement electricity. This requires accurately defining the start and end times of the inaccurate metering of the electric energy metering device and the incorrect electricity consumption recorded by the inaccurate electric energy metering device. Then, based on the start and end times of the inaccurate metering of the electric energy metering device, accurately calculate the correct electricity consumption during the fault period of the electric energy metering device, then subtract the recorded incorrect electricity consumption, and finally accurately calculate the refund and supplement electricity. The traditional method of electricity refund and supplement is to directly use the traditional static correction factor according to the fault type and electricity metering principle, and calculate the electricity refund and supplement required by combining the incorrect electricity consumption. It does not consider the actual electricity load process, resulting in a relatively large error in the calculation result.

[0003] An incorrect wiring or metering fault of an electric energy metering device will lead to inaccurate electric energy metering and affect the accuracy of electricity metering. Common faults mainly include problems such as voltage loss, current loss, poor contact, incorrect wiring, and metering device faults. The incorrect wiring of the metering device mainly includes phase sequence errors, reverse polarity connection of voltage transformers, reverse polarity connection of current transformers, poor grounding of the common point, suspension, and mismatching of the voltage and current phase sequences of metering elements. Phase sequence errors mainly occur in the wiring phase sequences of three-phase four-wire electric energy metering devices, three-phase three-wire electric energy metering devices, voltage transformers, and current transformers not corresponding. When a phase sequence error or reverse polarity connection occurs, the voltage and current wiring of the same element are not in the same phase. While the metering device has incorrect wiring, the metering device may also have faults such as abnormal metering voltage, abnormal metering current, and abnormal power factor. It is very complicated to analyze and judge in actual work, and it is even more complicated to calculate the electricity refund and supplement for incorrect wiring and fault conditions. At present, there is no automated calculation system and equipment for electricity refund and supplement after the metering of an electric energy metering device is inaccurate. The electricity refund and supplement work during the fault period needs to be calculated manually, but the electricity refund and supplement calculation methods are also inconsistent. The human factors and the randomness of the selection of relevant parameters in the manual calculation method are also relatively large. And the three-phase load state is constantly changing in actual production, resulting in low efficiency and high error rates in manual analysis and calculation. It is not easy for both power supply and use parties to reach a consensus on the electricity refund and supplement.

[0004] In the field of intelligent power metering, the application of digital twin technology still needs to be further studied, and the application test of digital twin technology in the power system is only in the initial verification and exploration stage. Digital twin constructs a mathematical model that can map the physical device by collecting device data and combining the understanding of the device's dynamic characteristics, so as to better understand the device operation status through virtualization and digital technology. When applied to the power metering device, it can strengthen the management of device operation. Summary of the Invention

[0005] The present invention provides a method and system for processing power refund and compensation of a power metering device based on digital twin, aiming to solve at least one of the technical problems existing in the prior art.

[0006] One aspect of the technical solution of the present invention relates to a method for processing power refund and compensation based on digital twin, which is applied to a power metering device. The method according to the present invention includes the following steps:

[0007] S100. Determine the power refund and compensation measurement period, its start time and end time, and start diagnosing the fault type during the fault period of the power metering device from this start time and collecting the power consumption load data for each recording time interval;

[0008] S200. Obtain the actual operation data for each recording time interval according to the associated data of the power consumption load data of the fault type and the power consumption load data;

[0009] S300. The digital twin model obtains the actual electric energy for each recording time interval according to the input power consumption load data and the actual operation data, and determines the refund and compensation power for the power refund and compensation measurement period.

[0010] Another aspect of the technical solution of the present invention relates to a method for processing power refund and compensation based on digital twin, which is applied to a three-phase four-wire power metering device with incorrect wiring. The method according to the present invention includes the following steps:

[0011] S110. Determine the power refund and compensation measurement period, its start time and end time, and start diagnosing the fault type during the fault period of the power metering device from this start time and collecting the power consumption load data for each recording time interval; wherein, the fault type includes incorrect wiring, and the power consumption load data includes the recorded active power of each phase and the recorded reactive power of each phase;

[0012] S211. According to the recorded active power Pa n 1, Pb n 1, Pc n 1 and the recorded reactive power Qa n 1, Qb n 1, Qcn 1. Obtain the measured power factor cosΦa for each phase within the nth recording time interval n 1. cosΦb n 1. cosΦc n 1. To obtain the measured phase angle Φa for each phase within the nth recording time interval n 1. Φb n 1. Φc n 1; where

[0013] The calculation method of the measured power factor for each phase within the nth recording time interval is as follows:

[0014] , , ;

[0015] S212. Based on the actual phase angle correlation data of the fault type and the measured phase angle of each phase, obtain the actual phase angle Φa for each phase within the nth recording time interval n . Φb n . Φc n and the actual power factor cosΦa for each phase n . cosΦb n . cosΦc n ;

[0016] S311. Based on the measured power factor and the actual power factor, obtain the correction factor for each phase within the nth recording time interval

[0017] The correction factor Ka for each phase within the nth recording time interval n . Kb n . Kc n is calculated as follows:

[0018] Ka n = cosΦa n / cosΦa n 1, Kb n = cosΦb n / cosΦb n 1, Kc n = cosΦc n / cosΦc n 1;

[0019] S312. Based on the correction factor and the recorded active power, obtain the correct active power for each phase within the nth recording time interval, so as to obtain the actual electric energy and the actual electricity quantity for each phase; where ​​​​​​​​​

[0020] The correct active power PA per phase within the nth recording time interval n , PB n , PC n is calculated as follows:

[0021] PA n = Ka n *Pa n 1, PB n = Kb n *Pb n 1, PC n = Kc n *Pc n 1;

[0022] The actual electrical energy Ea n , Eb n , Ec n per phase within the nth recording time interval is calculated as follows:

[0023] Ea n = PA n *t, Eb n = PB n *t, Ec n = PC n *t,

[0024] where t represents the duration of each recording time interval;

[0025] According to the electricity quantity refund and compensation measurement period, the actual electricity quantities EA, EB, and EC per phase are obtained, and their calculation methods are as follows:

[0026] ,

[0027] ,

[0028] ,

[0029] where n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the electricity quantity refund and compensation measurement period;

[0030] S313. Obtain the actual total electricity quantity EZ = EA + EB + EC of the electricity metering device, and obtain the incorrect electricity quantity EX of the electricity quantity refund and compensation measurement period to obtain the refund and compensation electricity quantity E = EZ – EX.

[0031] On the other hand, the technical solution of the present invention relates to a method for processing electricity refund and supplement based on digital twin, which is applied to a three-phase four-wire electric energy metering device with incorrect wiring. The method according to the present invention includes the following steps:

[0032] S120. Determine the measurement period of electricity refund and supplement, its start time and end time, and diagnose the fault type during the fault period of the electric energy metering device starting from this start time, and collect the electricity load data for each recording time interval; the fault type includes incorrect wiring, and the electricity load data includes the recorded current of each phase, the recorded voltage of each phase, and the recorded power factor of each phase;

[0033] S221. According to the electricity load correlation data of the fault type, and the recorded voltage Ua of each phase in the nth recording time interval n 1. Ub n 1. Uc n 1, the recorded current Ia of each phase n 1. Ib n 1. Ic n 1 and the recorded power factor cosΦa of each phase n 1. cosΦb n 1. cosΦc n 1, obtain the measured active power of each phase in the nth recording time interval; wherein,

[0034] The measured active power Pa of each phase in the nth recording time interval n 1. Pb n 1. Pc n 1 is calculated as follows:

[0035] Pa n 1 = Ua n 1 * Ia n 1 * cosΦa n 1, Pb n 1 = Ub n 1 * Ib n 1 * cosΦb n 1, Pc n 1 = Uc n 1 * Ic n 1 * cosΦc n 1,

[0036] S222. According to the recorded power factor, obtain the measured phase angle Φa of each phase in the nth recording time interval n 1. Φb n 1. Φc n1. Obtain the actual phase angle Φa, Φb, Φc of each phase and the actual power factor within the nth recording time interval based on the actual phase angle correlation data of the fault type and the measured phase angle; n 、Φb n 、Φc n and the actual power factor;

[0037] S311. Obtain the correction factor of each phase within the nth recording time interval according to the recorded power factor cosΦa1, cosΦb1, cosΦc1 of each phase and the actual power factor cosΦa, cosΦb, cosΦc of each phase; where, n 1、cosΦb n 1、cosΦ n c1 and the actual power factor cosΦa n 、cosΦb n 、cosΦc n . The calculation formulas for the correction factors Ka, Kb, Kc of each phase within the nth recording time interval are as follows:

[0038] Ka n 、Kb n 、Kc n are as follows:

[0039] Ka n = cosΦa n / cosΦa1, Kb n = cosΦb n / cosΦb1, Kc n = cosΦc n / cosΦc1, n = cosΦc n / cosΦc n 1;

[0040] S312. Obtain the correct active power of each phase within the nth recording time interval according to the correction factor and the measured active power, so as to obtain the actual electric energy and the actual electricity quantity of each phase within the nth recording time interval; where,

[0041] The calculation methods for the correct active powers PA, PB, PC of each phase within the nth recording time interval are as follows: n 、PB n 、PC n are as follows:

[0042] PA n = Ka n *Pa1, PB n = Kb n *Pb1, PC n = Kc n *Pc1, n = Kc n *Pc n 1;

[0043] The actual electric energy Ea of each phase within the nth recording time interval n , Eb n , Ec n is calculated as follows:

[0044] Ea n = PA n * t, Eb n = PB n * t, Ec n = PC n * t,

[0045] where t represents the duration of each recording time interval;

[0046] According to the electricity quantity retroactive adjustment measurement period, the actual electricity quantities EA, EB, and EC of each phase are obtained, and their calculation methods are as follows:

[0047] ,

[0048] ,

[0049] ,

[0050] where n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the electricity quantity retroactive adjustment measurement period;

[0051] S313. Obtain the actual total electricity quantity EZ = EA + EB + EC of the electric energy metering device, and obtain the error electricity quantity EX of the electricity quantity retroactive adjustment measurement period, so as to obtain the retroactive adjustment electricity quantity E = EZ – EX of the electricity quantity retroactive adjustment measurement period.

[0052] On the other hand, the technical solution of the present invention relates to a method for processing electricity quantity retroactive adjustment based on digital twin, which is applied to a three-phase three-wire electric energy metering device with incorrect wiring. The method according to the present invention includes the following steps:

[0053] S130. Determine the electricity quantity retroactive adjustment measurement period and its start time and end time, and start diagnosing the fault type during the fault of the electric energy metering device and collecting the electricity consumption load data of each recording time interval from this start time; wherein, the fault type includes incorrect wiring, and the electricity consumption load data includes the recorded active power of the first metering element and the second metering element and the recorded reactive power of the first metering element and the second metering element;

[0054] S231. According to the recorded active power P1 of the first metering element and the second metering element within the nth recording time intervaln ’, P2 n ’ and the recorded reactive power Q1 of the first metering element and the second metering element n ’, Q2 n ’, obtain the measured power factors cosΦ1 of the first metering element and the second metering element within the nth recording time interval n ’, cosΦ2 n ’ to obtain the measured phase angles Φ1 of each phase within the nth recording time interval n ’, Φ2 n ’; wherein,

[0055] The calculation method of the measured power factors of the first metering element and the second metering element within the nth recording time interval is as follows:

[0056] ,

[0057] ,

[0058] S232. According to the actual phase angle correlation data of the fault type and the measured phase angles of the first metering element and the second metering element, obtain the actual phase angles Φ1 of the first metering element and the second metering element within the nth recording time interval n , Φ2 n and the actual power factors cosΦ1 of each phase n , cosΦ2 n ;

[0059] S321. According to the measured power factor and the actual power factor, obtain the correction factors of the first metering element and the second metering element within the nth recording time interval; wherein,

[0060] The correction factors K1 of the first metering element and the second metering element within the nth recording time interval n , K2 n The calculation method is as follows:

[0061] K1 n = cosΦ1 n / cosΦ1 n ’, K2 n = cosΦ2 n / cosΦ2 n ’,

[0062] S322. According to the correction factor and the recorded active power, obtain the correct active powers of the first metering element and the second metering element within the nth recording time interval to obtain the actual electric energy of the first metering element and the second metering element and the actual electricity consumption of each phase; wherein,

[0063] The correct active power P of the first metering element and the second metering element within the nth recording time interval n 10. P n 20 is calculated as follows:

[0064] P10 n = K1 n *P1 n ’, P20 n = K2 n *P2 n ’

[0065] The actual electric energy E1 of the first metering element and the second metering element within the nth recording time interval n 、E2 n is calculated as follows:

[0066] E1 n = P10 n *t, E2 n = P20 n *t

[0067] In the formula, t represents the duration of each recording time interval;

[0068] Obtain the actual electric energy E1 and E2 of the first metering element and the second metering element during the measurement period of electricity quantity recovery and compensation, and the calculation is as follows:

[0069] ,

[0070] ,

[0071] In the formula, n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the measurement period of electricity quantity recovery and compensation;

[0072] S323. Obtain the actual total electric energy EZ = E1 + E2 of the electric energy metering device, and obtain the incorrect electric energy EX during the measurement period of electricity quantity recovery and compensation, so as to obtain the recovery and compensation electric energy E = EZ – EX during the measurement period of electricity quantity recovery and compensation.

[0073] On the other hand, the technical solution of the present invention relates to a method for processing electricity quantity recovery and compensation based on digital twin, which is applied to a three-phase three-wire electric energy metering device with incorrect wiring. The method according to the present invention includes the following steps:

[0074] S140. Determine the power back-calculation and make-up measurement period, its start time and end time, and start diagnosing the fault type during the failure of the electric energy metering device from the start time and collecting the power consumption load data for each recording time interval; wherein, the fault type includes incorrect wiring, and the power consumption load data includes the recorded current of the first metering element and the second metering element, the recorded voltage of the first metering element and the second metering element, and the recorded power factor of the first metering element and the second metering element.

[0075] S241. According to the power consumption load correlation data of the fault type, and the recorded voltages U1 n ’, U2 n ’ of the first metering element and the second metering element, the recorded currents I1 n ’, I2 n ’ of the first metering element and the second metering element, and the recorded power factors cosΦ1 n ’, cosΦ2 n ’ of the first metering element and the second metering element within the nth recording time interval, obtain the calculated active power of the first metering element and the second metering element within the nth recording time interval; wherein,

[0076] The calculated active powers Pa1 n ’, Pb2 n ’ of the first metering element and the second metering element within the nth recording time interval are calculated as follows:

[0077] P1 n ’ = U1 n ’ * I1 n ’ * cosΦ1 n ’,

[0078] P2 n ’ = U2 n ’ * I2 n ’ * cosΦ2 n ’,

[0079] S242. According to the recorded power factor, obtain the calculated phase angles Φ1 n , Φ2 n of the first metering element and the second metering element within the nth recording time interval; according to the actual phase angle correlation data of the fault type and the calculated phase angles, obtain the actual phase angles Φ1 n , Φ2 n of each phase and the actual power factor within the nth recording time interval;

[0080] S321. According to the calculated power factor and the actual power factor, obtain the correction factor of the first metering element and the second metering element within the nth recording time interval; wherein,

[0081] Correction factors K1 of the first metering element and the second metering element within the nth recording time interval n and K2 n are calculated as follows:

[0082] K1 n = cosΦ1 n / cosΦ1 n ’, K2 n = cosΦ2 n / cosΦ2 n ’,

[0083] S322. Obtain the correct active power of the first metering element and the second metering element within the nth recording time interval according to the correction factor and the recorded active power, so as to obtain the actual electric energy of the first metering element and the second metering element and the actual electricity consumption of each phase within the nth recording time interval; wherein,

[0084] The correct active power P of the first metering element and the second metering element within the nth recording time interval n 10, P n 20 are calculated as follows:

[0085] P10 n = K1 n *P1 n ’, P20 n = K2 n *P2 n ’,

[0086] The actual electric energy E1 of the first metering element and the second metering element within the nth recording time interval n and E2 n are calculated as follows:

[0087] E1 n = P10 n *t, E2 n = P20 n *t,

[0088] In the formula, t represents the duration of each recording time interval;

[0089] Obtain the actual electricity consumption E1 and E2 of the first metering element and the second metering element according to the electricity consumption retroactive measurement period, and the calculation method is as follows:

[0090] ,

[0091] ,

[0092] Wherein, n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the power quantity retroactive adjustment measurement period;

[0093] S323. Obtain the actual total power quantity EZ = E1 + E2 of the electric energy metering device, and obtain the error power quantity EX of the power quantity retroactive adjustment measurement period to obtain the retroactive adjustment power quantity E = EZ - EX of the power quantity retroactive adjustment measurement period.

[0094] Another aspect of the technical solution of the present invention relates to a computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by a processor, the above method is implemented.

[0095] Another aspect of the technical solution of the present invention relates to a power quantity retroactive adjustment processing system based on digital twins, including: a computer device, and the computer device includes the above computer-readable storage medium.

[0096] Another aspect of the technical solution of the present invention relates to an electric energy metering device power quantity retroactive adjustment calculator, including:

[0097] A power parameter sampling channel module; an analog board module including an analog circuit and an A / D conversion circuit, and the A / D conversion circuit is connected to the output end of the data sampling channel module through the analog circuit; a data acquisition and metering processor circuit connected to the output end of the analog board module; a control processing module connected to the output end of the data acquisition and metering processor circuit; and a power supply circuit that supplies power to the analog board module, the data acquisition and metering processor circuit, and the control processing module respectively.

[0098] The beneficial effects of the present invention are as follows.

[0099] The electricity quantity refund and supplement processing method and system for electric energy metering devices based on digital twin realize the mapping of the nuclear electric energy metering device through innovative application of digital twin technology, construct an intelligent application for electricity quantity refund and supplement after the metering of the electric energy metering device is inaccurate, and can accurately simulate the process of its inaccurate metering operation state, so as to accurately calculate the electricity quantity that needs to be refunded and supplemented after the metering of the electric energy metering device is inaccurate. The calculated result is more reliable and the error is smaller. Based on digital twin technology, the electric energy metering device can realize the simulation, verification and prediction of the physical entity usage cycle process of the electric energy metering device through real-time data, historical data, opening records and algorithm models, so as to realize the performance optimization, operation state evaluation and historical operation process simulation of the electric energy metering device, and provide more comprehensive intelligent analysis, data analysis, power prediction and electricity quantity metering fault analysis for the operation state of the electric energy metering device, so as to better serve the good operation of the electric energy metering device. The method and system of the present invention are applicable to various electric energy metering devices such as three-phase four-wire electric energy metering devices and three-phase three-wire electric energy metering devices, and are applicable to various fault types such as various wrong wiring modes, voltage loss faults and current loss faults of the electric energy metering device, and have wide applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0100] Figure 1 The schematic block diagram of the electricity quantity refund and supplement calculator for the electric energy metering device according to the present invention is shown.

[0101] Figure 2 The schematic configuration diagram of the interface panel of the calculator according to the present invention is shown.

[0102] Figure 3 The working process explanation diagram of the calculator is shown.

[0103] Figure 4 The basic flowchart of the electricity quantity refund and supplement processing method according to the present invention is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0104] The concept, specific structure and technical effects of the present invention will be clearly and completely described below in conjunction with the embodiments and the drawings, so as to fully understand the purpose, scheme and effects of the present invention.

[0105] It should be noted that all the technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of the present invention. The terms used in the description of the present invention are only for describing specific embodiments, rather than for limiting the present invention. The term "and / or" used herein includes any combination of one or more related listed items.

[0106] It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various elements, these elements should not be limited to these terms. These terms are only used to distinguish elements of the same type from each other. The use of any and all examples or exemplary language provided herein (such as "for example", "such as", etc.) is only intended to better illustrate the embodiments of the present invention and will not impose a limitation on the scope of the present invention unless otherwise required.

[0107] Referring to Figure 1 , according to the electricity supplement calculation instrument for the metering device of the present invention, it includes a power supply circuit, a power parameter sampling channel module, an analog circuit, a data acquisition and metering processor circuit, and a control and processing module. The power supply circuit supplies power to partial circuits such as the analog circuit, the A / D conversion module, the data acquisition and metering processor circuit, and the control and processing module circuit respectively. The voltage sampling channel module and the current sampling channel module collect power parameters such as voltage and current accessed to the metering device in real time during on-site verification. The voltage sampling channel module and the current sampling channel module are connected to the analog circuit, and the analog circuit, the A / D conversion module, the data acquisition and metering processor circuit, and the control and processing module are connected in sequence.

[0108] The voltage sampling channel module includes a voltage sampling circuit and a voltage range switching circuit, and is used to access the electricity supplement end of the metering device to collect voltage values. The current sampling channel module includes current transformer sampling, clamp meter sampling, current sampling circuit switching, and current range switching, and is used to access the electricity supplement end of the metering device to collect current values.

[0109] The analog board module serves as the motherboard of the supplement calculation instrument according to the present invention. It not only connects the voltage sampling channel module and the current sampling channel module, but is also associated with the data acquisition and metering processor circuit control and processing module circuit. The analog circuit is connected to the A / D conversion module, and the output end of the A / D conversion module circuit is connected to the data acquisition and metering processor circuit.

[0110] The data acquisition and metering processor circuit includes a DSP high-speed processor and a calculation input / output module. The data acquisition and metering processor circuit is connected to the A / D conversion module through an SPI interface, connected to the metering input / output module through an I / O interface. The metering input / output module outputs a standard electricity pulse signal for calibrating the accuracy of the standard meter, and is connected to the control and processing module circuit through a serial port.

[0111] The control and processing module circuit includes an ARM processor, a capacitive touch screen, and a memory. The ARM processor is connected to the data acquisition and metering processor circuit through a serial port, connected to the capacitive touch screen through an I / O interface, and realizes the reading of the data stored in the metering device by means of 485, carrier, etc.

[0112] Among them, the analog board module is connected to the interface panel of the supplement calculation instrument, such asFigure 2 As shown below. The description of the interface is as follows.

[0113] 1. Host USB port: Connect external devices such as USB flash drives, barcode scanners, wireless keyboards, and mice. 2. Network port / expansion port: Connect to the network cable to access the Internet / expansion function ports. 3. Pulse 1 interface: Connect to the photoelectric sampler, pulse line (pulse input, pulse output, manual switch). 4. Pulse 2 interface: Connect to the photoelectric sampler, pulse line (pulse input, pulse output, manual switch). 5. Phase C clamp meter port: Connect 1A clamp, 5A clamp, 20A clamp, 100A clamp, 500A clamp, 1000A clamp, 2500A clamp. 6. Phase B clamp meter port: Connect 1A clamp, 5A clamp, 20A clamp, 100A clamp, 500A clamp, 1000A clamp, 2500A clamp. 7. Phase A clamp meter port: Connect 1A clamp, 5A clamp, 20A clamp, 100A clamp, 500A clamp, 1000A clamp, 2500A clamp. 8. Phase C current terminal port: Connect the phase C current output line (phase C current flows out); 9. Phase C current terminal port: Connect the phase C current input line (phase C current flows in); 10. Phase B current terminal port: Connect the phase B current output line (phase B current flows out). 11. Phase B current terminal port: Connect the phase B current input line (phase B current flows in). 12. Phase A current terminal port: Connect the phase A current output line (phase A current flows out). 13. Phase A current terminal port: Connect the phase A current input line (phase A current flows in). 14. Phase B voltage terminal port: Connect the phase B voltage line. 15. Phase A voltage terminal port: Connect the phase A voltage line. 16. Phase C voltage terminal port: Connect the phase C voltage line. 17. Voltage common terminal port: Connect the neutral voltage line. 18. Power switch: First, turn it to the "Online" (On) position: Indicates online power supply, and the instrument power is taken from any two-phase voltages on-site or Micro USB; Second, turn it to the "○" position: Indicates shutdown, and the instrument can be charged by connecting the Micro USB data cable in the shutdown state; Third, turn it to the "Internal connection" (Battery) position: Indicates battery power supply, and the instrument power is taken from the internal battery. 19. Micro USB port: Connect the Micro USB data cable for charging or connect the adapter with a 5V Micro USB port to supply power to the instrument.

[0114] In one embodiment, the main function of the data acquisition and metering processor circuit is to receive the digital signals of the voltage and current to be calibrated, and at the same time receive the pulses of the meter to be calibrated and calculate the cumulative power value within the set number of turns according to the meter constant, number of turns, and number of acquisition pulses set by the ARM host computer program, and perform real-time analysis and calculation on the digital signal stream of the voltage and current to be calibrated to obtain the required electrical parameters such as voltage, current, waveform distortion degree, harmonic content, active power / energy, reactive power / energy, apparent power, phase, power factor, and frequency.

[0115] In one embodiment, the control processing module includes a retroactive measurement module and a meter reading module. The meter reading module includes communication meter reading methods such as a 232 communication module, a 485 communication module, and a carrier communication module. The 232 communication module, 485 communication module, and carrier communication module of the meter reading module are connected to the ARM processor module, which can be used to realize the function of reading and collecting the power record data of the metering device. The control processing module also includes a capacitive touch screen. It uses a large-screen color liquid crystal display to display nuclear test parameters and control the instructions sent to the data acquisition and metering processor circuit. It can simultaneously display three-phase voltage, current, phase angle, power, vector diagram, and discrimination of the incorrect wiring method of the metering device. The input / output module of the control processing module can exchange data with a computer and a USB storage device through a USB interface.

[0116] In one embodiment, the control processing module realizes the acquisition of the stored data records of the metering device through communication modules such as a 232 communication module, a 485 communication module, and a carrier communication module, including instantaneous voltage, current, active power, reactive power, reactive power, power factor, and load curve records, and the acquisition of event records of the metering device. If there are fault records such as voltage loss and current loss in the metering device, the start time, duration, voltage, current, active power, reactive power, power factor, total active power, total reactive power, current demand, etc. during the voltage loss and current loss faults can be read.

[0117] In one embodiment, the retroactive measurement module analyzes and judges the wiring condition of the metering device by collecting on-site electrical parameter data information such as voltage, current, and power factor of the metering device, and judges whether there are fault problems, determines the cause of the fault, and then determines a reasonable calculation method for retroactive power measurement. At the same time, it reads the electrical power data information stored in the metering device through methods such as the 232 communication module, 485 communication module, and carrier communication module of the control processing module, analyzes and judges possible fault information such as voltage loss, current loss, phase break, and short circuit in the metering device. At the same time, combined with the on-site collection of electrical parameter data such as voltage, current, and power factor of the metering device by the accurate retroactive power measurement instrument, it is convenient to quickly calculate the retroactive power measurement problem when a fault occurs.

[0118] In an application scenario, the precise calculation instrument for electricity quantity recovery of the metering device comprehensively reads data from a multifunctional meter, reads relevant data such as voltage, current, power, voltage loss, current loss, angle, event record, incorrect wiring condition, load curve, etc., and on-site collects the voltage, current, transformation ratio, angle, power factor and wiring condition of the metering device. Classify and analyze the data recorded back. When a voltage loss fault type occurs, find out the voltage loss time and the load condition during the voltage loss time period, and then calculate the corresponding recovered electricity quantity for the corresponding data; when a current loss fault type occurs, find out the abnormal current data, analyze the abnormal reason, and calculate the electricity quantity that needs to be recovered; according to the voltage, current, angle and wiring actually measured on-site, judge the corresponding power factor deviation and then deduce the electricity quantity that should be available under the correct wiring as the basis for the recovered and refunded electricity quantity. Analyze the cause of the event through the load curve data, and give corresponding detailed analysis results for the start time, end time, reason for abnormal power consumption, wiring condition, etc., give the calculation formula and calculate the corresponding electricity quantity, compile the corresponding data into a chart and give a report for on-site confirmation and signature. The program implementation principle block diagram is as Figure 3 shown.

[0119] Refer to Figure 4 , the technical solution of the present invention is a method for processing electricity quantity recovery and refund based on digital twin, which is applied to an electric energy metering device and at least includes the following steps:

[0120] S100. Determine the measurement period for electricity quantity recovery and refund, its start time and end time, and start diagnosing the fault type during the fault period of the electric energy metering device and collecting the electricity load data for each recording time interval from this start time;

[0121] S200. Obtain the actual operation data for each recording time interval according to the data associated with the electricity load data of the fault type and the electricity load data;

[0122] S300. The digital twin model obtains the actual electric energy for each recording time interval according to the input electricity load data and actual operation data, and determines the recovered and refunded electricity quantity for the measurement period of electricity quantity recovery and refund.

[0123] Specific implementation manner of step S100

[0124] In the embodiments of the present invention, by utilizing information such as the functional parameters, environmental parameters, operation history data, and fault characteristics of the electric energy metering device, including power load data such as the voltage, current, active power, reactive power, power factor, total forward active electric energy, and total reactive electric energy of the electric energy metering device, as well as the fault period (electricity quantity retroactive measurement period), a digital mirror image of the electric energy metering device is constructed in the virtual space of the software system, and a digital twin system of the electric energy metering device in the virtual space is invented. Through the input operation data of the electric energy metering device, the system can perform feature mining and processing analysis on the operation state of the electric energy metering device, supplemented by means such as load curve analysis and fault type judgment. Through the fault period data of the electric energy metering device and digital twin technology, the starting moment and ending moment of the metering inaccuracy of the electric energy metering device are accurately defined, and the true operation data of each recording time interval is restored according to the recording data of each recording time interval, accurately tracing the true operation data and true electricity consumption during the fault period. At the same time, combined with the recorded electricity consumption recorded by the inaccurate electric energy metering device, the accurate retroactive and supplementary electricity quantity is automatically calculated, realizing the automatic calculation of the accurate retroactive and supplementary electricity quantity based on the digital twin system. The present invention can not only calculate the retroactive and supplementary electricity quantity for the incorrect wiring of the electric energy metering device, but also accurately calculate the retroactive and supplementary electricity quantity in the case of metering inaccuracy of the electric energy metering device such as voltage loss, current loss, voltage and current transformer faults, meter metering faults, and reactive overcompensation.

[0125] Furthermore, the embodiments of the present invention are applicable to various types of electric energy metering devices, including three-phase four-wire electric energy metering devices and three-phase three-wire electric energy metering devices. The fault types applicable to the embodiments of the present invention include various incorrect wirings, voltage loss faults, current loss faults, etc., further including problems such as voltage loss, current loss, poor contact, incorrect wiring, and metering device faults. The incorrect wiring of the metering device mainly includes phase sequence recording, reverse polarity connection of the voltage transformer, reverse polarity connection of the current transformer, poor grounding of the common point, suspension, and mismatch between the voltage and current phase sequences of the metering element. The phase sequence recording is mainly that the wiring phase sequences of the three-phase four-wire electric energy metering device, three-phase three-wire electric energy metering device, voltage transformer, and current transformer do not correspond. When the phase sequence recording or polarity connection is reversed, the voltage and current wirings of the same element are out of phase. While the metering device has incorrect wiring, the metering device may also have fault phenomena such as abnormal metering voltage, abnormal metering current, and abnormal power factor.

[0126] Among them, for different electric energy metering devices and different fault types, the calculation methods of the retroactive and supplementary electricity quantity are different. After determining the electricity quantity retroactive measurement period and its starting moment and ending moment, the system selects different power load data according to the type of the electric energy metering device and the fault type to calculate the retroactive and supplementary electricity quantity.

[0127] In one embodiment, in the embodiment of the present invention, for a three-phase four-wire electric energy metering device, when the fault type is incorrect wiring, the selected electrical load data includes the recorded active power of each phase and the recorded reactive power of each phase, or the read electrical load data includes the recorded current of each phase, the recorded voltage of each phase, and the recorded power factor of each phase.

[0128] In one embodiment, in the embodiment of the present invention, for a three-phase three-wire electric energy metering device, when the fault type is incorrect wiring, the selected electrical load data includes the recorded active power of the first metering element and the second metering element, and the recorded reactive power of the first metering element and the second metering element, or the selected data includes the recorded current of the first metering element and the second metering element, the recorded voltage of the first metering element and the second metering element, and the recorded power factor of the first metering element and the second metering element.

[0129] In one embodiment, in the embodiment of the present invention, for a three-phase four-wire electric energy metering device, when the fault type is single-phase voltage loss fault, the selected data includes the recorded current of three phases, the recorded voltage of two normal phases, and the recorded power factor of two normal phases. Or, when the fault type is two-phase voltage loss fault, the recorded electrical load data includes the recorded current of three phases, the recorded voltage of the normal phase, and the recorded power factor of the normal phase.

[0130] In one embodiment, in the embodiment of the present invention, for a three-phase three-wire electric energy metering device, when the fault type is voltage loss of one metering element, the selected electrical load data includes the recorded current of the normal metering element and the voltage-loss metering element, the recorded voltage of the normal metering element, and the recorded power factor of the normal metering element.

[0131] In one embodiment, in the embodiment of the present invention, for a three-phase four-wire electric energy metering device, when the fault type is current-loss fault, the selected recorded current on the primary side of the current-loss phase, the recorded power factor on the primary side of the current-loss phase, the current transformer ratio TA, and the recorded voltage on the user side of the current-loss phase are selected.

[0132] In one embodiment, in the embodiment of the present invention, for a three-phase three-wire electric energy metering device, when the fault type is current-loss of a metering element, the selected recorded current on the primary side of the current-loss metering element, the recorded power factor on the primary side of the current-loss metering element, the current transformer ratio TA, and the recorded voltage of the metering element on the user side of the current-loss metering element are selected.

[0133] Specific implementation manners of step S210 and step S220 (three-phase four-wire electric energy metering device and faults include incorrect wiring)

[0134] In some specific embodiments of the present invention, the electric energy metering device is a three-phase four-wire electric energy metering device, and the fault types include incorrect wiring, then there is:

[0135] When correctly metering, the actual active power expressions (2-A) of phase A, phase B, and phase C are:

[0136] Pa = Ua*Ia*cosΦa, Pb = Ub*Ib*cosΦb, Pc = Uc*Ic*cosΦc,

[0137] In the formula, Pa, Pb, and Pc respectively represent the actual active powers of phase A, phase B, and phase C; Ua, Ub, and Uc respectively represent the actual voltages of phase A, phase B, and phase C, Ia, Ib, and Ic respectively represent the actual currents of phase A, phase B, and phase C; COSΦa, COSΦb, and COSΦc respectively represent the actual power factors of phase A, phase B, and phase C; Φa, Φb, and Φc respectively represent the actual phase angles of phase A, phase B, and phase C.

[0138] When incorrectly wired, the recorded active power expressions (2-B) of phase A, phase B, and phase C are:

[0139] Pa1 = Ua1*Ia1*cosΦa1, Pb1 = Ub1*Ib1*cosΦb1, Pc1 = Uc1*Ic1*cosΦc1,

[0140] In the formula, Pa1, Pb1, and Pc1 respectively represent the recorded active powers of phase A, phase B, and phase C; Ua1, Ub1, and Uc1 are respectively the recorded voltages of phase A, phase B, and phase C, Ia1, Ib1, and Ic1 are respectively the recorded currents of phase A, phase B, and phase C; cosΦa1, cosΦb1, and cosΦc1 respectively represent the recorded power factors of phase A, phase B, and phase C; Φa1, Φb1, and Φc1 represent the recorded phase angles of phase A, phase B, and phase C.

[0141] According to the power consumption load correlation data (refer to the following formula 2-C1), obtain the relationships between the actual voltage, actual current, actual power factor, and actual phase angle and the recorded voltage, recorded current, recorded power factor, and recorded phase angle respectively. Combining the above formulas 2-A and 2-B, the correction factor can be calculated to obtain the correct active power, and finally the retroactive and supplementary electricity consumption during the fault period can be obtained. Among them, the power consumption load correlation data includes voltage correlation data, current correlation data, power factor correlation data, and phase angle correlation data.

[0142] In an embodiment, the electric energy metering device is a three-phase four-wire electric energy metering device, the fault type includes incorrect wiring, and the power consumption load data includes the recorded active power of each phase and the recorded reactive power of each phase, then there is:

[0143] S211. According to the recorded active power Pa of each phase within the nth recording time interval n 1. Pb n 1. Pc n 1 and the recorded reactive power Qa of each phase n 1, Qb n 1, Qc n 1, obtain the measured power factor cosΦa of each phase within the nth recording time interval n 1. cosΦb n 1. cosΦc n 1, to obtain the measured phase angle Φa of each phase within the nth recording time interval n 1. Φb n 1. Φc n 1; where

[0144] The calculation method of the measured power factor of each phase within the nth recording time interval is as follows:

[0145] , , ;

[0146] S212. According to the actual phase angle correlation data of the fault type and the measured phase angle of each phase, obtain the actual phase angle Φa of each phase within the nth recording time interval n . Φb n . Φc n and the actual power factor cosΦa of each phase n . cosΦb n . cosΦc n .

[0147] In an application scenario, the electric energy metering device is a three-phase four-wire electric energy metering device, the wrong wiring method is the wiring method with voltage phase sequence Ub, Ua, Uc and current phase sequence Ia, Ib, Ic, and the electrical load data includes the recorded active power of each phase and the recorded reactive power of each phase. Then there are:

[0148] S211A. According to the recorded active power Pa of each phase within the nth recording time interval n 1. Pb n 1. Pc n 1 and the recorded reactive power Qa of each phase n 1, Qb n 1, Qc n 1, obtain the measured power factor cosΦa of each phase within the nth recording time interval n 1. cosΦb n 1. cosΦc n1. To obtain the measured phase angle Φa of each phase within the nth recording time interval n 1. Φb n 1. Φc n 1; where

[0149] The calculation method of the measured power factor of each phase within the nth recording time interval is as follows:

[0150] , , ;

[0151] S212A. According to the actual phase angle correlation data of the fault type (see Equation 2-C1 below), Equation 2-C11 can be obtained:

[0152] Pa1 = Ua1*Ia1*cosΦa1 = Ub*Ia*cos(120° - Φa),

[0153] Pb1 = Ub1*Ib1*cosΦb1 = Ua*Ib*cos(120° + Φb),

[0154] Pc1 = Uc1*Ic1*cosΦc1 = Uc*Ic*cosΦc,

[0155] Based on the above Equation 2-C11, the relationship between the actual phase angle and the recorded phase angle can be obtained, that is, Φa1 = 120° - Φa, Φb1 = 120° + Φb, Φc1 = Φc. Thus, through the obtained measured phase angle of each phase, the actual phase angle Φa of each phase within the nth recording time interval can be obtained n 、Φb n 、Φc n and the actual power factor cosΦa of each phase n 、cosΦb n 、cosΦc n , where

[0156] The actual phase angle Φa of each phase within the nth recording time interval n 、Φb n 、Φc n is calculated as follows:

[0157] Φa n = 120° - arccos(cosΦa n 1),

[0158] Φb n = arccos(cosΦb n 1) - 120°,

[0159] Φc n = arccos(cosΦc n 1).

[0160] In one embodiment, in some specific embodiments of the present invention, the electric energy metering device is a three-phase four-wire electric energy metering device, the fault types include incorrect wiring, and the electrical load data includes the recorded current of each phase, the recorded voltage of each phase, and the recorded power factor of each phase. Then, there is:

[0161] S221. According to the voltage correlation data, current correlation data, and power factor correlation data of the fault type, and the recorded voltage Ua of each phase in the nth recording time interval n 1, Ub n 1, Uc n 1, the recorded current Ia of each phase n 1, Ib n 1, Ic n 1, and the recorded power factor cosΦa of each phase n 1, cosΦb n 1, cosΦc n 1, obtain the measured active power of each phase in the nth recording time interval; where

[0162] The measured active power Pa of each phase in the nth recording time interval n 1, Pb n 1, Pc n 1 is calculated as follows:

[0163] Pa n 1 = Ua n 1 * Ia n 1 * cosΦa n 1,

[0164] Pb n 1 = Ub n 1 * Ib n 1 * cosΦb n 1,

[0165] Pc n 1 = Uc n 1 * Ic n 1 * cosΦc n 1,

[0166] S222. According to the recorded power factor, obtain the measured phase angle Φa of each phase in the nth recording time interval n 1, Φb n 1, Φc n 1; according to the actual phase angle correlation data of the fault type and the measured phase angle, obtain the actual phase angle Φa of each phase in the nth recording time intervaln , Φb n , Φc n and the actual power factor.

[0167] In an application scenario, the power metering device is a three-phase four-wire power metering device, and the incorrect wiring method is the wiring method with voltage phase sequence Ub, Ua, Uc and current phase sequence Ia, Ib, Ic. The electrical load data includes the recorded active power of each phase and the recorded reactive power of each phase. Then, there is:

[0168] S221A. According to the voltage correlation data, current correlation data, and power factor correlation data of the fault type, and the recorded voltage Ua of each phase in the nth recording time interval n 1. Ub n 1. Uc n 1, the recorded current Ia of each phase n 1. Ib n 1. Ic n 1 and the recorded power factor cosΦa of each phase n 1. cosΦb n 1. cosΦc n 1, obtain the measured active power of each phase in the nth recording time interval; where

[0169] The measured active power Pa of each phase in the nth recording time interval n 1. Pb n 1. Pc n 1 is calculated as follows:

[0170] Pa n 1 = Ua n 1 * Ia n 1 * cosΦa n 1,

[0171] Pb n 1 = Ub n 1 * Ib n 1 * cosΦb n 1,

[0172] Pc n 1 = Uc n 1 * Ic n 1 * cosΦc n 1,

[0173] S222A. According to the recorded power factor, obtain the measured phase angle Φa of each phase in the nth recording time interval n 1. Φb n 1. Φc n1; According to the actual phase angle correlation data of the fault type (see Equation 2-C1 below), Equation 2-C11 can be obtained:

[0174] Pa1 = Ua1*Ia1*cosΦa1 = Ub*Ia*cos(120° - Φa),

[0175] Pb1 = Ub1*Ib1*cosΦb1 = Ua*Ib*cos(120° + Φb),

[0176] Pc1 = Uc1*Ic1*cosΦc1 = Uc*Ic*cosΦc,

[0177] According to the above Equation 2-C11, the relationship between the actual phase angle and the recorded phase angle can be obtained, that is, Φa1 = 120° - Φa, Φb1 = 120° + Φb, Φc1 = Φc. Thus, through the obtained measured phase angle, the actual phase angle Φa of each phase within the nth recording time interval can be obtained n 、Φb n 、Φc n and the actual power factor cosΦa n 、cosΦb n 、cosΦc n , where

[0178] The calculation methods of the actual phase angles Φa n 、Φb n 、Φc n of each phase within the nth recording time interval are as follows:

[0179] Φa n = 120° - arccos(cosΦa n 1),

[0180] Φb n = arccos(cosΦb n 1) - 120°,

[0181] Φc n = arccos(cosΦc n 1).

[0182] Furthermore, when the electric energy metering device is a three-phase four-wire electric energy metering device, in some incorrect wiring cases under different embodiments, the recorded active power of phases A, B, and C and the recorded reactive power of phases A, B, and C, their expressions (2-C1) are as follows. Among them, the electrical load correlation data can also be obtained through Equation (2-C1).

[0183]

[0184]

[0185] Specific implementation of step S310 (three-phase four-wire power metering device and fault types include incorrect wiring)

[0186] S311. Obtain the correction factor for each phase within the nth recording time interval based on the recorded power factor cosΦa n 1. cosΦb n 1. cosΦ n c1 and the actual power factor cosΦa n 、cosΦb n 、cosΦc n , and obtain the correction factor for each phase within the nth recording time interval; where

[0187] The correction factor Ka n 、Kb n 、Kc n for each phase within the nth recording time interval is calculated as follows:

[0188] Ka n = cosΦa n / cosΦa n 1,

[0189] Kb n = cosΦb n / cosΦb n 1,

[0190] Kc n = cosΦc n / cosΦc n 1,

[0191] S312. Obtain the correct active power for each phase within the nth recording time interval based on the correction factor and the measured active power, so as to obtain the actual electric energy and the actual electricity consumption for each phase within the nth recording time interval; where

[0192] The correct active power PA n 、PB n 、PC n for each phase within the nth recording time interval is calculated as follows:

[0193] PA n = Ka n *Pa n 1, PB n = Kb n *Pb n 1, PC n = Kc n *Pc n 1,

[0194] The actual electric energy Ea of each phase within the nth recording time interval n , Eb n , Ec n is calculated as follows:

[0195] Ea n = PA n * t, Eb n = PB n * t, Ec n = PC n * t,

[0196] where t represents the duration of each recording time interval;

[0197] According to the measurement period of electricity quantity recovery and refund, the actual electricity quantities EA, EB, and EC of each phase are obtained, and their calculation methods are as follows:

[0198] ,

[0199] ,

[0200] ,

[0201] where n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the measurement period of electricity quantity recovery and refund;

[0202] S313. Obtain the actual total electricity quantity EZ = EA + EB + EC of the electric energy metering device, and obtain the error electricity quantity EX of the measurement period of electricity quantity recovery and refund, so as to obtain the recovery and refund electricity quantity E = EZ – EX of the measurement period of electricity quantity recovery and refund.

[0203] Specific implementation manners of step S230 and step S240 (three-phase three-wire electric energy metering device and the fault includes incorrect wiring)

[0204] In some specific embodiments of the present invention, when the electric energy metering device is a three-phase three-wire electric energy metering device, for the calculation of the recovery and refund electricity quantity in the case of the fault type of incorrect wiring, the actual phase angle and the actual power factor can also be obtained according to the recorded active power of the first metering element and the second metering element, the recorded reactive power of the first metering element and the second metering element, and the power consumption load correlation data acquired by the data acquisition module, and the actual phase angle and the actual power factor can also be obtained according to the recorded current of the first metering element and the second metering element, the recorded voltage of the first metering element and the second metering element, the recorded power factor of the first metering element and the second metering element, and the power consumption load correlation data acquired by the data acquisition module,

[0205] In one embodiment, the electric energy metering device is a three-phase three-wire electric energy metering device, the fault types include incorrect wiring, the electrical load data includes the recorded active power of the first metering element and the second metering element, and the recorded reactive power of the first metering element and the second metering element, then there is:

[0206] S231. According to the recorded active power P1 n ’ and P2 n ’ of the first metering element and the second metering element in the nth recording time interval, and the recorded reactive power Q1 n ’ and Q2 n ’ of the first metering element and the second metering element, obtain the measured power factors cosΦ1 n ’ and cosΦ2 n ’ of the first metering element and the second metering element in the nth recording time interval, so as to obtain the measured phase angles Φ1 n ’ and Φ2 n ’ of each phase in the nth recording time interval; where

[0207] The calculation method of the measured power factors of the first metering element and the second metering element in the nth recording time interval is as follows:

[0208] , ,

[0209] S232. According to the actual phase angle correlation data of the fault type and the measured phase angles of the first metering element and the second metering element, obtain the actual phase angles Φ1 n and Φ2 n of the first metering element and the second metering element in the nth recording time interval, and the actual power factors cosΦ1 n and cosΦ2 n of each phase;

[0210] In one embodiment, the electric energy metering device is a three-phase three-wire electric energy metering device, the fault types include incorrect wiring, the electrical load data includes the recorded current of the first metering element and the second metering element, the recorded voltage of the first metering element and the second metering element, and the recorded power factor of the first metering element and the second metering element;

[0211] S241. According to the electrical load correlation data of the fault type, and the recorded voltage U1 n ’ and U2 n ’ of the first metering element and the second metering element in the nth recording time interval, the recorded current I1 n ’ and I2 n ’ of the first metering element and the second metering element, and the recorded power factor cosΦ1 n’, cosΦ2 n ’, obtain the measured active power of the first metering element and the second metering element within the nth recording time interval; wherein,

[0212] The measured active power Pa1 of the first metering element and the second metering element within the nth recording time interval n ’, Pb2 n ’ are calculated as follows:

[0213] P1 n ’ = U1 n ’*I1 n ’*cosΦ1 n ’,

[0214] P2 n ’ = U2 n ’*I2 n ’*cosΦ2 n ’,

[0215] S242. Obtain the measured phase angles Φ1 n 、Φ2 n of the first metering element and the second metering element within the nth recording time interval according to the recorded power factor; according to the actual phase angle correlation data of the fault type and the measured phase angles, obtain the actual phase angles Φ1 n 、Φ2 n of each phase and the actual power factor within the nth recording time interval.

[0216] Specific implementation manner of step S320 (three-phase three-wire electric energy metering device and the fault type includes incorrect wiring)

[0217] S321. Obtain the correction factors of the first metering element and the second metering element within the nth recording time interval according to the measured power factor and the actual power factor; wherein,

[0218] The correction factors K1 n 、K2 n of the first metering element and the second metering element within the nth recording time interval are calculated as follows:

[0219] K1 n = cosΦ1 n / cosΦ1 n ’, K2 n = cosΦ2 n / cosΦ2 n ’,

[0220] S322. Obtain the correct active power of the first metering element and the second metering element within the nth recording time interval according to the correction factor and the recorded active power, so as to obtain the actual electric energy of the first metering element and the second metering element and the actual electricity consumption of each phase within the nth recording time interval; where,

[0221] The correct active power P n 10, P n 20 is calculated as follows:

[0222] P10 n = K1 n *P1 n ’, P20 n = K2 n *P2 n ’,

[0223] The actual electric energy E1 n , E2 n of the first metering element and the second metering element within the nth recording time interval is calculated as follows:

[0224] E1 n = P10 n *t, E2 n = P20 n *t,

[0225] In the formula, t represents the duration of each recording time interval;

[0226] Obtain the actual electricity consumption E1 and E2 of the first metering element and the second metering element according to the electricity quantity refund and supplement measurement period, and their calculation methods are as follows:

[0227] ,

[0228] ,

[0229] In the formula, n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the electricity quantity refund and supplement measurement period;

[0230] S323. Obtain the actual total electricity quantity EZ = E1 + E2 of the electric energy metering device, and obtain the incorrect electricity quantity EX during the electricity quantity refund and supplement measurement period, so as to obtain the refund and supplement electricity quantity E = EZ – EX during the electricity quantity refund and supplement measurement period.

[0231] Further, the method of the embodiments of the present invention is also applicable to a three-phase three-wire electric energy metering device. In some cases of incorrect wiring of the three-phase three-wire electric energy metering device in different embodiments, the recorded active power of the first metering element and the second metering element, and the recorded reactive power of the first metering element and the second metering element are expressed as follows in formula (2-C2). Among them, the power consumption load-related data can also be obtained through formula (2-C2).

[0232]

[0233]

[0234] Specific implementation manners of step S250 and step 330 (three-phase four-wire electric energy metering device and the fault includes single-phase voltage loss fault)

[0235] In some specific embodiments of the present invention, the electric energy metering device is a three-phase four-wire electric energy metering device, the fault type includes single-phase voltage loss fault, and the power consumption load data includes the recorded current of the voltage-loss phase, the recorded voltages of the two normal phases, and the recorded power factors of the two normal phases;

[0236] S250. Set the actual voltage of the voltage-loss phase in the nth recording time interval to be equal to the arithmetic mean of the recorded voltages of the two normal phases; set the actual power factor of the voltage-loss phase in the nth recording time interval to be equal to the arithmetic mean of the recorded power factors of the two normal phases;

[0237] S331. According to the actual voltage U un of the voltage-loss phase, the actual power factor cosΦ un of the voltage-loss phase, and the recorded current I un of the voltage-loss phase, obtain the actual active power of the voltage-loss phase in the nth recording time interval; where

[0238] the calculation method of the actual active power P un of the voltage-loss phase in the nth recording time interval is as follows:

[0239] P un = U un * I un * cosΦ un ,

[0240] S332. According to the power quantity retroactive measurement period and the actual active power of the voltage-loss phase, obtain the actual electric energy E un of the voltage-loss phase in the nth recording time interval to obtain the actual electric quantity E u of the voltage-loss phase during the power quantity retroactive measurement period; where

[0241] the calculation method of the actual electric quantity E u of the voltage-loss phase during the power quantity retroactive measurement period is as follows:

[0242] ,

[0243] where t is the duration of each recording time interval; n is the nth recording time interval, and the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the electricity quantity retroactive measurement period;

[0244] S333. Obtain the actual total electricity quantity EZ of the voltage-loss phase of the electric energy metering device = E u , and obtain the incorrect electricity quantity EX of the voltage-loss phase during the electricity quantity retroactive measurement period, so as to obtain the retroactive electricity quantity E = EZ - EX during the electricity quantity retroactive measurement period.

[0245] In an application scenario, when the electric energy metering device is a three-phase four-wire electric energy metering device and the fault type is voltage loss in phase A while phases B and C are normally metered, due to the voltage loss in phase A, the recorded voltage of phase A is in an abnormal state. At the same time, the recorded power factor of phase A cannot be accurately measured. While the voltages of phases B and C are normal, the actual voltages and actual power factors of phases B and C are the recorded voltages and recorded actual power factors obtained by the data acquisition module. The actual current Ia of phase A is the recorded current obtained by the data acquisition module. Then, the actual voltage Ua of phase A can be replaced by the arithmetic mean of the recorded voltages Ub and Uc of phases B and C, and the actual power factor cosΦa of phase A can be replaced by the arithmetic mean of the recorded power factors cosΦb and cosΦc of phases B and C. The calculation methods of the two are as follows:

[0246] Ua = (Ub + Uc) / 2, cosΦa = (cosΦb + cosΦc) / 2,

[0247] Then, according to the active power expression Pa = Ua * Ia * cosΦa and the actual current (recorded current) of phase A, the actual active power Pa of phase A can be calculated, and the actual active power of phase A is the correct active power of phase A.

[0248] According to the electricity quantity retroactive measurement period and the actual active power of phase A, obtain the actual electric energy E of phase A within the nth recording time interval un and obtain the actual electricity quantity E of phase A within the nth recording time interval u where the actual electricity quantity E of phase A u is the actual total electricity quantity EZ of the voltage-loss phase during the fault period (electricity quantity retroactive measurement period) of the electric energy metering device, that is, EZ = E u . According to the incorrect electricity quantity EX of the voltage loss during the electricity quantity retroactive measurement period, the retroactive electricity quantity E = EZ - EX during the electricity quantity retroactive measurement period can be obtained.

[0249] Specific implementation manners of step S260 and step 340 (three-phase four-wire electric energy metering device and the fault includes two-phase voltage loss fault)

[0250] In some specific embodiments of the present invention, the electric energy metering device is a three-phase four-wire electric energy metering device, the fault type includes two-phase voltage loss fault, and the electrical load data includes the recorded current of the two voltage-loss phases, the recorded voltage of the normal phase, and the recorded power factor of the normal phase. Then,

[0251] S260: Set that the actual voltages of the two voltage-loss phases in the nth recording time interval are equal to the recorded voltage of the normal phase; set that the actual power factors of the two voltage-loss phases in the nth recording time interval are equal to the recorded power factor of the normal phase.

[0252] S341: According to the actual voltages U1 n , U2 n of the two voltage-loss phases, the actual power factors cosΦ1 n , cosΦ2 n of the two voltage-loss phases, and the recorded currents I1 n , I2 n of the two voltage-loss phases, obtain the actual active power of the two voltage-loss phases in the nth recording time interval; where,

[0253] The calculation method of the actual active power P1 n , P2 n of the two voltage-loss phases in the nth recording time interval is as follows:

[0254] P1 n = U1 n * I1 n * cosΦ1 n , P2 n = U2 n * I2 n * cosΦ2 n ,

[0255] S342: According to the power measurement period for electricity refund and compensation, and the actual active power of the two voltage-loss phases, obtain the actual electric energy E1 n , E2 n of the two voltage-loss phases in the nth recording time interval, and obtain the actual electric energy E1, E2 of the two voltage-loss phases during the power measurement period for electricity refund and compensation; where,

[0256] The calculation method of the actual electric energy E of the voltage-loss phase during the power measurement period for electricity refund and compensation is as follows:

[0257] ,

[0258] ,

[0259] Wherein, t is the duration of each recording time interval; n is the nth recording time interval, and the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the electricity quantity refund and compensation measurement period;

[0260] S343. Obtain the actual total electricity quantity EZ = E1 + E2 of the electricity metering device, and obtain the incorrect electricity quantity EX during the electricity quantity refund and compensation measurement period, so as to obtain the refund and compensation electricity quantity E = EZ - EX during the electricity quantity refund and compensation measurement period.

[0261] Specific implementation manners of step S270 and step 350 (three-phase three-wire electricity metering device and the fault type includes voltage loss fault)

[0262] In some specific embodiments of the present invention, the electricity metering device is a three-phase three-wire electricity metering device, the fault type includes voltage loss of one metering element of the three-phase three-wire electricity metering device, the electricity consumption load data includes the recorded current of the normal metering element and the voltage loss metering element, the recorded voltage of the normal metering element, and the recorded power factor of the normal metering element. Then, there is:

[0263] S270. Set the actual voltage of the voltage loss metering element within the nth recording time interval to be equal to the recorded voltage of the normal metering element; set the actual power factor of the voltage loss metering element within the nth recording time interval to be equal to the recorded power factor of the normal metering element;

[0264] S351. According to the actual voltage U un ’ of the voltage loss metering element, the actual power factor cosΦ un ’ of the voltage loss metering element, and the recorded current I un ’ of the two voltage loss phases, obtain the actual active power of the voltage loss metering element within the nth recording time interval; wherein,

[0265] The actual active power P un ’ of the voltage loss metering element within the nth recording time interval is calculated as follows:

[0266] P un ’ = U un ’ * I un ’ * cosΦ un ’ ,

[0267] S352. According to the electricity quantity refund and compensation measurement period and the actual active power of the voltage loss metering element, obtain the actual electricity quantity E un ’ of the voltage loss metering element within the nth recording time interval, so as to obtain the actual electricity quantity E u ’ of the voltage loss metering element during the electricity quantity refund and compensation measurement period; wherein,

[0268] The actual power consumption E of the phase with voltage loss during the power consumption refund and compensation measurement period u is calculated as follows:

[0269] ,

[0270] In the formula, t is the duration of each recording time interval; n is the nth recording time interval, and the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the power consumption refund and compensation measurement period;

[0271] S353. Obtain the actual total power consumption EZ = E u ’ of the phase with voltage loss of the electric energy metering device, and obtain the incorrect power consumption EX of the phase with voltage loss during the power consumption refund and compensation measurement period, so as to obtain the refund and compensation power consumption E = EZ – EX during the power consumption refund and compensation measurement period.

[0272] Specific implementation manners of step S280 and step 360 (three-phase four-wire electric energy metering device and the fault type includes current loss fault)

[0273] In some specific embodiments of the present invention, the electric energy metering device is a three-phase four-wire electric energy metering device, the fault type includes single-phase current loss fault, and the power consumption load data includes the current transformer ratio, the recorded voltage of the phase with current loss, the recorded current on the primary side of the phase with current loss, and the recorded power factor on the primary side of the phase with current loss. Then:

[0274] S170. Determine the power consumption refund and compensation measurement period and its start time and end time, and start diagnosing the fault type during the fault of the electric energy metering device and collecting the power consumption load data of each recording time interval from this start time; wherein, the electric energy metering device is a three-phase four-wire electric energy metering device, the fault type includes single-phase current loss fault, and the power consumption load data includes the current transformer ratio, the recorded voltage of the phase with current loss, the recorded current on the primary side of the phase with current loss, and the recorded power factor on the primary side of the phase with current loss;

[0275] S270. Set the actual current on the user side of the phase with current loss in the nth recording time interval to be equal to the quotient obtained by dividing the recorded current on the primary side of the phase with current loss by the current transformer ratio; set the actual power factor on the user side of the phase with current loss in the nth recording time interval to be equal to the actual power factor on the primary side of the phase with current loss. It can be understood that for a three-phase four-wire electric energy metering device, when a single-phase current loss fault, a two-phase current loss fault, or a three-phase current loss fault occurs, the actual current on the user side of any phase with current loss can be calculated by the recorded current on the primary side of its corresponding phase with current loss and the current transformer ratio. At the same time, the actual power factor on the user side of any phase with current loss can be obtained by the power factor on the primary side of its corresponding phase with current loss.

[0276] S361. According to the recorded voltage U of the phase with current loss in, the actual power factor cosΦ on the user side of the phase with current loss in and the actual current I on the user side of the phase with current loss in , to obtain the actual active power of the phase with current loss within the nth recording time interval; where

[0277] the actual active power P of the phase with current loss within the nth recording time interval in is calculated as follows:

[0278] P in = U in * I in * cosΦ in ,

[0279] S362. According to the measurement period of electricity refund and compensation, and the actual active power of the phase with current loss, obtain the actual electric energy E of the phase with current loss within the nth recording time interval in , to obtain the actual electricity quantity E of the phase with current loss during the measurement period of electricity refund and compensation i ; where

[0280] the actual electricity quantity E of the phase with current loss during the measurement period of electricity refund and compensation i is calculated as follows:

[0281] ,

[0282] In the formula, t is the duration of each recording time interval; n is the nth recording time interval, and the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the measurement period of electricity refund and compensation;

[0283] S363. Obtain the actual total electricity quantity EZ = E of the phase with current loss of the electricity metering device i , and obtain the incorrect electricity quantity EX of the phase with current loss during the measurement period of electricity refund and compensation, so as to obtain the refund and compensation electricity quantity E = EZ – EX during the measurement period of electricity refund and compensation.

[0284] In an application scenario, the electricity metering device is a three-phase four-wire electricity metering device, the fault type is current loss in phase A and normal metering in phases B and C. Due to current loss in phase A, the recorded current of phase A on the user side is in an abnormal state. At the same time, the recorded power factor of phase A cannot be accurately measured, while the electricity quantities of phases B and C are normally measured. The actual voltage Ua of phase A is the recorded voltage obtained by the data acquisition module. Then the actual current Ia in on the user side of phase A can be calculated from the current Ia in ' of phase A on the primary side and the current transformer ratio TA. The actual power factor cosΦa in of phase A can be the recorded power factor cosΦa in'Instead, their calculation methods are as follows:

[0285] Ia in = Ia in ’ / TA,

[0286] cosΦa in = cosΦa in ’,

[0287] Then, according to the active power expression Pa in =Ua in *Ia in *cosΦa in and the actual voltage (recorded voltage) of phase A, the actual active power Pa of phase A can be calculated in , and the actual active power of phase A is the correct active power of phase A.

[0288] According to the measurement period of electricity quantity refund and compensation, and the actual active power of phase A, the actual electric energy E of phase A within the nth recording time interval is obtained in to obtain the actual electricity quantity E of phase A within the measurement period of electricity quantity refund and compensation i , where the actual electricity quantity E of phase A i is the actual total electricity quantity EZ of phase A during the failure of the electric energy metering device, that is, EZ = E i . Finally, according to the incorrect electricity quantity EX of phase A in the measurement period of electricity quantity refund and compensation, the supplementary electricity quantity E = EZ – EX of the measurement period of electricity quantity refund and compensation can be obtained.

[0289] It can be understood that for a three-phase four-wire electric energy metering device, when a current loss fault occurs in phase B, the actual current of phase B can be calculated through the recorded current of the corresponding primary side of phase B and the current transformer ratio, and the actual power factor of the user side of phase B can be obtained through the power factor of the primary side of phase B. At the same time, when a current loss fault occurs in phase C, the actual current of phase C can be calculated through the recorded current of the corresponding primary side of phase C and the current transformer ratio, and the actual power factor of the user side of phase C can be obtained through the power factor of the primary side of phase C.

[0290] Specific implementation manners of step S290 and step 370 (three-phase three-wire electric energy metering device and the fault type includes current loss fault)

[0291] In some specific embodiments of the present invention, the electric energy metering device is a three-phase three-wire electric energy metering device, the fault type includes a current loss fault of one metering element, and the electrical load data includes the current transformer ratio, the recorded voltage of the current loss metering element, the recorded current of the primary side of the current loss metering element, and the recorded power factor of the primary side of the current loss metering element. Then:

[0292] S290. Set the actual current of the user side of the flow-loss metering element in the nth recording time interval to be equal to the quotient obtained by dividing the recorded current on the primary side of the flow-loss metering element by the current transformer ratio; set the actual power factor of the user side of the flow-loss metering element in the nth recording time interval to be equal to the actual power factor on the primary side of the flow-loss metering element.

[0293] S371. According to the recorded voltage U in ’ of the flow-loss metering element, the actual power factor cosΦ in ’ of the user side of the flow-loss metering element, and the actual current I in ’ of the user side of the flow-loss metering element, obtain the actual active power of the flow-loss metering element in the nth recording time interval; where

[0294] the actual active power P in ’ of the flow-loss metering element in the nth recording time interval is calculated as follows:

[0295] P in ’ = U in ’ * I in ’ * cosΦ in ’.

[0296] S372. According to the power quantity recovery and compensation measurement period and the actual active power of the flow-loss metering element, obtain the actual electric energy E in ’ of the flow-loss metering element in the nth recording time interval to obtain the actual electric energy E i ’ of the flow-loss metering element during the power quantity recovery and compensation measurement period; where

[0297] the actual electric energy E i ’ of the flow-loss metering element during the power quantity recovery and compensation measurement period is calculated as follows:

[0298] ,

[0299] In the formula, t represents the duration of each recording time interval; n represents the nth recording time interval, and the value range of n is

[0300] (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the power quantity recovery and compensation measurement period.

[0301] S373. Obtain the actual total electric energy EZ = E i ’ of the loss-of-flow phase of the electric energy metering device, and obtain the incorrect electric energy EX of the loss-of-flow phase during the power quantity recovery and compensation measurement period, so as to obtain the recovery and compensation electric energy E = EZ – EX during the power quantity recovery and compensation measurement period.

[0302] It can be understood that for a three-phase three-wire electric energy metering device, when a loss-of-current fault occurs in two metering elements, the actual current and actual power factor of the user of any one metering element can be obtained according to the above step S290.

[0303] The digital twin model of the embodiment of the present invention traces the correct electricity load data for each recording time interval from the start time to the end time in the electricity retroactive measurement period according to the type of the electric energy metering device and the type of the fault, so as to restore the actual electricity quantity for each recording time interval one by one, achieving the effect of simulating the normal operation of the electric energy metering device.

[0304] Furthermore, the digital twin model of the electric energy metering device of the embodiment of the present invention can also trace the situation where the electricity quantity is under-recorded due to reactive over-compensation in a three-phase three-wire metering device. Generally, when the three-phase three-wire electric energy metering device is confirmed to be correctly wired, by reading the recorded load data and finding the phenomenon of negative active power, it can be judged that there is a situation of reactive over-compensation in this metering device. In this metering state, there will also be a situation where the electricity quantity is under-recorded, so retroactive calculation is also required. For reactive over-compensation, there will be a situation where one element is normally metered and the other metering element has negative power. The processing method for retroactive calculation of the reactive over-compensation electricity quantity is as follows: first, calculate the actual power factor of the reactive over-compensation metering element according to the load data of the normally metered element, and according to the calculated actual power factor, as well as data such as the recorded voltage and recorded current read by the data acquisition module, the actual electricity load during the reactive over-compensation period is automatically accumulated in the digital twin model, and finally, the recorded electricity quantity metered during the reactive over-compensation period of the electric energy metering device is subtracted to accurately calculate the electricity quantity to be retroactively calculated.

[0305] Experimental verification of the electricity retroactive calculation method and system according to the present invention

[0306] Here, the method of the present invention is illustrated with a specific embodiment. The electric energy metering device is a three-phase four-wire electric energy metering device, and the wrong wiring method is the wiring method with voltage phase sequence Ub, Ua, Uc and current phase sequence Ia, Ib, Ic. Then there is:

[0307] At this time, the active power expression of the metered electricity quantity is:

[0308] Pwrong = Ub * Ia * cos(120° - Φa) + Ua * Ib * cos(120° + Φb) + Uc * Ic * cosΦc;

[0309] And the active power expression during correct metering is:

[0310] Pcorrect = Ua * Ia * cosΦa + Ub * Ib * cosΦb + Uc * Ic * cosΦc;

[0311] If the traditional static correction coefficient algorithm is used, it is necessary to assume that the three-phase load is balanced, that is, U = Ua = Ub = Uc, I = Ia = Ib = Ic, cosΦa = cosΦb = cosΦc, then Perror = 0, and the static correction coefficient K = Pcorrect / Perror, so the traditional static correction coefficient algorithm cannot be used for calculation. Based on the digital twin system, the present invention collects the historical operating load data of the power metering device when a fault occurs, restores the actual power consumption load data according to the wrong wiring type, maps and simulates the actual power consumption load of the user when the power metering device line is normally connected (the mapping process refers to Embodiment 1), and then accumulatively calculates the actual power consumption Ej = 533.51 kWh during the entire wrong wiring period of the power metering device according to the power method. The actual power consumption Es = 541.88 kWh when the power metering device is correctly wired in the experimental comparison, and the error is 100 * (Ej - Es) / Es = -1.54%, indicating that the amount of recovered and compensated electricity calculated by using the present invention is more reliable and has a smaller error than the algorithm using the traditional static correction coefficient.

[0312] Here, the method of the present invention is illustrated by another specific embodiment. The power metering device is a three-phase four-wire power metering device, and the wrong wiring method is that the voltage phase sequence is Ua, Uc, Ub, the current phase sequence is Ia, Ib, Ic, and Ia is reversely connected. Then:

[0313] The expression of the measured active power at this time is:

[0314] Perror = Ua * Ia * cos(180° - Φa) + Uc * Ib * cos(120° - Φb) + Ub * Ic * cos(120° + Φc)

[0315] The expression of the active power during correct metering is:

[0316] Pcorrect = Ua * Ia * cosΦa + Ub * Ib * cosΦb + Uc * Ic * cosΦc

[0317] If the traditional static correction factor algorithm is used, it is necessary to assume that the three-phase load is balanced, then U = Ua = Ub = Uc, I = Ia = Ib = Ic, cosΦ = cosΦa = cosΦb = cosΦc, then Pwrong = -2UIcosΦ, Pcorrect = 3UIcosΦ. Therefore, the static correction factor K = Pcorrect / Pwrong = -3 / 2. Using this method, the calculated electricity consumption will be negative and the error value is relatively large. Therefore, using the traditional static correction factor algorithm to calculate the retroactive and supplementary electricity will lead to the recorded results. Based on the digital twin system, the present invention collects the historical operating load data of the electric energy metering device when it is wrongly connected, restores the actual electricity consumption load according to the type of wrong connection, maps the actual electricity consumption load of the user when the line of the electric energy metering device is normally connected according to these data, and then accumulates and calculates the electric energy during the entire wrong connection period of the electric energy metering device according to the electric energy method. Ej = 533.74 kWh, while the actual electricity consumption Es = 541.88 kWh of the experimental comparison meter with normal wiring, and the error is 100*(Ej - Es) / Es = -1.50%. It shows that the electricity reliability calculated by the present invention based on the digital twin system through mapping and accumulation using the historical operating data of the electric energy metering device is very high and is suitable for calculating the retroactive and supplementary electricity when the electric energy metering device fails.

[0318] Further, for a three-phase four-wire electric energy metering device, according to the above expression (2-C1), the actual phase angles Φa, Φb, Φc of phases A, B, and C under each wrong connection can be calculated, and the actual electricity consumption during the wrong connection period can be calculated through the twin digital model. The electricity data and its error during the wrong connection period are calculated through the active power and reactive power data algorithms and the algorithms of voltage, current, and power factor, as shown in the following table:

[0319]

[0320]

[0321]

[0322] Table 1

[0323] In Table 1, Pstatistics and Perror represent the electricity data and error obtained according to the processing method of active power and reactive power, and UIΦstatistics and UIΦerror represent the electricity data and its error obtained according to the processing method of voltage, current, and power factor.

[0324] Through the statistical analysis of Table 1 above, it can be obtained that the method of the present invention can select different data processing methods for calculating the retroactive and supplementary electricity according to the set duration threshold, so that the calculated results are supported by data, have small errors, and high reliability.

[0325] Here, the method of the present invention is illustrated by another specific embodiment. The electric energy metering device is a three-phase three-wire electric energy metering device. The wrong wiring method is that the voltage wiring is Ub, Ua, Uc and the current wiring is Ia, Ic. Then, there is:

[0326] At this time, the power expression measured is:

[0327] Pwrong = Uba * Ia * cos(150° - Φa) + Uca * Ic * cos(30° + Φc)

[0328] The power expression during correct metering is:

[0329] Pcorrect = Uab * Ia * cos(30° + Φa) + Ucb * Ic * cos(30° + Φc)

[0330] If the traditional static correction factor algorithm is used, it is necessary to assume that the three-phase load is balanced. Then, Uba = Uca, Ia = Ic, cosΦ = cosΦa = cosΦc. According to the formula, it is calculated that Pwrong = 0, Pcorrect = √3UIcosΦ. And the existing electronic electric energy metering device will not measure the forward active power during this wrong wiring state. Obviously, the traditional static correction factor algorithm cannot be used to calculate the electricity quantity that needs to be recovered or compensated. The digital twin system of the present invention collects the historical operation data of the electric energy metering device during the fault period, restores the actual electricity consumption of the user according to the fault type, simulates the operation state of the electric energy metering device under normal wiring, and accumulatively calculates the actual electricity quantity during the wrong wiring period (the specific calculation process is shown in the embodiment below). Ej = 7.4117 kWh, and the actual electricity consumption under normal wiring is Es = 7.476 kWh. The error is 100 * (Ej - Es) / Es = -0.86%, indicating that the present invention is also applicable to the calculation of the recovered or compensated electricity quantity for the wrong wiring of three-phase three-wire.

[0331] Furthermore, for the three-phase three-wire electric energy metering device, calculate the actual phase angle of each phase under each wrong wiring according to the expression (2 - C2), and then obtain the actual electric energy of each recording time interval through the twin digital model, and automatically accumulatively calculate the actual electricity quantity during the wrong wiring period. Specifically, the test data date is from May 1, 2022 to June 1, 2022. During this period, the meter runs 7.476 kWh. The metering results of various wrong wiring states are compared with this value. The electricity quantity data and its error during the wrong wiring period are calculated by using the active power and reactive power data algorithm and the voltage, current, power factor algorithm. The following table shows:

[0332]

[0333]

[0334] Table 2

[0335] In Table 2, P statistics and P error represent the electricity quantity data and its error obtained by the processing method of active power and reactive power, and UIΦ statistics and UIΦ error represent the electricity quantity data and its error obtained by the processing method of voltage, current, and power factor.

[0336] Through the statistical analysis of the above Table 2, it can be obtained that the retroactive and supplementary electricity quantity calculated according to the method of the present invention has high reliability, and at the same time, it also shows that the method of the present invention is applicable to the retroactive and supplementary metering of electricity quantity for three-phase three-wire incorrect wiring.

[0337] Here, the method of the present invention is illustrated with a specific embodiment. When there is a voltage loss fault in phase A of the electric energy metering device and normal metering in phases B and C, the electricity consumption of phase A is calculated as Ea = 316.2 kWh according to the above method and the collected data. The total electricity consumption calculated by adding the electricity consumption indicated by the meter is Ej = 960.1 kWh. By comparing with the actually normally metered electric energy metering device, the actually normally metered electricity consumption is Es = 949.26 kWh, and the error is 100*(Ej - Es) / Es = 1.15%, which is very close to the original data. Compared with the original method of directly using the theoretical static correction factor algorithm, the error is smaller and it has more reliable use value.

[0338] The present invention is applicable to the incorrect wiring of three-phase four-wire mentioned above, and also applicable to the method of retroactive and supplementary electricity quantity for other unmentioned incorrect wiring of three-phase four-wire, and also applicable to the method of retroactive and supplementary electricity quantity for various incorrect wiring and reactive over-compensation of three-phase three-wire. At the same time, it is also applicable to the metering inaccuracy faults of voltage loss and current loss in three-phase four-wire and three-phase three-wire, and has very general applicability. It can be applied to the retroactive and supplementary metering of electricity quantity for various metering inaccuracy faults of electric energy metering devices in actual work.

[0339] According to the electricity consumption payment habits of power supply departments and users, the digital twin system calculates the true active power Pz (actual power factor) and the recorded active power Px (recorded power factor) based on the start and end times of electricity refund and compensation and the time periods of electricity refund and compensation required each month. The dynamic correction coefficient K = Pz / Px for the time periods of electricity refund and compensation required each month is calculated. According to the electricity refund and compensation amount = (correct electricity amount - recorded electricity amount) = recorded electricity amount × (dynamic correction coefficient - 1), the electricity refund and compensation amounts required each month are calculated, which is convenient for power supply departments and users to refund and compensate the electricity that needs to be refunded and compensated month by month. At the same time, since the power company implements a tiered electricity price system and the electricity charge rates for different time periods of electricity consumption loads are different, the digital twin system also automatically calculates the electricity refund and compensation amounts required for each time period such as peak, flat, valley, and spike during the period when the electric energy metering device is out of calibration based on the input data of the peak, flat, valley, spike and other time period divisions of the electric energy metering device, achieving the purpose of improving the accuracy of electricity refund and compensation amounts. At the same time, it is more convenient for the power supply bureau and users to check the monthly electricity consumption situation, provides more detailed electricity consumption data information for both power supply and use parties, and makes the work progress of electricity refund and compensation smoother.

[0340] The embodiment of the present invention is a method and system for processing electricity refund and compensation data based on digital twin. By fully considering key information such as the switching data of the primary side intelligent circuit breaker, the historical operation data of the metering device, the operating parameters, the operation record of opening the meter cover (fault time), and the fault characteristics, a digital mirror of the electric energy metering device, that is, a digital twin system of the electric energy metering device, is constructed, and a virtual mirror electric energy metering device with the same accuracy level as the physical electric energy metering device is restored, realizing the tracing of the true operation data when the electric energy metering device is out of calibration, and realizing the automatic and accurate calculation of electricity refund and compensation based on digital twin technology. In the case where there are no faults in the current transformer, the accuracy of electricity refund and compensation metering can reach twice the accuracy of the electric energy metering device, that is, for a 0.2S-class meter, it does not exceed ±0.4%, for a 0.5-class meter, it does not exceed ±1%, and the error of the residential meter is within ±2%, achieving the purpose of accurately calculating the electricity refund and compensation amount after the electric energy metering device is out of calibration, maintaining the fairness and justice of electricity trade settlement, protecting the rights and interests of users and power supply enterprises, and at the same time filling the gap in the standard methods and standards for electricity refund and compensation work without data to rely on.

[0341] It should be recognized that the method steps in the embodiments of the present invention can be implemented or carried out by computer hardware, a combination of hardware and software, or computer instructions stored in a non-transitory computer-readable memory. The method can use standard programming techniques. Each program can be implemented in a high-level procedural or object-oriented programming language to communicate with the computer system. However, if necessary, the program can be implemented in assembly or machine language. In any case, the language can be a compiled or interpreted language. In addition, for this purpose, the program can run on a dedicated integrated circuit programmed for this purpose.

[0342] In addition, the operations of the processes described herein can be performed in any suitable order, unless otherwise indicated herein or otherwise clearly contradicted by the context. The processes described herein (or variations and / or combinations thereof) can be performed under the control of one or more computer systems configured with executable instructions and can be implemented as code collectively executed on one or more processors, by hardware, or by a combination thereof. The computer program includes a plurality of instructions executable by one or more processors.

[0343] Furthermore, the method can be implemented in any type of computing platform operatively connected, including but not limited to personal computers, minicomputers, mainframes, workstations, network or distributed computing environments, separate or integrated computer platforms, or in communication with charged particle tools or other imaging devices, etc. Aspects of the present invention can be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into the computing platform, such as a hard disk, optical read and / or write storage medium, RS1M, ROM, etc., such that it can be read by a programmable computer and, when read by the computer, can be used to configure and operate the computer to perform the processes described herein. In addition, the machine-readable code, or portions thereof, can be transmitted via a wired or wireless network. When such media includes instructions or programs that implement the above-described steps in conjunction with a microprocessor or other data processor, the inventions described herein include these and other different types of non-transitory computer-readable storage media. When programmed according to the methods and techniques of the present invention, the present invention can also include the computer itself.

[0344] The computer program can be applied to input data to perform the functions described herein, thereby transforming the input data to generate output data stored in non-volatile memory. The output information can also be applied to one or more output devices such as a display. In a preferred embodiment of the present invention, the transformed data represents physical and tangible objects, including a specific visual depiction of the physical and tangible objects generated on the display.

[0345] The above are only the preferred embodiments of the present invention. The present invention is not limited to the above-described embodiments. As long as it achieves the technical effects of the present invention by the same means, any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the scope of protection of the present invention. Within the scope of protection of the present invention, its technical solutions and / or implementation manners can have various different modifications and variations.

Claims

1. A method for processing electricity quantity recovery and compensation based on digital twin, which is applied to a three-phase three-wire electric energy metering device with incorrect wiring, further comprising: S130. Determine the electricity quantity recovery and compensation measurement period, its start time and end time, and start diagnosing the fault type during the fault of the electric energy metering device from this start time and collecting the electrical load data of each recording time interval; wherein, the fault type includes incorrect wiring, and the electrical load data includes the recorded active power of the first metering element and the second metering element, and the recorded reactive power of the first metering element and the second metering element; S231. Obtain the measured power factors cosΦ1 n ’ and cosΦ2 n ’ of the first metering element and the second metering element in the nth recording time interval according to the recorded active powers P1 n ’ and P2 n ’ of the first metering element and the second metering element, and the recorded reactive powers Q1 n ’ and Q2 n ’ of the first metering element and the second metering element, so as to obtain the measured phase angles Φ1 n ’ and Φ2 n ’ of each phase in the nth recording time interval; wherein, The calculation method of the measured power factor of the first metering element and the second metering element in the nth recording time interval is as follows: , , S232. Obtain the actual phase angles Φ1 n and Φ2 n of the first metering element and the second metering element within the nth recording time interval, as well as the actual power factor cosΦ1 n and cosΦ2 n for each phase, based on the actual phase angle correlation data of the fault type and the measured phase angles of the first metering element and the second metering element S321. Obtain the correction factor of the first metering element and the second metering element in the nth recording time interval according to the measured power factor and the actual power factor; wherein, The correction factors K1 n , K2 n of the first metering element and the second metering element within the nth recording time interval are calculated as follows: K1 n = cosΦ1 n / cosΦ1 n ’ K2 n = cosΦ2 n / cosΦ2 n ’ S322. Obtain the correct active power of the first metering element and the second metering element in the nth recording time interval according to the correction factor and the recorded active power, so as to obtain the actual electric energy and the actual electricity quantity of each phase of the first metering element and the second metering element in the nth recording time interval; wherein, The correct active power P of the first metering element and the second metering element within the nth recording time interval n 10, P n 20 is calculated as follows: P10 n = K1 n *P1 n ’ P20 n = K2 n *P2 n ’ The actual electrical energy E1, E2 of the first metering element and the second metering element within the nth recording time interval is calculated as follows: n , E2 n : E1 n = P10 n *t, E2 n = P20 n *t, In the formula, t represents the duration of each recording time interval; According to the electricity quantity recovery and compensation measurement period, obtain the actual electricity quantities E1 and E2 of the first metering element and the second metering element, and its calculation method is as follows: , , In the formula, n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the electricity quantity recovery and compensation measurement period; S323. Obtain the actual total electricity quantity EZ = E1 + E2 of the electric energy metering device, and obtain the incorrect electricity quantity EX of the electricity quantity recovery and compensation measurement period, so as to obtain the recovery and compensation electricity quantity E = EZ - EX of the electricity quantity recovery and compensation measurement period.

2. A method for processing electricity quantity recovery and compensation based on digital twin, which is applied to a three-phase four-wire electric energy metering device with incorrect wiring, and is characterized in that: S110. Determine the electricity quantity recovery and compensation measurement period, its start time and end time, and start diagnosing the fault type during the fault of the electric energy metering device from this start time and collecting the electrical load data of each recording time interval; wherein, the fault type includes incorrect wiring, and the electrical load data includes the recorded active power of each phase and the recorded reactive power of each phase; S211. Based on the recorded active power Pa of each phase within the nth recording time interval n 1. Pb n 1. Pc n 1 and the recorded reactive power Qa of each phase n 1, Qb n 1, Qc n 1, obtain the measured power factor cosΦa of each phase within the nth recording time interval n 1. cosΦb n 1. cosΦc n 1, to obtain the measured phase angle Φa of each phase within the nth recording time interval n 1. Φb n 1. Φc n 1; wherein, The calculation method of the measured power factor of each phase in the nth recording time interval is as follows: , , ; S212. Obtain the actual phase angles Φa n , Φb n , Φc n of each phase and the actual power factors cosΦa n , cosΦb n , cosΦc n of each phase within the nth recording time interval according to the actual phase angle correlation data of the fault type and the measured phase angles of each phase; S311. Obtain the correction factor of each phase in the nth recording time interval according to the measured power factor and the actual power factor; wherein, The correction factors Ka n , Kb n , Kc n for each phase within the nth recording time interval are calculated as follows: Ka n = cosΦa n / cosΦa n 1, Kb n = cosΦb n / cosΦb n 1, Kc n = cosΦc n / cosΦc n 1; S312. Obtain the correct active power of each phase in the nth recording time interval according to the correction factor and the recorded active power, so as to obtain the actual electric energy and the actual electricity quantity of each phase in the nth recording time interval; wherein, The correct active power PA per phase within the nth recording time interval n , PB n , PC n is calculated as follows: PA n = Ka n *Pa n 1, PB n = Kb n *Pb n 1, PC n = Kc n *Pc n 1; The actual electrical energy Ea of each phase within the nth recording time interval n , Eb n , Ec n is calculated as follows: Ea n = PA n *t, Eb n = PB n *t, Ec n = PC n *t, In the formula, t represents the duration of each recording time interval; According to the electricity quantity recovery and compensation measurement period, obtain the actual electricity quantities EA, EB, and EC of each phase, and its calculation method is as follows: , , , Wherein, n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the electricity quantity retroactive compensation measurement period; S313. Obtain the actual total electricity quantity EZ = EA + EB + EC of the electric energy metering device, and obtain the error electricity quantity EX of the electricity quantity retroactive compensation measurement period, so as to obtain the retroactive compensation electricity quantity E = EZ - EX of the electricity quantity retroactive compensation measurement period.

3. A method for processing electricity quantity retroactive compensation based on digital twin, which is applied to a three-phase four-wire electric energy metering device with incorrect wiring, and is characterized in that: S120. Determine the electricity quantity retroactive compensation measurement period and its start time and end time, and start diagnosing the fault type during the fault of the electric energy metering device and collecting the electricity consumption load data of each recording time interval from this start time; wherein, the fault type includes incorrect wiring, and the electricity consumption load data includes the recorded current of each phase, the recorded voltage of each phase, and the recorded power factor of each phase; S221. According to the power load correlation data of the fault type, and the recorded voltage Ua of each phase within the nth recording time interval n 1. Ub n 1. Uc n 1, the recorded current Ia of each phase n 1. Ib n 1. Ic n 1 and the recorded power factor cosΦa of each phase n 1. cosΦb n 1. cosΦc n 1, obtain the measured active power of each phase within the nth recording time interval; where The measured active power Pa of each phase within the nth recording time interval n 1. Pb n 1. Pc n 1 is calculated as follows: Pa n 1 = Ua n 1*Ia n 1*cosΦa n 1, Pb n 1 = Ub n 1*Ib n 1*cosΦb n 1, Pc n 1 = Uc n 1*Ic n 1*cosΦc n 1, S222. Obtain the measured phase angle Φa of each phase within the nth recording time interval according to the recorded power factor n 1. Φb n 1. Φc n 1. Based on the actual phase angle correlation data of the fault type and the measured phase angle, obtain the actual phase angles Φa n , Φb n , Φc n and the actual power factor for each phase within the nth recording time interval; S311. Obtain the correction factor for each phase based on the recorded power factor cosΦa of each phase n 1. cosΦb n 1. cosΦ n c1 and the actual power factor cosΦa of each phase n 、cosΦb n 、cosΦc n to obtain the correction factor for each phase within the nth recording time interval; where Correction factors Ka n , Kb n , Kc n for each phase during the nth recording time interval are calculated as follows: Ka n = cosΦa n / cosΦa n 1, Kb n = cosΦb n / cosΦb n 1, Kc n = cosΦc n / cosΦc n 1, S312. Obtain the correct active power of each phase in the nth recording time interval according to the correction factor and the measured active power, so as to obtain the actual electric energy and the actual electricity quantity of each phase in the nth recording time interval; wherein, The correct active power PA of each phase within the nth recording time interval n , PB n , PC n is calculated as follows: PA n = Ka n *Pa n 1, PB n = Kb n *Pb n 1, PC n = Kc n *Pc n 1, The actual electrical energy Ea of each phase within the nth recording time interval n , Eb n , Ec n is calculated as follows: Ea n = PA n *t, Eb n = PB n *t, Ec n = PC n *t, Wherein, t represents the duration of each recording time interval; According to the electricity quantity retroactive compensation measurement period, obtain the actual electricity quantities EA, EB, and EC of each phase, and the calculation method is as follows: , , , Wherein, n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the electricity quantity retroactive compensation measurement period; S313. Obtain the actual total electricity quantity EZ = EA + EB + EC of the electric energy metering device, and obtain the error electricity quantity EX of the electricity quantity retroactive compensation measurement period, so as to obtain the retroactive compensation electricity quantity E = EZ - EX of the electricity quantity retroactive compensation measurement period.

4. A method for processing electricity quantity retroactive compensation based on digital twin, which is applied to a three-phase three-wire electric energy metering device with incorrect wiring, and is characterized in that: S140. Determine the electricity quantity retroactive compensation measurement period and its start time and end time, and start diagnosing the fault type during the fault of the electric energy metering device and collecting the electricity consumption load data of each recording time interval from this start time; wherein, the fault type includes incorrect wiring, and the electricity consumption load data includes the recorded current of the first metering element and the second metering element, the recorded voltage of the first metering element and the second metering element, and the recorded power factor of the first metering element and the second metering element; S241. Obtain the measured active power of the first metering element and the second metering element in the nth recording time interval according to the power load correlation data of the fault type, and the recorded voltages U1 n ’, U2 n ’ of the first metering element and the second metering element, the recorded currents I1 n ’ and I2 n ’ of the first metering element and the second metering element, and the recorded power factors cosΦ1 n ’ and cosΦ2 n ’ of the first metering element and the second metering element; wherein, The measured active power Pa1 of the first metering element and the second metering element within the nth recording time interval n ’ Pb2 n is calculated as follows: P1 n ’ = U1 n ’*I1 n ’*cosΦ1 n ’, P2 n ’ = U2 n ’*I2 n ’*cosΦ2 n ’, S242. Obtain the measured phase angles Φ1 n and Φ2 n of the first metering element and the second metering element within the nth recording time interval according to the recorded power factor; obtain the actual phase angles Φ1 n and Φ2 n of each phase and the actual power factor within the nth recording time interval according to the actual phase angle correlation data of the fault type and the measured phase angles; S321. Obtain the correction factors of the first metering element and the second metering element in the nth recording time interval according to the measured power factor and the actual power factor; wherein, The correction factors K1 n and K2 n of the first metering element and the second metering element within the nth recording time interval are calculated as follows: K1 n = cosΦ1 n / cosΦ1 n ’ K2 n = cosΦ2 n / cosΦ2 n ’ S322. Obtain the correct active power of the first metering element and the second metering element within the nth recording time interval according to the correction factor and the recorded active power, so as to obtain the actual electric energy of the first metering element and the second metering element and the actual electricity consumption of each phase within the nth recording time interval; wherein, The correct active power P of the first metering element and the second metering element within the nth recording time interval n 10, P n 20 is calculated as follows: P10 n = K1 n *P1 n ’, P20 n = K2 n *P2 n ’ The actual electrical energy E1 n and E2 n of the first metering element and the second metering element within the nth recording time interval are calculated as follows: E1 n = P10 n *t, E2 n = P20 n *t, In the formula, t represents the duration of each recording time interval; Obtain the actual electricity consumption E1 and E2 of the first metering element and the second metering element according to the electricity quantity retroactive measurement period, and the calculation method is as follows: , , In the formula, n represents the nth recording time interval; the value range of n is (1, k), where k represents the total number of recording time intervals included between the start time and the end time of the electricity quantity retroactive measurement period; S323. Obtain the actual total electricity quantity EZ = E1 + E2 of the electric energy metering device, and obtain the incorrect electricity quantity EX of the electricity quantity retroactive measurement period, so as to obtain the retroactive electricity quantity E = EZ - EX of the electricity quantity retroactive measurement period.

5. A computer-readable storage medium, on which program instructions are stored, and when the program instructions are executed by a processor, the method described in any one of claims 1 to 4 is implemented.

6. A power quantity retroactive adjustment processing system based on digital twin, characterized in that, Including: A computer device, which includes the computer-readable storage medium described in claim 5.

Citation Information

Patent Citations

  • Electric quantity compensation measuring instrument and method for metering device

    CN111721988A

  • Electric energy acquisition abnormity monitoring method, monitor, system and electronic equipment

    CN114757478A

  • Metering device fault electric quantity compensation calculation method and device

    CN114966193A