Power Quality and System Stability Impact of Large-Scale Distributed Generation on the Distribution Network: Case Study of 60 MW Derna Wind Farm

Wind energy (WE) has become one of the most promising and developed forms of renewable energy source due to its efficiency and the availability of different capacities according to the loading requirements. The integration of wind turbines in the Libyan network has become an indispensable choice due to Libya ’ s distinguished location and for the Libyan National Initiative. Despite the numerous benefits of WE, the penetration of WE sources in the distribution network has some negative impacts related to the quality and reliability of the electric power supplied to the network. Owing to, the intermittent nature of these sources and electronic circuits needed to regulate the extracted power to comply with the grid requirements. In this chapter, implementation of the eastern Libyan network in NEPLAN and MATLAB/SIMULINK packages are carried out to investigate and analyze the significance of wind farm penetration in the medium voltage level of Libyan Distribution Network. A 60 MVA wind farm system has been connected to the Libyan distribution network according to the Libyan National Initiative. Different penetration scenarios are simulated to testify the technical aspects of integrating WE on the distribution level.


Introduction
Libya is one of the leading and largest exporters and producers of oil and gas in North Africa and the world with a total area of 1,750,000 km 2 .It has gifted with a 1900 km Mediterranean coastline, which has given it enormous potential to generate electricity from wind and solar energies.Most of Libya's population lives on the coastline.The total population is approximately 6,273,000 [1].Despite the potential to generate electric energy from wind and solar as a result of the excellent location, Libya's contribution to alternative energy remains negligible.The production of electricity in Libya depends mainly on fossil fuel sources.After the devastation in Libya since 2011, oil production in Libya has fallen, which has led to a sharp drop in state exports and a frequent shortage of electricity production [2,3].As a result of the economic development and reconstruction, the demand for energy will substantially increase in the near future.Therefore, the generation of energy from sustainable energy sources in the country must be taken into account, since it mainly depends on fossil fuels.To avoid the negative results in the near future such as the shortage of oil and gas supplies, and the reduction of emissions from conventional generation sources, the establishment of an urgent plan needs to be considered.However, renewable energy sources have been utilized in Libya since the 1970s, but in small-scale applications.In 1976, solar energy has been applied in the electricity cathodic protection stations for gas pipelines protection.Also, in 1979, four pilot stations in the field of communications were installed.In 1983, the installation of solar energy systems began to pump water for irrigation in El-Agailat city.In 2010, a 60 MW project was launched in Derna due to the high potential for wind power generation with wind speed of between 6 and 7.5 ms À1 at a height of 40 m [1,4].
According to [5], 10% of the world's energy will be available through wind power in the next decade.Also, as a result of planning to make electric power from wind energy sources, one of the main sources of electricity in Libya, investigating and verifying the consequence of penetrating wind energy sources on the electrical grid is one of the most critical studies to provide optimum stability when integrating wind farms to the grid.The dynamic response of squirrel cage induction generator (SCIG) with direct grid connection is carried out.In [6,7], a study proposed a 36 MW fix speed wind farm connected to the grid.It is found that the study was done through calculating its power curve and investigating the effects of wind speed at the beginning.
Libya has enormous potential for solar and wind power generation.Figure 1 shows wind speed in several cities and regions in Libya.It shows the potential for high wind power production, as in Benina, Sirte, and Derna.From the research side, the possibility of [8].

Adverse effects of wind energy conversion units on distribution networks
The electrical power obtained from wind farm system adversely affects the voltage stability in the grid.To improve and maintain the voltage stability, prior understanding of the influences of such sources in terms of power quality and harmonics is significant for better operation and control of the grid.

Protection problems
The main function of protection system is to ensure the speed of operation and reliability to clear and isolate faulty equipment in case of a fault.The role of protection schemes is to minimize disturbing effects of fault currents and reduce the number of feeder outage.The penetration level of distributed generation (DG) influences the performance of protective relays and deteriorates the distribution network reliability.
The philosophy of protection systems in conventional distribution networks relies on the single direction of power flow from power plants toward the distribution network.The presence of DG turns out the distribution system operation comparable to the transmission system operation [9].The arrangement of protection schemes becomes more difficult when further DG units connected to the distribution network since DG integration shifts the flow of the power and raises the short-circuit level.Therefore, the protective relays may not carry on its functions accurately, since the operation of the protective relays in the distribution level based upon the short-circuit sensitivity [10].Introducing DGs to the distribution network associate further protection issues such as blinding of protective devices, false tripping, and reclosure-fuse miscoordination [11,12].Moreover, DG units can contribute a large current enough to trip the protective device on the feeder connecting the DG before the protective device on the faulted line, especially in synchronous machines based [13].

Power quality problems
Voltage regulation may become a challenge in the presence of DGs.Additionally, some DG technologies lack the ability to produce reactive power and compensate for voltage reduction on loaded busbars.The interruption of large DG units in case of faults could influence the reliability of the entire network.The disconnection of synchronous generators with huge capacities and the intermittent nature of DG based on renewable sources may cause voltage fluctuation, especially near these DGs [14,15].Some DG technology connected to the grid through power electronic converters such as wind turbine operates with doubly fed induction machine and photovoltaic may become a source of power quality problems too.Capacitors used for induction generators are also a source of harmonics in case of resonances in the network.The growth in integrating single-phase DGs in distribution network could influence the voltage profile and create an eminent unbalancing issue.When wind energy is penetrated into the grid, the power quality of the grid will be affected among other characteristics [16,17].The power quality of the grid containing wind systems must comply with the limits and requirements of the facilities.Therefore, the characteristics of the grid must be evaluated properly after the wind energy systems are connected to the grid.Prior knowledge of wind system characteristics must be adequately defined to avoid the drawbacks of connecting such sources.The electrical characteristics of wind turbines are usually specified by the manufacturer, not by specific site location.For this reason, when the electrical characteristics of a particular wind turbine are known, their impact on the power quality when connected to a particular location in the network can be predicted and calculated as a set of units.The necessity for quality requirements, detailed and applicable documentation on the power quality of wind sources is required.The International Electrotechnical Commission (IEC) started work to facilitate this in 1996.As a result, IEC 61400-21 was developed and, today, most large wind turbine manufacturers provide power quality characteristic data accordingly [18,19].

Modeling of Derna wind farm
Darnah wind farm turbines are located in Derna city, which is located on the coastline of Mediterranean around (320 29 0 16.728 00 N-latitude 200 49 0 54.264 00 -longitude), in the eastern part of Libya as shown in Figure 2 with population of 80,000 [1].

Modeling of wind turbine
The wind energy system transfers the kinetic energy extracted from wind into mechanical energy through rotor blades of the wind turbine, and the permanent magnet synchronous generator (PMSG) transforms the mechanical energy in the rotor blades into electrical energy.The power extracting from wind depends on the covered area A of the rotor and the wind velocity V w and the air density p.The generated mechanical power P mech is generally computed form wind energy using the coefficient of power C p as follows [4]: The performance coefficient Cp is a function of the A and θ that depends on the wind velocity Vw, the rotational speed of the shaft wr and the rotor radius Rr.
(r.p.m) tends for speed of the rotor, Rr stands for e rotor (m) and Vw stands for velocity of wind (m/s).The power of the wind turbine versus wind speed and aerodynamic coefficients are shown in Figure 3.

Modeling of drive train
The behavior of the drive train dynamics is considered by taking three different model approaches such as single mass, double mass, and three mass model design in order to know which of the methods are more noticeable in detaining the performance of the network [17].
The study of drive train models depends upon the complexity of the network.If a study takes interest about the torsion fatigue, it just has to consider the dynamics of all parts of the networks [20,21].For these aim, double lumped mass or more accurate models are required.
For that, when application targets on the interaction between wind farms and connected loads, the considered drive train model considered being a single mass model for the sake of simplicity.Due to the direct connection of generator shafts of the turbine, the model of drive train can be defined as: where T mech stands for the mechanical torque generated by the wind turbine, Telec stands for the generated electromagnetic torque by the permanent magnet synchronous generator which can also be represented as a T gen , j stands for the inertia moment and f stands for the viscous friction coefficient that cannot be considered in a medium-scale wind turbine.In order to have the voltage in a-b-c frame from the d-q frame, one can need the angle θ that obtained after integrating the mechanical speed of the rotor h.

Modeling of permanent magnet synchronous generator
The model used for modeling the synchronous generator, which is based on permanent magnet (PMSG) is developed on the d-q axes 'park' model as shown in Figure 4.The mathematical model of PMSG is implemented using two-phase synchronous rotating reference frame theory in which the q-axis is in 90 degrees with the d-axis with reference to the direction of rotation.All the quantities in the rotor are referred to the stator, and it is given as follows [22,23]: where the stator fluxes are computed by following equation: Now putting the value of ϕ sd and ϕ sq in Eqs. ( 5) and ( 6), so one can land up with the expression as below: So, again resolving the above mentioned equation we can land up with following equation: Therefore, in order to solve for the d and q axis stator currents, the above mentioned equation can be formed in the following fashions: where Rs stands for the stator winding resistance, Ld stands for the stator inductance in direct axis, Lq stands for the stator inductance in quadrature axis, Vds stands for the direct axis stator voltage, Vqs stands for the quadrature axis stator voltage, Ids stands for the direct axis stator current, Iqs stands for the quadrature axis stator current, W elec =P wmech stands for the speed [19,24].
Since the permanent magnet synchronous generator (PMSG) is a machine similar to wound rotor machine which is better for surface-seated applications, the generated electric torque by the PMSG can be defined as follows: However, if permanent magnet synchronous generator is surface seated, then it is conceivable to favor the assumption of Ld = Lq.Then torque can be expressed as follows: So, one can land up with the equation as follows: In steady-state positions, the active power generated e from permanent magnet synchronous generator is given by: The wind farm is connected to the grid via step-up transformer to the 30 kV busbar [25,26].

Simulation results
Figure 5 shows a single-line diagram of a low-voltage network of Derna City simulated in NEPLAN [27].The electric grid as shown in Figure 6 consists of different voltage level busbars.The network feeds from the 220 KV busbar which connects it to the rest of the Libyan network through different capacity power transformers.Also, wind turbines with a total capacity of 60 MW, consisting number of turbines with a rated power of 1.65 MW, is connected to the simplified network in our study.Table 1 shows data for different components in the network and details of the wind turbines system.

Load profile
One of the most significant purposes for the integration of renewable energy sources into distribution networks is to reduce the costs of electricity to the consumers derived from charging line losses in this cost.The amount of line losses depends on the distance required to transfer the electric power as well as the value of the drawn current by consumers and thus affect the optimal economic dispatch based on the network configuration.Distribution network operators need to apply simple methods to predict the power flow in the network to ensure the balance of energy demand.Proper integration of the renewable energy sources in the distribution network will reduce the power losses in the transmission lines to a certain  level.This will contribute to the postponement of network infrastructure promotion.Various methods to determine the optimal capacity and location of each renewable DG at the minimum line losses, among which is Branch power loss formula as given in Eq. ( 19) [28].Figure 7 shows the loading profile of distribution transformers with different capacities through the day.Figure 8 shows the power supplied by the main feeder of the network in different wind farm penetration level.
where P bi = Active power at branch i, Q bi = Reactive power at branch i, V i jj = Magnitude of voltage at bus i.
The investigation of the load curve during the day shows a difference in loading ratios.The maximum rate of loading occurs at 20:30 due to switching lights in most homes.The investigation of energy feeding from the transmission system during the day showed the highest contribution from the grid 180 MW occur during the period of the sunset due to lighting loads, and since most loads in the network is a household loads.The electric supply from the grid decreases at the highest rate of integration of wind farm.This reduces the stress on the cables and improves the voltage profile on all busbars.

Voltage profile
Injection of renewable energy sources into the distribution network alters the direction of power flow in the grid.As a result, it enhances the voltage profile.The integration of such sources thus improves the voltage at feeder endings and thus improves the quality of the power fed to consumers as a whole [28].The benefits of DG penetration on the voltage profile improvement can be evaluated as follows: If all the loads at bus i are equally weighted, Wi expressed as where V 11 = Voltage profile improvement benefits.
V 11=wDG = General expression for voltage profile at bus I with the application of renewable DG units.
V 11=woDG = General expression for voltage profile at bus I without the application of renewable DG units.
V i0 = Voltage at bus I per unit without renewable DG.
V i = Voltage at bus I per unit with renewable DG.
LP i = Load at bus I (per unit).
N = Number of busses in the power system.
W i = weighting factor for bus i.
To investigate the fluctuation effects of wind energy source penetration, the voltage profile of different busbars is considered to display and show the excessive loading on the distribution busbars.The voltage profile for different busbars is illustrated in Figure 9.The influence of wind energy penetration on the voltage profile is slightly low, and this effect could be increased on radially connected busbars.The impact of wind generation will be noticeable at the busbar of point of common coupling (PCC) connecting the wind turbine to the electric grid.It is shown in Figure 10.
It is clear from the figures above, the voltages of all nodes have improved after interconnection of wind farm.The enhancement in voltage for busbars near from busbar of point of common coupling is better than the rest of other busbars in the network.

Harmonic distortion
The harmonics are created when non-sinusoidal currents and non-sinusoidal voltages increase in the network, and these distortions are generally called harmonic distortion [29,30].The basic conditions that lead to network consonances usually result from nonlinear loads, voltage imbalances.Power quality studies are carried out due to summation law [31].The total harmonic current distortion is given as:  in currents of the main busbar connecting wind farm for 20, 40, and 60 MW of penetration from wind farm.These results were extracted and implemented using MATLAB/SIMULINK after simplifying several wind turbines as one unit.
Figure 12 represents the harmonic current distortion for 20 MW penetration from wind energy system to the network.However, the total harmonic distortion shows slightly significant increase in the percentage of harmonic currents at PCC specially second and third harmonic currents to reach a value of 4.99% at PCC.
Figure 13 represents the harmonic current distortion for 20 MW penetration from wind energy system to the network.Moreover, the total harmonic distortion shows further slightly increase in the percentage of harmonic currents at PCC especially second and third harmonic currents to reach a value of 10.07% at PCC.
Figure 14 represents the harmonic current distortion for 60 MW penetration from wind energy system to the network.Moreover, the total harmonic distortion shows further highly increase in the percentage of harmonic currents at PCC especially second and third harmonic currents to reach a value of 20.08% at PCC.
The simulation is done at the selected PCC of 33 KV busbar system.The simulation result of current THDs is having low values.Three phases waveform of output currents at 33 KV busbar system is shown.From the three graphs, the result summary of harmonic currents is within permissible limits as compared to IEEE standard values and comply with the grid requirements.Therefore, it can be said that the wind farm power quality is sufficient and did not affect the grid system power quality, except for the case of 60 MW.

Conclusion
This chapter has interpreted the technical challenges of penetrating wind DG into the distribution system.Renewable DG can perform many significant functions in the economic, technical and environmental operation of an electric network.A wind energy system interconnected to a real network was investigated.Loads were programmed by NEPLAN.Actual wind measurements were used in this study to measure the extent to which wind power can be provided while ensuring a reasonable power quality and commensurate with international standards.It can be noticed from the results that the influence of the wind energy system can be significant on point of common coupling, which is close to the wind farm.Investigation of the cables connected in a mesh is less affected by the fluctuation more than the cables connected in radial can be further performed.It is also noticeable that energy losses decrease with increased penetration of the wind farm.From the analysis of the harmonic currents in MATLAB/ SIMULINK, their impact on the power quality of the energy is insignificant, the effect of the harmonic currents on the grid increase with increasing penetration of wind farm.Finally, it can be said that the performance of the wind farm falls within the limits of international standards but may increase its impact on the voltage profile and energy losses, and power quality with increased penetration of wind energy.

Figure 1 .
Figure 1.Average wind speed for different cities in Libya.

Figure 4 .
Figure 4. PMSG model in steady state condition with respect to the rotor flux reference frame: (a) direct axis and (b) quadrature axis.

Figure 5 .
Figure 5. Single-line diagram of a low-voltage network of Derna city simulated in NIPLAN.

Figure 6 .
Figure 6.60 MW wind farm connected to Derna medium voltage network.

Figure 7 .
Figure 7.The loading Profile of 20, 10 and 5 MW Distribution Transformers During 24 Hours.

Figure 8 .
Figure 8. MW power from main feeder with different wind farm penetration.

Figure 9 .
Figure 9. Voltage profile for different busbars for 1 day.

Figure 10 .
Figure 10.Voltage profile of point of common coupling (PCC).

Figure 13 .
Figure 13.FFT output of total harmonic current distortion for 40 MW penetration.

Figure 14 .
Figure 14.FFT output of total harmonic current distortion for 60 MW penetration.