According to Professor Janaka Ekanayake's guidance, I enhanced my Week 10 Virtual Synchronous Generator (VSG) design to include the rate of change of frequency (RoCoF) alongside frequency droop control by refering following research paper. This update was crucial for accurately representing the VSG's initial response to grid disturbances.
Accoring to the following image taken from the research paper and based on the following two equations I designed the VSG. In this system, reactive power does not control. Therefore Q is equal to zero.
Following images are shown the VSG model.
In here, a Virtual Synchronous Generator (VSG) model was designed and implemented to enhance grid stability by effectively regulating active power injection based on frequency dynamics. The system operates as follows:
Frequency and Rate of Change of Frequency (RoCoF) Extraction
A Phase-Locked Loop (PLL) is employed to extract real-time grid frequency and RoCoF.
These signals are then fed into the VSG control block to compute the reference active power (P_VSG) based on the governing swing equation.
Active Power Control and Current Reference Generation
The reference active power (P_VSGP) is used to determine the direct-axis reference current (Id∗) through an analytical transformation (According to the second equation). Since reactive power does not control in the VSG model, the reactive power (Q) is set to zero.
Current Control and Voltage Regulation
The PI controllers regulate the direct and quadrature-axis current components according to the mismatch between their reference values (Id, Iq), converting them into corresponding voltage values (In here reference Id value take as zero).
These voltage values, along with the grid voltages (Vd, Vq), are used to compute the reference direct and quadrature voltage components.
Voltage Synthesis and PWM Modulation
The computed reference voltages are transformed into a three-phase AC voltage reference signal.
This signal is then fed into a Pulse Width Modulation (PWM) controller, which drives a three-phase inverter, ensuring synchronized power injection into the grid.
Simulation Results
This graph illustrates the dynamic response of active and reactive power in a standard power system during load connection and disconnection events. The upper portion of the image displays the active power (P) variation, while the lower portion depicts the reactive power (Q) variation over a time.
At 0.4 seconds, a load is introduced into the system, resulting in a step increase in active demand. This sudden change in load is clearly visible as a sharp, upward shift in the P traces. Subsequently, at 0.8 seconds, the load is removed but system doesnot come to the initial state. So I will try to achieve that also.