Power grid frequency measurement method and system, medium and product

Through the combination of discrete Fourier transform and extended Kalman filtering algorithm, the wide-area synchronous phasor measurement algorithm is optimized, which solves the problem of insufficient computing complexity and noise immunity, and realizes efficient and accurate grid frequency measurement, satisfying modern times Monitoring and control requirements of power systems.

CN119044600APending Publication Date: 2024-11-29HUNAN UNIV

Patent Information

Application Number
CN202411558639.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing wide-area synchronous phasor measurement algorithm has problems such as high computational complexity, poor real-time performance and insufficient noise resistance when processing real-time data, which has affected its application effect in monitoring and control of modern power systems.

Method used

The imaginary and real parts of the phase measurement value are calculated using discrete Fourier transform, the phase angle is calculated based on the phase measurement value, and frequency enhancement estimation is performed through the extended Kalman filtering algorithm, which optimizes the calculation process and enhances noise immunity, and improves wide-area synchronization. Accuracy and real-time performance of phasor measurements.

Benefits of technology

It significantly improves computing efficiency and noise immunity, meets the high precision and high efficiency requirements of modern power systems for monitoring and control, reduces equipment costs, and improves situational awareness and grid visibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119044600A_ABST
    Figure CN119044600A_ABST
Patent Text Reader

Abstract

The invention discloses a power grid frequency measurement method and system, a medium and a product, and the method comprises the steps: employing discrete Fourier transform to calculate an imaginary part and a real part of a phase measurement value for an input power grid signal, and calculating a phase angle according to the imaginary part and the real part of the phase measurement value; calculating the estimated frequency of the power grid according to the phase angles of the plurality of continuous sampling points; and performing frequency enhancement estimation on the estimated frequency through an extended Kalman filtering algorithm to obtain an enhanced estimated frequency, and outputting the enhanced estimated frequency. In the field of wide-area synchronous phasor measurement, the existing wide-area synchronous phasor algorithm has the problems of high calculation complexity, poor real-time performance, insufficient anti-noise capability and the like when processing real-time synchronous phasor data, so that the requirements of high precision and high efficiency are difficult to meet in practical application, and the invention aims to improve the existing wide-area synchronous phasor measurement algorithm. And the calculation process is optimized, the anti-noise capability is enhanced, and the precision and real-time performance of wide-area synchronous phasor measurement are improved so as to meet the monitoring and control requirements of a modern power system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wide-area synchronized phasor measurement, and in particular to a power grid frequency measurement method, system, medium and product. Background Art

[0002] Wide-area synchronized phasor measurement technology (Phasor Measurement Unit, PMU) is an important means of monitoring and controlling modern power systems. It can measure the voltage and current phasors in the power grid in real time and provide important data support for stability analysis, fault detection and power quality monitoring of the power system. The synchronized phasor estimation algorithm is the core of the PMU.

[0003] Discrete Fourier Transform (DFT) algorithm is a commonly used phasor measurement method, which effectively reduces the amount of calculation through recursive calculation. DFT-based algorithms have the advantages of good harmonic tolerance, high accuracy, and simple hardware implementation, and are widely used in commercial PMUs. Classic DFT-based algorithms can provide accurate measurements when the power grid operates close to the nominal frequency, but when the power grid frequency deviates from the nominal frequency, the measurement error will increase due to the spectrum leakage problem of DFT. In addition, under dynamic conditions such as frequency variation, amplitude modulation, and phase angle modulation, the algorithm usually has large measurement errors. In order to accurately calculate the power grid frequency under various steady-state and dynamic conditions, a large number of improvements have been made to the DFT-based estimation algorithm. The interpolation DFT algorithm uses a spectral interpolation method to reduce the spectrum leakage at the nominal frequency. The adaptive DFT algorithm adjusts the filter parameters based on the initial estimate to improve the measurement accuracy. A virtual two-phase signal is created to eliminate the spectrum leakage of DFT, thereby minimizing the error at the nominal frequency. In order to improve the steady-state and dynamic measurement accuracy, a method consisting of multiple constant coefficient filter modules is proposed. In summary, the use of multiple error mitigation methods can significantly reduce the measurement error based on the DFT algorithm. However, in order to achieve higher measurement accuracy, the algorithm becomes more and more complex and the amount of calculation becomes larger and larger. In addition, with the penetration of distributed energy in large-capacity systems, we are facing a more dynamic and noisy distribution network measurement environment. The error can be reduced by increasing the data sampling rate and window size, which further increases the computational cost on hardware and software. Therefore, a more computationally efficient and accurate measurement algorithm is very important for reducing equipment costs and large-scale deployment, which ultimately helps to improve situational awareness and grid visibility. In addition, in power system applications such as low / high frequency transient protection, frequency-based load control, and faster system dynamic response prediction, a higher frequency measurement rate is required. When processing a large amount of real-time data, the traditional wide-area synchronized phasor measurement algorithm exposes problems such as high computational complexity, poor real-time performance, and insufficient noise resistance, which affects its effect in practical applications. Therefore, improving the wide-area synchronized phasor measurement algorithm to improve its computational efficiency and noise resistance has become an important direction for the research of wide-area synchronized phasor measurement technology. Summary of the invention

[0004] Technical problem to be solved by the present invention: In view of the above-mentioned problems in the prior art, a power grid frequency measurement method, system, medium and product are provided. The present invention aims to improve the existing wide-area synchronized phasor measurement algorithm, optimize the calculation process and enhance the anti-noise capability, and improve the accuracy and real-time performance of wide-area synchronized phasor measurement to meet the needs of modern power system monitoring and control.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: A method for measuring power grid frequency comprises the following steps: S1, using discrete Fourier transform to calculate the imaginary part and real part of the phase measurement value for the input power grid signal, and calculating the phase angle according to the imaginary part and real part of the phase measurement value; S2, calculating the estimated frequency of the power grid based on the phase angles of multiple consecutive sampling points; S3, performing frequency enhancement estimation on the estimated frequency through an extended Kalman filter algorithm to obtain an enhanced estimated frequency and output it.

[0006] Optionally, step S1 includes first calculating the imaginary part and the real part of the initial phase measurement value using discrete Fourier transform according to the following formula for the grid signals of the initial N sampling points: , In the above formula, and are the real and imaginary parts of the initial phase measurement, respectively, N is the number of sampling points, It is k The grid signal value of the sampling point; then the imaginary part and the real part of any m-th phase measurement value are calculated by recursive discrete Fourier transform according to the following formula: , In the above formula, and are the real and imaginary parts of the mth phase measurement, and are the real and imaginary parts of the m-1th phase measurement, and For the m+N and m The grid signal value of each sampling point.

[0007] Optionally, the calculation function expression of the phase angle in step S1 is: , In the above formula, is the phase angle of the mth phase measurement value, , and are the real and imaginary parts of the mth phase measurement.

[0008] Optionally, calculating the estimated frequency of the power grid according to the phase angles of the continuous plurality of sampling points in step S2 comprises: calculating the estimated frequency of the power grid according to the continuous phase angles of the continuous plurality of sampling points The phase angles of the sampling points are used to calculate the quadratic polynomial coefficients : , In the above formula, is the phase angle of the i-th sampling point, is the time length of the i-th sampling point, ,in is the sampling interval, is the coefficient matrix The elements in , and have: , In the above formula, is the coefficient matrix The determinant value of; the estimated frequency of the power grid at the jth sampling point is calculated according to the following formula: , In the above formula, is the estimated frequency of the power grid at the jth sampling point, is the initial frequency of the power grid, is the coefficient of the j-th quadratic polynomial .

[0009] Optionally, in step S2, calculating the estimated frequency of the power grid according to the phase angles of a plurality of consecutive sampling points comprises: for consecutive The phase angle of the sampling point is first calculated based on the following formula: : , In the above formula, is the coefficient of the j-th quadratic polynomial , is the phase angle of the i+jth sampling point, is the time length of the i-th sampling point, ,in is the sampling interval, is the coefficient matrix The elements in , and have: , In the above formula, is the coefficient matrix The determinant value; then use the recursive idea to calculate the subsequent quadratic polynomial coefficients according to the following formula : , , In the above formula, is the coefficient of the j-1th quadratic polynomial , For the The phase angle of the sampling points, For the The phase angle of the sampling points, For the An intermediate variable, For the An intermediate variable, To determine The estimated frequency of the power grid at the jth sampling point is calculated according to the following formula: , In the above formula, is the estimated frequency of the power grid at the jth sampling point, is the initial frequency of the power grid, is the coefficient of the j-th quadratic polynomial .

[0010] Optionally, when the estimated frequency is subjected to frequency enhancement estimation by an extended Kalman filter algorithm in step S3, the function expression for updating the enhanced frequency estimation prediction value is: , In the above formula, For the k The moment enhanced frequency estimate prediction value, A It works on The state transition model on for k -1 moment enhances the frequency estimation update value, It acts on the controller variable The input-control model on the covariance matrix is ​​expressed as follows: , In the above formula, for k The predicted value of the moment covariance matrix, for k The updated value of the covariance matrix at time -1, is the process noise covariance; the function expression for calculating the extended Kalman filter gain is: , In the above formula, is the extended Kalman filter gain, H is the observation model, which is used to map the real state space into the observation space; R is the observation noise covariance; the function expression for updating the frequency estimate is: , In the above formula, for k Enhanced frequency estimation update value at time, observation equation is the estimated frequency of the kth sampling point; the function expression for updating the covariance matrix is: , In the above formula, for k The updated value of the covariance matrix at time , I is the identity matrix.

[0011] In addition, the present invention also provides a power grid frequency measurement system, comprising: A phase angle calculation program unit is used to calculate the imaginary part and the real part of the phase measurement value by discrete Fourier transform for the input power grid signal, and calculate the phase angle according to the imaginary part and the real part of the phase measurement value; A frequency estimation program unit, used for calculating an estimated frequency of a power grid according to phase angles of a plurality of consecutive sampling points; The frequency enhancement program unit is used to perform frequency enhancement estimation on the estimated frequency through an extended Kalman filter algorithm to obtain an enhanced estimated frequency and output it.

[0012] In addition, the present invention also provides a power grid frequency measurement system, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute the power grid frequency measurement method.

[0013] In addition, the present invention also provides a computer-readable storage medium, in which a computer program or instruction is stored. The computer program or instruction is programmed or configured to execute the power grid frequency measurement method through a processor.

[0014] In addition, the present invention also provides a computer program product, including a computer program or an instruction, wherein the computer program or the instruction is programmed or configured to execute the grid frequency measurement method through a processor.

[0015] Compared with the prior art, the present invention mainly has the following advantages: in the field of wide-area synchronized phasor measurement, the existing wide-area synchronized phasor algorithm has the problems of high computational complexity, poor real-time performance and insufficient noise resistance when processing real-time synchronized phasor data, which makes it difficult to meet the requirements of high precision and high efficiency in practical applications. The present invention includes using discrete Fourier transform to calculate the imaginary part and real part of the phase measurement value for the input power grid signal, and calculating the phase angle according to the imaginary part and the real part of the phase measurement value; calculating the estimated frequency of the power grid according to the phase angles of multiple continuous sampling points; and performing frequency enhancement estimation on the estimated frequency through an extended Kalman filter algorithm to obtain an enhanced estimated frequency and output it. The present invention can effectively improve the existing wide-area synchronized phasor measurement algorithm, optimize the calculation process and enhance the noise resistance, and improve the accuracy and real-time performance of wide-area synchronized phasor measurement to meet the needs of modern power system monitoring and control. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 Schematic diagram of the basic flow of the method of the embodiment of the present invention.

[0017] Figure 2 The complete process and principle diagram of the method of the embodiment of the present invention. DETAILED DESCRIPTION

[0018] like Figure 1 As shown, this embodiment provides a method for measuring power grid frequency, comprising the following steps: S1, using discrete Fourier transform to calculate the imaginary part and real part of the phase measurement value for the input power grid signal, and calculating the phase angle according to the imaginary part and real part of the phase measurement value; S2, calculating the estimated frequency of the power grid based on the phase angles of multiple consecutive sampling points; S3, performing frequency enhancement estimation on the estimated frequency through an extended Kalman filter algorithm to obtain an enhanced estimated frequency and output it.

[0019] The single-phase grid signal waveform can be expressed as: , (1) In the above formula, is the grid amplitude, is the grid frequency, is the initial phase angle of the power grid, is the signal amplitude, It's time.

[0020] When discretizing a signal, it is necessary to sample the signal at a specified frequency. The signal value at the kth point after sampling can be expressed as: , (2) In the above formula, is the power grid signal at the kth moment, is the signal sampling frequency, is the sampling point of the signal per cycle, is the nominal frequency of the power system.

[0021] The discrete Fourier transform of the initial sampling point of the discrete signal described in equation (2) can be expressed as: , (3) In the above formula, and are the real and imaginary parts of the initial phase measurement, respectively, N is the number of sampling points, It is k The grid signal value of the sampling points; therefore, step S1 of this embodiment includes firstly calculating the imaginary part and real part of the initial phase measurement value by discrete Fourier transform according to formula (3) for the grid signal of the initial N sampling points; and then calculating the imaginary part and real part of any m-th phase measurement value by recursive discrete Fourier transform according to the following formula: , (4) In the above formula, and are the real and imaginary parts of the mth phase measurement, and are the real and imaginary parts of the m-1th phase measurement, and For the m+N and m The grid signal value of the sampling point is calculated by using the Recursive Discrete Fourier Transform (RDFT) algorithm as shown in formula (3). phase. and After that, only two numerical operations (i.e., one addition and one multiplication) are required to obtain and When the sampling data window moves along the real axis, the new phase quantity is calculated using the improved high-efficiency and high-precision measurement algorithm of the present invention, which can be completed by simply performing a simple operation on two sampling points based on the original phase quantity value.

[0022] By taking the inverse tangent of the ratio of the imaginary part to the real part of the phase measurement value, we can get the phase angle at that moment. Specifically, the calculation function expression of the phase angle in step S1 of this embodiment is: , (5) In the above formula, is the phase angle of the mth phase measurement value, , and are the real and imaginary parts of the mth phase measurement. According to the principle of the RDFT algorithm, the initial frequency estimate can be calculated as follows: , (6) In the above formula, and is the frequency estimate, is the phase angle of the m-1th phase measurement value, is the sampling interval, equal to According to formula (6), the frequency of the power grid (in terms of can be used and However, the grid waveform is always affected by various interferences, such as noise, harmonics, oscillation, etc. Therefore, in practical applications, a series of phase angles are usually used to estimate the frequency. First, assume that the number of phase angles used for a frequency estimation is The phase angles are fitted using a quadratic polynomial, which is expressed as (7): , (7) In the above formula, is the i-th phase angle The estimated value of , , are the coefficients of the quadratic polynomial, The estimated value of the i-th phase angle is The derivative of It can be expressed as: , (8) Further, in the sample index When the i-th phase angle It can be expressed as: , (9) therefore, The frequency at can be calculated by the following formula: , (10) In the above formula, is the estimated frequency of the grid, is the initial frequency of the power grid, is the coefficient of the quadratic polynomial. According to formula (10), once the coefficient of the quadratic polynomial is obtained , we can get the estimated frequency of the power grid To determine the coefficients of the quadratic polynomial The optimal value of is used to minimize the sum of square errors between the fitting curve and the data points, and the error function in formula (11) is obtained: , (11) In the above formula, in the above formula, is the error value between the fitted curve and the data points; To calculate the error, is the i-th phase angle To minimize the error function, let , and The partial derivative of is equal to zero, Relative to , and The equation obtained after evaluating the partial derivatives of is: , (12) , (13) , (14) In order to optimize the algorithm and simplify the calculation, the above formula is rewritten into matrix form: , (15) In the above formula, is the matrix form of the coefficients of the quadratic polynomial, the coefficient matrix It is from formula (12) to formula (14) , and The coefficient matrix composed of coefficients, is the coefficient matrix The elements in is the phase angle matrix. Since frequency estimation only requires quadratic polynomial coefficients , so we only need to calculate the coefficient matrix The coefficients in , and , the calculation function expressions of these coefficients are: , (16) , (17) , (18) In the above formula, is the coefficient matrix The determinant value of ; because: , ,so . The calculation depends only on and ,therefore Therefore, in step S2 of this embodiment, the estimated frequency of the power grid is calculated based on the phase angles of a plurality of consecutive sampling points, including: The phase angles of the sampling points are used to calculate the quadratic polynomial coefficients : , (19) In the above formula, is the phase angle of the i-th sampling point, is the time length of the i-th sampling point, ,in is the sampling interval, is the coefficient matrix The elements in ; finally, the estimated frequency of the power grid is calculated according to formula (10).

[0023] Usually, a new frequency can be estimated by equation (10) and equation (19), which requires a total of (2 L +1) times the phase angle. The computation time for the new frequency estimate is Lis proportional to, because in formula (19) (2 L +1) multiplications and 2 L Therefore, the computational complexity of phase angle estimation is O (1), and the computational complexity of frequency estimation is O(L) The bottleneck in calculating the frequency lies in the coefficients of the quadratic polynomial If the coefficients of the quadratic polynomial can be The computation time depends on Reduce to constant time , then we can The computational complexity of frequency estimation is achieved. Figure 2 As shown, this embodiment uses the recursive idea to calculate the coefficients of the quadratic polynomial .use replace , as shown below: , (20) In the above formula, is the coefficient of the j-th quadratic polynomial , is the phase angle of the i+jth sampling point, is the time length of the i-th sampling point, ,in is the sampling interval, is the coefficient matrix Initialize the elements in It can be obtained by using formula (20) is calculated in proportional linear time; the subsequent It is derived by satisfying the recursive relationship shown in formula (21); ,(twenty one) In the above formula, is the coefficient of the j-1th quadratic polynomial , For the The phase angle of the sampling points, For the The phase angle of the sampling points, For the An intermediate variable, For the An intermediate variable, To determine Therefore, in step S2 of this embodiment, the estimated frequency of the power grid is calculated according to the phase angles of the continuous plurality of sampling points, including: The phase angle of the sampling point is first calculated based on equation (20): ; Then, according to formula (21), the recursive idea is used to calculate the subsequent quadratic polynomial coefficients ; Finally, the estimated frequency of the power grid is calculated according to formula (10).

[0024] According to formula (21), a new ,use Indicates that it can be used Calculated. is a constant, so the first term of formula (21) can be computed in constant time with one addition and one multiplication. The calculation time and So its computational complexity is still According to The definition of can be derived into the expression shown in formula (22): ,(twenty two) Therefore, according to formula (22), once we get , can be computed in constant time with one addition and one subtraction.

[0025] In order to further reduce the measurement error of the frequency estimated by equation (10), in step S3 of this embodiment, the estimated frequency calculated above is subjected to frequency enhancement estimation by an extended Kalman filter algorithm. Figure 2 As shown, in step S3 of this embodiment, when the estimated frequency is subjected to frequency enhancement estimation by the extended Kalman filter algorithm, the function expression for updating the enhanced frequency estimation prediction value is: ,(twenty three) In the above formula, For the k The moment enhanced frequency estimate prediction value, A It works on The state transition model on for k -1 time to enhance the frequency estimation update value (initial value is 50Hz), It acts on the controller variable The input-control model on the covariance matrix is ​​expressed as follows: ,(twenty four) In the above formula, for k The predicted value of the moment covariance matrix, for k The updated value of the covariance matrix at time -1 (initial value is 1), is the process noise covariance; the function expression for calculating the extended Kalman filter gain is: , (25) In the above formula, is the extended Kalman filter gain, H is the observation model, which is used to map the real state space into the observation space; R is the observation noise covariance; the function expression for updating the frequency estimate is: , (26) In the above formula, for k Enhanced frequency estimation update value at time, observation equation is the estimated frequency of the kth sampling point; according to formula (10), the estimated frequency of the power grid at the jth sampling point can be calculated according to the following formula: , (27) In the above formula, is the estimated frequency of the power grid at the jth sampling point, is the initial frequency of the power grid, is the coefficient of the j-th quadratic polynomial , thus obtaining the initial estimated frequency , the estimated frequency of the first sampling point , the estimated frequency of the j-1th sampling point and the estimated frequency of the jth sampling point ,like Figure 2 In this embodiment, the function expression for updating the covariance matrix is: , (28) In the above formula, for k The updated value of the covariance matrix at time , I is the identity matrix.

[0026] In summary, with the large-scale deployment of distributed energy in the power system, we are facing a more dynamic and noisy distribution network measurement environment. However, the existing wide-area synchronized phasor measurement algorithm has many shortcomings in terms of computational complexity, real-time performance, noise immunity, frequency resolution, cumulative error, and resource consumption. These shortcomings seriously affect the performance of the DFT algorithm in applications with high-speed and high-precision requirements. Therefore, this embodiment proposes a high-speed and high-precision improved algorithm by improving the algorithm structure and introducing new technologies to solve the shortcomings of the existing DFT algorithm and meet the needs of modern wide-area synchronized phasor measurement technology. See Figure 2, the grid frequency measurement method of this embodiment includes: initial phase estimation: initial phase estimation is performed by DFT calculation of the first N sampling points to provide an initial value for subsequent phase estimation and frequency estimation. Phase calculation is accelerated by using an independent initial phase estimation method to provide computational efficiency. Initial frequency estimation and frequency estimation structure optimization: (2L+1) sampling points are used for initial frequency estimation, instead of the traditional DFT algorithm relying on the calculation window length; and the optimized algorithm structure and calculation process are adopted, and only simple operations on two sampling points are required based on the original phase value to complete; the accuracy and efficiency of frequency estimation are improved. Step-by-step processing of phase and frequency estimation: the algorithm divides the estimation of phase and frequency into multiple steps, including initial frequency estimation, phase estimation, frequency estimation and enhanced frequency estimation. This step-by-step processing method can gradually correct errors and improve the accuracy of estimation. Enhanced frequency estimation: the improved DFT algorithm and the Kalman filter algorithm are innovatively combined, the frequency estimation is enhanced by the Kalman filter algorithm, and the error correction mechanism is embedded in each step of estimation. The accuracy of the estimation result is ensured by correcting the calculation error in real time. The initial estimation results and more sampled data are used for further optimization and correction to further improve the accuracy of frequency estimation. First, the present invention simplifies the solution of phase angle fitting parameters by improving the traditional algorithm structure and finding the mathematical relationship when the DFT algorithm phase angle is fitted; secondly, the present invention introduces a recursive idea to the frequency estimation result to reduce the computational complexity of the algorithm; finally, the present invention uses a flow-combined Kalman filter algorithm to filter the initial frequency estimation result to further improve the measurement accuracy and achieve high-efficiency and high-precision synchronous phasor measurement. The method of this embodiment significantly improves the computational efficiency and real-time performance by optimizing the algorithm structure and calculation process, and enhances the anti-noise ability to solve the shortcomings of the existing DFT algorithm in terms of real-time performance, computational complexity and anti-noise ability. The method of this embodiment optimizes the calculation process and introduces a multi-step processing method. This embodiment gradually optimizes multiple steps such as initial phase estimation, initial frequency estimation, phase estimation and enhanced frequency estimation, reduces the calculation time of each step, thereby significantly improving the real-time performance of the algorithm and meeting the requirements of real-time data processing. In addition, this embodiment embeds an error correction mechanism in the algorithm, and corrects the calculation error in real time, and gradually corrects and optimizes the frequency estimation result through a multi-step frequency estimation method, combined with the initial frequency estimation and enhanced frequency estimation, to improve the stability and accuracy of the algorithm in noise and other environments. This embodiment significantly solves the deficiencies of the traditional DFT algorithm in terms of computational complexity, real-time performance, noise resistance, and frequency resolution through improvements in algorithm structure and calculation optimization, real-time performance improvement, noise resistance enhancement, and high-precision frequency estimation, and provides a more efficient and accurate power grid frequency enhancement measurement method and system, so that this embodiment has stronger adaptability and higher application value in wide-area synchronous phasor measurement.The grid frequency enhanced measurement method of this embodiment realizes a method capable of ultra-fast and high-precision measurement of grid frequency by optimizing the process structure and introducing the Kalman filter algorithm, including: using initial phase estimation and initial frequency estimation to provide basic values ​​for subsequent calculations; gradually correcting errors through multi-step frequency estimation and introducing Kalman filter enhanced frequency estimation, thereby improving the accuracy of frequency measurement; optimizing the algorithm structure, simplifying the calculation steps, reducing the amount of calculation, improving the calculation efficiency, and ensuring application in a real-time environment.

[0027] In addition, this embodiment also provides a power grid frequency measurement system, including: A phase angle calculation program unit is used to calculate the imaginary part and the real part of the phase measurement value by discrete Fourier transform for the input power grid signal, and calculate the phase angle according to the imaginary part and the real part of the phase measurement value; A frequency estimation program unit, used for calculating an estimated frequency of a power grid according to phase angles of a plurality of consecutive sampling points; The frequency enhancement program unit is used to perform frequency enhancement estimation on the estimated frequency through an extended Kalman filter algorithm to obtain an enhanced estimated frequency and output it.

[0028] In addition, this embodiment also provides a power grid frequency measurement system, including a microprocessor and a memory connected to each other, and the microprocessor is programmed or configured to execute the power grid frequency measurement method.

[0029] In addition, this embodiment further provides a computer-readable storage medium, in which a computer program or instruction is stored. The computer program or instruction is programmed or configured to execute the power grid frequency measurement method through a processor.

[0030] In addition, this embodiment also provides a computer program product, including a computer program or instructions, where the computer program or instructions are programmed or configured to execute the power grid frequency measurement method through a processor.

[0031] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the process Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0032] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A method for measuring power grid frequency, characterized in that: The steps include: S1, using discrete Fourier transform to calculate the imaginary part and real part of the phase measurement value for the input power grid signal, and calculating the phase angle according to the imaginary part and real part of the phase measurement value; S2, calculating the estimated frequency of the power grid based on the phase angles of multiple consecutive sampling points; S3, performing frequency enhancement estimation on the estimated frequency through an extended Kalman filter algorithm to obtain an enhanced estimated frequency and output it.

2. The method for measuring power grid frequency according to claim 1, characterized in that: Step S1 includes first calculating the imaginary part and the real part of the initial phase measurement value using discrete Fourier transform according to the following formula for the grid signal of the initial N sampling points: , In the above formula, and are the real and imaginary parts of the initial phase measurement, N is the number of sampling points, It is k The grid signal value of sampling points, N is the number of sampling points; then the imaginary part and real part of any m-th phase measurement value are calculated using recursive discrete Fourier transform according to the following formula: , In the above formula, and are the real and imaginary parts of the mth phase measurement, and are the real and imaginary parts of the m-1th phase measurement, and For the m+N and m The grid signal value of each sampling point.

3. The method for measuring power grid frequency according to claim 2, characterized in that: The calculation function expression of the phase angle in step S1 is: , In the above formula, is the phase angle of the mth phase measurement value, , and are the real and imaginary parts of the mth phase measurement.

4. The method for measuring power grid frequency according to claim 1, characterized in that: Calculating the estimated frequency of the power grid according to the phase angles of the continuous plurality of sampling points in step S2 includes: calculating the estimated frequency of the power grid according to the continuous phase angles of the continuous plurality of sampling points The phase angles of the sampling points are used to calculate the quadratic polynomial coefficients : , In the above formula, is the phase angle of the i-th sampling point, is the time length of the i-th sampling point, ,in is the sampling interval, is the coefficient matrix The elements in , and have: , In the above formula, is the coefficient matrix The determinant value of; the estimated frequency of the power grid at the jth sampling point is calculated according to the following formula: , In the above formula, is the estimated frequency of the power grid at the jth sampling point, is the initial frequency of the power grid, is the coefficient of the j-th quadratic polynomial .

5. The method for measuring power grid frequency according to claim 1, characterized in that: Calculating the estimated frequency of the power grid according to the phase angles of the continuous plurality of sampling points in step S2 includes: The phase angle of the sampling point is first calculated based on the following formula: : , In the above formula, is the coefficient of the j-th quadratic polynomial , is the phase angle of the i+jth sampling point, is the time length of the i-th sampling point, ,in is the sampling interval, is the coefficient matrix The elements in , and have: , In the above formula, is the coefficient matrix The determinant value; then use the recursive idea to calculate the subsequent quadratic polynomial coefficients according to the following formula : , , In the above formula, is the coefficient of the j-1th quadratic polynomial , For the The phase angle of the sampling points, For the The phase angle of the sampling points, For the An intermediate variable, For the An intermediate variable, For the The phase angle of the sampling points, To determine The estimated frequency of the power grid at the jth sampling point is calculated according to the following formula: , In the above formula, is the estimated frequency of the power grid at the jth sampling point, is the initial frequency of the power grid, is the coefficient of the j-th quadratic polynomial .

6. The method for measuring power grid frequency according to claim 1, characterized in that: When the estimated frequency is subjected to frequency enhancement estimation by the extended Kalman filter algorithm in step S3, the function expression for updating the enhanced frequency estimation prediction value is: , In the above formula, For the k The moment enhanced frequency estimation prediction value, A It works on The state transition model on for k -1 moment enhances the frequency estimation update value, It acts on the controller variable The input-control model on the covariance matrix is ​​expressed as follows: , In the above formula, for k The predicted value of the moment covariance matrix, for k The updated value of the covariance matrix at time -1, is the process noise covariance; The function expression for calculating the extended Kalman filter gain is: , In the above formula, is the extended Kalman filter gain, H is the observation model, which is used to map the real state space into the observation space; R is the observation noise covariance; the function expression for updating the frequency estimate is: , In the above formula, for k Enhanced frequency estimation update value at time, observation equation is the estimated frequency of the kth sampling point; the function expression for updating the covariance matrix is: , In the above formula, for k The updated value of the covariance matrix at time , I is the identity matrix.

7. A power grid frequency measurement system, characterized in that: include: A phase angle calculation program unit is used to calculate the imaginary part and the real part of the phase measurement value by discrete Fourier transform for the input power grid signal, and calculate the phase angle according to the imaginary part and the real part of the phase measurement value; A frequency estimation program unit, used for calculating an estimated frequency of a power grid according to phase angles of a plurality of consecutive sampling points; The frequency enhancement program unit is used to perform frequency enhancement estimation on the estimated frequency through an extended Kalman filter algorithm to obtain an enhanced estimated frequency and output it.

8. A power grid frequency measurement system, comprising a microprocessor and a memory connected to each other, characterized in that: The microprocessor is programmed or configured to execute the grid frequency measurement method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program or instruction stored therein, characterized in that: The computer program or instruction is programmed or configured to execute the grid frequency measurement method according to any one of claims 1 to 6 through a processor.

10. A computer program product comprising a computer program or instructions, characterized in that The computer program or instruction is programmed or configured to execute the grid frequency measurement method according to any one of claims 1 to 6 through a processor.

Citation Information

Patent Citations

  • Power grid instantaneous frequency measuring and tracking method based on orthogonal sub-band

    CN105044456A

  • UAV angular acceleration estimation method and apparatus based on extended Kalman filtering

    CN106597017A

  • RoboCup 3D-based multi-robot cooperative target positioning method

    CN107084714A

  • Early warning method and device, storage medium and computer equipment

    CN117950710A

  • Apparatus, methods and computer-readable medium for efficient electrical grid measurements

    US20210231716A1

Cited By

  • Phasor correction method and device, computer equipment and program product

    CN119804974A

  • Phasor correction method and device, computer device and program product

    CN119804974B

  • Distributed power grid dynamic frequency acquisition method and related device

    CN120703452A