Phase compensation method, system and equipment for open-loop phase locking under power grid frequency deviation
Through Fourier series expansion and angular frequency detection, the compensation phase is calculated, which solves the problems of long closed-loop phase locking response time and low open-loop phase locking accuracy in the existing technology, and achieves high-precision phase detection under power grid frequency deviation. .
Patent Information
- Application Number
- CN202410446817.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2024-08-27
AI Technical Summary
In the existing technology, the response time of the closed-loop phase-locked loop is long, and the open-loop phase-locked method has low phase detection accuracy when the grid voltage frequency deviates, and cannot quickly and accurately detect the grid frequency deviation and phase information.
The open-loop phase locking method based on Fourier series is used to obtain the three-phase grid voltage, perform Fourier series expansion, calculate the open-loop detection phase, and filter out the harmonic components through angular frequency detection and low-pass filter , calculate the compensation phase, and finally obtain the actual phase of the grid voltage.
It achieves high-precision phase detection in the case of grid frequency deviation, shortens the phase detection time, improves detection accuracy, and is suitable for various types of grid voltages.
Smart Images

Figure CN118554473A
Abstract
Description
Technical Field
[0001] The present invention relates to a phase compensation method, and in particular to a phase compensation method, system and device based on open-loop phase locking of Fourier series under power grid frequency deviation. Background Art
[0002] Driven by the requirements of the new power system and the "dual carbon" energy strategic goal, vigorously promoting new energy power generation represented by photovoltaic and wind power is an important way to achieve energy transformation. Therefore, the active distribution network will face the demand for large-scale distributed power access. However, the operating characteristics of distributed power sources are greatly affected by the environment and have obvious randomness and volatility. The access of a large number of distributed power sources to the distribution network will bring many problems to the distribution network, such as frequency deviation and voltage over-limit. In addition, the rapid and accurate detection of the phase information of the grid fundamental voltage is a prerequisite for the synchronization of distributed power sources and accurate current and power control. The deviation of the grid frequency will bring challenges to the accurate and rapid phase locking of distributed power sources. Therefore, it is necessary to obtain accurate phase information of the grid through phase detection.
[0003] There are many existing phase detection methods, which can be generally divided into two categories: closed-loop phase-locked loop and open-loop phase-locked loop. The closed-loop phase-locked loop realizes the phase detection of the grid voltage through feedback control. The output detection phase has high accuracy and mainly includes three parts: phase detector, loop filter and voltage-controlled oscillator. The open-loop phase-locked loop has a simple structure, fast response speed and strong robustness. The open-loop phase-locked loop method based on Fourier series is one of the typical representatives.
[0004] Although these phase detection methods have the advantages of high phase detection accuracy or fast response speed, they still have the following defects:
[0005] 1. Since a proportional-integral controller is used in the control loop of the closed-loop phase-locked loop, the dynamic response speed of the phase-locked loop depends on the adjustment time of the controller. The existing closed-loop phase-locked loop has a long response time, and the response time exceeds three power frequency cycles when the phase or frequency changes suddenly.
[0006] 2. When the frequency of the grid voltage deviates from the rated frequency of the system, there is a steady-state error between the output phase and the actual phase of the open-loop phase-locked method based on Fourier series, and the detection phase accuracy is low.
[0007] The information disclosed in this background technology section is only intended to increase the understanding of the overall background of the application, and should not be regarded as acknowledging or suggesting in any form that the information constitutes the prior art already known to ordinary technicians in the field. Summary of the invention
[0008] The purpose of the present invention is to overcome the shortcomings of the prior art that the closed-loop phase-locked loop has a long response time and the open-loop phase-locked loop has a low phase detection accuracy when the frequency of the grid voltage is offset, and to provide a phase compensation method for the open-loop phase-locked loop based on Fourier series, which can achieve high-precision phase detection under grid frequency offset.
[0009] To achieve the above objectives, the technical solution of the present invention is:
[0010] A phase compensation method for open-loop phase locking based on Fourier series under power grid frequency deviation, the phase compensation method comprising the following steps:
[0011] S1, obtain the three-phase grid voltage, obtain the phase component of each phase voltage of the three-phase grid by sampling the grid voltage, and enter S2 after obtaining the three-phase grid voltage component;
[0012] S2, calculate the positive sequence fundamental component of the power grid, perform Fourier series expansion on the three-phase voltage component to obtain the positive sequence fundamental component of the three-phase power grid voltage, and after obtaining the positive sequence fundamental component of the power grid voltage, enter S3;
[0013] S3, calculate the phase of the open-loop detection, substitute the positive sequence fundamental component of the grid voltage into the expression of the open-loop phase detection to solve and obtain the phase of the open-loop detection, the expression of the open-loop phase detection is:
[0014]
[0015] In the above formula, θ0 is the phase calculated by open-loop phase detection, u a is the positive sequence fundamental component of phase A voltage, u b is the positive sequence fundamental component of phase B voltage, u c is the positive sequence fundamental component of the C phase voltage, the F(u a ) and F(u b -u c ) is a step function, and the constraint of F(x) is:
[0016]
[0017] After the phase of the open-loop phase detection is obtained, enter S4;
[0018] S4, angular frequency detection, the phase derivative of the obtained open-loop detection is used to obtain an angular frequency signal of the grid voltage containing harmonic components. After the angular frequency signal containing harmonic components is obtained, enter S5;
[0019] S5, low-pass filtering, using a low-pass filter to filter out the harmonic components in the angular frequency signal to obtain the angular frequency after the grid voltage frequency is offset, and then enter S6;
[0020] S6, calculating the compensation phase, calculating the compensation phase when the grid frequency is offset according to the angular frequency detected by the open loop, and when the compensation phase is obtained, entering S7;
[0021] S7, calculating the actual phase of the grid voltage, adding the open-loop detected phase and the compensated phase to obtain the actual phase of the grid voltage.
[0022] The expression of the actual phase of the S7 grid voltage is:
[0023] θ=θ0+△θ;
[0024] In the above formula, θ is the actual phase of the grid voltage, and Δθ is the compensation phase when the grid frequency is offset.
[0025] The expression of the compensation phase when the S6 power grid frequency is offset is:
[0026]
[0027] In the above formula, ω0 is the rated angular frequency of the grid voltage, and ω is the angular frequency after the grid voltage frequency is offset.
[0028] A phase compensation system for open-loop phase locking under power grid frequency deviation, the phase compensation system comprising:
[0029] Three-phase grid voltage acquisition module: used to obtain the phase component of each phase voltage of the three-phase grid;
[0030] Fourier series expansion module: used to perform Fourier series expansion on the three-phase voltage components to obtain the positive sequence fundamental component of the three-phase grid voltage;
[0031] The Fourier series expansion module is used to implement the following method:
[0032] S2, calculate the grid fundamental component, perform Fourier series expansion on the three-phase voltage component to obtain the positive sequence fundamental component of the three-phase grid voltage, and after obtaining the positive sequence fundamental component of the grid voltage, enter S3;
[0033] Module for calculating the phase of open-loop detection: used to substitute the positive sequence fundamental component of the grid voltage into the expression of open-loop phase detection to solve and obtain the phase of open-loop detection;
[0034] The phase module for calculating open-loop detection is used to implement the following method:
[0035] S3, calculate the phase of the open-loop detection, substitute the positive sequence fundamental component of the grid voltage into the expression of the open-loop phase detection to solve and obtain the phase of the open-loop detection, the expression of the open-loop phase detection is:
[0036]
[0037] In the above formula, θ0 is the phase calculated by open-loop phase detection, u a is the positive sequence fundamental component of phase A voltage, u b is the positive sequence fundamental component of phase B voltage, u c is the positive sequence fundamental component of the C phase voltage, the F(u a ) and F(u b -u c ) is a step function, and the constraint of F(x) is:
[0038]
[0039] After the phase of the open-loop phase detection is obtained, enter S4;
[0040] Angular frequency detection module: used to obtain an angular frequency signal of the grid voltage by taking the phase derivative of the obtained grid voltage;
[0041] Low-pass filter module: used to filter out the harmonic components in the angular frequency signal;
[0042] Compensation phase calculation module: used to calculate the compensation phase according to the angular frequency detected by the open loop;
[0043] The calculation compensation phase module is used to implement the following method:
[0044] S6, calculating the compensation phase, calculating the compensation phase when the grid frequency is offset according to the angular frequency detected by the open loop, wherein the expression of the compensation phase when the grid frequency is offset is:
[0045]
[0046] In the above formula, Δθ is the compensation phase when the grid frequency is offset, ω0 is the rated angular frequency of the grid voltage, and ω is the angular frequency after the grid voltage frequency is offset;
[0047] After the compensation phase is obtained, enter S7;
[0048] Grid voltage actual phase calculation module: used to add the open-loop detected phase and the compensation phase to obtain the actual phase of the grid voltage;
[0049] The calculation compensation phase module is used to implement the following method:
[0050] S7, calculating the actual phase of the grid voltage, adding the open-loop detected phase and the compensation phase to obtain the actual phase of the grid voltage, the expression of the actual phase of the grid voltage is:
[0051] θ=θ0+△θ;
[0052] In the above formula, θ is the actual phase of the grid voltage.
[0053] A phase compensation device for open-loop phase locking under power grid frequency deviation, characterized by:
[0054] The device comprises a processor and a memory;
[0055] The memory is used to store computer program code and transmit the computer program code to the processor;
[0056] The processor is used to execute a phase compensation method of open-loop phase locking under power grid frequency deviation according to instructions in the computer program code.
[0057] A computer-readable storage medium, characterized in that:
[0058] The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a phase compensation method for open-loop phase locking under power grid frequency deviation is implemented.
[0059] Compared with the prior art, the present invention has the following beneficial effects:
[0060] 1. In a phase compensation method of open-loop phase locking under power grid frequency offset of the present invention, the three-phase power grid voltage is obtained in S1, the three-phase voltage components are Fourier series expanded in S2 to obtain the positive sequence fundamental component of the power grid voltage, and the open-loop detection phase is obtained by solving the expression of open-loop phase detection in S3. Therefore, the design can quickly obtain the open-loop detection phase by the Fourier series expansion method, which effectively shortens the phase detection time compared with the closed-loop phase locking method.
[0061] 2. In a phase compensation method of open-loop phase locking under power grid frequency offset of the present invention, the angular frequency signal of the power grid voltage is obtained by derivation of the phase of the open-loop detection obtained in S3 in S4, the angular frequency of the power grid voltage after frequency offset is obtained by filtering out the harmonic components in the angular frequency signal using a low-pass filter in S5, the compensation phase when the power grid frequency is offset is calculated by filtering out the angular frequency of the harmonic components in S6, and the actual phase of the power grid voltage is obtained by adding the phase of the open-loop detection to the compensation phase in S7. Therefore, the present design can calculate the compensation phase by the angular frequency signal of the power grid voltage when the power grid frequency is offset, effectively improving the detection phase accuracy.
[0062] 3. The present invention provides a phase compensation system for open-loop phase locking under power grid frequency offset, including a three-phase power grid voltage acquisition module for acquiring the phase component of each phase voltage of the three-phase power grid, a Fourier series expansion module for performing Fourier series expansion on the three-phase voltage component to obtain the positive sequence fundamental component of the three-phase power grid voltage, a phase calculation module for open-loop detection, for substituting the positive sequence fundamental component of the power grid into the expression of open-loop phase detection to solve and obtain the phase of open-loop detection, an angular frequency detection module for derivation of the obtained phase of the power grid voltage to obtain the angular frequency signal of the power grid voltage, a low-pass filtering module for filtering out the harmonic components in the angular frequency signal, a compensation phase calculation module for calculating the compensation phase according to the angular frequency of the open-loop detection, and a power grid voltage actual phase calculation module for adding the open-loop detection phase and the compensation phase to obtain the actual phase of the power grid voltage. The system is used to implement the steps of the phase compensation method for open-loop phase locking under power grid frequency offset provided in any of the above technical solutions. Therefore, the phase compensation system also includes all the beneficial effects of the phase compensation method for open-loop phase locking under power grid frequency offset provided in any of the above technical solutions, which will not be repeated here.
[0063] 4. A phase compensation device for open-loop phase locking under power grid frequency offset of the present invention comprises a processor and a memory, wherein the memory is used to store computer program code and transmit the computer program code to the processor, and the processor is used to execute the open-loop phase locking method under power grid frequency offset provided in any of the above technical solutions according to the instructions in the computer program code. Therefore, the phase compensation device also includes all the beneficial effects of the phase compensation method for open-loop phase locking under power grid frequency offset provided in any of the above technical solutions, which will not be repeated here.
[0064] 5. A computer-readable storage medium of the present invention stores a computer program thereon, and when the computer program is executed by a processor, the steps of the phase compensation method of open-loop phase-locked under power grid frequency offset provided in any of the above technical solutions are implemented. Therefore, the computer-readable storage medium also includes all the beneficial effects of the phase compensation method of open-loop phase-locked under power grid frequency offset provided in any of the above technical solutions, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a position relationship diagram of the fundamental wave component of the three-phase voltage and the corresponding voltage space vector in the present invention.
[0066] Figure 2 It is a flow chart of the present invention.
[0067] Figure 3 It is a flowchart of the phase compensation method in the present invention.
[0068] Figure 4 This is a comparison diagram of the effects in Example 3.
[0069] Figure 5 It is a flow chart of a phase compensation system of open-loop phase locking under power grid frequency deviation in the present invention.
[0070] Figure 6 The present invention is a structural block diagram of a phase compensation device for open-loop phase locking under power grid frequency deviation. DETAILED DESCRIPTION
[0071] The present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0072] In a phase compensation method for open-loop phase locking under power grid frequency offset of the present invention, the phase of open-loop detection is obtained based on discrete Fourier series, and the actual power grid phase is obtained by performing phase compensation on the phase of open-loop detection, which can be applicable to various types of voltages.
[0073] Embodiment 1:
[0074] Reference Figure 1 , Figure 1 is the fundamental component u of the three-phase voltage a 、u b and u c The instantaneous value in the stationary coordinate system and its corresponding three-phase space vector U abc The position relationship of the voltage space vector U abc Rotates counterclockwise at an angular velocity ω, and the projections on the a, b, and c axes correspond to the instantaneous values of the three-phase voltages. The rotating space vector U abc The angle θ with the a-axis of the stationary coordinate system is the real-time phase of the grid voltage. According to the relationship between the space vector and the three-phase voltage, the calculation formula of the open-loop phase θ can be obtained as follows:
[0075]
[0076] In the above formula, θ0 is the phase calculated by open-loop phase detection, u a is the positive sequence fundamental component of phase A voltage, u b is the positive sequence fundamental component of phase B voltage, u c is the positive sequence fundamental component of the C phase voltage, the F(u a ) and F(u b -u c ) is a step function, and the constraint of F(x) is:
[0077]
[0078] Reference Figure 2 , Figure 2The present invention relates to an open-loop phase-locked phase compensation scheme based on Fourier series, which includes an open-loop phase detection link and a phase compensation link, wherein the phase compensation link further includes an open-loop angular frequency detection, a low-pass filter and a compensation phase calculation. sa 、u sb and u sc They are the A, B, and C phase components of the three-phase grid voltage, obtained by voltage sampling, u a 、u b and u c Represents the positive sequence fundamental component of the grid voltage, θ0 is the phase output by the open-loop phase detection link, Δθ is the compensation phase, and θ is the actual phase of the grid voltage. The three-phase grid voltage is expanded by Fourier series to obtain the fundamental voltage component. The extracted fundamental voltage can be used to obtain the open-loop detection phase θ0 through real-time calculation. The compensation phase Δθ can be further calculated based on the open-loop detection phase θ0. The sum of the open-loop detection phase θ0 and the compensation phase Δθ is the actual phase of the grid voltage. The phase compensation method described in this embodiment includes the following steps:
[0079] S1, obtain the three-phase grid voltage, and obtain the phase component of each phase voltage of the three-phase grid by sampling the grid voltage. The expression of the grid A phase voltage is:
[0080]
[0081] The expression of the grid B phase voltage is:
[0082]
[0083] The expression of the grid C phase voltage is:
[0084]
[0085] In the expression of the phase component of each phase voltage of the three-phase power grid, U is the amplitude of the power grid voltage, is the phase angle of the grid voltage, ω is the angular frequency after the grid voltage frequency is offset, and t represents a specific moment;
[0086] After obtaining the three-phase grid voltage components, enter S2;
[0087] S2, calculate the positive sequence fundamental component of the power grid, perform Fourier series expansion on the three-phase voltage components to obtain the positive sequence fundamental component of the three-phase power grid voltage, and the Fourier integration time window is half of the rated cycle of the power grid voltage; considering the consistency of the three-phase voltage transformation form of A, B, and C, the calculation process of the Fourier series is given by taking phase A as an example;
[0088] The expression of the Fourier series fundamental component of the grid A phase voltage is:
[0089] u a (t) = a1cosω0t+b1sinω0t;
[0090] In the expression of the Fourier series fundamental component of the phase A voltage of the power grid, a1 and b1 both represent coefficients of the fundamental Fourier series, and ω0 is the rated angular frequency of the power grid voltage.
[0091] The expression of the coefficient a1 of the fundamental Fourier series in the expression of the fundamental component of the Fourier series of the phase A voltage of the power grid is:
[0092]
[0093] The expression of the coefficient b1 of the fundamental Fourier series in the expression of the fundamental component of the Fourier series of the phase A voltage of the power grid is:
[0094]
[0095] In the above formulas, Δλ is the per unit value of the grid angular frequency offset, and the expression of Δλ is:
[0096] △λ=(ω-ω0) / ω0;
[0097] Substituting the expression of the coefficient a1 of the fundamental Fourier series and the expression of the coefficient b1 of the fundamental Fourier series into the expression of the fundamental component of the Fourier series of the phase A voltage of the power grid, the fundamental component of the phase A voltage of the power grid is obtained as follows:
[0098]
[0099] The fundamental component of the grid B phase voltage is as follows:
[0100]
[0101] The fundamental component of the grid C phase voltage is as follows:
[0102]
[0103] After the positive sequence fundamental component of the grid voltage is obtained, S3 is entered;
[0104] S3, calculate the phase of the open-loop detection, substitute the expression of the fundamental component of the grid A phase voltage, the expression of the fundamental component of the grid B phase voltage and the expression of the fundamental component of the grid C phase voltage into the expression of the open-loop phase detection to obtain the phase expression output by the open-loop phase detection link:
[0105]
[0106] After the phase of the open-loop phase detection is obtained, enter S4;
[0107] S4, angular frequency detection, the phase derivative of the obtained open-loop detection is used to obtain an angular frequency signal of the grid voltage containing harmonic components. After the angular frequency signal containing harmonic components is obtained, enter S5;
[0108] S5, low-pass filtering, using a low-pass filter to filter out the harmonic components in the angular frequency signal to obtain the angular frequency after the grid voltage frequency is offset, and then enter S6;
[0109] S6, calculating the compensation phase, calculating the compensation phase when the grid frequency is offset according to the angular frequency detected by the open loop, wherein the expression of the compensation phase when the grid frequency is offset is:
[0110]
[0111] In the above formula, Δθ is the compensation phase when the grid frequency is offset, ω0 is the rated angular frequency of the grid voltage, and ω is the angular frequency after the grid voltage frequency is offset;
[0112] After the compensation phase is obtained, enter S7;
[0113] S7, calculating the actual phase of the grid voltage, adding the open-loop detected phase and the compensation phase to obtain the actual phase of the grid voltage, the expression of the actual phase of the grid voltage is:
[0114]
[0115] In the above formula, θ is the actual phase of the grid voltage.
[0116] Embodiment 2:
[0117] Embodiment 2 is substantially the same as Embodiment 1, except that:
[0118] A phase compensation system of open-loop phase locking under power grid frequency deviation, characterized by:
[0119] The device comprises a processor and a memory;
[0120] The memory is used to store computer program code and transmit the computer program code to the processor;
[0121] The processor is used to execute the phase compensation method of open-loop phase locking under power grid frequency deviation according to any one of claims 1-6 according to the instructions in the computer program code.
[0122] A phase compensation device for open-loop phase locking under power grid frequency deviation, characterized by:
[0123] The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the phase compensation method for open-loop phase locking under power grid frequency deviation according to any one of claims 1 to 6 is implemented.
[0124] Embodiment 3:
[0125] To further illustrate the superiority of the method provided by the present invention, the present invention is compared with the closed-loop phase lock in the document "Three-phase cascaded delayed signal cancellation PLL for fast selective harmonic detection" and the open-loop phase lock in the document "A true open-loop synchronization technique";
[0126] The simulation comparison of three phase-locking methods is realized by Matlab software programming. At the beginning of the simulation, the input signal is an ideal sinusoidal voltage signal with an amplitude of 310V and a frequency of 50Hz. At 0.05s, a 72° phase jump, a 2Hz frequency jump, a 0.1pu negative sequence component, a 0.05pu fifth harmonic component, a 0.03pu seventh harmonic component, and a 0.01pu eleventh harmonic component are added.
[0127] The comparison of phase errors output by the three phase-locking methods is shown in the figure below: Figure 4 As shown, it can be seen that compared with the existing open-loop and closed-loop phase-locking methods, the phase-locking method provided by the present invention has a faster phase-locking speed and a higher phase-locking accuracy when the voltage signal is subject to various interferences, thus proving the effectiveness of the present invention.
[0128] The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiment. Any equivalent modifications or changes made by ordinary technicians in this field based on the contents disclosed by the present invention should be included in the protection scope recorded in the claims.
Claims
1. A phase compensation method for open-loop phase locking under power grid frequency deviation, characterized in that: The phase compensation method comprises the following steps: S1, obtain the three-phase grid voltage, obtain the phase component of each phase voltage of the three-phase grid by sampling the grid voltage, and enter S2 after obtaining the three-phase grid voltage component; S2, calculate the positive sequence fundamental component of the power grid, perform Fourier series expansion on the three-phase voltage component to obtain the positive sequence fundamental component of the three-phase power grid voltage, and after obtaining the positive sequence fundamental component of the power grid voltage, enter S3; S3, calculate the phase of the open-loop detection, substitute the positive sequence fundamental component of the grid voltage into the expression of the open-loop phase detection to solve and obtain the phase of the open-loop detection, the expression of the open-loop phase detection is: In the above formula, θ0 is the phase calculated by open-loop phase detection, u a is the positive sequence fundamental component of phase A voltage, u b is the positive sequence fundamental component of phase B voltage, u c is the positive sequence fundamental component of the C phase voltage, the F(u a ) and F(u b -u c ) is a step function, and the constraint of F(x) is: After the phase of the open-loop phase detection is obtained, enter S4; S4, angular frequency detection, the phase derivative of the obtained open-loop detection is used to obtain an angular frequency signal of the grid voltage containing harmonic components. After the angular frequency signal containing harmonic components is obtained, enter S5; S5, low-pass filtering, using a low-pass filter to filter out the harmonic components in the angular frequency signal to obtain the angular frequency after the grid voltage frequency is offset, and then enter S6; S6, calculating the compensation phase, calculating the compensation phase when the grid frequency is offset according to the angular frequency detected by the open loop, and when the compensation phase is obtained, entering S7; S7, calculating the actual phase of the grid voltage, adding the open-loop detected phase and the compensated phase to obtain the actual phase of the grid voltage.
2. The phase compensation method of open-loop phase locking under power grid frequency deviation according to claim 1, characterized in that: The expression of the actual phase of the S7 grid voltage is: θ=θ0+△θ; In the above formula, θ is the actual phase of the grid voltage, and Δθ is the compensation phase when the grid frequency is offset.
3. The phase compensation method of open-loop phase locking under power grid frequency deviation according to claim 2 is characterized in that: The expression of the compensation phase when the S6 power grid frequency is offset is: In the above formula, ω0 is the rated angular frequency of the grid voltage, and ω is the angular frequency after the grid voltage frequency is offset.
4. The phase compensation method of open-loop phase locking under power grid frequency deviation according to claim 3 is characterized in that: The phase compensation method is used to perform phase compensation on an open-loop phase-locked method based on Fourier series.
5. The phase compensation system of open-loop phase locking under power grid frequency deviation according to claim 4, characterized in that: The phase compensation system comprises: A three-phase grid voltage acquisition module, used to obtain the phase component of each phase voltage of the three-phase grid; A Fourier series expansion module is used to perform Fourier series expansion on the three-phase voltage components to obtain the positive sequence fundamental wave components of the three-phase grid voltage; The module for calculating the phase of the open-loop detection is used to substitute the positive sequence fundamental component of the grid voltage into the expression of the open-loop phase detection to solve and obtain the phase of the open-loop detection; An angular frequency detection module, used for obtaining an angular frequency signal of the grid voltage by taking the derivative of the phase of the grid voltage obtained; A low-pass filter module is used to filter out the harmonic components in the angular frequency signal; A compensation phase calculation module is used to calculate the compensation phase according to the angular frequency detected by the open loop; The actual phase calculation module of the power grid voltage is used to add the phase detected by the open loop and the compensation phase to obtain the actual phase of the power grid voltage.
6. A phase compensation device for open-loop phase locking under power grid frequency deviation, characterized in that: The device comprises a processor and a memory; The memory is used to store computer program code and transmit the computer program code to the processor; The processor is used to execute the phase compensation method of open-loop phase locking under power grid frequency deviation according to any one of claims 1-6 according to the instructions in the computer program code.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the phase compensation method for open-loop phase locking under power grid frequency deviation according to any one of claims 1 to 6 is implemented.
