Harmonic Measurement Method and Device for Photovoltaic Grid Connection
By processing photovoltaic grid-connected power data with double Blackman windows and double Hanning windows, combined with Fourier transform, the problem of inaccurate harmonic measurement during photovoltaic grid connection is solved, and the accurate measurement of nonlinear user power generation behavior and fair measurement of power costs are realized.
Patent Information
- Application Number
- CN202410032559.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-09
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2044-01-09
AI Technical Summary
In existing technologies, harmonic metering during photovoltaic grid connection is inaccurate, affecting the accuracy of electricity metering. Traditional methods have low metering accuracy and are subject to the fence effect, making it difficult to accurately measure the power generation behavior of nonlinear users.
The power data is processed using double Blackman windows and double Hanning windows. The frequency, amplitude and initial phase of each harmonic are determined by Fourier transform. The double Blackman window sequence and double Hanning window sequence are combined for correction, and the harmonic metering results of the target nonlinear user are calculated.
It improves the accuracy of harmonic metering, reduces deviation, accurately measures the power generation behavior of nonlinear users, and ensures the accuracy and fairness of electricity metering.
Smart Images

Figure CN117849453B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of harmonic measurement technology, and in particular to a harmonic measurement method and apparatus for a photovoltaic parallel gateway. Background Technology
[0002] Distributed photovoltaic (PV) power generation, as a new energy generation method, can effectively reduce the proportion of primary energy in the power distribution network. However, during the PV grid connection process, power electronic devices inject harmonic components into the power distribution network. The injection of harmonic components can easily cause voltage and current waveform distortion in the power distribution network, affecting the accuracy of electricity metering.
[0003] Traditional electricity metering schemes neglect the harmonic energy component, failing to effectively distinguish between fundamental and harmonic energy, thus affecting the accuracy of electricity metering. Related technologies also use fast Fourier transform for harmonic metering, but its metering accuracy remains low and is subject to the picket fence effect, making it difficult to accurately measure harmonics and thus unable to accurately measure the power generation behavior of nonlinear users with photovoltaic power generation equipment. Summary of the Invention
[0004] This invention provides a harmonic metering method and apparatus for photovoltaic grid connection interfaces to improve the accuracy of harmonic metering and thus accurately measure the power generation behavior of nonlinear users.
[0005] In a first aspect, embodiments of the present invention provide a harmonic metering method for a photovoltaic grid-connected interface, comprising:
[0006] Acquire the first measurement result of harmonics in the electricity meter of the target nonlinear user within a preset period, as well as the electricity data at the electricity meter;
[0007] By applying a double Blackman window and a double Hanning window to the power data, the double Blackman window sequence and the double Hanning window sequence corresponding to each harmonic in the power data are obtained.
[0008] Based on the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic, the harmonic sequence of each harmonic of the target nonlinear user within the preset period is determined.
[0009] The second metering result for the target nonlinear user is determined based on the harmonic sequence of each harmonic.
[0010] Based on the first measurement result and the second measurement result, the harmonic measurement result of the target nonlinear user within the preset period is obtained.
[0011] In one possible implementation, applying a double Blackman window and a double Hanning window to the power data to obtain the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic in the power data includes:
[0012] Determine a preset number of sampling points in the electrical energy data;
[0013] Blackman and Hanning windows are applied to the sampling points respectively, and the sampling points after applying Blackman and Hanning windows are segmented and periodically extended to obtain multiple first segment sequences with Blackman windows and multiple second segment sequences with Hanning windows.
[0014] Apply a Blackman window to each sampling point in the first segment sequence, and calculate the mean of the sampling points in each first segment sequence after applying the Blackman window to obtain the first double-window sequence;
[0015] A Hanning window is applied to the sampling points within each second segment sequence, and the mean of the sampling points within each second segment sequence after applying the Hanning window is calculated to obtain the second double-window sequence;
[0016] Fourier transforms are performed on the first and second dual-window sequences respectively to determine the frequency, amplitude, and initial phase of each harmonic under the dual Blackman window, as well as the frequency, amplitude, and initial phase under the dual Hanning window. Based on the frequency, amplitude, and initial phase of each harmonic under the dual Blackman window and the dual Hanning window, the corresponding dual Blackman window sequence and dual Hanning window sequence are obtained.
[0017] In one possible implementation, determining the harmonic sequence of each harmonic of the target nonlinear user within the preset period based on the double Blackman window sequence and the double Hanning window sequence corresponding to each harmonic includes:
[0018] Based on the frequency and amplitude of the double Blackman window sequence corresponding to each harmonic, and the frequency and amplitude of the double Hanning window sequence, the first amplitude value of the double Blackman window sequence and the second amplitude value of the double Hanning window sequence corresponding to each sampling point in each harmonic are determined respectively.
[0019] Based on the first amplitude value and the second amplitude value corresponding to each sampling point in each harmonic, the amplitude value of each sampling point in each harmonic is determined, and based on the amplitude value of each sampling point in each harmonic, the harmonic sequence of each harmonic of the target nonlinear user in the preset period is obtained.
[0020] In one possible implementation, determining the amplitude of each sampling point in each harmonic based on the first amplitude and the second amplitude corresponding to each sampling point in each harmonic includes:
[0021] According to the expression: Calculate the amplitude value corresponding to each sampling point in each harmonic;
[0022] Among them, Ai B represents the amplitude value corresponding to the sampling point in the i-th harmonic. i H represents the first amplitude value of the double Blackman window sequence at the sampling point corresponding to the i-th harmonic. i This represents the second amplitude value of the double Hanning window sequence corresponding to the sampling point in the i-th harmonic.
[0023] In one possible implementation, obtaining the harmonic measurement results of the target nonlinear user within a preset period based on the first measurement result and the second measurement result includes:
[0024] Determine whether the difference between the first metered electricity consumption and the second metered electricity consumption is greater than a preset difference;
[0025] If the difference is greater than a preset difference, then the second metered electricity is determined to be the harmonic metering result of the target nonlinear user within a preset period;
[0026] If the difference is less than or equal to a preset difference, then the first metered electricity consumption is determined to be the harmonic metering result of the target nonlinear user within a preset period.
[0027] In one possible implementation, the window function of the Blackman window is:
[0028] w B (n)=0.42-0.5cos(2πn / N)+0.08cos(4πn / N);
[0029] In the formula, w B (n) represents the window function of the Blackman window, N represents the length of the sequence, and n represents the sampling points in the sequence, n = 0, 1, 2, 3, ..., N-1.
[0030] In one possible implementation, the window function of the Hanning window is:
[0031] w H (n) = 0.5 - 0.5cos(2πn / N);
[0032] In the formula, w H (n) represents the window function of the Hanning window, N represents the length of the sequence, and n represents the sampling points in the sequence, n = 0, 1, 2, 3, ..., N-1.
[0033] In one possible implementation, after obtaining the harmonic measurement results of the target nonlinear user within the preset period based on the first measurement result and the second measurement result, the method further includes:
[0034] Obtain the harmonic metering results of each nonlinear user in the transformer area where the target nonlinear user is located;
[0035] The harmonic threshold is determined based on the harmonic metering results of each nonlinear user within the transformer area.
[0036] The harmonic cost of the target nonlinear user is determined based on the harmonic metering results and the harmonic threshold.
[0037] In one possible implementation, determining the harmonic cost of the target nonlinear user based on the harmonic metering results and the harmonic threshold includes:
[0038] According to the expression: Determine the harmonic costs for the target nonlinear user;
[0039] In the formula, G m W represents the harmonic cost for the target nonlinear user. h This represents the harmonic metering results for the target nonlinear user. P represents the harmonic threshold. m This represents the harmonic electricity price for the target nonlinear user.
[0040] Secondly, embodiments of the present invention provide a harmonic metering device for a photovoltaic grid connection interface, comprising:
[0041] The acquisition module is used to acquire the first measurement result of harmonics in the electricity meter of the target nonlinear user within a preset period and the electricity data at the electricity meter.
[0042] A windowing module is used to apply double Blackman windows and double Hanning windows to the power data to obtain double Blackman window sequences and double Hanning window sequences corresponding to each harmonic in the power data.
[0043] The first determining module is used to determine the harmonic sequence of each harmonic of the target nonlinear user within a preset period based on the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic.
[0044] The second determining module is used to determine the second metering result of the target nonlinear user based on the harmonic sequence of each harmonic.
[0045] The processing module is used to obtain the harmonic measurement results of the target nonlinear user within a preset period based on the first measurement result and the second measurement result.
[0046] The beneficial effects of the embodiments of the present invention compared with the prior art are as follows:
[0047] This invention determines the harmonic measurement results of a target nonlinear user by calculating the first and second measurement results of the electricity meter of the target nonlinear user equipped with photovoltaic power generation equipment, so as to accurately measure the power generation behavior of the nonlinear user. Specifically, by applying double Blackman windows and double Hanning windows to the electricity data at the electricity meter of the target nonlinear user, the sidelobe peak value is lower and the sidelobe decay rate is faster, thereby improving the measurement accuracy of each harmonic, reducing the deviation, and making the obtained harmonic measurement results of the target nonlinear user closer to the true value, thus accurately measuring the power generation behavior of the nonlinear user. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0049] Figure 1 This is a schematic diagram of the bidirectional flow of surplus power from a load user to the internet, provided in an embodiment of the present invention.
[0050] Figure 2 This is a flowchart illustrating the implementation of a harmonic metering method for a photovoltaic grid-connected gateway provided in an embodiment of the present invention.
[0051] Figure 3 This is a flowchart illustrating the implementation of another harmonic metering method for photovoltaic parallel gateway provided in this embodiment of the invention;
[0052] Figure 4 This is a schematic flowchart of another harmonic metering method for photovoltaic grid-connected gateways provided in an embodiment of the present invention;
[0053] Figure 5 This is a schematic diagram of the structure of the harmonic metering device for the photovoltaic grid connection provided in an embodiment of the present invention. Detailed Implementation
[0054] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of the invention. However, those skilled in the art will understand that the invention can be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods are omitted so as not to obscure the description of the invention with unnecessary detail.
[0055] To make the objectives, technical solutions, and advantages of the present invention clearer, specific embodiments will be described below in conjunction with the accompanying drawings.
[0056] Non-linear users within a distribution area include photovoltaic power plants and load users equipped with photovoltaic power generation equipment. Load users equipped with photovoltaic equipment can choose between surplus power feeding into the grid or full power feeding into the grid. When load users choose the surplus power feeding-in mode, the meter used to measure electricity consumption at the load user's location has bidirectional metering functionality. See [link to relevant documentation]. Figure 1 The diagram shown illustrates the bidirectional flow of surplus electricity from load users to the grid. The threshold measurement point satisfies the following formula:
[0057] S A =S B +S C ;
[0058] In the formula, S A S represents photovoltaic power generation. B This represents the load power of the local load at the user's location, S. C This indicates the power supplied to the power grid or the power provided by the power grid.
[0059] Figure 1 Table 1 in the table represents the user's upstream gateway. When the photovoltaic power generation at the user's location exceeds the load power, S... C When the value is positive, it means that the user's distributed photovoltaic power generation generates surplus electricity and feeds it into the grid. In this case, the gateway meter measures the electricity connected to the grid at the user's location. When the photovoltaic power generation at the user's location is less than the load power, S... C A negative value indicates that the power grid needs to supply electricity to the user. In this case, the upstream gateway meter measures the electrical energy used by the user from the power grid. Therefore, the upstream gateway meter has two directions, positive and negative, and possesses bidirectional flow.
[0060] The presence of power electronic devices generates a large number of harmonics when photovoltaic power is connected to the grid. These harmonics affect the power quality within the distribution area. Therefore, it is necessary to accurately measure the harmonics generated at the user's location. Based on this, this invention provides a harmonic measurement method at the photovoltaic grid connection interface to improve the estimation accuracy of harmonics and accurately measure the power generation behavior of nonlinear users.
[0061] Figure 2 A flowchart illustrating the implementation of a harmonic metering method for a photovoltaic grid-connected gateway provided in this embodiment of the invention includes:
[0062] Step S201: Obtain the first measurement result of harmonics in the electricity meter of the target nonlinear user within a preset period, as well as the electricity data at the electricity meter.
[0063] In this embodiment, the target nonlinear users include photovoltaic power plants and load users equipped with photovoltaic power generation devices. The electricity meter can be the upstream gateway electricity meter at the target nonlinear user. This upstream gateway electricity meter can simultaneously employ full-wave metering and fundamental-wave metering. The difference between the full-wave metered electricity and the fundamental-wave metered electricity can determine the harmonic electricity connected to the grid at the target nonlinear user, i.e., the first harmonic metering result. The preset period can be 7 days, 10 days, 30 days, or one calendar month, etc.
[0064] Here, the aforementioned electrical energy data refers to the sampled data connected to the power grid at the electricity meter. For example, the electrical energy data may include voltage data and current data, etc.
[0065] Step S202: Apply double Blackman windows and double Hanning windows to the power data to obtain the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic in the power data.
[0066] In this embodiment, by applying a double Blackman window to the power data, the harmonics in the power data are decomposed, resulting in a double Blackman window sequence corresponding to each harmonic. Similarly, by applying a double Hanning window to the power data, a double Hanning window sequence corresponding to each harmonic in the power data is obtained. For example, the third harmonic sequence decomposed by applying a double Blackman window to the power data in this embodiment is the double Blackman window sequence corresponding to the third harmonic; the third harmonic sequence decomposed by applying a double Hanning window to the power data is the double Hanning window sequence corresponding to the third harmonic.
[0067] This embodiment reduces sidelobe peak values and accelerates sidelobe decay rates by applying a Blackman or Hanning window to the power data, thereby suppressing spectral leakage of harmonics and interharmonics and improving the accuracy of harmonic estimation.
[0068] Step S203: Determine the harmonic sequence of each harmonic of the target nonlinear user within a preset period based on the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic.
[0069] In this embodiment, by comparing the double Blackman window sequence and the double Hanning window sequence corresponding to each harmonic, the final harmonic sequence of each harmonic is determined, which can reduce the estimation deviation and make the determined harmonic sequence closer to the true value.
[0070] Step S204: Determine the second metering result for the target nonlinear user based on the harmonic sequence of each harmonic.
[0071] In this embodiment, a second measurement result is obtained by measuring the harmonic sequence of each harmonic. For example, the power data corresponding to the fifth harmonic is determined by the current harmonic sequence and voltage harmonic sequence of the fifth harmonic, the harmonic energy of the fifth harmonic is measured, and then the second measurement result is obtained by calculating the sum of the harmonic energy of each harmonic.
[0072] Step S205: Based on the first measurement result and the second measurement result, obtain the harmonic measurement result of the target nonlinear user within the preset period.
[0073] In this embodiment, the first metering result is directly measured by the electricity meter, and its accuracy of harmonic electricity may be insufficient. Therefore, the second metering result is calculated to correct the second metering result, and finally the harmonic metering result of the target nonlinear user is determined so as to clarify the cost of harmonics generated by the target nonlinear user.
[0074] This invention determines the harmonic measurement results of a target nonlinear user by calculating the first and second metering results of the electricity meter of the target nonlinear user equipped with photovoltaic power generation equipment, thereby accurately measuring the power generation behavior of the nonlinear user. Specifically, by applying double Blackman windows and double Hanning windows to the electricity data of the target nonlinear user's electricity meter, the sidelobe peak values are lowered and the sidelobe decay rate is faster, improving the measurement accuracy of each harmonic, reducing deviation, and making the obtained harmonic sequence closer to the true value. This further improves the accuracy of the harmonic measurement results of the target nonlinear user, enabling accurate measurement of the power generation behavior of the nonlinear user.
[0075] In one embodiment, double Blackman windows and double Hanning windows are applied to the power data to obtain double Blackman window sequences and double Hanning window sequences corresponding to each harmonic in the power data, including:
[0076] Determine a preset number of sampling points in the electrical energy data;
[0077] Blackman and Hanning windows are applied to the sampling points respectively, and the sampling points after applying Blackman and Hanning windows are segmented and periodically extended to obtain multiple first segment sequences with Blackman windows and multiple second segment sequences with Hanning windows.
[0078] Apply a Blackman window to each sampling point in the first segment sequence, and calculate the mean of the sampling points in each first segment sequence after applying the Blackman window to obtain the first double-window sequence;
[0079] A Hanning window is applied to the sampling points within each second segment sequence, and the mean of the sampling points within each second segment sequence after applying the Hanning window is calculated to obtain the second double-window sequence;
[0080] Fourier transforms are performed on the first and second double-window sequences respectively to determine the frequency, amplitude, and initial phase of each harmonic under the double Blackman window, as well as the frequency, amplitude, and initial phase under the double Hanning window. Based on the frequency, amplitude, and initial phase of each harmonic under the double Blackman window and the double Hanning window, the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic are obtained.
[0081] In this embodiment, a Blackman window can be applied to each sampling point by calculating the window function value of the Blackman window corresponding to each sampling point and multiplying the window function value with the corresponding sampling point; similarly, a Hanning window can be applied to each sampling point by calculating the window function value of the Hanning window corresponding to each sampling point and multiplying the window function value with the corresponding sampling point.
[0082] The aforementioned preset number of sampling points can be 2N-1 sampling points in the electrical energy data. Here, in this embodiment, the sampling points can be divided into N segments, with N sampling points in each segment. For example, the first to the Nth sampling point in the sampling points after applying the Blackman window are determined as the first first segment sequence, and the second to the (N+1)th sampling point are determined as the second first segment sequence. This segmentation is repeated to obtain N first segment sequences. Correspondingly, segmenting the sampling points after applying the Hanning window can yield N second segment sequences.
[0083] Here, by applying a Blackman window to each first segment sequence and a Hanning window to each second segment sequence, windowing is achieved in the vertical direction, thereby improving the estimation accuracy.
[0084] In this embodiment, after obtaining the first double-window sequence and the second double-window sequence, the full-phase Fourier transform spectrum can be obtained by performing Fourier transforms on the first double-window sequence and the second double-window sequence respectively. In this way, the frequency, amplitude and initial phase of each harmonic under the double Blackman window and the double Hanning window can be determined.
[0085] Optionally, the window function of the Blackman window is:
[0086] w B (n)=0.42-0.5cos(2πn / N)+0.08cos(4πn / N);
[0087] In the formula, w B (n) represents the window function of the Blackman window, N represents the length of the sequence, and n represents the sampling points in the sequence, n = 0, 1, 2, 3, ..., N-1.
[0088] In this embodiment, based on the Discrete Fourier Transform, the Blackman window spectrum function of length N is obtained as follows:
[0089]
[0090] In the formula, Let a represent the Blackman window spectrum function. f The coefficients in the window function of the Blackman window are represented by a0 = 0.42, a1 = 0.5, and a0 = 0.08. k represents the discrete Fourier transform frequency, and f represents the index of the coefficients in the window function of the Blackman window, f = 0, 1, 2.
[0091] Optionally, the window function of the Hanning window is:
[0092] w H (n) = 0.5 - 0.5cos(2πn / N);
[0093] In the formula, w H (n) represents the window function of the Hanning window, N represents the length of the sequence, and n represents the sampling points in the sequence, n = 0, 1, 2, 3, ..., N-1.
[0094] In this embodiment, based on the Discrete Fourier Transform, the Hanning window spectrum function of length N is obtained as follows:
[0095]
[0096] In the formula, W(k) represents the Hanning window spectrum function, and k represents the discrete Fourier transform frequency.
[0097] In this embodiment, if the sequence length is 2N-1, the window functions of the Blackman window and the Hanning window can be transformed accordingly, and the value of n can be n = 0, 1, 2, 3, ..., 2N-2.
[0098] Optionally, in this embodiment, the harmonic sequence of each harmonic of the target nonlinear user within a preset period is determined based on the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic, including:
[0099] Based on the frequency and amplitude of the double Blackman window sequence corresponding to each harmonic, and the frequency and amplitude of the double Hanning window sequence, the first amplitude value of the double Blackman window sequence and the second amplitude value of the double Hanning window sequence corresponding to each sampling point in each harmonic are determined respectively.
[0100] Based on the first and second amplitude values corresponding to each sampling point in each harmonic, the amplitude value of each sampling point in each harmonic is determined, and based on the amplitude values of each sampling point in each harmonic, the harmonic sequence of each harmonic of the target nonlinear user within a preset period is obtained.
[0101] In this embodiment, the double Blackman window sequence and the double Hanning window sequence can be aligned using the frequency and amplitude of the double Blackman window sequence corresponding to the harmonic, as well as the frequency and amplitude of the corresponding double Hanning window sequence, to obtain the first amplitude value and the second amplitude value corresponding to each sampling point.
[0102] Furthermore, by using the amplitude values of each sampling point in the double Blackman window sequence and the amplitude values of each sampling point in the double Hanning window sequence, the amplitude values of each sampling point in the harmonic can be determined. This allows for the correction of the amplitude values of each sampling point in the harmonic, making the calculated amplitude values of each sampling point in the harmonic closer to the true amplitude values of the harmonic, improving the accuracy of the harmonic amplitude values, accurately obtaining the harmonic sequence of each harmonic, and thus enabling accurate measurement of harmonic electrical energy.
[0103] Optionally, in this embodiment, the amplitude value of each sampling point in each harmonic is determined based on the first amplitude value and the second amplitude value corresponding to each sampling point in each harmonic, including:
[0104] According to the expression: Calculate the amplitude value corresponding to each sampling point in each harmonic;
[0105] Among them, A i B represents the amplitude value corresponding to the sampling point in the i-th harmonic. i H represents the first amplitude value of the double Blackman window sequence at the sampling point corresponding to the i-th harmonic. i This represents the second amplitude value of the double Hanning window sequence corresponding to the sampling point in the i-th harmonic.
[0106] In this embodiment, the amplitude values of the corresponding harmonics are corrected by using the amplitude values of the double Blackman window sequence and the double Hanning window sequence, so that the amplitude values of each sampling point in the calculated harmonics are closer to the true amplitude values of the harmonics, thereby improving the accuracy of the harmonic amplitude values.
[0107] In one embodiment, see Figure 3 The flowchart shown below illustrates another harmonic metering method for photovoltaic grid-connected interfaces, including:
[0108] Step S301: Obtain the first metering result of harmonics in the electricity meter of the target nonlinear user within a preset period, as well as the electricity data at the electricity meter.
[0109] Step S302: Apply double Blackman windows and double Hanning windows to the power data to obtain the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic in the power data.
[0110] Step S303: Determine the harmonic sequence of each harmonic of the target nonlinear user within a preset period based on the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic.
[0111] Step S304: Determine the second metering result for the target nonlinear user based on the harmonic sequence of each harmonic.
[0112] Step S305: Determine whether the difference between the first metered electricity consumption and the second metered electricity consumption is greater than a preset difference; if the difference is greater than the preset difference, determine that the second metered electricity consumption is the harmonic metering result of the target nonlinear user within a preset period; if the difference is less than or equal to the preset difference, determine that the first metered electricity consumption is the harmonic metering result of the target nonlinear user within a preset period.
[0113] In this embodiment, since the gate meter is set at the target nonlinear user, the target nonlinear user can directly obtain the first metering result of harmonic energy by observing the data of the electricity meter. Therefore, when the difference between the first metered amount and the second metered amount is less than or equal to a preset difference, it means that the first metering result and the second metering result are relatively similar. The first metered amount can be directly used as the harmonic metering result of the target nonlinear user within the preset period, so that the metering result obtained by the user is consistent with the final determined metering result, thereby ensuring the consistency of subsequent electricity cost metering.
[0114] When the difference between the first and second metered electricity amounts is greater than a preset difference, it indicates that there is a significant difference between the first and second metered results, meaning that the first metered result has a large deviation. Therefore, the second metered electricity amount is used as the harmonic metering result for the target nonlinear user within a preset period to improve the accuracy of harmonic metering, accurately measure the power generation behavior of nonlinear users, and ensure accurate metering of subsequent electricity costs.
[0115] For example, if the preset period is one calendar month, the corresponding preset difference at the user's location can be set to 50 kWh.
[0116] Optional, Figure 4 A flowchart illustrating another harmonic metering method for photovoltaic grid-connected interfaces is shown. See [link to flowchart]. Figure 3 and Figure 4 The above embodiments may further include:
[0117] Step S306: Obtain the harmonic metering results of each nonlinear user in the transformer area where the target nonlinear user is located; determine the harmonic threshold based on the harmonic metering results of each nonlinear user in the transformer area; determine the harmonic cost of the target nonlinear user based on the harmonic metering results and harmonic threshold of the target nonlinear user.
[0118] In this embodiment, the harmonic charges for nonlinear users are determined by analyzing the harmonics generated by nonlinear users, thereby imposing harmonic penalties on them. At the same time, the power quality of linear users within the distribution area is affected by the presence of harmonics, so harmonic compensation can be provided to linear users within the distribution area to encourage nonlinear users to reduce harmonic generation, thus achieving harmonic control within the distribution area.
[0119] Here, a transformer substation typically includes multiple non-linear users, each of whom generates harmonic emissions. The harmonic threshold for that substation can be determined by analyzing the harmonic metering results of all non-linear users within the substation, ensuring that the harmonic threshold closely matches the actual situation of the substation. For example, the harmonic threshold can be the average harmonic charge of each non-linear user within the target substation, or it can be determined by the average ratio of harmonic charge to fundamental charge for each non-linear user.
[0120] Here, determining the harmonic charges for the target nonlinear user based on the harmonic metering results and harmonic thresholds may include:
[0121] According to the expression: Determine the harmonic costs for the target nonlinear user;
[0122] In the formula, G m W represents the harmonic cost for the target nonlinear user. h This represents the harmonic measurement results for the target nonlinear user. P represents the harmonic threshold. m This represents the harmonic electricity price for the target nonlinear user.
[0123] In this embodiment, harmonic penalties are applied to the harmonic power consumption of target nonlinear users that exceeds the harmonic threshold, thereby accurately measuring the user's electricity bill, promoting billing fairness, and improving power quality within the distribution area.
[0124] In addition, both linear and nonlinear users use the power supplied by the distribution network within their respective areas. Due to the presence of harmonics, the fundamental energy measured by the electricity meter will be greater than the actual amount of fundamental energy. Therefore, harmonic compensation can be performed on users based on the fundamental energy measured at their locations.
[0125] Optionally, this embodiment can be based on the expression: G si =W i ×P s Determine the harmonic compensation cost for the i-th user within the transformer area; where G si W represents the harmonic compensation for the i-th user. i P represents the fundamental frequency energy of the i-th user. s This indicates the harmonic compensation electricity price for users within the transformer area.
[0126] Here, the aforementioned harmonic electricity price and harmonic compensation price can be determined based on the harmonic metering results within each preset period. Specifically, the harmonic electricity price is determined based on the proportion of harmonic metering results to the fundamental energy metered for the target nonlinear user within the preset period, while the harmonic compensation price is determined based on the proportion of harmonic pollution experienced by the user to the fundamental energy used. The harmonic electricity price and harmonic compensation price within each preset period can be updated and adjusted.
[0127] For example, the smaller the proportion of harmonic energy, the lower the corresponding harmonic electricity price; the larger the proportion of harmonic energy, the higher the corresponding harmonic electricity price. Similarly, the smaller the proportion of harmonic pollution, the lower the corresponding harmonic compensation electricity price; the larger the proportion of harmonic pollution, the higher the corresponding harmonic compensation electricity price.
[0128] Based on this, the fees paid by each user within the service area can be expressed as follows:
[0129] E si =G ji +G mi -G hi -G si ;
[0130] Among them, E si G represents the fee paid by the i-th user within the platform area. ji G represents the cost of the fundamental frequency energy for the i-th user. mi G represents the harmonic cost for the i-th user. hi G represents the photovoltaic cost of the electricity generated by the i-th user's photovoltaic power generation. si This represents the harmonic compensation for the i-th user. If the user is a linear user, then its harmonic cost is zero.
[0131] The transformer substation area also includes the power supply company, which is mainly responsible for maintaining the distribution network within the substation area and controlling harmonics. Therefore, the power supply company's expenses in this substation area are: The fees charged by the power supply company for this transformer area are as follows: In the formula, E p This indicates the expenses of the power supply company. G represents the total photovoltaic (PV) cost paid by the power supply company to each non-linear user within the distribution area for PV power connected to the grid. w This indicates the maintenance cost of the distribution network within the transformer area. E represents the total harmonic compensation cost paid by the power supply company for the electricity supplied by the distribution network within the transformer area. q This indicates the fees charged by the power supply company. This represents the cost of fundamental frequency electricity provided by the power supply company to users within the distribution network of the transformer area. This represents the total harmonic charges collected from nonlinear users within the transformer area.
[0132] In one specific embodiment, full-wave metering, fundamental wave metering, and the harmonic metering method for photovoltaic grid connection provided by this invention were used for metering, and the corresponding costs for the power supply company were calculated. The results are shown in Table 1 below:
[0133] Table 1. Revenue and Expenses of Power Supply Companies under Different Metering Schemes
[0134]
[0135]
[0136] As shown in Table 1, in the present invention, power supply companies can accurately charge users for the generation of harmonics, accurately measure various user fees, and improve the fairness and rationality of electricity metering.
[0137] This invention, through calculation of the first and second metering results of the electricity meter of a target nonlinear user equipped with photovoltaic power generation equipment, determines the harmonic metering results of the target nonlinear user. This allows for accurate measurement of the nonlinear user's power generation behavior, clarification of the cost of harmonics generated by the target nonlinear user, and accurate metering of the nonlinear user's electricity costs. Specifically, by applying double Blackman windows and double Hanning windows to the electricity data at the target nonlinear user's electricity meter, the sidelobe peak values are lowered and the sidelobe decay rate is faster, improving the estimation accuracy of the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic. Furthermore, by applying double Blackman windows and double Hanning windows to all... A window is applied once to each sampling point in the segmented data, achieving two windowing functions and improving the accuracy of harmonic measurement. Then, the harmonic sequence of each harmonic is determined using the corresponding double Blackman window sequence and double Hanning window sequence. Comparison and correction between the double Blackman window sequence and the double Hanning window sequence reduces deviation and makes the obtained harmonic sequence closer to the true value, thereby improving the accuracy of the second measurement result. Specifically, the amplitude values of each sampling point in the double Blackman window sequence and the double Hanning window sequence are used to correct the harmonic amplitude, improving the accuracy of harmonic measurement. This embodiment of the invention also determines the harmonic cost for the target nonlinear user based on the harmonic measurement results and harmonic thresholds. Harmonic penalties are imposed on nonlinear users to encourage them to reduce harmonic generation, thereby achieving harmonic control within the transformer area.
[0138] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0139] The following are device embodiments of the present invention. For details not described in detail, please refer to the corresponding method embodiments described above.
[0140] Figure 5 A schematic diagram of the harmonic metering device for a photovoltaic grid-connected gateway provided in an embodiment of the present invention is shown. For ease of explanation, only the parts related to the embodiment of the present invention are shown, including:
[0141] like Figure 5 As shown, the harmonic metering device 50 at the photovoltaic grid connection port includes:
[0142] The acquisition module 51 is used to acquire the first measurement result of harmonics in the electricity meter of the target nonlinear user within a preset period and the electricity data at the electricity meter.
[0143] The windowing module 52 is used to apply double Blackman windows and double Hanning windows to the power data to obtain the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic in the power data.
[0144] The first determining module 53 is used to determine the harmonic sequence of each harmonic of the target nonlinear user within a preset period based on the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic.
[0145] The second determining module 54 is used to determine the second metering result of the target nonlinear user based on the harmonic sequence of each harmonic.
[0146] The processing module 55 is used to obtain the harmonic measurement results of the target nonlinear user within a preset period based on the first measurement result and the second measurement result.
[0147] In one possible implementation, the windowing module 52 is specifically used for:
[0148] Determine a preset number of sampling points in the electrical energy data;
[0149] Blackman and Hanning windows are applied to the sampling points respectively, and the sampling points after applying Blackman and Hanning windows are segmented and periodically extended to obtain multiple first segment sequences with Blackman windows and multiple second segment sequences with Hanning windows.
[0150] Apply a Blackman window to each sampling point in the first segment sequence, and calculate the mean of the sampling points in each first segment sequence after applying the Blackman window to obtain the first double-window sequence;
[0151] A Hanning window is applied to the sampling points within each second segment sequence, and the mean of the sampling points within each second segment sequence after applying the Hanning window is calculated to obtain the second double-window sequence;
[0152] Fourier transforms are performed on the first and second double-window sequences respectively to determine the frequency, amplitude, and initial phase of each harmonic under the double Blackman window, as well as the frequency, amplitude, and initial phase under the double Hanning window. Based on the frequency, amplitude, and initial phase of each harmonic under the double Blackman window and the double Hanning window, the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic are obtained.
[0153] In one possible implementation, the first determining module 53 is specifically used for:
[0154] Based on the frequency and amplitude of the double Blackman window sequence corresponding to each harmonic, and the frequency and amplitude of the double Hanning window sequence, the first amplitude value of the double Blackman window sequence and the second amplitude value of the double Hanning window sequence corresponding to each sampling point in each harmonic are determined respectively.
[0155] Based on the first and second amplitude values corresponding to each sampling point in each harmonic, the amplitude value of each sampling point in each harmonic is determined, and based on the amplitude values of each sampling point in each harmonic, the harmonic sequence of each harmonic of the target nonlinear user within a preset period is obtained.
[0156] In one possible implementation, the first determining module 53 is specifically used for:
[0157] According to the expression: Calculate the amplitude value corresponding to each sampling point in each harmonic;
[0158] Among them, A i B represents the amplitude value corresponding to the sampling point in the i-th harmonic. i H represents the first amplitude value of the double Blackman window sequence at the sampling point corresponding to the i-th harmonic. i This represents the second amplitude value of the double Hanning window sequence corresponding to the sampling point in the i-th harmonic.
[0159] In one possible implementation, the correction module 55 is specifically used for:
[0160] Determine whether the difference between the first metered electricity consumption and the second metered electricity consumption is greater than a preset difference;
[0161] If the difference is greater than the preset difference, the second metered electricity is determined to be the harmonic metering result of the target nonlinear user within the preset period;
[0162] If the difference is less than or equal to the preset difference, then the first metered electricity is determined as the harmonic metering result of the target nonlinear user within the preset period.
[0163] In one possible implementation, the window function of the Blackman window is:
[0164] wB (n)=0.42-0.5cos(2πn / N)+0.08cos(4πn / N);
[0165] In the formula, w B (n) represents the window function of the Blackman window, N represents the length of the sequence, and n represents the sampling points in the sequence, n = 0, 1, 2, 3, ..., N-1.
[0166] In one possible implementation, the window function of the Hanning window is:
[0167] w H (n) = 0.5 - 0.5cos(2πn / N);
[0168] In the formula, w H (n) represents the window function of the Hanning window, N represents the length of the sequence, and n represents the sampling points in the sequence, n = 0, 1, 2, 3, ..., N-1.
[0169] In one possible implementation, the harmonic metering device 50 at the photovoltaic grid connection interface further includes a third determining module, which is used for:
[0170] Obtain the harmonic metering results of each nonlinear user in the transformer area where the target nonlinear user is located;
[0171] The harmonic threshold is determined based on the harmonic metering results of each nonlinear user within the transformer area.
[0172] The harmonic charges for the target nonlinear user are determined based on the harmonic metering results and harmonic thresholds.
[0173] In one possible implementation, the third determining module is specifically used for:
[0174] According to the expression: Determine the harmonic costs for the target nonlinear user;
[0175] In the formula, G m W represents the harmonic cost for the target nonlinear user. h This represents the harmonic measurement results for the target nonlinear user. P represents the harmonic threshold. m This represents the harmonic electricity price for the target nonlinear user.
[0176] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0177] Those skilled in the art will recognize that the templates, units, and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0178] If a module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of the present invention can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory, random access memory, electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0179] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.
Claims
1. A method for measuring harmonics at a photovoltaic grid connection interface, characterized in that, include: Acquire the first measurement result of harmonics in the electricity meter of the target nonlinear user within a preset period, as well as the electricity data at the electricity meter; By applying a double Blackman window and a double Hanning window to the power data, the double Blackman window sequence and the double Hanning window sequence corresponding to each harmonic in the power data are obtained. Based on the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic, the harmonic sequence of each harmonic of the target nonlinear user within the preset period is determined. The second metering result for the target nonlinear user is determined based on the harmonic sequence of each harmonic. Based on the first measurement result and the second measurement result, the harmonic measurement result of the target nonlinear user within the preset period is obtained; The step of determining the harmonic sequence of each harmonic of the target nonlinear user within the preset period based on the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic includes: Based on the frequency and amplitude of the double Blackman window sequence corresponding to each harmonic, and the frequency and amplitude of the double Hanning window sequence, the first amplitude value of the double Blackman window sequence and the second amplitude value of the double Hanning window sequence corresponding to each sampling point in each harmonic are determined respectively. Based on the first amplitude value and the second amplitude value corresponding to each sampling point in each harmonic, the amplitude value of each sampling point in each harmonic is determined respectively, and based on the amplitude value of each sampling point in each harmonic, the harmonic sequence of each harmonic of the target nonlinear user in the preset period is obtained. The step of determining the amplitude value of each sampling point in each harmonic based on the first amplitude value and the second amplitude value corresponding to each sampling point in each harmonic includes: According to the expression: Calculate the amplitude value corresponding to each sampling point in each harmonic; in, Indicates the first The amplitude value corresponding to the sampling point in the subharmonic. Indicates the first The first amplitude value of the double Blackman window sequence at the corresponding sampling point in the subharmonic. Indicates the first The second amplitude value of the double Hanning window sequence corresponding to the sampling point in the subharmonic.
2. The harmonic measurement method for photovoltaic parallel-connected gateways according to claim 1, characterized in that, The step of applying a double Blackman window and a double Hanning window to the power data to obtain the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic in the power data includes: Determine a preset number of sampling points in the electrical energy data; Blackman and Hanning windows are applied to the sampling points respectively, and the sampling points after applying Blackman and Hanning windows are segmented and periodically extended to obtain multiple first segment sequences with Blackman windows and multiple second segment sequences with Hanning windows. Apply a Blackman window to each sampling point in the first segment sequence, and calculate the mean of the sampling points in each first segment sequence after applying the Blackman window to obtain the first double-window sequence; A Hanning window is applied to the sampling points within each second segment sequence, and the mean of the sampling points within each second segment sequence after applying the Hanning window is calculated to obtain the second double-window sequence; Fourier transforms are performed on the first and second dual-window sequences respectively to determine the frequency, amplitude, and initial phase of each harmonic under the dual Blackman window, as well as the frequency, amplitude, and initial phase under the dual Hanning window. Based on the frequency, amplitude, and initial phase of each harmonic under the dual Blackman window and the dual Hanning window, the corresponding dual Blackman window sequence and dual Hanning window sequence are obtained.
3. The harmonic metering method for photovoltaic parallel-connected gateways according to claim 1 or 2, characterized in that, The step of obtaining the harmonic measurement results of the target nonlinear user within a preset period based on the first measurement result and the second measurement result includes: Determine whether the difference between the first measurement result and the second measurement result is greater than a preset difference; If the difference is greater than a preset difference, then the second measurement result is determined to be the harmonic measurement result of the target nonlinear user within a preset period; If the difference is less than or equal to a preset difference, then the first measurement result is determined to be the harmonic measurement result of the target nonlinear user within a preset period.
4. The harmonic metering method for photovoltaic parallel gateway interface according to claim 2, characterized in that, The window function of the Blackman window is: ; In the formula, This represents the window function of the Blackman window. Indicates the length of the sequence. Represents the sampling points in the sequence. .
5. The harmonic metering method for photovoltaic parallel gateway interface according to claim 2, characterized in that, The window function of the Hanning window is: ; In the formula, This represents the window function of the Hanning window. Indicates the length of the sequence. Represents the sampling points in the sequence. .
6. The harmonic measurement method for photovoltaic parallel gateway interface according to claim 1 or 2, characterized in that, After obtaining the harmonic measurement results of the target nonlinear user within the preset period based on the first measurement result and the second measurement result, the method further includes: Obtain the harmonic metering results of each nonlinear user in the transformer area where the target nonlinear user is located; The harmonic threshold is determined based on the harmonic metering results of each nonlinear user within the transformer area. The harmonic cost of the target nonlinear user is determined based on the harmonic metering results and the harmonic threshold.
7. The harmonic metering method for photovoltaic grid connection interface according to claim 6, characterized in that, Determining the harmonic cost for the target nonlinear user based on the harmonic metering results and the harmonic threshold includes: According to the expression: Determine the harmonic costs for the target nonlinear user; In the formula, This represents the harmonic cost for the target nonlinear user. This represents the harmonic metering results for the target nonlinear user. Indicates the harmonic threshold. This represents the harmonic electricity price for the target nonlinear user.
8. A harmonic metering device for a photovoltaic parallel gateway interface, characterized in that, include: The acquisition module is used to acquire the first measurement result of harmonics in the electricity meter of the target nonlinear user within a preset period and the electricity data at the electricity meter. A windowing module is used to apply double Blackman windows and double Hanning windows to the power data to obtain double Blackman window sequences and double Hanning window sequences corresponding to each harmonic in the power data. The first determining module is used to determine the harmonic sequence of each harmonic of the target nonlinear user within a preset period based on the double Blackman window sequence and double Hanning window sequence corresponding to each harmonic. The second determining module is used to determine the second metering result of the target nonlinear user based on the harmonic sequence of each harmonic. The processing module is used to obtain the harmonic measurement results of the target nonlinear user within a preset period based on the first measurement result and the second measurement result; The first determining module is specifically used for: Based on the frequency and amplitude of the double Blackman window sequence corresponding to each harmonic, and the frequency and amplitude of the double Hanning window sequence, the first amplitude value of the double Blackman window sequence and the second amplitude value of the double Hanning window sequence corresponding to each sampling point in each harmonic are determined respectively. Based on the first amplitude value and the second amplitude value corresponding to each sampling point in each harmonic, the amplitude value of each sampling point in each harmonic is determined respectively, and based on the amplitude value of each sampling point in each harmonic, the harmonic sequence of each harmonic of the target nonlinear user in the preset period is obtained. The first determining module is specifically used for: According to the expression: Calculate the amplitude value corresponding to each sampling point in each harmonic; in, Indicates the first The amplitude value corresponding to the sampling point in the subharmonic. Indicates the first The first amplitude value of the double Blackman window sequence at the corresponding sampling point in the subharmonic. Indicates the first The second amplitude value of the double Hanning window sequence corresponding to the sampling point in the subharmonic.
Citation Information
Patent Citations
Harmonic and inter-harmonic detection method based on Nuttall dual-window all-phase FFT (Fast Flourier Transform)
CN106483374A
Inter-harmonic extraction method based on Blackman window
CN107561359A
