Electric energy metering method, device, computer equipment, readable storage medium and program product
By processing current and voltage signals using signal and energy metering models, calculating instantaneous active power and harmonic ratios, and verifying the results with energy measurement values, the problem of easy tampering in traditional energy metering is solved, thus achieving accuracy and security in energy metering.
Patent Information
- Application Number
- CN202411728462.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2044-11-28
AI Technical Summary
Traditional electricity metering methods are susceptible to malicious tampering, leading to inaccurate electricity billing and affecting the safe and stable operation of the power grid.
The current and voltage signals of distributed energy sources are obtained through signal models, instantaneous active and reactive power are calculated, harmonic ratios are analyzed using energy metering models, metering values are verified by combining energy measurements, and the model is optimized to improve accuracy.
To ensure the accuracy of electricity data collection, improve the accuracy of electricity metering, prevent malicious tampering, and safeguard the safety and stability of the power grid.
Smart Images

Figure CN119574967B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power systems, and in particular to an electric energy metering method and device, a computer device, a readable storage medium and a program product. BACKGROUND
[0002] Distributed energy not only can supply power to the power grid, but also can achieve self-sufficiency at the user side, and even send power back to the power grid under certain conditions. Power quality is an important indicator for measuring the stability and reliability of a power system, including voltage quality, current quality, power supply quality and power consumption quality, etc. In order to accurately evaluate the operation of the power system and the power consumption of the user, the electricity settlement mechanism needs to rely on accurate metering data.
[0003] In the traditional method, electric energy metering is mainly achieved by reading the data on the electric energy meter, and then using the electric energy calculation formula. However, once the electric meter data is tampered with maliciously, not only will it lead to inaccurate electricity settlement, but also it may pose a threat to the safe and stable operation of the power grid. SUMMARY
[0004] Therefore, it is necessary to provide an electric energy metering method, device, computer device, readable storage medium and program product capable of accurately obtaining electric energy data in view of the above technical problems.
[0005] In a first aspect, the present application provides an electric energy metering method, comprising:
[0006] obtaining a current signal and a voltage signal of the distributed energy through a signal model, and obtaining instantaneous active power and instantaneous reactive power of the distributed energy according to the current signal and the voltage signal;
[0007] processing the instantaneous active power through an electric energy metering model to obtain a harmonic proportion content;
[0008] obtaining an active electric energy in a metering period, and obtaining an electric energy metering value according to the instantaneous reactive power, the harmonic proportion content and the active electric energy;
[0009] obtaining an electric energy measurement value of the distributed energy, and verifying the electric energy metering value through the electric energy measurement value.
[0010] In one of the embodiments, the step of obtaining the current signal and the voltage signal of the distributed energy through the signal model comprises:
[0011] collecting the current signal of the distributed energy through a current transformer, and collecting the voltage signal of the distributed energy through a voltage transformer;
[0012] processing the current signal and the voltage signal through a preamplifier and a filter in sequence.
[0013] In one of the embodiments, the step of obtaining the instantaneous active power and the instantaneous reactive power of the distributed energy source according to the current signal and the voltage signal comprises:
[0014] respectively obtaining the conjugate complex of the current signal and the voltage signal;
[0015] obtaining the phase difference of the distributed energy source according to the current signal and the voltage signal;
[0016] calculating the instantaneous active power and the instantaneous reactive power based on the current signal, the voltage signal, the conjugate complex, the phase difference, and the reference voltage of the distributed energy source.
[0017] In one of the embodiments, the step of processing the instantaneous active power through the electric energy metering model to obtain the harmonic proportion content comprises:
[0018] performing frequency spectrum analysis on the instantaneous active power through the electric energy metering model to obtain the amplitude of the frequency component of the current signal and the voltage signal;
[0019] obtaining the total amplitude of the harmonic active power according to the amplitude of the frequency component, and obtaining the harmonic content proportion according to the total amplitude of the harmonic active power.
[0020] In one of the embodiments, the method further comprises:
[0021] obtaining the time constant according to the electric energy measurement value and the electric energy metering value at the current moment, and the electric energy measurement value and the electric energy metering value at the previous moment of the current moment;
[0022] optimizing the electric energy metering model according to the time constant.
[0023] In one of the embodiments, the method further comprises:
[0024] obtaining the model accuracy factor according to the electric energy measurement value and the electric energy metering value;
[0025] optimizing the electric energy metering model based on the model accuracy factor.
[0026] In a second aspect, the application further provides an electric energy metering device, comprising:
[0027] a signal obtaining module, configured to obtain the current signal and the voltage signal of the distributed energy source through a signal model, and obtain the instantaneous active power and the instantaneous reactive power of the distributed energy source according to the current signal and the voltage signal;
[0028] a harmonic obtaining module, configured to process the instantaneous active power through an electric energy metering model to obtain the harmonic proportion content;
[0029] The electric energy metering module is configured to acquire active electric energy in a metering period, and acquire an electric energy metering value according to instantaneous reactive power, harmonic proportion content and the active electric energy.
[0030] The electric energy verification module is configured to acquire an electric energy measurement value of the distributed energy, and verify the electric energy metering value by using the electric energy measurement value.
[0031] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, the memory stores a computer program, and the processor implements the method steps of any one of the first aspect when executing the computer program.
[0032] In a fourth aspect, the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method steps of any one of the first aspect.
[0033] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, and the computer program is executed by a processor to implement the method steps of any one of the first aspect.
[0034] The above electric energy metering method, device, computer device, readable storage medium and program product can ensure the accuracy of the collected data by collecting electric energy data through a signal model, and can ensure the accuracy of electric energy metering by predicting the electric energy metering value through an electric energy metering model. In addition, the accuracy of electric energy metering can be further improved by verifying the electric energy metering value output by the model through an electric energy measurement value. BRIEF DESCRIPTION OF DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related art, the drawings needed to be used in the description of the embodiments of the present application or the related art will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other related drawings can be obtained by those skilled in the art without creative labor.
[0036] Figure 1 An application environment diagram of the electric energy metering method in an embodiment;
[0037] Figure 2 A flowchart of the electric energy metering method in an embodiment;
[0038] Figure 3 A flowchart of the electric energy metering method in another embodiment;
[0039] Figure 4 A structural block diagram of the electric energy metering device in an embodiment;
[0040] Figure 5Fig. 1 is a schematic diagram of an internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0041] For the purpose, technical solutions and advantages of the present application to be clearer, further detailed description will be made to the present application in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, and are not used to limit the present application.
[0042] The electric energy metering method provided by the embodiments of the present application can be applied to an application environment as shown in Figure 1 . The terminal 102 communicates with the server 104 through a network. The data storage system can store data required to be processed by the server 104. The data storage system can be integrated on the server 104, or placed on a cloud or other network server. The terminal 102 is used to obtain the current signal and the voltage signal of the distributed energy source through a signal model, obtain the instantaneous active power and the instantaneous reactive power of the distributed energy source according to the current signal and the voltage signal, process the instantaneous active power through an electric energy metering model to obtain the harmonic proportion content, obtain the active electric energy in a metering period, and obtain the electric energy metering value according to the instantaneous reactive power, the harmonic proportion content and the active electric energy. The terminal 102 can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle-mounted device, a projection device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server 104 can be a stand-alone physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0043] In one exemplary embodiment, as shown in Figure 2 , an electric energy metering method is provided. Taking the terminal 102 in Figure 1 as an example, the method includes the following steps 202 to 206. Wherein:
[0044] S202: Obtain the current signal and the voltage signal of the distributed energy source through a signal model, and obtain the instantaneous active power and the instantaneous reactive power of the distributed energy source according to the current signal and the voltage signal.
[0045] Optionally, the distributed energy source generates current and voltage during operation, and real-time current and voltage data of the distributed energy source in the low-voltage transformer area are collected through a signal model, wherein the signal model is a theoretical framework for describing and processing signals, and when collecting current signals and voltage signals, the signal model specifies how to perceive, convert and record these signals.
[0046] Among them, the active power refers to the actual AC energy generated or consumed per unit of time, and through the obtained voltage and current signals, the instantaneous active power can be obtained through signal processing circuit and calculation algorithm. The reactive power is used to measure the energy exchange for establishing electric field and magnetic field in the circuit, and the instantaneous reactive power is calculated through the voltage and current signals and the phase relationship between them.
[0047] S204: Process the instantaneous active power through the electric energy metering model to obtain the harmonic proportion content.
[0048] Optionally, in the actual power system, the voltage and current signals are often not ideal sine waves, but contain harmonic components. Harmonics refer to sine wave components with an integer multiple of the fundamental frequency. By analyzing the instantaneous active power signal through the electric energy metering model, the components of different frequencies can be decomposed, and the proportion of harmonic power in the total power, i.e. the harmonic proportion content, can be calculated.
[0049] S206: Obtain the active energy in the metering period, and obtain the electric energy metering value according to the instantaneous reactive power, the harmonic proportion content and the active energy.
[0050] Optionally, the active energy refers to the integral of the active power in a certain time (metering period), and the electric energy metering value comprehensively considers the instantaneous reactive power, the harmonic proportion content and the active energy, which can more comprehensively reflect the electric energy utilization of the distributed energy source.
[0051] S208: Obtain the electric energy measurement value of the distributed energy source, and verify the electric energy metering value through the electric energy measurement value.
[0052] Optionally, the electric energy measurement value refers to the actual electric energy value of the distributed energy source, such as the data obtained through the electric energy meter, and the electric energy metering value output by the model is verified through the computer measurement value, further improving the accuracy of the model.
[0053] In the above electric energy metering method, the electric energy data is collected through the signal model, which can ensure the accuracy of the collected data, and then the electric energy metering value is predicted through the electric energy metering model, which can ensure the accuracy of the electric energy metering. In addition, the electric energy metering value output by the model is verified through the electric energy measurement value, which can further improve the accuracy of the electric energy metering.
[0054] In one example embodiment, the step of obtaining the current signal and the voltage signal of the distributed energy source through a signal model comprises: collecting the current signal of the distributed energy source through a current transformer and collecting the voltage signal of the distributed energy source through a voltage transformer; and sequentially processing the current signal and the voltage signal through a preamplifier and a filter.
[0055] Optionally, the current transformer is an instrument for measuring the primary side large current by converting it into a secondary side small current according to the principle of electromagnetic induction. For example, in a distributed photovoltaic power generation system connected to a low-voltage distribution area, the primary winding of the current transformer is connected in series in the circuit, and when current passes through, according to the law of electromagnetic induction, the secondary winding will induce a small current signal proportional to the primary current. The voltage transformer is a transformer with a core, which mainly consists of primary and secondary coils, a core and insulation. The voltage transformer is installed at both ends of the line of the low-voltage distribution area bus or the distributed energy source access point. The primary winding is connected in parallel to the line of the measured voltage, and the secondary winding will output a low voltage signal proportional to the measured voltage for subsequent measurement devices to process. Since the signals collected by the transformer may contain noise and other interference components, the current signal and the voltage signal are sequentially processed through a preamplifier and a filter. The amplification operation is to enhance the weak signal to an amplitude range suitable for subsequent analog-to-digital conversion, and the filtering operation is to remove noise and unwanted frequency components in the signal.
[0056] In this embodiment, the signals are collected by the current transformer and the voltage transformer, which can achieve safe isolation. The collected signals are sequentially processed through a preamplifier and a filter, which can ensure the accuracy of the collected data.
[0057] In one example embodiment, the step of obtaining the instantaneous active power and the instantaneous reactive power of the distributed energy source according to the current signal and the voltage signal comprises: obtaining the corresponding conjugate complex of the current signal and the voltage signal, respectively; obtaining the phase difference of the distributed energy source according to the current signal and the voltage signal; and calculating the instantaneous active power and the instantaneous reactive power based on the current signal, the voltage signal, the conjugate complex, the phase difference, and the reference voltage of the distributed energy source.
[0058] For example, the instantaneous active power and the instantaneous reactive power of the distributed energy source are calculated based on the instantaneous values of the collected current signal and voltage signal. The specific calculation formula is:
[0059]
[0060]
[0061] wherein, P represents the instantaneous active power, Q represents the instantaneous reactive power, represents a current signal in complex form, represents a voltage signal in complex form, represents a conjugate complex of the current signal, represents a conjugate complex of the voltage signal, represents a phase difference between the current and the voltage, t represents time, represents a reference voltage.
[0062] In this embodiment, by calculating the instantaneous active power and the instantaneous reactive power, the power quality after the distributed energy is connected to the power grid can be monitored in real time, and the accuracy of the electric energy metering can be improved.
[0063] In an exemplary embodiment, the step of processing the instantaneous active power by the electric energy metering model to obtain the harmonic proportion content includes: performing frequency spectrum analysis on the instantaneous active power by the electric energy metering model to obtain the amplitude of the frequency component of the current signal and the voltage signal; obtaining the total amplitude of the harmonic active power according to the amplitude of the frequency component, and obtaining the harmonic content proportion according to the total amplitude of the harmonic active power.
[0064] For example, first, the instantaneous active power is sampled by the electric energy metering model. According to the Fourier transform principle, any periodic signal can be decomposed into the superposition of multiple sine waves (or cosine waves) of different frequencies. In this process, the instantaneous active power is subjected to frequency spectrum analysis, and the mathematical expression is:
[0065]
[0066] wherein, represents the amplitude of the kth frequency component, and N represents the total number of sampling points, represents the instantaneous active power In the sampling period T s , the value of the nth sampling point, is a complex exponential function, which is used to calculate the complex representation of each frequency component at the nth sampling point.
[0067] After obtaining the amplitudes of the frequency components, the total amplitude of the harmonic active power is calculated. Since in the power system, the fundamental frequency is the main frequency component, and the harmonic is the integer multiple frequency component of the fundamental frequency, only the positive frequency component is considered, and the calculation formula is:
[0068]
[0069] wherein, represents the total amplitude of all harmonic active powers, and N represents the total number of sampling points, represents the weight factor of the nth harmonic, represents the amplitude of the n-th frequency component. Wherein, in the calculation of the total amplitude of the harmonic active power, the summation range is all the harmonic components from n=2 to n=N / 2, because the part of n>N / 2 is the negative frequency component, which is symmetrical with the part of n<N / 2, so only calculating n=2 to n=N / 2 can cover all the positive frequency components.
[0070] Finally, the harmonic content ratio H is calculated:
[0071]
[0072] wherein, represents the total amplitude of all harmonic active power, represents the amplitude of the fundamental active power.
[0073] Further, in the metering period, considering the fundamental active power, average voltage, voltage correction, the influence of distributed power on voltage, quality correction, the influence of distributed energy type on power quality, and transmission medium loss, etc., the active energy E is calculated by integral:
[0074]
[0075] wherein, T represents the metering period, represents the amplitude of the fundamental active power at time t, represents the average voltage in the metering period, represents the voltage correction factor, represents the influence of the access of distributed energy on the node voltage level, represents the quality correction factor, represents the influence of the type of distributed energy on power quality, represents the loss of power by different types of transmission medium.
[0076] Further, in the integral interval, considering the weight of instantaneous reactive power, node voltage level, distributed energy type, load change mode, transmission medium, and other factors, as well as non-periodic transient event and instantaneous active energy, the actual consumed energy is estimated by integral:
[0077]
[0078] wherein, represents the non-periodic transient event, such as short circuit or switching operation, represents the instantaneous active power energy, T represents the integral interval (i.e. metering period), represents the weight coefficient of instantaneous reactive power, represents the instantaneous reactive power, a weight coefficient representing a node voltage level factor, a weight coefficient representing an influence of an access of a distributed power supply on a node voltage level, a weight coefficient representing a kind factor of a distributed energy source, an influence of a kind of a distributed energy source on power quality, a weight coefficient representing a load change mode, a load change mode function, a weight coefficient representing a transmission medium factor, I represents a current, an influence of different kinds of transmission media on power loss, a weight coefficient representing a transmission medium cross-section change, a transmission medium cross-section change amount, L represents an inductance, r represents a resistance, δ represents a time constant, and A represents a cross-sectional area.
[0079] When there is a harmonic in the power system, the voltage waveform is distorted, which affects parameters such as average voltage and node voltage level. When calculating the active power energy in the metering period and estimating the actual consumed power energy, the quality correction factor and the parameters of the influence of the kind of the distributed energy source on the power quality are affected by the harmonic. By calculating the harmonic content ratio, the voltage correction factor, the quality correction factor, and other parameters can be more accurately determined.
[0080] In this embodiment, by determining the harmonic content ratio, the influence of the harmonic on the electric energy metering can be accurately analyzed, thereby improving the accuracy of the electric energy metering.
[0081] In an exemplary embodiment, the method further comprises: obtaining a time constant according to the electric energy measurement value and the electric energy metering value at the current moment, and the electric energy measurement value and the electric energy metering value at the previous moment of the current moment; and optimizing the electric energy metering model according to the time constant.
[0082] For example, in order to make the model output more stable, a time constant is introduced to smooth the model output, and the optimization process can be represented as:
[0083]
[0084] wherein, the electric energy metering value at the current moment, the electric energy metering value at the previous moment, the electric energy measurement value at the current moment, the electric energy measurement value at the previous moment.
[0085] In this embodiment, by introducing the time constant, it is ensured that the model prediction value will not change dramatically due to the slight fluctuation of the actual measurement value, so as to make the model output more stable and improve the accuracy of the electric energy measurement.
[0086] In one exemplary embodiment, the method further comprises: obtaining a model accuracy factor according to the electric energy measurement value and the electric energy measurement value; and optimizing the electric energy measurement model based on the model accuracy factor.
[0087] Optionally, in order to ensure the accuracy of the model output, the model accuracy factor is determined by comparing the difference between the electric energy measurement value of the model output and the actual electric energy measurement value, and the accuracy of the model is improved by continuously adjusting the model accuracy factor in the iteration process when training the electric energy measurement model.
[0088] Exemplarily, the model accuracy factor is represented as:
[0089]
[0090] Wherein, represents the electric energy measurement value, and represents the electric energy measurement value.
[0091] In this embodiment, by introducing the model accuracy factor, the accuracy of the electric energy measurement model can be accurately evaluated, so as to ensure the accuracy of the electric energy measurement.
[0092] In one exemplary embodiment, as Figure 3 shown, an electric energy measurement method is provided, which comprises the following steps:
[0093] The current signal of the distributed energy source is collected by the current transformer, and the voltage signal of the distributed energy source is collected by the voltage transformer; the current signal and the voltage signal are processed in turn through the preamplifier and the filter.
[0094] The corresponding conjugate complex of the current signal and the voltage signal is obtained respectively; the phase difference of the distributed energy source is obtained according to the current signal and the voltage signal; the instantaneous active power and the instantaneous reactive power are calculated based on the current signal, the voltage signal, the conjugate complex, the phase difference, and the reference voltage of the distributed energy source.
[0095] The frequency component amplitude of the current signal and the voltage signal is obtained by performing frequency spectrum analysis on the instantaneous active power through the electric energy measurement model; the total amplitude of the harmonic active power is obtained according to the frequency component amplitude, and the harmonic content ratio is obtained according to the total amplitude of the harmonic active power.
[0096] The active energy quantity in the measurement period is obtained, and the electric energy measurement value is obtained according to the instantaneous reactive power, the harmonic proportion content and the active energy quantity.
[0097] acquire an electric energy measurement value of the distributed energy, and verify the electric energy measurement value based on the electric energy measurement value.
[0098] acquire a time constant based on the electric energy measurement value and the electric energy measurement value at the current time and the electric energy measurement value and the electric energy measurement value at the previous time of the current time; and optimize the electric energy measurement model based on the time constant.
[0099] acquire a model precision factor based on the electric energy measurement value and the electric energy measurement value; and optimize the electric energy measurement model based on the model precision factor.
[0100] In the embodiment, the electric energy data is acquired through the signal model, so that the accuracy of the acquired data can be ensured, and the electric energy measurement value is predicted through the electric energy measurement model, so that the accuracy of the electric energy measurement can be ensured. In addition, the electric energy measurement value output by the model is verified through the electric energy measurement value, so that the accuracy of the electric energy measurement can be further improved.
[0101] It should be understood that, although each step in the flowchart involved in each of the above embodiments is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in each of the above embodiments can include multiple steps or multiple stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or steps or stages in other steps.
[0102] Based on the same inventive concept, the embodiments of the present application also provide an electric energy measurement device for implementing the above-mentioned electric energy measurement method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so the specific limitations in one or more electric energy measurement device embodiments provided below can refer to the limitations of the electric energy measurement method described above, which will not be repeated here.
[0103] In one exemplary embodiment, as shown in Figure 4 An electric energy measurement device is provided, comprising: a signal acquisition module 10, a harmonic acquisition module 20, an electric energy measurement module 30, and an electric energy verification module 40, wherein:
[0104] The signal acquisition module 10 is configured to acquire the current signal and the voltage signal of the distributed energy through the signal model, and acquire the instantaneous active power and the instantaneous reactive power of the distributed energy according to the current signal and the voltage signal.
[0105] The harmonic obtaining module 20 is configured to process the instantaneous active power by using an electric energy metering model to obtain a harmonic proportion content.
[0106] The electric energy metering module 30 is configured to obtain an active electric energy in a metering period, and obtain an electric energy metering value according to the instantaneous reactive power, the harmonic proportion content and the active electric energy.
[0107] The electric energy verification module 40 is configured to obtain an electric energy measurement value of the distributed energy, and verify the electric energy metering value by using the electric energy measurement value.
[0108] In an exemplary embodiment, the signal obtaining module 10 is further configured to collect a current signal of the distributed energy by using a current transformer, and collect a voltage signal of the distributed energy by using a voltage transformer; and sequentially process the current signal and the voltage signal by using a preamplifier and a filter.
[0109] In an exemplary embodiment, the signal obtaining module 10 is further configured to obtain a conjugate complex of the current signal and the voltage signal respectively; obtain a phase difference of the distributed energy according to the current signal and the voltage signal; and calculate the instantaneous active power and the instantaneous reactive power based on the current signal, the voltage signal, the conjugate complex, the phase difference and a reference voltage of the distributed energy.
[0110] In an exemplary embodiment, the harmonic obtaining module 20 is configured to perform a spectrum analysis on the instantaneous active power by using an electric energy metering model to obtain an amplitude of a frequency component of the current signal and the voltage signal; obtain a total amplitude of harmonic active power according to the amplitude of the frequency component; and obtain a harmonic content proportion according to the total amplitude of the harmonic active power.
[0111] In an exemplary embodiment, the electric energy metering module 30 is further configured to obtain a time constant according to the electric energy measurement value and the electric energy metering value at a current time and the electric energy measurement value and the electric energy metering value at a previous time of the current time; and optimize the electric energy metering model according to the time constant.
[0112] In an exemplary embodiment, the electric energy metering module 30 is further configured to obtain a model precision factor according to the electric energy measurement value and the electric energy metering value; and optimize the electric energy metering model based on the model precision factor.
[0113] The above-mentioned modules in the electric energy metering device can be realized by software, hardware and a combination thereof in whole or in part. The above-mentioned modules can be embedded in or independent of a processor in a computer device in a hardware form, or can be stored in a memory in a computer device in a software form, so as to be called and executed by a processor to perform operations corresponding to the above-mentioned modules.
[0114] In an exemplary embodiment, a computer device is provided, which can be a terminal, and an internal structure diagram thereof can be as shown in Figure 5 The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for running the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is configured to exchange information between the processor and external devices. The communication interface of the computer device is configured to perform wired or wireless communication with external terminals. The wireless communication can be achieved through WIFI, mobile cellular network, near field communication (NFC) or other technologies. The computer program is executed by the processor to implement an electric energy metering method. The display unit of the computer device is configured to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer overlaid on the display screen, or a key, trackball or touchpad arranged on the shell of the computer device, or an external keyboard, touchpad or mouse, etc.
[0115] Those skilled in the art can understand that Figure 5 The structure shown in the above embodiment is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0116] In an exemplary embodiment, a computer device is provided, which includes a memory and a processor, and the memory stores a computer program. The processor executes the computer program to implement the following steps: obtaining a current signal and a voltage signal of a distributed energy source through a signal model, and obtaining instantaneous active power and instantaneous reactive power of the distributed energy source according to the current signal and the voltage signal; processing the instantaneous active power through an electric energy metering model to obtain a harmonic proportion content; obtaining an active electric energy in a metering period, and obtaining an electric energy metering value according to the instantaneous reactive power, the harmonic proportion content and the active electric energy; obtaining an electric energy measurement value of the distributed energy source, and verifying the electric energy metering value through the electric energy measurement value.
[0117] In one embodiment, the processor, when executing the computer program, involves obtaining the current signal and the voltage signal of the distributed energy through a signal model, including: collecting the current signal of the distributed energy through a current transformer, and collecting the voltage signal of the distributed energy through a voltage transformer; sequentially processing the current signal and the voltage signal through a preamplifier and a filter.
[0118] In one embodiment, the processor, when executing the computer program, involves obtaining the instantaneous active power and the instantaneous reactive power of the distributed energy according to the current signal and the voltage signal, including: respectively obtaining the corresponding conjugate complex of the current signal and the voltage signal; obtaining the phase difference of the distributed energy according to the current signal and the voltage signal; and calculating the instantaneous active power and the instantaneous reactive power based on the current signal, the voltage signal, the conjugate complex, the phase difference, and the reference voltage of the distributed energy.
[0119] In one embodiment, the processor, when executing the computer program, involves processing the instantaneous active power through an electric energy metering model to obtain the harmonic proportion content, including: performing frequency spectrum analysis on the instantaneous active power through the electric energy metering model to obtain the amplitude of the frequency component of the current signal and the voltage signal; obtaining the total amplitude of the harmonic active power according to the amplitude of the frequency component, and obtaining the harmonic content proportion according to the total amplitude of the harmonic active power.
[0120] In one embodiment, the processor, when executing the computer program, further implements the following steps: obtaining the time constant according to the electric energy measurement value and the electric energy metering value at the current moment, and the electric energy measurement value and the electric energy metering value at the previous moment of the current moment; and optimizing the electric energy metering model according to the time constant.
[0121] In one embodiment, the processor, when executing the computer program, further implements the following steps: obtaining the model accuracy factor according to the electric energy measurement value and the electric energy metering value; and optimizing the electric energy metering model based on the model accuracy factor.
[0122] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the following steps: obtaining the current signal and the voltage signal of the distributed energy through a signal model, and obtaining the instantaneous active power and the instantaneous reactive power of the distributed energy according to the current signal and the voltage signal; processing the instantaneous active power through an electric energy metering model to obtain the harmonic proportion content; obtaining the active electric energy quantity in a metering period, and obtaining the electric energy metering value according to the instantaneous reactive power, the harmonic proportion content, and the active electric energy quantity; obtaining the electric energy measurement value of the distributed energy, and verifying the electric energy metering value through the electric energy measurement value.
[0123] In one embodiment, the computer program, when executed by the processor, involves obtaining, by a signal model, a current signal and a voltage signal of the distributed energy source, comprising: collecting the current signal of the distributed energy source by a current transformer, and collecting the voltage signal of the distributed energy source by a voltage transformer; sequentially processing the current signal and the voltage signal by a preamplifier and a filter.
[0124] In one embodiment, the computer program, when executed by the processor, involves obtaining, according to the current signal and the voltage signal, instantaneous active power and instantaneous reactive power of the distributed energy source, comprising: respectively obtaining corresponding conjugate complex numbers of the current signal and the voltage signal; obtaining a phase difference of the distributed energy source according to the current signal and the voltage signal; and calculating the instantaneous active power and the instantaneous reactive power based on the current signal, the voltage signal, the conjugate complex numbers, the phase difference, and a reference voltage of the distributed energy source.
[0125] In one embodiment, the computer program, when executed by the processor, involves processing the instantaneous active power by an electric energy metering model to obtain a harmonic proportion content, comprising: performing frequency spectrum analysis on the instantaneous active power by the electric energy metering model to obtain amplitudes of frequency components of the current signal and the voltage signal; obtaining a total amplitude of harmonic active power according to the amplitudes of the frequency components, and obtaining a harmonic content proportion according to the total amplitude of the harmonic active power.
[0126] In one embodiment, the computer program, when executed by the processor, further implements the following steps: obtaining a time constant according to the electric energy measurement value and the electric energy metering value at the current moment, and the electric energy measurement value and the electric energy metering value at the previous moment of the current moment; and optimizing the electric energy metering model according to the time constant.
[0127] In one embodiment, the computer program, when executed by the processor, further implements the following steps: obtaining a model accuracy factor according to the electric energy measurement value and the electric energy metering value; and optimizing the electric energy metering model based on the model accuracy factor.
[0128] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps: obtaining, by a signal model, a current signal and a voltage signal of the distributed energy source, and obtaining, according to the current signal and the voltage signal, instantaneous active power and instantaneous reactive power of the distributed energy source; processing the instantaneous active power by an electric energy metering model to obtain a harmonic proportion content; obtaining an active electric energy quantity within a metering period, and obtaining an electric energy metering value according to the instantaneous reactive power, the harmonic proportion content, and the active electric energy quantity; obtaining an electric energy measurement value of the distributed energy source, and verifying the electric energy metering value by the electric energy measurement value.
[0129] In one embodiment, the computer program, when executed by the processor, involves obtaining the current signal and the voltage signal of the distributed energy through a signal model, including: collecting the current signal of the distributed energy through a current transformer, and collecting the voltage signal of the distributed energy through a voltage transformer; sequentially processing the current signal and the voltage signal through a preamplifier and a filter.
[0130] In one embodiment, the computer program, when executed by the processor, involves obtaining the instantaneous active power and the instantaneous reactive power of the distributed energy according to the current signal and the voltage signal, including: respectively obtaining the corresponding conjugate complex of the current signal and the voltage signal; obtaining the phase difference of the distributed energy according to the current signal and the voltage signal; and calculating the instantaneous active power and the instantaneous reactive power based on the current signal, the voltage signal, the conjugate complex, the phase difference, and the reference voltage of the distributed energy.
[0131] In one embodiment, the computer program, when executed by the processor, involves processing the instantaneous active power through an electric energy metering model to obtain the harmonic proportion content, including: performing frequency spectrum analysis on the instantaneous active power through the electric energy metering model to obtain the amplitude of the frequency component of the current signal and the voltage signal; obtaining the total amplitude of the harmonic active power according to the amplitude of the frequency component, and obtaining the harmonic content proportion according to the total amplitude of the harmonic active power.
[0132] In one embodiment, the computer program, when executed by the processor, further implements the following steps: obtaining a time constant according to the electric energy measurement value and the electric energy metering value at the current moment, and the electric energy measurement value and the electric energy metering value at the previous moment of the current moment; and optimizing the electric energy metering model according to the time constant.
[0133] In one embodiment, the computer program, when executed by the processor, further implements the following steps: obtaining a model accuracy factor according to the electric energy measurement value and the electric energy metering value; and optimizing the electric energy metering model based on the model accuracy factor.
[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when executed, can include the processes of the above-mentioned embodiment methods. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. The non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. The volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration but not limitation, the RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., without being limited thereto.
[0135] The technical features of the above embodiments can be combined in any manner. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not exist contradictions, they should be considered as the scope of the present application.
[0136] The above-described embodiments are merely illustrative of several embodiments of the present application, and the description is relatively specific and detailed, but should not be understood as a limitation on the scope of the patent. It should be noted that for those skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of protection of the present application should be subject to the appended claims.
Claims
1. A method of electrical energy metering, characterized by, The method comprises: obtaining the current signal and the voltage signal of the distributed energy source through a signal model, and obtaining the instantaneous active power and the instantaneous reactive power of the distributed energy source according to the current signal and the voltage signal; processing the instantaneous active power through an electric energy metering model to obtain a harmonic proportion content; obtaining the active electric energy in a metering period, and obtaining an electric energy metering value according to the instantaneous reactive power, the harmonic proportion content and the active electric energy; obtaining an electric energy measurement value of the distributed energy source, and verifying the electric energy metering value through the electric energy measurement value.
2. The method of claim 1, wherein, The method comprises: collecting the current signal of the distributed energy source through a current transformer, and collecting the voltage signal of the distributed energy source through a voltage transformer; processing the current signal and the voltage signal through a preamplifier and a filter in sequence.
3. The method of claim 1, wherein, The method comprises: respectively obtaining the corresponding conjugate complex of the current signal and the voltage signal; obtaining the phase difference of the distributed energy source according to the current signal and the voltage signal; calculating the instantaneous active power and the instantaneous reactive power based on the current signal, the voltage signal, the conjugate complex, the phase difference and the reference voltage of the distributed energy source.
4. The method of claim 1, wherein, The method comprises: performing frequency spectrum analysis on the instantaneous active power through the electric energy metering model to obtain the amplitude of the frequency component of the current signal and the voltage signal; obtaining the total amplitude of the harmonic active power according to the amplitude of the frequency component, and obtaining the harmonic content proportion according to the total amplitude of the harmonic active power.
5. The method of claim 1, wherein, The method further comprises: obtaining a time constant according to the electric energy measurement value and the electric energy metering value at the current moment, and the electric energy measurement value and the electric energy metering value at the previous moment of the current moment; optimizing the electric energy metering model according to the time constant.
6. The method of claim 5, wherein, The method further comprises: obtaining a model accuracy factor according to the electric energy measurement value and the electric energy metering value; optimizing the electric energy metering model based on the model accuracy factor.
7. An electrical energy metering device, characterized by The device comprises: a signal obtaining module, configured to obtain the current signal and the voltage signal of the distributed energy source through a signal model, and obtain the instantaneous active power and the instantaneous reactive power of the distributed energy source according to the current signal and the voltage signal; a harmonic obtaining module, configured to process the instantaneous active power through an electric energy metering model to obtain a harmonic proportion content; an electric energy metering module, configured to obtain the active electric energy in a metering period, and obtain an electric energy metering value according to the instantaneous reactive power, the harmonic proportion content and the active electric energy; an electric energy verifying module, configured to obtain an electric energy measurement value of the distributed energy source, and verify the electric energy metering value through the electric energy measurement value.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to realize the steps of the method in any one of claims 1 to 6.
9. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program, which when executed by a processor, implements the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that, The computer program, which when executed by a processor, implements the steps of the method of any one of claims 1 to 6.
Citation Information
Patent Citations
Electric energy metering method suitable for dynamic distortion load
CN113341217A
Electric energy metering method and system for nonlinear load
CN117330831A