Research on Seamless Switching Control Strategy Based on Virtual Synchronous Generator ()
1. Introduction
Inverter is an important part of the new energy grid, its performance has great influence on the stability of the micro grid. The traditional control method generally uses PQ, VF and droop control mode [1] [2] [3] [4] [5]. The inverter operates in these modes do not have inertia, once power disturbance occurs, it is unable to provide support for the grid voltage and frequency, Therefore some scholars put forward the virtual synchronous generator control strategy [6] [7] [8] [9] [10]. By adding virtual inertia in the inverter control system, make the external characteristic of inverter similar to synchronous generator. In this paper, the control strategy of virtual synchronous generator is used to study seamless switching between grid-connected and islanding operation. And the phase lock loop used in control strategy is improved.
2. Virtual Synchronous Generator
The control strategy of virtual synchronous generator is to simulate the mechanical characteristics and output power characteristics of a synchronous generator. In order to accurately simulate the mechanical inertia of the synchronous generator rotor, the equation of the synchronous generator is added. The rotor mechanical equation is as follows:
(1)
In the formula, the ω is the generator speed, the ωs is the synchronous speed, the δ represents the rotor angle of the generator, the D indicates the damping coefficient, the TJ is the generator inertia time constant, the Pm represents the prime mover power, and the Pe indicates the electromagnetic power.
By the formula (1) shows that when the load fluctuation, because the generator rotor mechanical inertia, the electromagnetic power could not immediately change, but from the original steady process gradually transition to the new steady state process .The transition time is determined by the load fluctuation, the generator inertia time constant TJ and damping coefficient D. The generator inertia time constant TJ plays a major role. The presence of TJ does not change the system steady, but changed the transient time. When the load fluctuates, the system can not immediately adjust to the optimum frequency, but on the other hand, it avoids the system frequency change rapidly with the load fluctuation, is helpful to improve the stability of the system.
The control strategy of the virtual synchronous generator is shown in Figure 1.
The control strategy includes virtual inertia control module and the droop control module. The former is used to simulate the rotor motion equation to realize the dynamic frequency regulation. The latter is used to simulate the frequency regulation factor.
3. Control Strategy between Islanded and Grid-Connected
When the invert is switching between islanded and grid-connected, if do not control the related to electrical character, once the voltage amplitude, frequency
Figure 1. Frequency control diagram of virtual synchronous generator control method.
and phase between grid and inverter is inconsistent, it will cause voltage switching transient and big fluctuations, affecting the normal operation of the system, or even damage the electricity and power generation equipment [11]. Therefore, the seamless switching between two operating modes not only requires tracing the frequency and phase of grid, but also need to track the output current change during mode switching.
3.1. Switching from Islanded to Grid-Connected
In the process of seamless switching, the switch from grid-connected to islanded is different from the other process. The inverter can be directly switched from grid-connected to islanded and will not impact the system. In the process of switching from islanded to grid-connected, it is necessary to process pre-syn- chronization, phase and voltage amplitude tracking.
3.1.1. Voltage Synchronization
For the voltage frequency control method, just set the voltage to the same as the grid voltage it is possible to avoid the impact caused by different voltage amplitudes during switching. However, for the islanded operation mode using the virtual synchronous generator control strategy, voltage regulation is required.
The characteristics of the reactive power and voltage droop control strategy of virtual synchronous generator are shown in Figure 2:
Function as follows:
(2)
When the output voltage of the virtual synchronous generator is not equal to the grid voltage (which is usually the rated value of the virtual synchronous generator), the output voltage needs to be changed to equal to the gird voltage. Set the translation of U as:
(3)
So the output voltage can be expressed as:
(4)
The following formula can be proved in accordance with the literature [12]:
(5)
Therefore, the state value of pre synchronization voltage is equal to the grid voltage.
3.1.2. Phase Pre Synchronization
Phase pre synchronization can eliminate the phase between inverter and grid. The schematic diagram of the phase pre synchronization control strategy is shown in Figure 4. Δθ is difference between grid phase θg and inverter phase θinv. Put Δθ into Pi part. The output of the PI is the angular frequency compensation. Only θg and θinv is completely equal, the output of PI is 0, pre synchronization is complete. Otherwise it will always make Δθ get smaller.
3.1.3. Reference Phase Generation Strategy
The control strategy can provide continuous reference phase. When switch = 1, the inverter is grid-connected, select switch S connected to the 1 channel, θinv = θg, that is, the phase of the inverter is actually controlled by the grid phase. And when switch = 0, θinv will equal to the sum of ω0 and the compensation frequency ωc. In the process of switching, the angular frequency of the θinv is always continuous and smooth, although the angular frequency is changed slightly.
On the contrary, when switch changed from 0 to 1, which is inverter change form islanded to grid-connected, the pre phase synchronization strategy makes the inverter phase is equal to grid phase in advance, so the phase in the process of switching also keeps continuous and smooth. Thus, no matter how switch changes and when to change, the reference phase θinv are continuously changes smoothly.
The principles of the three control strategies are shown in Figure 3:
3.1.4. Improved Phase Pre Synchronization
In this paper the phase difference is not directly put into the PI controller, but first gets the remainder of 2 PI, and it is used as the input of the PI controller after a sine function. Because when the phase difference equal to 2π, 4π actually should also be considered as synchronization. When the difference is 0.01π or 1.99π, the ideal adjustment strategy should consider the former as 0 and the latter as 2π. However, if the sine function is not used, the difference is directly put
Figure 3. Principle diagram of phase-locked synchronous tracking.
into the PI controller will result in low efficiency and long time tracking. On the other hand, after remainder of 2π, the output possibly arises from 0.01π to 1.99π because of small disturbance, but the phase difference of the system is not large. Add sine function can avoid this error.
The principle of the control strategy after adding sine function is shown in Figure 4:
Figure 4. Improved principle diagram of phase-locked synchronous tracking.
4. Simulation Analysis
In order to verify the validity of the control strategy, the simulation model (Figure 5) is built in the matlab/simulink, the basic parameters of the circuit are as follows: 1000 V DC voltage is 1000 V, AC voltage is 220 V, filter inductance is 3 mH, filter resistor 0.002 ohm, capacitor 100 μF, load is 60 kW, the virtual synchronous generator reference power 100 kW, 0 kvar, reference voltage is 311 V, the reference frequency is 50 Hz. when t = 0.10 s.
4.1. Simulation of Switching from Grid-Connected to Islanded
The inverter is switched from grid-connected to islanded, the simulation results are as follows:
Figure 6 is the output of PLL without improvement, and Figure 7 is the output with improved PLL. This conclusion can be drawn by comparing the two pictures: the improved PLL proposed by this paper can enhance the performance of PLL.
It can be observed from Figure 8 that the voltage waveform is smooth and continuous. In Figure 9, when t = 0.1 s the inverters is disconnected from grid and do not provide power to the grid, so the current become smaller. But there is no current disturbance during the switching process.
Figure 6. Output of PLL before improvement.
4.2. Simulation of Switching from Islanded to Grid-Connected
The parameters of the circuit are the same. When t = 0.1 s inverter is switched from islanded to grid-connected, the simulation results are as follows:
It can be observed in Figure 10 and Figure 11 that the voltage and current waveform are smooth and continuous, which proves that the control strategy is effective. There is no voltage and current disturbance during the switching process.
5. Conclusion
In order to avoid voltage and current mutation when the inverter is switching between grid-connected and islanded, this paper studies the voltage, current and phase trace strategy. By using these strategies the virtual synchronous generator can realize seamless switching. At the same time this paper proposed an improved PLL to elimination the mutations when the phase is near 0 or 2π. A mathematical model is built in Matlab/Simulink. Simulation results verify the effectiveness and superiority of the proposed strategies.
Acknowledgements
This article is supported by the Fundamental Research Funds for the Central Universities: 14CX02172A.