An improved control method for electric springs in distorted power grids

By adding a harmonic compensation link to the existing PI control method and using an LC filter to correct the harmonic voltage, the problem of ES being difficult to stabilize voltage and suppress harmonics under a distorted power grid is solved, and voltage stabilization and harmonic suppression under a distorted power grid are achieved. Harmonic suppression effect improves power quality.

CN118157134BActive Publication Date: 2024-10-15HUAIAN OF JIANGSU ELECTRIC POWER CO POWER SUPPLY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410084677.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-19
Publication Date
2024-10-15
Estimated Expiration
2044-01-19

AI Technical Summary

Technical Problem

It is difficult for the existing power spring (ES) to simultaneously stabilize the key load voltage and suppress the harmonics on the key load voltage under a distorted power grid. In particular, the delta control algorithm relies on multiple circuit network parameters, which affects the control effect when the measurement is inaccurate, and is based on PI The control method can only stabilize the voltage but cannot suppress harmonics.

Method used

Based on the existing PI control method, a harmonic compensation link is added. By analyzing the ES harmonic compensation principle under the distorted power grid, the impact of the LC filter on the amplitude and phase offset of high-frequency harmonics is designed, and corresponding corrections are proposed. Method to realize harmonic compensation voltage of ES output to stabilize key load voltage and suppress harmonics under distorted power grid.

Benefits of technology

It realizes the voltage stabilization and harmonic suppression functions of the ES under a distorted power grid, maintains the stability of key load voltages, significantly reduces the harmonic distortion rate, and improves the power quality on the load side without changing the topology of the ES. The implementation is simpler.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118157134B_ABST
    Figure CN118157134B_ABST
Patent Text Reader

Abstract

The present invention discloses an optimization control method for electric springs under distorted power grids, including a reactive compensation PI control part and an ES harmonic compensation part. When the voltage fluctuates, the ES reactive compensation PI control part provides reactive power compensation to stabilize the voltage of key loads; the harmonic current on the key loads is compensated by outputting harmonic voltages through the ES. The ES outputs harmonic voltages including: analyzing the ES harmonic compensation principle under distorted power grids, detecting the harmonic part of the power grid voltage through single-phase dq transformation, and obtaining the harmonic compensation voltage required to be output by the ES; considering the influence of the LC filter on the amplitude and phase offset of high-frequency harmonics, and designing the corresponding amplitude and phase correction link to perform amplitude and phase correction; obtaining the corrected ES harmonic compensation voltage, and verifying the proposed ES improved control method. The present invention achieves the function of maintaining the stability of the key load voltage while suppressing the harmonics of the key load voltage by adding a harmonic compensation link without changing the ES topology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of electric power dispatching and power grid operation, and in particular to an improved control method for an electric power spring in a distorted power grid. Background Art

[0002] Since renewable energy sources (RES) such as wind and solar power have the characteristics of clean, pollution-free and sustainable utilization, RES power generation has attracted extensive attention from scholars around the world. Due to the unpredictability of RES power generation, when a large-scale and high-proportion RES power generation system is connected to the power grid, it will inevitably bring shocks to the power grid, causing grid voltage fluctuations and bringing safety hazards to the stable operation of the power system. In response to the contradiction between the unpredictability of RES power generation and the traditional operation mode of the power system, power grid companies have taken a variety of solutions, mainly including the installation of energy storage devices, power dispatching, time-of-use electricity prices, etc. However, these measures have some defects, such as the limited storage capacity of energy storage devices and high prices, the waste batteries will pollute the environment, and the poor real-time performance of power dispatching makes it difficult to achieve rapid response.

[0003] In response to the above problems, Shu Yuen (Ron) Hui's research group at the University of Hong Kong, China, proposed a new type of power electronic device, "Electric Spring (ES)", which can effectively solve the power imbalance problem caused by fluctuations in renewable energy generation. ES divides the loads in the power field into two categories, critical loads and non-critical loads. ES and non-critical loads are connected in series to form smart loads, so that the power consumed by the smart loads can automatically change with the power changes on the power generation side, and play a role in stabilizing the voltage across the critical loads.

[0004] At present, most of the research results on ES are based on the ideal grid voltage. When the grid voltage fluctuates, ES provides reactive power compensation to stabilize the key load voltage. With the rapid development of power electronics technology, various nonlinear devices such as rectification and inversion are connected to the grid, bringing a large number of harmonics to the grid. When the grid voltage is distorted, in order to ensure the normal use of the key load, ES needs to suppress the harmonics on the key load voltage while stabilizing the key load voltage. At present, there are relatively few studies on this aspect. Relevant studies can change the topology of ES, use current source inverters and combine them with δ control algorithms to finally achieve the function of stabilizing the key load voltage and suppressing the harmonics on the key load voltage; there are also studies that use a method combining model predictive control with δ control algorithms to improve the power quality of the key load voltage. Since the δ control algorithm depends on multiple circuit network parameters, when the circuit parameter measurement is inaccurate, the use of this algorithm will affect the control effect of ES. Therefore, the existing control methods of ES under distorted grids are difficult to apply in practice.

[0005] Compared with the δ control algorithm, the most widely used ES at present is the PI control method based on effective value. This control method only needs to measure the critical load voltage and the current on the non-critical load, and has the advantages of less parameter dependence and simple control method. However, this control method also has defects. Under the distorted power grid, ES can only stabilize the critical load voltage but cannot suppress the harmonics on the critical load voltage. In view of this deficiency, the present invention is the first to realize the voltage stabilization and harmonic suppression functions of ES under the distorted power grid based on the PI control method that is the most widely used in ES. The present invention first studies the principle of ES harmonic compensation under the distorted power grid, and then analyzes the influence of LC filter on the amplitude and phase offset of high-frequency harmonics and proposes a corresponding correction method. Compared with the existing control method, the method proposed by the present invention does not need to change the topological structure of ES, and the implementation method is simpler. Only by adding a harmonic compensation link on the basis of the existing PI control method of ES, ES can simultaneously have the functions of stabilizing the critical load voltage and suppressing the harmonics on the critical load voltage under the distorted power grid. Summary of the invention

[0006] Purpose of the invention: In view of the deficiencies in the prior art, the present invention proposes an improved control method for an electric spring under a distorted power grid. The method does not require changing the topological structure of the ES and is simpler to implement. By simply adding a harmonic compensation link to the existing PI control method of the ES, the ES can simultaneously stabilize the key load voltage and suppress the harmonics on the key load voltage under a distorted power grid.

[0007] Technical solution: The present invention discloses a method for optimizing the control of electric springs under distorted power grids, including a reactive power compensation PI control part and an ES harmonic compensation part. G When the voltage fluctuates, the ES reactive power compensation PI control part provides reactive power compensation to stabilize the voltage of the key load; the ES outputs harmonic voltage to compensate for the harmonic current on the key load. The ES outputs harmonic voltage including the following steps:

[0008] 1) Analyze the ES harmonic compensation principle under distorted power grid, and detect the harmonic part of the grid voltage v through single-phase dq transformation Gh , obtain the harmonic compensation voltage v required by ES output ESh ;

[0009] 2) Consider the influence of LC filter on the amplitude and phase shift of high-frequency harmonics, and design the corresponding amplitude and phase correction link to v ESh Perform amplitude and phase correction;

[0010] 3) Get the corrected ES harmonic compensation voltage

[0011] Furthermore, in step 1), the harmonic compensation voltage v required to be output by ES is obtained.ESh Specifically include:

[0012] The grid voltage and transmission line current, the current on the critical load, and the current on the non-critical load are decomposed into:

[0013] v G =v Gf +v Gh (1)

[0014]

[0015] In the formula, v Gf and v Gh The voltage v G The fundamental and harmonic components, v G Represents the equivalent fluctuating voltage source of thermal power generation and renewable energy generation, that is, the grid voltage, i1 is the current on the transmission line, i c and i0 are the currents on the critical load and non-critical load respectively;

[0016] The calculation of the harmonic component of the key load voltage is shown in equation (3). By analyzing the KCL and KVL laws in the ES circuit, equations (4)-(6) can be obtained. Considering the ideal case, after ES harmonic compensation, the key load voltage will not contain harmonic components, as shown in equations (7) and (8):

[0017] v sh =i ch ·Z c (3)

[0018] i1=i c +i0 (4)

[0019] v s =v ES +v0 (5)

[0020]

[0021] i ch =0 (7)

[0022] v sh =0 (8)

[0023] In the formula, v sh is the key load voltage harmonic component, i ch is the harmonic component of the critical load current, Z c is the critical load, Z1 is the transmission line impedance, v s is the critical load voltage, v ES is the ES output voltage, v0 is the voltage on the non-critical load; Substituting equation (7) into equation (4) yields equation (9):

[0024] i 1h =i 0h (9)

[0025] Substituting equation (8) into equations (5) and (6), we can obtain equations (10) and (11):

[0026] v ESh +v 0h =0 (10)

[0027]

[0028] v 0h The calculation formula is shown in formula (12);

[0029] v 0h =i 0h ·Z nc (12)

[0030] Solving equations (9)-(12) yields the ES output harmonic compensation voltage as follows:

[0031]

[0032] In the formula, v ESh and v 0h They are the harmonic compensation voltage output by ES and the harmonic component of non-critical load voltage, i 1h is the harmonic component of the transmission line current, i 0h is the non-critical load current harmonic component, Z nc Non-critical load.

[0033] Furthermore, in step 2), the corresponding amplitude and phase correction steps are designed as follows:

[0034] The ES circuit diagram is simplified using Thevenin's theorem, and the equivalent voltage and equivalent resistance are shown in equations (14) and (15) respectively:

[0035]

[0036]

[0037] In the formula, is the equivalent voltage of Thevenin's theorem, Z eq is the equivalent resistance of Thevenin's theorem;

[0038] According to the KCL and KVL laws, we can get:

[0039]

[0040]

[0041]

[0042]

[0043] In the formula, is the equivalent output voltage of the single-phase inverter circuit, is the current on the inductor, is the current on the equivalent resistance, is the current on the capacitor;

[0044] Solving equations (16)-(19) yields:

[0045]

[0046] in:

[0047]

[0048]

[0049] Substituting equation (15) into equation (22), B is simplified to:

[0050]

[0051] Considering the output of the LC filter circuit With input The amplitude and phase offset between are mainly determined by A, and the disturbance error caused by B is very small, so equation (20) can be simplified as;

[0052]

[0053] Let Z eq for:

[0054] Z eq =a+bj (25)

[0055] Among them, a and b are real numbers, and their values ​​can be obtained from the circuit parameters. Assume that the amplitude of A is A0 and the phase is Substituting formula (25) into formula (21), we can obtain:

[0056]

[0057]

[0058] Furthermore, in step 2), the corresponding amplitude and phase correction link is designed to correct v ESh Amplitude and phase correction are performed, and the harmonic compensation voltage v output by ES is ESh After passing through the LC filter, the amplitude and phase shift occurs. EShThe amplitude and phase of each harmonic are corrected, and a resonant controller is used to extract each harmonic. The transfer function of the resonant controller is shown in formula (28):

[0059]

[0060] In the formula, ω n is the nth harmonic angular frequency, ω c is the bandwidth, k is the gain;

[0061] The selection of K value is related to the DC side voltage of the single-phase inverter circuit. K is:

[0062]

[0063] Beneficial effects:

[0064] The present invention proposes an improved control method, which adds a harmonic compensation link on the basis of the original PI control method, so that the ES has the functions of voltage stabilization and harmonic suppression under the distorted power grid. Compared with the existing research methods, the improved control method proposed in the present invention maintains the topological structure of the ES unchanged, and the results of the hardware-in-the-loop simulation experiment verify the effectiveness of the method proposed in the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 This is the ES circuit diagram used in the power grid.

[0066] Figure 2 This is the block diagram of the PI voltage regulation control strategy.

[0067] Figure 3 This is the simplified circuit of ES.

[0068] Figure 4 v ESh Amplitude and phase correction block diagram.

[0069] Figure 5 Bode diagram of the triple resonance controller.

[0070] Figure 6 Improved control block diagram for ES under distorted power grid.

[0071] Figure 7 This is the FFT analysis of the grid voltage.

[0072] Figure 8 The original control method is adopted for ES.

[0073] Fig. 9 FFT analysis of key load voltage (original control method).

[0074] Fig.10 An improved control method is adopted for ES.

[0075] Fig.11 FFT analysis of critical load voltage (improved control method). DETAILED DESCRIPTION

[0076] The above contents of the present invention are further described in detail below through the drawings and embodiments, but this should not be understood as the scope of the above subject matter of the present invention being limited to the following embodiments, and all technologies realized based on the above contents of the present invention belong to the scope of the present invention.

[0077] The present invention provides an improved control method for electric springs under distorted power grids, see Figure 6 The control strategy block diagram of the present invention is shown in Figure 1. The improved control strategy of ES under distorted power grid is mainly divided into two parts. The black dotted line frame is the reactive power compensation PI control part, and Figure 2 The PI voltage regulation control strategy block diagram is the same as shown in the figure. The main function is to G When the voltage fluctuates, ES provides reactive power compensation to stabilize the voltage of key loads. The red dashed box is the ES harmonic compensation part, whose main function is to output harmonic voltage through ES to compensate for the harmonic current on the key load, thereby reducing the harmonic distortion rate of the key load voltage and improving the power quality on the load side.

[0078] 1) Study the principle of ES harmonic compensation in distorted power grid.

[0079] 2) Analyze the impact of LC filters on the amplitude and phase shift of high-frequency harmonics, and design corresponding amplitude and phase correction links.

[0080] 3) Based on hardware-in-the-loop real-time simulation technology, a hardware-in-the-loop simulation platform for ES under distorted power grid is constructed to verify the proposed improved ES control method.

[0081] The steps to implement the ES harmonic compensation part are as follows:

[0082] Step 1) Detect the harmonic part of the grid voltage v by single-phase dq transformation Gh .

[0083] Step 2) According to formula (13), the harmonic compensation voltage v required by ES is obtained: ESh , considering the influence of LC filter on the amplitude and phase shift of high frequency harmonics, for v ESh Perform amplitude and phase correction.

[0084] Step 3) Get the corrected ES harmonic compensation voltage

[0085] Step 1) of the ES harmonic compensation part includes:

[0086] Through research Figure 1, we know that because the grid voltage contains harmonics, the transmission line current, the current on the key load, and the current on the non-key load also contain harmonic components. The grid voltage and the transmission line current, the current on the key load, and the current on the non-key load are decomposed into:

[0087] v G =v Gf +v Gh (1)

[0088]

[0089] In the formula, v Gf and v Gh The voltage v G The fundamental and harmonic components, v G Represents the equivalent fluctuating voltage source of thermal power generation and renewable energy generation, that is, the grid voltage, i1 is the current on the transmission line, i c and i0 are the currents on the critical load and non-critical load respectively.

[0090] The calculation of the harmonic component of the key load voltage is shown in equation (3). By analyzing the KCL and KVL laws in the ES circuit, equations (4)-(6) can be obtained. Considering the ideal case, after ES harmonic compensation, the key load voltage will not contain harmonic components, as shown in equations (7) and (8):

[0091] v sh =i ch ·Z c (3)

[0092] i1=i c +i0 (4)

[0093] v s =v ES +v0 (5)

[0094]

[0095] i ch =0 (7)

[0096] v sh =0 (8)

[0097] In the formula, v sh is the key load voltage harmonic component, i ch is the harmonic component of the critical load current, Z c is the critical load, Z1 is the transmission line impedance, v s is the critical load voltage, v ES is the ES output voltage, and v0 is the voltage on the non-critical load.

[0098] Substituting formula (7) into formula (4) yields formula (9):

[0099] i 1h =i 0h (9)

[0100] Substituting equation (8) into equations (5) and (6), we can obtain equations (10) and (11):

[0101] v ESh +v 0h =0 (10)

[0102]

[0103] v 0h The calculation formula is shown in formula (12);

[0104] v 0h =i 0h ·Z nc (12)

[0105] Solving equations (9)-(12) yields the ES output harmonic compensation voltage as shown in equation (13):

[0106]

[0107] In the formula, v ESh and v 0h They are the harmonic compensation voltage output by ES and the harmonic component of non-critical load voltage, i 1h is the harmonic component of the transmission line current, i 0h is the non-critical load current harmonic component, Z nc Non-critical load.

[0108] It can be seen from formula (13) that the harmonic compensation voltage output by ES under distorted power grid can compensate the harmonic current on the key load, thereby reducing the harmonic distortion rate of the key load voltage and improving the power quality on the load side. Therefore, to ensure the normal operation of the key load under distorted power grid, it is only necessary to add a harmonic compensation link based on the existing PI control method of ES, so that ES outputs the harmonic compensation voltage shown in formula (13), so that ES can achieve the functions of voltage stabilization and harmonic suppression at the same time. It can be seen from formula (13) that the harmonic compensation voltage output by ES is equal to the harmonic component v of the grid voltage. Gh The harmonic component v of the grid voltage can be accurately detected by the single-phase dq coordinate transformation method. Gh .

[0109] Step 2) of the ES harmonic compensation part includes:

[0110] Using Thevenin's theorem Figure 1 Simplified, the simplified circuit is as follows Figure 3 As shown, the equivalent voltage and equivalent resistance are shown in equations (14) and (15) respectively:

[0111]

[0112]

[0113] In the formula, is the equivalent voltage of Thevenin's theorem, Z eq is the equivalent resistance according to Thevenin's theorem.

[0114] In the simplified circuit, the KCL and KVL laws give:

[0115]

[0116]

[0117]

[0118]

[0119] In the formula, is the equivalent output voltage of the single-phase inverter circuit, is the current on the inductor, is the current on the equivalent resistance, is the current on the capacitor.

[0120] Solving equations (16)-(19) yields:

[0121]

[0122] in:

[0123]

[0124]

[0125] Substituting equation (15) into equation (22), B is simplified to:

[0126]

[0127] From equations (20)-(22), it can be seen that when the output voltage of the single-phase inverter circuit is When high-frequency signals are present, After passing through the LC filter circuit, the output voltage across the capacitor The amplitude and phase of will shift, where B is the disturbance error caused by the system parameters, and No. The amplitude and phase shift caused by this are determined by parameter A. From equation (21), we can see that the value of A is related to the LC filter parameters and the system equivalent impedance Z eq In equation (20), the output of the LC filter circuit is With input The amplitude and phase offset between are mainly determined by A, and the disturbance error caused by B is very small, so equation (20) can be simplified as:

[0128]

[0129] Let Z eq for:

[0130] Z eq =a+bj (25)

[0131] Among them, a and b are real numbers, and their values ​​can be obtained from the circuit parameters. Assume that the amplitude of A is A0 and the phase is Substituting formula (25) into formula (21), we can obtain:

[0132]

[0133]

[0134] From the above analysis, we can know that the harmonic compensation voltage v output by ES is ESh After passing through the LC filter, amplitude and phase shifts will occur, affecting the performance of ES harmonic compensation. In order to improve the harmonic compensation performance of ES, it is also necessary to adjust v in equation (13). ESh The amplitude and phase of each harmonic are corrected. The amplitude and phase correction block diagram is as follows: Figure 4 shown.

[0135] Figure 4 The amplitude and phase correction parameters of each harmonic can be obtained by equations (26) and (27). The resonant controller is used to extract each harmonic. The transfer function of the resonant controller is shown in equation (28):

[0136]

[0137] In formula (28), ω n is the nth harmonic angular frequency, ω c is the bandwidth, and k is the gain. To ensure the harmonic detection accuracy of the resonant controller, the resonant controller parameter design should try to meet the gain of 1 at the resonant frequency and the gain close to 0 at other frequencies. n is 300π,ω c When is 2π and k is 12.5, the Bode plot of the transfer function T(s) is as follows: Figure 5 As shown. Figure 5It can be seen that the gain of the triple resonance controller is close to 1 at the resonance frequency point, while the signal is almost attenuated to 0 at other frequencies. The parameter design of the resonance controller meets the requirements. Figure 5 The selection of K value is related to the DC side voltage of the single-phase inverter circuit, K is:

[0138]

[0139] Based on the hardware-in-the-loop real-time simulation technology, a hardware-in-the-loop simulation platform for ES under distorted power grid was constructed, including software Matlab / Simulink, Starsim and hardware NIPXI-1071 real-time simulator and FPGA board.

[0140] In Matlab / Simulink, build Figure 1 The main circuit structure shown is downloaded to the real-time simulator through the host computer software Starsim, where the host computer communicates with the real-time simulator via Ethernet. The real-time simulator passes the circuit structure from the host computer to the FPGA, and the FPGA board is responsible for running the main circuit structure, as well as analog data input and output, and receiving and processing PWM waveforms. [ The host computer software Starsim can also monitor the main circuit parameters running on the FPGA in real time, and can also directly observe the voltage and current signals of the main circuit through an oscilloscope. The circuit parameters of the hardware-in-the-loop simulation platform are shown in Table 1:

[0141] Table 1 Hardware-in-the-loop experiment parameters

[0142]

[0143] Taking the grid voltage lower than the reference value and ES working in capacitive mode as an example, take v G =215V. To simulate the distorted grid, the grid voltage v G The 3rd, 5th, 7th and 9th harmonics are injected respectively, and the ES adopts the original PI control method. The experimental results are as follows Figure 7-9 shown.

[0144] Depend on Figure 7 It can be seen that the grid voltage is distorted and contains 3rd, 5th, 7th, and 9th harmonics, and the total harmonic distortion rate is 24.07%. Figure 8 and 9 The experimental results show that under the condition of grid voltage distortion, ES adopts the original PI control method, which can maintain the critical load voltage v s The effective value is stable at 220V, but affected by the grid voltage distortion, the key load voltage v s It also contains harmonic components, and the total harmonic distortion rate reaches 18.91%, which seriously affects the normal use of key loads.

[0145] Similarly, under the condition of distorted grid voltage, ES adopts the improved control method proposed by the present invention, and the experimental results are as follows: Fig.10 and 11 As shown. Fig.10 and 11 The experimental results show that under the condition of grid voltage distortion, ES adopts the improved control method proposed in this invention, and the key load voltage v s The effective value is stable at 220V, the critical load voltage v s The harmonic distortion rate is significantly reduced, and the total harmonic distortion rate is only 3.08%. Figure 8 and Fig.10 The experimental results show that when the ES adopts the improved control method proposed by the present invention, the harmonic distortion rate of the key load voltage is reduced from 18.71% to 3.08%. Therefore, the improved ES control method proposed by the present invention has the functions of maintaining the stability of the key load voltage and suppressing the harmonics on the key load voltage.

[0146] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Any technician familiar with the profession, without departing from the scope of the technical solution of the present invention, according to the technical essence of the present invention, any simple modification, equivalent replacement and improvement made to the above embodiment still falls within the protection scope of the technical solution of the present invention.

Claims

1. A method for optimizing the control of electric springs under distorted power grids. It is characterized in that It includes reactive power compensation PI control part and power spring ES harmonic compensation part. Power spring ES is referred to as ES in the following. When the grid voltage v G When the voltage fluctuates, the reactive power compensation PI control part provides reactive power compensation to stabilize the voltage of the key load; the harmonic current on the key load is compensated by outputting harmonic voltage through ES; the ES outputs harmonic voltage including the following steps: Step 1) Analyze the ES harmonic compensation principle under distorted power grid, and detect the harmonic part of the grid voltage v through single-phase dq transformation Gh , obtain the harmonic compensation voltage v required by ES output ESh ; In step 1), the harmonic compensation voltage v required to be output by ES is obtained. ESh Specifically include: The grid voltage and transmission line current, the current on the critical load, and the current on the non-critical load are decomposed into: In the formula, v Gf and v Gh The voltage v G The fundamental and harmonic components, v G Represents the equivalent fluctuating voltage source of thermal power generation and renewable energy generation, that is, the grid voltage, i 1 is the current on the transmission line, i c and i 0 The current for critical load and non-critical load respectively; The calculation of the harmonic component of the key load voltage is shown in equation (3). By analyzing the KCL and KVL laws in the ES circuit, equations (4)-(6) can be obtained. Considering the ideal case, after ES harmonic compensation, the key load voltage will not contain harmonic components, as shown in equations (7) and (8): v sh =i ch ·Z c (3) i 1 =i c +i 0 (4) v s =v ES +v 0 (5) i ch =0 (7) v sh =0 (8) In the formula, v sh is the key load voltage harmonic component, i ch is the harmonic component of the critical load current, Z c is the critical load, Z 1 is the transmission line impedance, v s is the critical load voltage, v ES is the ES output voltage, v 0 is the voltage on the non-critical load; Substituting equation (7) into equation (4) yields equation (9): i 1h =i 0h (9) Substituting equation (8) into equations (5) and (6), we can obtain equations (10) and (11): v ESh +v 0h =0 (10) v 0h The calculation formula is shown in formula (12); v 0h =i 0h ·Z nc (12) Solving equations (9)-(12) yields the ES output harmonic compensation voltage as follows: In the formula, v ESh and v 0h They are the harmonic compensation voltage output by ES and the harmonic component of non-critical load voltage, i 1h is the harmonic component of the transmission line current, i 0h is the non-critical load current harmonic component, Z nc For non-critical loads; Step 2) Consider the impact of LC filter on the amplitude and phase shift of high-frequency harmonics, and design the corresponding amplitude and phase correction link to v ESh Perform amplitude and phase correction; The corresponding amplitude and phase correction links are as follows: The ES circuit diagram is simplified using the Thevenin theorem, and the equivalent voltage and equivalent resistance are shown in equations (14) and (15) respectively: In the formula, is the equivalent voltage of Thevenin's theorem, Z eq is the equivalent resistance of Thevenin's theorem; According to the KCL and KVL laws, we can get: In the formula, is the equivalent output voltage of the single-phase inverter circuit, is the current on the inductor, is the current on the equivalent resistance, is the current on the capacitor; Solving equations (16)-(19) yields: in: Substituting equation (15) into equation (22), B is simplified to: Considering the output of the LC filter circuit With input The amplitude and phase offset between are mainly determined by A, and the disturbance error caused by B is very small, so equation (20) can be simplified as; Let Z eq for: Z eq =a+bj (25) Among them, a and b are real numbers, and their values ​​can be obtained from the circuit parameters. Assume that the amplitude of A is A 0 , the phase is Substituting formula (25) into formula (21), we can obtain: According to the designed corresponding amplitude and phase correction link, v ESh Amplitude and phase correction are performed, and the harmonic compensation voltage v output by ES is ESh After passing through the LC filter, the amplitude and phase shift occurs. ESh The amplitude and phase of each harmonic are corrected, and a resonant controller is used to extract each harmonic. The transfer function of the resonant controller is shown in formula (28): In the formula, ω n is the nth harmonic angular frequency, ω c is the bandwidth, k is the gain; The selection of K value is related to the DC side voltage of the single-phase inverter circuit. K is: Step 3) Get the corrected ES harmonic compensation voltage