 Open Access
 Authors : Julio ZevallosSipion , Miriam LuceroTenorio , Ibrahim Omar Habiballah
 Paper ID : IJERTV11IS120147
 Volume & Issue : Volume 11, Issue 12 (December 2022)
 Published (First Online): 05012023
 ISSN (Online) : 22780181
 Publisher Name : IJERT
 License: This work is licensed under a Creative Commons Attribution 4.0 International License
Applications Through Virtual Synchronous Generators (VSG) Simulation Connected in Parallel
1st Julio ZevallosSipion
Electrical Engineering Department
King Fahd University of Petroleum and Minerals Dhahran, KSA
2nd Miriam LuceroTenorio Dept. of Electronic Engineering Industrial Electronic Systems Group
Polytechnic University of Valencia Valencia, Spain
3rd Ibrahim Omar Habiballah
Electrical Engenineering Department
King Fahd University of Petroleum and Minerals Dhahran, KSA
AbstractWith the growing development of renewable ener gies, the concept of distributed generation has emerged, which consists of a cooperation of renewable sources with traditional generation sources. Because renewable sources use electronic devices for conversion to AC power and connection to the grid, virtual synchronous generator (VSG) stands out, which allows the connection between these sources and improving the stability characteristics of the system in the face of frequency and voltage changes in the network. In a distributed generation, commonly have two cases, either several renewable energy sources connected to the grid, or said sources connected to each other in isolation from the grid; in both cases, supplying power to a total equivalent load. Having a parallel connection of two VSGs or more, whatever the cases, allows a better distribution of power handling before a load, however, it is necessary to be clear about the control criteria that are governed, since a bad parameterization of the control parameters can affect the desired response and stability of the network. Both types of connections (ongrid and offgrid) will be analysed for two VSGs with different characteristics connected in parallel and with their respective control strategy; simulation results show the effectiveness of such connections following the appropriate control criteria.
Index TermsVSG, Droop control, Ongrid, Offgrid.

INTRODUCTION
ic in
te ly
–
rs id h rs s y,
The renewable energies developing has given importance to use efficient, clean, and easy access energies with the aim to reduce the environmental impact due to electrical generation [1]. Join to renewable energies developing, the distributed generation concept has taken place and, with that, the microgrid developing, just is the case of photovolta energies [2]. However, due to renewable energies use with
the synchronous generator behaviour in invertors connected to microgrids [6] through programming its oscillation equations as control strategy [7]. This kind of inverter is known as Virtual Synchronous Generator (VGS) or Synchronous Invertor [8].
Within the features the synchronous inverters are the vir tual inertia setting, power distribution and stability [9] [10]. Therefore, one of the most used techniques in this inverter types is the QV and Pw droop control to maintain stable the frequency and voltage levels in the network [11]. In this present paper, will be carried out through simulation of the connection of two synchronous inverters connected in parallel being used as ongrid and offgrid and suppling energy to a specific load.

METHODOLOGY.
Figure 1 shows a simplify block diagram for a VGS control. Considering that the renewable energies used in microgrids mainly deliver energy in DC power, its representation will be simplified as only one DC voltage source. This DC source is connected to inverter to convert the voltage in AC power and with frequencies of 50Hz or 60 Hz. As the inverter uses power transistors with a fastswitching process to transform the voltage DC to AC, a LCL filter is connected to the inverter output to delete harmonics [12]. LCL output is connected to the grid, and they together supply energy to the load.
distributed generation, those are classified either ongri d
(renewable sources connected to electrical grid to contribu with energy), or offgrid (renewable sources that supp energy to a small charge) [3].
Nevertheless, since energy production in distributed gener ation using photovoltaic panels is in DC, they need inverto to be connected to electrical grid. Inverters can follow the gr
[6], a difference of conventional generation systems whi c provide inertia to grid due to use synchronous generato [4]. Having no inertia, inverters are susceptible to chang e into the grids (like frequency and voltage) [5] and, whereb carry harmonic and instability problems [4]. Because this disadvantage, several methods have been developed to emulateFig. 1. Block diagram of control for one VGS connected to a small grid.
s
d
,
s r
Talking about control, measurement process block us e
Parks transform to have the currents and voltages of the gri
in dq quantities to handle these variables in a static plan e
which facilitates their processing and calculation for analysi [13]. Furthermore, this block delivers active and reactive powe to be processed in their respective controls (Pf and QV droop controls). Synchronous Algorithm block takes control variables from P and QV droop controllers (frequency and
voltage) and estimates the reference current with the aim
Fig. 3. Control droop QV block diagram of VGS.
to calculate the threephase reference voltage which will be Where Vref and V are expected grid Voltage and actual
processed by SPWM, and it sends the desired pulse train to the inverter gate [14].

P and QV control
P droop control allows control active power flow through grid frequency and maintain it stable, even if the power setpoint changes. In the other hand, Q V droop control manages the reactive power flow and stabilize the voltage when there are fluctuations in it [12] [15] [16].
Equation (1) describe the power droop behaviour in steady state [17] but, as the control seeks to emulate the operation of a synchronous motor when appears load variations to remain constant frequency and active power, Swing Equation Function used in (2) represents its dynamic features [18] [20]. These equations perform the properly control loop for Power and frequency grid and Figure 2 shows common block diagram for this control.
Pref P = Dp( + ref ) (1)
Voltage of VSG, Dq is droop coefficient of Q V and is
founded by counter diagram, Qref and Q are electromagnetic reactive power desired and reactive power given by the grid. Sometimes, is useful adding an integrator or an PI controller to enhance the control response if the grid requires it.

Voltage and Current controls.
Two strategies are used together for the VGS control: voltage and current double closed control; furthermore, dq coordinates is proposed [13]. Voltage control manages the power flow using the shift between grid voltage angle and inverter output angle. Instead, the current control oversees regulating the current injected into the network, using SPWM technique [19]. Fig. 4 shows a general diagram for the control mentioned above.
d
J dt
= P Pref + Dp( + ref ) (2)
Fig. 4. Control voltagecurrent double loop block diagram.
Fig. 2. Control droop Pw block diagram of VGS.
Where ref and are desired grid frequency and actual virtual frequency of VSG, Dp is droop coefficient of P and is founded by counter diagram, Pref and P are electro magnetic active power desired and active power given by the grid, J is the virtual inertia which emulates real synchronous motor inertia.
As mentioned above, terminal voltage of VGS is related with the reactive power fow and they have a droop feature [17]. Equation (3) describe this relation and figure 3. shows a common block diagram for this control.
Qref Q = Dq(V Vref ) (3)


SIMULATION RESULTS.
Two cases of two different VSG in parallel will be analyzed under a specific load: Ongrid case and Offgrid case. Dynamic and control models are developing in MATLAB/Simulink. Figure 5 shows the proposal control scheme for each VGS and it can be seen that for P droop control is used an integrator, instead, Q V control use a PI control to improve the voltage performance. For voltage and current control, the gains of the PI controller have been determined by trial and error.
Figure 6 and 7 shows the schematic for Ongrid and Off grid case, respectively. For both cases, Power measurements (active and reactive) is taken from the load to be fed back
Fig. 7. MATLAB/Simulink schematic for OFFgrid.
Fig. 5. MATLAB/Simulink model and control design.
voltage, i.e., V = 0.05(400/
3)[V rms]) = 16.33V rms,
in droop controls. In the other hand, for voltage and current control, output voltage and current for each VSG is taken and are being fed back into their respective controllers. In both cases, the VSG an initial charge of 0.695KW + 0.357KV AR (In this case, it will be considered as no load), before 0.5 seconds, a load of 4.33KW + 1.22KV AR, and finally, in 1.5 seconds 2.62KW + 2.35KV AR is added (we will consider the sum of these two loads as full load). One VSG is rated with 20KV AR and 800V , and the second one is rated with 15KV AR and 800V . Frequency and line voltage grid is 50Hz and 400V rms. Droop constant is defined as Dp = P/ for P w control, and Dq = Q/V . To demonstrate stability in the responses, the simulation time used is 5 seconds. Now, separate case results will be discussed.
Fig. 6. MATLAB/Simulink schematic for ONgrid.

ONGrid.
For ONGrid case, P is taken as de difference between no load and full load, i.e., P = 4.33[KW ] + 2.62[KW ] = 6.95[KW ]; while in this case it must be very small since these VSG are connected to a mainly grid and large chances in their frequencies cause great harmonics in the grid, for this reason it is taken 0.05% of nominal frequency, i.e., = 0.0005(314.16[rad/s]) = 0.0628[rad/s]; so that, Dp = 4.425Ã—104[s/rad]. For Q is the same explanation said for P , so Q = 1.22[KV AR] + 2.35[KV AR] =
3.57[KW ]; while V must be small to dont affect the net work voltage, therefore, it is chosen 5% of LineNeutral grid
so that, Dq = 218.617[/V rms].
Figures 8 and 9 show the frequency and voltage for each VGS, and we can realize that at the start of the simulation it is difficult for each inverter to connect to the grid, which is why it suffers a small underdamping within in a very short time but, within a permissible range. After that, each VSG is stabilized, keeps frequency and voltage constant, and contributes to the power delivery in the network. Figure 10 shows the active and reactive power of the load, and figures 11 and 12 show those powers comparing with the reference; the error for each one is small at the beginning, but in full load the error is practically zero. Finally, Figures 13 and 14 show the active and reactive power for grid, each VGS and load, and it can be observed that after the transient until the frequency and voltage values of each VGS, they share the energy which is transmitted to grid and load.
Fig. 8. Frequency for each VSG ONGrid.
Fig. 9. Voltage for each VSG ONGrid.
Fig. 10. P and Q on the load ONGrid.
Fig. 11. Real active Power in the load, comparing with the reference. ONGrid case.
Fig. 12. Real reactive Power in the load, comparing with the reference. ON Grid case.
Fig. 13. Active power from the grid, inverters, and load. ONGrid case.
Fig. 14. Reactive power from the grid, inverters, and load. ONGrid case.

OFFGrid.
In OFFGrid case, P still the same but now may vary a little more, since the two VGS will be in charge of adjusting the frequency in the network, so it is taken 0.1% of nominal fre quency, i.e., = 0.001(314.16[rad/s]) = 0.3142[rad/s]; so that, Dp = 2.2123Ã—104[Ws/rad]. Besides, Q also still the same and V may be a little more than previous case and it is chosen10% of LineNeutral grid voltage,
i.e., V = 0.1(400/ 3)[V rms]) = 32.66V rms, so that,
Dq = 109.309[/V rms].
Simulation results are shown. Figures 15 and 16 show the frequency and voltage for each VGS, there is a transient at the beginning of the simulation for those values and remain stable within a very acceptable range. It is true that the frequency fluctuates but its variations are very small, so it can be said that it is constant. For this case, the voltage varies in proportion to the increase in load, within the 10% established for the Q V control. Figure 17 shows the active and reactive power of the load, and figures 18 and 19 show those powers comparing with the reference; and a good response is also presented in the power demand as in the previous case. Finally, Figures 20 and 21 show the active and reactive power for grid, each VGS and load, and it can be observed that the two inverters equally distribute the load according to their nominal powers
Fig. 15. Frequency for each VSG OFFGrid.
Fig. 16. Voltage for each VSG OFFGrid.
Fig. 17. P and Q on the load OFFGrid.
Fig. 18. Real active Power in the load, comparing with the reference. OFF Grid case.
Fig. 19. Active power from the grid, inverters, and load. OFFGrid case.
Fig. 20. Active power from the grid, inverters, and load. OFFGrid case.
Fig. 21. Reactive power from the grid, inverters, and load. OFFGrid case.


CONCLUSIONS
For the connection between a VSG and an electrical net work, a synchronization process is required and with a correct control of frequency and voltage drop, said connection can be achieved. However, when it comes to a connection of two or more VSGs, auxiliary strategies are required to improve synchronization and avoid problems. Several approaches in this field suggest taking the power measurement at the output of each inverter to feedback the droop controls, however, it was shown in this study that it can be practical and useful to take it from the load, if the purpose is to keep constant the power flow for that load, either if it has renewable sources connected in ONGird or OFFGrid, since taking the power feedback in this way, frequency and voltage synchronization problems between the inverters connected in parallel with the network are avoided, having a better facility when designing the control for each VSG. Given the results presented in each simulation, it is crucial to know how to correctly size the constants of each droop control according to the needs of the loads and the nature of the VSG connection (ONgrid or OFFgrid). In these cases, for an ONgrid inverter connection, the frequency and voltage variation percentages must be small for the drop constants since with larger variations, stability in the voltage and frequency is lost, in addition to the fact that the power of the load begins to keep oscillating or having variations around the reference. On the other hand, for an OFF grid connection, the voltage and frequency variations can be chosen with a higher percentage compared to the previous case, but it is recommended that the variation percentages are as small as possible and thus avoid fluctuations in the network frequency. Finally, this design can be transferred to more than two inverters connected in parallel, as long as the parameters of each controller for each inverter are well sized.
REFERENCES
[1] C. Mio, S. Panfilo, B. Blundo. Sustainable development goals and the strategic role of business: A systematic literature review. Business Strategy and the Environment. P. 3221322, December 2020. [2] B. Singh, J. Sharma. A review on distributd generation planning. Renewable and Sustainable Energy Reviews. Vol. 76, p. 529, Sept. 2017. [3] U. Shahzad. The Need for Renewable Energy Sources. International Journal of Information Technology and Electrical Engineering. P. 17, 2012. [4] B. Kroposki, B. Johnson, Y. Zhang, V. Gevorgian, P. Denholm, B. M. Hodge, B. Hannegan, Achieving a 100% Renewable Grid: Operating Electric Power Systems with Extremely High Levels of Variable. IEEE Power and Energy Magazine, Vol.15, Issue: 2, pp. 6173, MarchApril 2017. [5] A. Hoke et al., Setting the Smart Solar Standard: Collaborations Between Hawaiian Electric and the National Renewable Energy Lab oratory. IEEE Power and Energy Magazine, vol. 16, no. 6, pp. 1829, Nov.Dec. 2018. [6] J. Rocabert, A. Luna, F. Blaabjerg and P. RodrÂ´guez, Control of Power Converters in AC Microgrids. IEEE Transactions on Power Electronics, vol. 27, no. 11, pp. 47344749, Nov. 2012. [7] K. Visscher and S. W. H. De Haan, Virtual synchronous machines (VSGs) for frequency stabilisation in future grids with a significant share of decentralized generation, CIRED Seminar 2008: SmartGrids for Distribution, 2008, pp. 14. [8] J. Driesen and K. Visscher, Virtual synchronous generators. 2008 IEEE Power and Energy Society General Meeting – Conversion and Delivery of Electrical Energy in the 21st Century, pp. 13, 2008. [9] K.M. Cheema, A comprehensive review of virtual synchronous gener ator. Electrical Power and Energy Systems, vol. 120, Sep. 2020. [10] J.F. et al., On the inertia of future moreelectronics power systems. IEEE Journal of Emerging and Selected Topics in Power Electronics, vol. 7, no. 4, Dec. 2019. [11] U.B. Tayab, M. A. Bin Roslan, L. J. Hwai, M. Kashif, A review of droop control techniques for microgrid. Renewable and Sustainable Energy Reviews, vol. 76, pp.717727, Mar. 2017. [12] Md. Ashraful Islam, IMPLEMENTATION OF VIRTUAL SYN CHRONOUS GENERATOR METHODOLOGIES FOR RENEWABLEINTEGRATION. Temple University, Dec. 2017.
[13] R. G. Ferraz, L. U. Iurinic, A. D. Filomena and A. S. Bretas, Parks transformation analitycal approach of transient signal analysis for power systems. North American Power Symposium (NAPS), 2012, pp. 16, 2012. [14] M. LuceroTenorio, J. Zevallos, Basic principles for virtual syn chronous generator modelling and control, International Journal of Engineering Research & Technology (IJERT), vol. 10, Oct. 2022. [15] S.J. Ahn, J.W.Park, I.Y.Chung, S.I.Moon, S.H.Kang, and S.R. Nam, Powersharing method of multiple distributed generators considering control modes and configurations of a microgrid. IEEE Trans.Power Del., vol. 25, no. 3, pp. 20072016, Jul. 2010. [16] M. Chandorkar, D. Divan, and R. Adapa, Control of parallel connected inverters in standalone ac supply systems. IEEE Trans. Ind.Appl., vol. 29, no. 1, pp. 136143, Feb. 1993. [17] A. Rasool, X. Yan, H. Rasool, H. Guo, M. Asif. VSG Stability and Coordination Enhancement under Emergency Condition. Electronics, 7, 202, Sept. 2018 [18] J. Liu, Y. Miura, H. Bevrani and T. Ise, Enhanced Virtual Synchronous Generator Control for Parallel Inverters in Microgrids. IEEE Transac tions on Smart Grid, vol. 8, no. 5, pp. 22682277, Sept. 2017. [19] Y. He, H. Hu, H. Yang and J. Du, VSG parallel control strategy based on secondary voltage regulation. 2022 7th Asia Conference on Power and Electrical Engineering (ACPEE), pp. 15621567, Apr. 2022. [20] G. Liu, Y. Jing, W. Wang and F. Blaajerg, An Improved Reactive Power Control Strategy for the Parallel Inverter System Based on VSG. 2019 22nd International Conference on Electrical Machines and Systems (ICEMS), 2019, pp. 16. Aug. 2019.