Power Quality Assessment of Grid-Connected PV System in Compliance with the Recent Integration Requirements

The generation and integration of photovoltaic power plants (PVPPs) into the utility grid have increased dramatically over the past two decades. In this sense, and to ensure a high quality of the PVPPs generated power as well as a contribution on the power system security and stability, some of the new power quality requirements imposed by different grid codes and standards in order to regulate the installation of PVPPs and ensure the grid stability. This study aims to investigate the recent integration requirements including voltage sag, voltage flicker, harmonics, voltage unbalance, and frequency variation. Additionally, compliance controls and methods to fulfill these requirements are developed. In line with this, a large-scale three-phase grid-connected PVPP is designed. A modified inverter controller without the use of any extra device is designed to mitigate the sage incidence and achieve the low-voltage ride-through requirement. It can efficiently operate at normal conditions and once sag or faults are detected, it can change the mode of operation and inject a reactive current based on the sag depth. A dynamic voltage regulator and its controller are also designed to control the voltage flicker, fluctuation, and unbalance at the point of common coupling between the PVPP and the grid. The voltage and current harmonics are reduced below the specified limits using proper design and a RLC filter. The obtained results show that the proposed controller fulfilled the recent standard requirements in mitigating power quality (PQ) events. Thus, this study can increase the effort towards the development of smooth PVPP integration by optimizing the design, operation and control strategies towards high PQ and green electricity.


Introduction
Over recent years, the production and installation of photovoltaic power plants (PVPPs) have seen a huge increase all over the world. The level of penetration continues to grow, with approximately 100 GW of generated power has been added last year only, which makes photovoltaic (PV) systems contribute to about 55% of the newly added renewable energy capacity across the globe. This high growth of PVPPs generation and integration is anticipated to be maintained in the future. Figure 1 illustrates the amount of PV system capacity and annual addition in the recent ten years [1]. PVPPs have various characteristics that differ from the traditional power plants, which in turn lead to new For power quality, grid codes from countries such as Germany [3], Italy [4], USA [5], Australia [6], and many international standards like IEC standards [7] and IEEE standards [8] have enforced strict power quality rules for PV and other renewable energy sources (RESs) integration. For instance, during voltage sag, which is normally caused by the grid faults, the new requirements necessitate injecting reactive current into the PV system to overcome the sag event and to support the grid stability [9,10]. The limits of voltage fluctuation, harmonics, power factor, voltage unbalance, and flicker have also been defined and imposed. Different countries have set their own rules, requirements, and standards as summarized in [9,[11][12][13][14]. However, verification and implementation can be more important than setting rules and regulations. Some recent studies have been conducted as an effort to apply these requirements for GCPS, especially power quality issues due to the proliferation of highly sensitive electronic equipment [15]. In this regard, a study proposed in [16,17] used the static synchronous compensator (STATCOM) in order to mitigate the sag event and meet the low voltage ride-through (LVRT) requirements. The Static var compensator (SVC) [18] and energy storage system [19] are presented to fulfill the LVRT and inject reactive current to support the grid and overcome the sag incident as well. D-STATCOM also was used to mitigate the harmonics at the point of common coupling between the PVPP and the main grid [20]. The studies mentioned above have achieved quite significant results; however, most of these techniques are costly and can increase system complexity. In addition, some of these studies did not address the power balance and the protection of the semiconductor device during sag. Furthermore, attempts are yet to be made to study the effect of voltage unbalance and flicker regarding PV system penetration. For instance, the study proposed in [21,22] addressed voltage unbalance problem and the flicker issue was addressed by [23]. However, these phenomena were not investigated sufficiently and the standards and requirements were not considered.
This study aims to design a 5 MW large-scale PVPP connected to the medium voltage (MV) side of the grid according to the recent standard requirements. The paper mainly focuses on the For power quality, grid codes from countries such as Germany [3], Italy [4], USA [5], Australia [6], and many international standards like IEC standards [7] and IEEE standards [8] have enforced strict power quality rules for PV and other renewable energy sources (RESs) integration. For instance, during voltage sag, which is normally caused by the grid faults, the new requirements necessitate injecting reactive current into the PV system to overcome the sag event and to support the grid stability [9,10]. The limits of voltage fluctuation, harmonics, power factor, voltage unbalance, and flicker have also been defined and imposed. Different countries have set their own rules, requirements, and standards as summarized in [9,[11][12][13][14]. However, verification and implementation can be more important than setting rules and regulations. Some recent studies have been conducted as an effort to apply these requirements for GCPS, especially power quality issues due to the proliferation of highly sensitive electronic equipment [15]. In this regard, a study proposed in [16,17] used the static synchronous compensator (STATCOM) in order to mitigate the sag event and meet the low voltage ride-through (LVRT) requirements. The Static var compensator (SVC) [18] and energy storage system [19] are presented to fulfill the LVRT and inject reactive current to support the grid and overcome the sag incident as well. D-STATCOM also was used to mitigate the harmonics at the point of common coupling between the PVPP and the main grid [20]. The studies mentioned above have achieved quite significant results; however, most of these techniques are costly and can increase system complexity. In addition, some of these studies did not address the power balance and the protection of the semiconductor device during sag. Furthermore, attempts are yet to be made to study the effect of voltage unbalance and flicker regarding PV system penetration. For instance, the study proposed in [21,22] addressed voltage unbalance problem and the flicker issue was addressed by [23]. However, these phenomena were not investigated sufficiently and the standards and requirements were not considered.
This study aims to design a 5 MW large-scale PVPP connected to the medium voltage (MV) side of the grid according to the recent standard requirements. The paper mainly focuses on the assessment and management of the power quality issues to be fulfilled at the PCC as imposed by the new standards. This includes studying voltage sag, fluctuation, flicker, unbalance as well as current and voltage harmonic distortion, frequency behavior, and power factor to perform a comprehensive assessment of the PQ problems on the large-scale PV system based on the standard requirements. The main novelties and contributions are as follows: • A comprehensive control strategy that enables the PVPP to withstand grid faults, allow the inverter remains connected, continuously produce electricity, and absorb excessive energy whilst injecting the required reactive power to meet the LVRT requirements and overcoming sag event. This controller can inject active and reactive current during the fault without any extra hardware in compare to STATCOM, SVC, or energy storage system (ESS), which means less complexity and lower cost.

•
An advanced dynamic voltage regulator (DVR) control system to reduce the voltage fluctuation, flicker, and unbalance into the required limits efficiently. The main feature of the proposed controller to address the flicker incident is injecting voltages in sequence into the power line at PCC using DVR three-phase voltage source inverter. A fast and precise detection method based on the voltage phage angle in a balanced situation is proposed to detect the unbalance so that it can overcome the balance incident based on mathematical modeling is developed.

•
An efficient RLC filter to reduce the voltage and current harmonics under the specified limits at the increased switching frequency is developed.
These advanced features are managed to achieve the desired level of PQ issues at the PCC as imposed by the new standards. Accordingly, the simulation results showed that all the power quality issues are modified and degrade to the standard defined level using efficient controls and compliance strategies.

The Recent PV Integration Requirements
The installation of the PVPPs comes along with many challenges that need to be addressed before they can be incorporated into the utility grid. This is because the operation of these plants can be uncertain due to the variability of the solar. It is important to investigate the establishment of grid codes for the installation of PVPPs and how they can help to achieve reliable operation and long-life production. The effect of high PVPPs connection to the existing power grid should be evaluated in terms of the power flow patterns to ensure a high quality of the delivered power and overall system reliability and stability. In this regard, and due to the slow replacement of RESs such as PV system to the conventional generation units, the power system operators (PSOs) have issued strict technical requirements concerning this connection that must be achieved at the PCC to ensure robust operation and good quality of the power future. The following subsection provides a brief overview of the recent integration requirements.

LVRT Capability Requirement toward Voltage Sag Mitigation
Voltage sag (dip) is undoubtedly one of the most severe power quality problems in the power industry as well as to commercial and industrial customers. The sag incident in power networks leads to grid stability problems. It is mainly caused by grid faults and is defined as the deviation of RMS voltage between 10% and 90% of its nominal value during short period of time [24]. In the past, during sag events, standard requirements necessitate that the PVPPs have to disconnect from the grid quickly to prevent islanding issues. However, as the penetration of PVPPs to the power grid rises, its disconnections during sags are unfavorable. This is because it can cause a huge loss of the PV-generated power, which in turn leads to problems in the operation and stability of the grid [25]. Accordingly, the low voltage rise-though (LVRT) capability is enforced by recent requirements to help in solving the sag problems and contribute to grid stability [26].
The LVRT is defined by the modern standard and grid codes (GCs) as the ability of the PVPP to stay in connection mode during voltage sag for a specific duration and support the voltage recovery until it overcomes the sag event. The typical LVRT standard requirements are similar to Figure 2a. Thus, in case the voltage level is in area A, the PVPP should resist the sag fault and operate regularly for a period ranging from t 0 to t 1 ; otherwise, the disconnection is mandatory. If the voltage at PCC is varying in area B and retrieved after sag event to V x within t 2 , it is compulsory for the PVPP to stay in operation without the trip. It is also important to mention that the values of V x , V y , V 0 , t 0 , t 1 , and t 2 are differing from country to country [27,28]. Not only to withstand the fault but also to inject reactive current based on the voltage drop according to the curve shown in Figure 2b is also an advance LVRT requirement to mitigate voltage sag. Accordingly, in case the voltage above 90%, no injection of reactive current, however, if the fault caused the voltage to drop between 90% and 50% (area A), the PVPP must support the voltage stability and mitigate the voltage sag by injection of amount of reactive current depend on the curve provided. To overcome sag events during the worst case (B area) once the voltage dropped to less than 50%, the grid voltage recovery must be supported by injection at least 100% of the available reactive current [9].
Electronics 2020, 9, x FOR PEER REVIEW 4 of 23 Thus, in case the voltage level is in area A, the PVPP should resist the sag fault and operate regularly for a period ranging from t0 to t1; otherwise, the disconnection is mandatory. If the voltage at PCC is varying in area B and retrieved after sag event to Vx within t2, it is compulsory for the PVPP to stay in operation without the trip. It is also important to mention that the values of Vx, Vy, V0, t0, t1, and t2 are differing from country to country [27,28]. Not only to withstand the fault but also to inject reactive current based on the voltage drop according to the curve shown in Figure 2b is also an advance LVRT requirement to mitigate voltage sag. Accordingly, in case the voltage above 90%, no injection of reactive current, however, if the fault caused the voltage to drop between 90% and 50% (area A), the PVPP must support the voltage stability and mitigate the voltage sag by injection of amount of reactive current depend on the curve provided. To overcome sag events during the worst case (B area) once the voltage dropped to less than 50%, the grid voltage recovery must be supported by injection at least 100% of the available reactive current [9].

Voltage Flicker Requirements
The power output from PVPP is highly sporadic, accordingly, generating a different amount of voltage flickers and voltage variance on the distribution networks. The flicker can occur as possible effects that PV systems penetration into the power system caused due to the variations in solar irradiance. In this regard, the flicker assessment and management have gained more concern recently and have been imposed on power quality requirements for distribution systems generation. The measurement of flicker is given by the short term probability flicker severity (Pst) and the long term probability flicker severity (Plt) based on the calculation mentioned in [29].
To measure the Pst and Plt, IEC standard 61000-4-15, defines the measuring time should be at least lasting for ten minutes and 2 h, respectively [30]. The Canadian CSA C22.3 No. 9-08 [31] and IEEE 1547 [8] standards require that the distribution source shall not create objectionable flicker between 0.6 and 0.9 pu for Plt and Pst, respectively. Additionally, IEEE 929, IEEE 519, and IEC 61727 state that PVPP integrated power grid should not exceed the limit specified in IEC standard 61000-4-15 [30]. The voltage flicker requirements for GCPs in China's GB and Taiwan's CNS standards stated that the PVPP should not produce short and long term flicker above the limits specified by IEC. UK-EREC G83 standards state that the long-and short-term flicker shall not exceed 0.65 and 1.0, respectively. Overall, Table 1 lists the long-and short-term flicker limits stated by different countries grid codes and standards. Thus, an advanced controller with flicker mitigating device is important in compliance with grid features.

Voltage Flicker Requirements
The power output from PVPP is highly sporadic, accordingly, generating a different amount of voltage flickers and voltage variance on the distribution networks. The flicker can occur as possible effects that PV systems penetration into the power system caused due to the variations in solar irradiance. In this regard, the flicker assessment and management have gained more concern recently and have been imposed on power quality requirements for distribution systems generation. The measurement of flicker is given by the short term probability flicker severity (P st ) and the long term probability flicker severity (P lt ) based on the calculation mentioned in [29].
To measure the P st and P lt , IEC standard 61000-4-15, defines the measuring time should be at least lasting for ten minutes and 2 h, respectively [30]. The Canadian CSA C22.3 No. 9-08 [31] and IEEE 1547 [8] standards require that the distribution source shall not create objectionable flicker between 0.6 and 0.9 pu for P lt and P st , respectively. Additionally, IEEE 929, IEEE 519, and IEC 61727 state that PVPP integrated power grid should not exceed the limit specified in IEC standard 61000-4-15 [30]. The voltage flicker requirements for GCPs in China's GB and Taiwan's CNS standards stated that the PVPP should not produce short and long term flicker above the limits specified by IEC. UK-EREC G83 standards state that the long-and short-term flicker shall not exceed 0.65 and 1.0, respectively. Overall, Table 1 lists the long-and short-term flicker limits stated by different countries grid codes and standards. Thus, an advanced controller with flicker mitigating device is important in compliance with grid features.

Requirements of PV Harmonics Distortion
Harmonic distortion is defined as the voltage and current waveform distortion, which causes it to change from its normal characteristics or shape. It is generally classified as a serious power quality problem. In the PV system, the harmonics can be produced due to the use of inverter, converter, and other power electronic devices. In this context, the PVPP contains several power-electronic devices that produce distortion [32]. Furthermore, the amplitudes of high current and voltage harmonic make additional losses in the power grid and malfunctioning of grid-side protection devices. Therefore, strict regulation is imposed to ensure a less level of harmonic distortion at the PCC. The harmonic distortion can be characterized and measured by total harmonic distortion (THD) of either voltage or current as expressed in [33].
During the advancement of the PV system integration requirements into the grid, different harmonic distortion standards are imposed; however, they are similar, excluding EREC G83 and VDE-AR-N4105, which are notably strict in which imposed a THD for PV integration should be less than 3% [34,35]. Tables 2 and 3 provide the harmonic limits that should be achieved at PCC for current and voltage, respectively.

Standard Requirement for Voltage Unbalance
A voltage unbalance or imbalance occurs in the electrical system when the line voltage or phase varies from the typical balance condition. Despite there are different reasons that may contribute to voltage unbalance, the voltage unbalance may happen in supply systems [36]. Additionally, from the power quality and reliability view, having a worthy voltage balance in the power grid is paramount. Thus, to ensure a smooth interconnection of the PVPP with voltage balance, some GCs and standards requirements have been imposed. The degree of voltage unbalances commonly defined as the ratio of positive to negative sequence voltage component. In this regard, the voltage unbalance factor (VUF) is used to monitor the degree of unbalance as mentioned in [37].
As the unbalance of voltage is a good indicator of the quality of power delivered to the grid, some standards and GCs take attention to limits the VUF at PCC and then ensure that non-unbalance three-phase voltage is injected into the grid. For instance, IEEE Std. [8] requires VUF not exceed 3%. IEC standard imposed that all distribution generators have to keep the VUF less than 2% [38]. German and China requirements have imposed 2% of voltage unbalance at the interconnection point of PVPP with electrical grid [3,39,40]. In Canada, CAN/CSA-C61000-2-2 standard required that the maximum limit for voltage unbalance is 2%, however, 3% is allowed in case of unbalanced loading as mentioned by Canadian standards association [31]. Overall, the standards across the globe have specified the suitable limit for voltage unbalance to generally varying between 1% and 2% [39,41] should not be exceeded.

PV System Requirements on Frequency Variation and Power Factor
The response of PVPPs to the grid frequency variation standards are thoroughly highlighted during the last years as the frequency consider one of the key factors to ensure a high quality of the power systems. Therefore, some recent requirements impose the PV system to work under frequency control in which operates at a nominal frequency (i.e., 50 or 60 Hz) with a specified margin; otherwise, speedily disconnection is required. Normally, this margin is determined by ±1 Hz as specified by many regulations [42]. Thus, the frequency is not allowed to fluctuate less than 1 Hz. The efficient use of electricity indicated by the power factor, which is estimated on a scope of 0-1.0. In the power system, as all circuits include inductance and capacitance to a specific degree, the power factor practically is always under one. Table 4 lists the minimum power factor limit in various grid codes regarding the PVPPs integration that should be achieved at the connection point.

Grid-Connected PV System Structure and Models
A single-stage three-phase GCPS is designed and simulated in this study. It mostly consists of PV array, MPPT controller, inverter, controller, filter, transformer, and grid, as illustrated in Figure 3. The PV modules are arranged in series and parallel to configure the array system so that it can be delivered the required DC-voltage to the DC side of the inverter. The DC power then converted to AC power via the inverter, and eventually filtered, transformed, and integrated to the required level of the grid side. A single-stage GCPS has only DC/AC energy conversion, which has different advantages such as high efficiency, simple structure, robust flexibility, and low system cost. In this model, the centralized conversion system in which the PV array system is connected to one central inverter is designed.

Grid-Connected PV System Structure and Models
A single-stage three-phase GCPS is designed and simulated in this study. It mostly consists of PV array, MPPT controller, inverter, controller, filter, transformer, and grid, as illustrated in Figure  3. The PV modules are arranged in series and parallel to configure the array system so that it can be delivered the required DC-voltage to the DC side of the inverter. The DC power then converted to AC power via the inverter, and eventually filtered, transformed, and integrated to the required level of the grid side. A single-stage GCPS has only DC/AC energy conversion, which has different advantages such as high efficiency, simple structure, robust flexibility, and low system cost. In this model, the centralized conversion system in which the PV array system is connected to one central inverter is designed.  However, the complexity is high because the inverter has to achieve all control objectives alone. Figure 4 shows the three-phase view of the grid-connected inverter. The inverter voltage equations when considering the access to the utility grid based on Figure 4, are driven as follows:

PV Farm
The Inverter Electrical network  , and where (Vga, Vgb, Vgc,), (Via, Vib, Vic), and (ia, ib, ic) represent three-phase (3-ph) voltage of the grid, (3-ph) voltage of the inverter, and (3-ph) current in the inverter, respectively. The mathematical formulation of the grid inverter in the d-q synchronous frame at a line frequency is acquired after the linear transformation utilizing the synchronous reference rotating frame as per Equation (2). However, in order to calculate the active and reactive power of the grid in the form of space vector is explained in Equation (3): However, the complexity is high because the inverter has to achieve all control objectives alone. Figure 4 shows the three-phase view of the grid-connected inverter. The inverter voltage equations when considering the access to the utility grid based on Figure 4, are driven as follows: where (V ga , V gb , V gc ,), (V ia , V ib , V ic ), and (i a , i b , i c ) represent three-phase (3-ph) voltage of the grid, (3-ph) voltage of the inverter, and (3-ph) current in the inverter, respectively. The mathematical formulation of the grid inverter in the d-q synchronous frame at a line frequency is acquired after the linear transformation utilizing the synchronous reference rotating frame as per Equation (2). However, in order to calculate the active and reactive power of the grid in the form of space vector is explained in Equation (3): where (V qd , I q ) and (V gd , I d ) represent the q and d axis of voltage and current in the d-q synchronous reference frame at the grid side. As stated above, the system must operate at a power factor mostly near to 1 in ordinary operating mode. Accordingly, no reactive power is injected to the grid; thus by neglecting power losses, V qd is zero, the formula in Equation (3) thereby converted as follows: Electronics 2020, 9, 366 8 of 22 However, the complexity is high because the inverter has to achieve all control objectives alone. Figure 4 shows the three-phase view of the grid-connected inverter. The inverter voltage equations when considering the access to the utility grid based on Figure 4, are driven as follows:

PV Farm
The Inverter Electrical network , , and where (Vga, Vgb, Vgc,), (Via, Vib, Vic), and (ia, ib, ic) represent three-phase (3-ph) voltage of the grid, (3-ph) voltage of the inverter, and (3-ph) current in the inverter, respectively. The mathematical formulation of the grid inverter in the d-q synchronous frame at a line frequency is acquired after the linear transformation utilizing the synchronous reference rotating frame as per Equation (2). However, in order to calculate the active and reactive power of the grid in the form of space vector is explained in Equation (3): The decoupling control is realized for the active and reactive power of the proposed GCPS as indicated by Equation (4). The active and reactive powers are affected by I d and I q , respectively; therefore any adjustment of I d and I q can manage the active output power and reactive output power independently. Therefore, this strategy controlled the reactive power injection during the sag problem to achieve the required injection of active and reactive power according to the standard requirements.
In this study, the large-scale PV array generates a rated power of 5000 kW connected to the medium voltage side (11 kV) was designed. The current-controlled PV inverter was used in this design due to its ability to enhance the power factor and reduce the harmonic current distortion. A feed-forward decoupling PI current controller-based synchronous rotating reference frame (d-q control) was used to control the connection of the PV system to the grid. The inverter controller adopts double loops control mode including inner current loop (active current (I d ) and reactive current (I q )) and outer voltage loop. The outer loop was utilized to stabilize or manage the DC-link voltage (V dc ). The injected active and reactive current components into the utility grid were controlled using PWM strategies. For synchronization, the phase-locked loop (PLL) based on (d-q) synchronous reference frame (SRF-PLL) was applied (see Figure 5) to lock the grid frequency and to support the reference synchronization signal for the inverter control system. It detected the phase angle and created an error signal by comparing the reference signal with the output signal. The loop filter eliminated unwanted harmonics from the error signal, while the voltage-controlled oscillator (VCO) in turn generated the output signal whose frequency varies around the system frequency depending on the output of the filter. Finally, the large-scale PVPP was connected to the distribution side of the grid through a step-up transformer (0.4-11) kV.
1.5 ( ) where (Vqd, Iq) and (Vgd, Id) represent the q and d axis of voltage and current in the d-q synchronous reference frame at the grid side. As stated above, the system must operate at a power factor mostly near to 1 in ordinary operating mode. Accordingly, no reactive power is injected to the grid; thus by neglecting power losses, Vqd is zero, the formula in Equation (3) thereby converted as follows: The decoupling control is realized for the active and reactive power of the proposed GCPS as indicated by Equation (4). The active and reactive powers are affected by Id and Iq, respectively; therefore any adjustment of Id and Iq can manage the active output power and reactive output power independently. Therefore, this strategy controlled the reactive power injection during the sag problem to achieve the required injection of active and reactive power according to the standard requirements.
In this study, the large-scale PV array generates a rated power of 5000 kW connected to the medium voltage side (11 kV) was designed. The current-controlled PV inverter was used in this design due to its ability to enhance the power factor and reduce the harmonic current distortion. A feed-forward decoupling PI current controller-based synchronous rotating reference frame (d-q control) was used to control the connection of the PV system to the grid. The inverter controller adopts double loops control mode including inner current loop (active current (Id) and reactive current (Iq)) and outer voltage loop. The outer loop was utilized to stabilize or manage the DC-link voltage (Vdc). The injected active and reactive current components into the utility grid were controlled using PWM strategies. For synchronization, the phase-locked loop (PLL) based on (d-q) synchronous reference frame (SRF-PLL) was applied (see Figure 5) to lock the grid frequency and to support the reference synchronization signal for the inverter control system. It detected the phase angle and created an error signal by comparing the reference signal with the output signal. The loop filter eliminated unwanted harmonics from the error signal, while the voltage-controlled oscillator (VCO) in turn generated the output signal whose frequency varies around the system frequency depending on the output of the filter. Finally, the large-scale PVPP was connected to the distribution side of the grid through a step-up transformer (0.4-11) kV.

Compliance Strategies for Achieving Power Quality Requirements
The GCPS needs to manage and comply with the recent requirements concerning the voltage flicker, voltage sag, harmonics, voltage unbalance, frequency, and power factor toward grid stability. Accordingly, the power quality standard requirements compliance verification has to be done applied for the PVPP to confirm verification and compliance with the recent integration regulation disused above.
Electronics 2020, 9, 366 9 of 22 In this context, this section provides a power quality assessment and management of the large-scale PVPP connected to the distribution grid following the recent power quality technical regulations.

LVRT Capability Control for Voltage Sag Mitigation
The large cost associated with voltage sags can justify the use of sag mitigation strategies. In the literature, different methods had already used to mitigate the sag problems, for instance, a dynamic reactive compensation including static synchronous compensator (STATCOM) and the static VAR compensator. STATCOM devices utilize synchronous voltage sources in order to generate or absorb reactive power. The STATCOM is connected to the ac system via an interface transformer [16]. An SVC can mitigate the voltage sag and support the grid voltage by injecting the loads by the reactive current, which has been tested in [43]. Other techniques used to mitigate the sag events in the power system are the uninterruptible power supply and energy storage devices, which depend on the reactive current to mitigate the sag events [44]. Overall, all these techniques are expensive and increase system complexity. Therefore, the LVRT capability control using the inverter controller modification would be present in this study without any extra devices to achieve the recent requirements described in Section 2.1. This strategy can help in solving the sag problems towards grid stability.
The main feature of the proposed controller is that, once sag happens and causes the voltage to fall under 90%, the inverter has to switch from its normal operation mode to LVRT operation mode. To do this, it is essential to have a fast and precise sag detection unit. Therefore, the root means square (RMS) detection strategy is utilized to sense the voltage sag in the proposed LVRT control. This strategy is simple without any extra hardware or additional transformation. It basically tracks the RMS values of the d and q voltage components. The RMS detection method can compute the instant voltage of the grid (V ig ) as follows: Here the V gd denotes the active (d)-components of the grid voltage. According to the proposed control, once the sag is detected by the detection unit, the inverter has to switch its operation to the LVRT mode (see Figure 6) in which reactive current is injected to support the grid and voltage recovery. It is important to mention that the amount of reactive current that should be injected to the grid during sag incident depends on the sag depth as imposed by the requirements illustrated in Figure 2. For instance, if the sag happened and caused the voltage to decrease within the range from 90% to 50% from its nominal value, the amounts of injected reactive current should be calculated as per Equation (6). Otherwise, in case the voltage decreased less than 50% from its nominal value, 100% of the reactive current must be injected to mitigate the voltage sag. It is well-known that, in normal operation mode, the PVPPs have to operate at unity power factor. Therefore the reactive current becomes zero and the reactive power will be zero accordingly. However, to achieve the LVRT requirements, once the sag happened, the reactive current is injected based on the sag depth. In this context, the amount of maximum active current (I d ) injected to the grid is estimated according to Equation (7) in which the amount of active and reactive current not exceeding 110% of the inverter rated current (I n ) following to Equation (8).
As a result, the active and reactive power during sag is changed accordingly. However, to inject the reactive power and contribute to sag mitigation, it is important to ensure the inverter connectivity and protect against DC-overvoltage and ac-overcurrent during a fault. For this purpose, the proposed controller used the crowbar [45] and the current limiter [46] to protect the inverter and other devices during the faults period.
As a result, the active and reactive power during sag is changed accordingly. However, to inject the reactive power and contribute to sag mitigation, it is important to ensure the inverter connectivity and protect against DC-overvoltage and ac-overcurrent during a fault. For this purpose, the proposed controller used the crowbar [45] and the current limiter [46] to protect the inverter and other devices during the faults period.

Sag detection unit
ig V

Address over-current and over-voltage incidents
Redefine active and reactive reference current

Voltage Flicker Management
With a view to check compliance of the relevant standards described above, the Plt and Pst are the best relevant flicker assessment that has been carried out on the proposed large-scale gridconnected PVPP model. In order to guarantee a less voltage fluctuation, flicker, and unbalance towards voltage stability, the dynamic voltage regulator (DVR) shown in Figure 7 was proposed. The DVR made-up of the DC energy source, IGBT inverter, and injection transformer (T2) joined the transmission line in a series way. It is installed between the step-up transformer (T1) and the interconnection point or PCC. The DVR has the ability to inject voltage to the system and thus bring the voltage to return its nominal operation to overcome the variance and flicker. DVR not only mitigated the voltage flicker and fluctuation but also mitigated the voltage unbalance and thus increased the grid stability [47]. The simplified DVR power circuit is shown in Figure 8. It is exemplified by an ideal voltage source (VCNO.) connected seriously between the PCC side (Vpcc) and supply (Vs). The XDVR is defined as the reactance of the injection transformer and the filters. The RDVR represents the DVR losses. These two values depend on the power rating (SDVR) and voltage rating (VDVR) of the DVR as expressed in

Voltage Flicker Management
With a view to check compliance of the relevant standards described above, the P lt and P st are the best relevant flicker assessment that has been carried out on the proposed large-scale grid-connected PVPP model. In order to guarantee a less voltage fluctuation, flicker, and unbalance towards voltage stability, the dynamic voltage regulator (DVR) shown in Figure 7 was proposed. The DVR made-up of the DC energy source, IGBT inverter, and injection transformer (T 2 ) joined the transmission line in a series way. It is installed between the step-up transformer (T 1 ) and the interconnection point or PCC. The DVR has the ability to inject voltage to the system and thus bring the voltage to return its nominal operation to overcome the variance and flicker. DVR not only mitigated the voltage flicker and fluctuation but also mitigated the voltage unbalance and thus increased the grid stability [47].
As a result, the active and reactive power during sag is changed accordingly. However, to inject the reactive power and contribute to sag mitigation, it is important to ensure the inverter connectivity and protect against DC-overvoltage and ac-overcurrent during a fault. For this purpose, the proposed controller used the crowbar [45] and the current limiter [46] to protect the inverter and other devices during the faults period.

Voltage Flicker Management
With a view to check compliance of the relevant standards described above, the Plt and Pst are the best relevant flicker assessment that has been carried out on the proposed large-scale gridconnected PVPP model. In order to guarantee a less voltage fluctuation, flicker, and unbalance towards voltage stability, the dynamic voltage regulator (DVR) shown in Figure 7 was proposed. The DVR made-up of the DC energy source, IGBT inverter, and injection transformer (T2) joined the transmission line in a series way. It is installed between the step-up transformer (T1) and the interconnection point or PCC. The DVR has the ability to inject voltage to the system and thus bring the voltage to return its nominal operation to overcome the variance and flicker. DVR not only mitigated the voltage flicker and fluctuation but also mitigated the voltage unbalance and thus increased the grid stability [47]. The simplified DVR power circuit is shown in Figure 8. It is exemplified by an ideal voltage source (VCNO.) connected seriously between the PCC side (Vpcc) and supply (Vs). The XDVR is defined as the reactance of the injection transformer and the filters. The RDVR represents the DVR losses. These two values depend on the power rating (SDVR) and voltage rating (VDVR) of the DVR as expressed in The simplified DVR power circuit is shown in Figure 8. It is exemplified by an ideal voltage source (V CNO .) connected seriously between the PCC side (V pcc ) and supply (V s ). The X DVR is defined as the reactance of the injection transformer and the filters. The R DVR represents the DVR losses. These two values depend on the power rating (S DVR ) and voltage rating (V DVR ) of the DVR as expressed in Equations (9)- (12). Equation (13) represents the current (i DVR ) and voltage (v DVR ) handling capability of the DVR.

Grid side
The proposed DVR can address the flicker incident using the three-phase voltage source inverter by injecting voltages in sequence into the power line at PCC. Thus, the voltage has measured at the PCC and connected to the digital flicker meter to calculate the flicker severity. The simulation was run for more than two hours to fulfill the GCs and standards requirements, which strictly require over a 600 s (10 min) period and 7200 s (2 h) period to measure the Pst and Plt, respectively [29,48]. In order to assess the DVR ability to reduce the flicker severity at the PCC of PVPP connected MV of the grid side, a flicker meter has been developed. The assessment is done based on a statistical analysis approach inside the flicker meter. It computes the flicker levels that exceed 0.1% (P0.1 s), 1% (P1 s), 3% (P3 s), 10% (P10 s), and 50% (P50 s), respectively within the observation period. Then computes Pst and Plt, flicker severity and shows the cumulative probability function. The overall system in the case of DVR operation is shown in Figure 9. The simulation data are added in Appendix A. The proposed DVR can address the flicker incident using the three-phase voltage source inverter by injecting voltages in sequence into the power line at PCC. Thus, the voltage has measured at the PCC and connected to the digital flicker meter to calculate the flicker severity. The simulation was run for more than two hours to fulfill the GCs and standards requirements, which strictly require over a 600 s (10 min) period and 7200 s (2 h) period to measure the P st and P lt , respectively [29,48]. In order to assess the DVR ability to reduce the flicker severity at the PCC of PVPP connected MV of the grid side, a flicker meter has been developed. The assessment is done based on a statistical analysis approach inside the flicker meter. It computes the flicker levels that exceed 0.1% (P0.1 s), 1% (P1 s), 3% (P3 s), 10% (P10 s), and 50% (P50 s), respectively within the observation period. Then computes P st and P lt , flicker severity and shows the cumulative probability function. The overall system in the case of DVR operation is shown in Figure 9. The simulation data are added in Appendix A.

Harmonics Reduction According to the Standards Requirements
The structure and control approaches of GCPS can affect the harmonics level either positively or negatively. Therefore, GCPS stations should be designed carefully to achieve the recent standard requirements. In this study, the large-scale GCPS is connected to the MV side (11 kV), as described in Section 3. According to the harmonic standards (Tables 2 and 3), it is suggested that the total THD at the PCC should be less than 5% either for current total harmonics distortion (ITHD) or voltage total harmonics distortion (VTHD) expect UK standards, which need the ITHD to be less than 3%. In this study,

Harmonics Reduction According to the Standards Requirements
The structure and control approaches of GCPS can affect the harmonics level either positively or negatively. Therefore, GCPS stations should be designed carefully to achieve the recent standard requirements. In this study, the large-scale GCPS is connected to the MV side (11 kV), as described in Section 3. According to the harmonic standards (Tables 2 and 3), it is suggested that the total THD at the PCC should be less than 5% either for current total harmonics distortion (I THD ) or voltage total harmonics distortion (V THD ) expect UK standards, which need the I THD to be less than 3%. In this study, the fast Fourier transform (FFT) Simulink tool was utilized to record the individual harmonics and then compute the THD of the PVPP output waveforms (current and voltage) at PCC.
In order to reduce the harmonics, the following criteria and strategies have been considered in the design procedure including (a) the self-commutated PV inverter is designed to mitigate the harmonics distortion; (b) single-stage conversion of the GCPS without DC-DC converter is utilized to decrease the output current and voltage harmonics; (c) the current-controlled PV inverter is designed for fast response compare to voltage-controlled inverter; and (d) sinusoidal PWM switching is considered for harmonics reduction, respectively. However, the current and voltage harmonics were oscillating at around 22.22% and 6.72%, respectively, which exceed the standards limits. Therefore, an appropriate RLC filter is designed while the PWM carrier frequency is increased to reduce the harmonic level.

Voltage Unbalance Assessment
In most cases, the voltage is balanced at the generation side; however, at the customer's level, the voltage may turn out to be unbalanced because of the improper distribution of the single-phase loads or uneven impedance of the system [49]. In this paper, the management and assessment of the voltage unbalance was carried out at the PCC to make sure that the injected voltage to the distribution system was well-balanced. Although the DVR was utilized to mitigate the fluctuation and flicker, it had a high ability to compensate for the voltage unbalance as well. The SRF-PLL was used to detect the voltage unbalance and reference voltage of the DVR using abc to dq transformation [20]. The voltage phage angle in the balanced situation was stored as a reference phase. Then afterward, the reference RMS voltage of the grid (V * rms ) and the phase reference acquired (θ * ) were utilized to define the reference grid voltages values in the SRF based on Equations (14)- (16).
The online comparison was performed between the line-to-neutral voltages of the grid (in dq) and the reference line-neutral grid voltages (in abc). In case any differences, the unbalance happened accordingly. The differences were therefore taken seriously as the dq values of the required DVR injected voltages as follows: here V * DVR,d , V * DVR,q , and V * DVR,0 are the d, q, and zero components reference values in the SRF-PLL of the required DVR injected voltages, respectively. These values were transferred to abc system coordination, and consequently, the DVR reference voltage was obtained to minimize unbalance and fluctuation of the voltage at PCC to minimum levels.

Large-Scale Grid Connected PVPP
The large-scale GCPS simulation model was developed using MATLAB/Simulink 2019a environment. The rated power of this large-scale PV system was 5000 kW. The PV array consisted of 11,495 modules; each had rated 435 W of power distributes as 17 series modules connected in 677 parallel strings. The PV generators output voltage, V o = 1239 V, output current, I o = 4041.7 A, open-circuit voltage, V oc = 1455.2 V, short circuit current, I sh = 4355.14 A, and DC generated power, P out = 5 MW, respectively. It is important to mention that these values were achieved at standard test conditions (STC), irradiation (G) = 1000 W/m 2 , and temperature (T) = 25 • C.
The large scale PVPP was linked to the grid side through step-up transformer (0.4-11 kV), so that connected to a bus-bar at 11 kV substation. The output of DC voltage and current, line voltage of the inverter, ac voltage, ac current, and ac active and reactive output power at the PCC is shown in Figure 10. In this study, at PCC, the power quality assessment must be compatible with the recent integration standards and requirements.

Verification of the Compliance of Power Quality Requirements
The effectiveness of the control approaches and strategies used to meet the recent integration requirements were verified through the simulation results. Figure 11 shows the effectiveness of the proposed LVRT strategy to attain the LVRT requirements during voltage sag. It can be seen that, to validate the proposed LVRT technique, a three-phase voltage sag (the worst situation incident) occurs at the distribution side of the grid, which lasted for 0.15 s. It caused the PCC voltage to drop to 60% of its nominal value. Therefore, during fault time (0.45-0.6 s), the inverter should ride-through the fault and stay in the connection mode by addressing over-voltage and overcurrent. Furthermore, based on the requirement of the standards (Figure 2 and Equations (6) and (7)), the PV system had to provide the grid with an amount of reactive and active current equal to 0.2 pu and 0.8 pu, respectively. These values did not exceed the rated current of 1 pu in a balanced system and 1.1 as rated value. Hence, all conditions at fault period were stable so that the inverter could withstand the fault and inject the required amount of reactive power and thus support the voltage recovery. Once the fault was cleared, active current, reactive current, and other values were backed to pre-fault values. It could be concluded that the proposed control effectively overcame the disturbances, kept the inverter connected and ride-through the grid faults safely, and then injected the required amount of active and reactive power. It is important to mention that the fast and precise fault detection and protection from over-current as a result of the fault using DC-chopper strategy played an important to achieve the required results, as stated by GCs.

Verification of the Compliance of Power Quality Requirements
The effectiveness of the control approaches and strategies used to meet the recent integration requirements were verified through the simulation results. Figure 11 shows the effectiveness of the proposed LVRT strategy to attain the LVRT requirements during voltage sag. It can be seen that, to validate the proposed LVRT technique, a three-phase voltage sag (the worst situation incident) occurs at the distribution side of the grid, which lasted for 0.15 s. It caused the PCC voltage to drop to 60% of its nominal value. Therefore, during fault time (0.45-0.6 s), the inverter should ride-through the fault and stay in the connection mode by addressing over-voltage and overcurrent. Furthermore, based on the requirement of the standards (Figure 2 and Equations (6) and (7)), the PV system had to provide the grid with an amount of reactive and active current equal to 0.2 pu and 0.8 pu, respectively. These values did not exceed the rated current of 1 pu in a balanced system and 1.1 as rated value. Hence, all conditions at fault period were stable so that the inverter could withstand the fault and inject the required amount of reactive power and thus support the voltage recovery. Once the fault was cleared, active current, reactive current, and other values were backed to pre-fault values. It could be concluded that the proposed control effectively overcame the disturbances, kept the inverter connected and ride-through the grid faults safely, and then injected the required amount of active and reactive power. It is important to mention that the fast and precise fault detection and protection from over-current as a result of the fault using DC-chopper strategy played an important to achieve the required results, as stated by GCs.
respectively. These values did not exceed the rated current of 1 pu in a balanced system and 1.1 as rated value. Hence, all conditions at fault period were stable so that the inverter could withstand the fault and inject the required amount of reactive power and thus support the voltage recovery. Once the fault was cleared, active current, reactive current, and other values were backed to pre-fault values. It could be concluded that the proposed control effectively overcame the disturbances, kept the inverter connected and ride-through the grid faults safely, and then injected the required amount of active and reactive power. It is important to mention that the fast and precise fault detection and protection from over-current as a result of the fault using DC-chopper strategy played an important to achieve the required results, as stated by GCs.  In order to measure the flicker severity, the digital flicker meter was run according to the requirements as mentioned above. Again in order to assess the DVR ability to reduce the flicker severity, the P st and P lt at the PCC is computed at 0.1% (P0.1 s), 1% (P1 s), 3% (P3 s), 10% (P10 s), and 50% (P50 s) within the observation and shows the cumulative probability function as shown in Figure 12. It is observed that the P st and P lt at the PCC were 0.43 pu and 0.18 pu, respectively, which are below the standards values stated in Table 1. These analysis results show the effectiveness of the proposed strategy to reduce the voltage flicker according to the recent integration requirements.
Electronics 2020, 9, x FOR PEER REVIEW 15 of 23 In order to measure the flicker severity, the digital flicker meter was run according to the requirements as mentioned above. Again in order to assess the DVR ability to reduce the flicker severity, the Pst and Plt at the PCC is computed at 0.1% (P0.1 s), 1% (P1 s), 3% (P3 s), 10% (P10 s), and 50% (P50 s) within the observation and shows the cumulative probability function as shown in Figure  12. It is observed that the Pst and Plt at the PCC were 0.43 pu and 0.18 pu, respectively, which are below the standards values stated in Table 1. These analysis results show the effectiveness of the proposed strategy to reduce the voltage flicker according to the recent integration requirements. For harmonics reduction, although the system was designed using proper control strategies and equipment; however, the ITHD and VTHD were still higher than the standard limit as shown in Figure  13 and Figure 14, respectively. It can be seen that the harmonics of current and voltage waveforms were oscillating at 22.22% and 6.72%, respectively. Therefore, with the efficient design of RLC filter and increasing the switching frequency, the effectiveness of the proposed system was improved in which the ITHD was reduced to 0.97% and VTHD was minimized to 1.13% as shown in Figure 15 and Figure 16, respectively. For harmonics reduction, although the system was designed using proper control strategies and equipment; however, the I THD and V THD were still higher than the standard limit as shown in Figures 13 and 14, respectively. It can be seen that the harmonics of current and voltage waveforms were oscillating at 22.22% and 6.72%, respectively. Therefore, with the efficient design of RLC filter and increasing the switching frequency, the effectiveness of the proposed system was improved in which the I THD was reduced to 0.97% and V THD was minimized to 1.13% as shown in Figures 15 and 16,respectively. equipment; however, the ITHD and VTHD were still higher than the standard limit as shown in Figure  13 and Figure 14, respectively. It can be seen that the harmonics of current and voltage waveforms were oscillating at 22.22% and 6.72%, respectively. Therefore, with the efficient design of RLC filter and increasing the switching frequency, the effectiveness of the proposed system was improved in which the ITHD was reduced to 0.97% and VTHD was minimized to 1.13% as shown in Figure 15 and Figure 16, respectively.        To test the harmonics distortion at PCC under different levels of solar irradiation, the irradiation decreased from STC (1000 W/m 2 ) into 600 W/m 2 . It can be seen that the VTHD and ITHD values at the PCC were under the limits of the standard as shown in Figure 17 and Figure 18, respectively. To test the harmonics distortion at PCC under different levels of solar irradiation, the irradiation decreased from STC (1000 W/m 2 ) into 600 W/m 2 . It can be seen that the V THD and I THD values at the PCC were under the limits of the standard as shown in Figures 17 and 18, respectively. However, when the irradiation was 600 W/m 2 , the harmonic distortions increased to 1.29% and 1.82% from that of 1.13% and 0.97%, respectively of 1000 W/m 2 . This happened because the harmonics tend to rise once the modulation index decreases; however, the harmonics level is minimum with the modulation index tending to be 1. Therefore, the relation between the harmonics and irradiation is a contrary relationship so that the PVPP operates at low irradiation could inject more harmonics to the grid. However, when the irradiation was 600 W/m 2 , the harmonic distortions increased to 1.29% and 1.82% from that of 1.13% and 0.97%, respectively of 1000 W/m 2 . This happened because the harmonics tend to rise once the modulation index decreases; however, the harmonics level is minimum with the modulation index tending to be 1. Therefore, the relation between the harmonics and irradiation is a contrary relationship so that the PVPP operates at low irradiation could inject more harmonics to the grid.    Regarding voltage unbalance, all requirements need the VUF to remain at least under 2%. The VUF test was conducted to measure the unbalance level at the PCC including DVR connection. The effectiveness of the DVR to enhance the voltage profile, the obtained results in Figure 19 shows that the VUF fulfilled the recent requirements in mitigating voltage unbalance profile. At all the time the unbalance still was within the minimum limits. Regarding voltage unbalance, all requirements need the VUF to remain at least under 2%. The VUF test was conducted to measure the unbalance level at the PCC including DVR connection. The effectiveness of the DVR to enhance the voltage profile, the obtained results in Figure 19 shows that the VUF fulfilled the recent requirements in mitigating voltage unbalance profile. At all the time the unbalance still was within the minimum limits. The frequency variation is a serious power quality issue due to its high effect on power system stability, reliability, and quality. Thus, during the normal and abnormal operation, the level of frequency should stay within the ±1 Hz limit specified in the standards. In order to test the frequency fluctuation performance for the proposed large-scale GCPS operating at 50 Hz, the symmetrical threephase grid fault occurred at the distribution side of the utility grid. The fault duration was 0.1 s of 0.4 s simulation, which occurred between 0.15 and 0.25 s. The obtained results show that the frequency dynamics stayed within the required limits even during the period of disturbances as shown in Figure 20. The frequency variation is a serious power quality issue due to its high effect on power system stability, reliability, and quality. Thus, during the normal and abnormal operation, the level of frequency should stay within the ±1 Hz limit specified in the standards. In order to test the frequency fluctuation performance for the proposed large-scale GCPS operating at 50 Hz, the symmetrical three-phase grid fault occurred at the distribution side of the utility grid. The fault duration was 0.1 s of 0.4 s simulation, which occurred between 0.15 and 0.25 s. The obtained results show that the frequency dynamics stayed within the required limits even during the period of disturbances as shown in Figure 20. frequency should stay within the ±1 Hz limit specified in the standards. In order to test the frequency fluctuation performance for the proposed large-scale GCPS operating at 50 Hz, the symmetrical threephase grid fault occurred at the distribution side of the utility grid. The fault duration was 0.1 s of 0.4 s simulation, which occurred between 0.15 and 0.25 s. The obtained results show that the frequency dynamics stayed within the required limits even during the period of disturbances as shown in Figure 20. Most of the PV inverters are designed for grid-connected services operating near to the unity power factor (PF) in the normal operation; this is because the reactive power reference is kept at zero. Figure 21 shows the behavior of PF is near to unity PF, which matches the technical standards requirements presented in Table 4, i.e., leading or lagging PF not less than 0.85 pu.  Most of the PV inverters are designed for grid-connected services operating near to the unity power factor (PF) in the normal operation; this is because the reactive power reference is kept at zero. Figure 21 shows the behavior of PF is near to unity PF, which matches the technical standards requirements presented in Table 4, i.e., leading or lagging PF not less than 0.85 pu.
fluctuation performance for the proposed large-scale GCPS operating at 50 Hz, the symmetrical threephase grid fault occurred at the distribution side of the utility grid. The fault duration was 0.1 s of 0.4 s simulation, which occurred between 0.15 and 0.25 s. The obtained results show that the frequency dynamics stayed within the required limits even during the period of disturbances as shown in Figure 20. Most of the PV inverters are designed for grid-connected services operating near to the unity power factor (PF) in the normal operation; this is because the reactive power reference is kept at zero. Figure 21 shows the behavior of PF is near to unity PF, which matches the technical standards requirements presented in Table 4, i.e., leading or lagging PF not less than 0.85 pu.

Comparison between Proposed and Existing Methods
This section introduces the consistency of the above results with other previous studies introduced in the literature. Some studies have been used energy storage devices for the GCPSs to meet the LVRT requirements [19]. Although these methods fulfilled the LVRT to some extent, this strategy is hard to be extensively applied in the industry because of the high investment price and short life cycle of energy storage units. Additionally, high fluctuation and overshooting appeared before and after the sag event. When comparing the proposed control strategy with the study introduced in [17] that used the coordination between the PV system inverter and the STATCOM to enhance the LVR capability. It can be noticed that it injected the required reactive current to support the voltage recovery during the fault. Although STATCOM is effective in injecting reactive current according to the LVRT requirements, this method has not addressed the over-voltage incident during sag time. Besides, it increases the complexity and cost due to adding external hardware to the system and does not deal with inverter protection. Some studies were introduced to manage the PQ issues such as voltage harmonics [50], current harmonics [32], flicker problem [23], and voltage unbalance [21] in order to meet the recent requirements concerning the PV penetration at the PCC. By comparing the results of these strategies with the proposed method, in most cases, the proposed method was better. In sum, the presented results were compatible with the recent requirements, which is an important indicator of the results' verification. In addition, as compared to existing methods described in Table 5, the proposed method effectively enhanced the PQ at the PCC and got an important enhancement with the possible low complexity and cost. Table 5 shows a comparison between the existing and proposed methods. The proposed method generated better results. VUF% = 0.6

Conclusions
This paper presented the power quality assessment and management of single-stage three-phase PVPP connected to the MV side of the electrical grid. The recent power quality integration requirements and standards concerning voltage sag, voltage flicker, harmonics, voltage unbalance frequency, and power factor were fully considered. The simulation results showed that all these power quality issues were modified and degraded to the standard defined level using efficient controls and compliance strategies. The voltage sag was mitigated by the injection of reactive current using modified inverter LVRT capability control. This control was developed based on the modification of traditional inverter control to operate in two modes of operations, which are normal and faulty (LVRT) operation modes during a sag event. The controller can be transferred rapidly and precisely between two modes using the RMS detection method DVR showed its ability to enhance the voltage stability by addressing the voltage flicker and unbalance. The proper control strategies and RLC filter were designed to reduce the voltage and current harmonics as verified by the obtained results. It was observed that the PVPP operated at low irradiation could inject more harmonics to the grid. Long and short flicker, voltage unbalance, voltage, and current harmonics are 0.42 pu, 0.18 pu, 0.6%, 1.3%, and 0.97%, respectively, which did not violate the standard requirements. In sum, the fulfillment of the standards at the connection point between the PVPP and the main grid will assure that no bad quality of the generated power will be injected into the power system and then increase the system security and stability. This study will potentially be a foundation for the power system operators, developer of PV systems, and manufacturers with regard to the future compliance verification of the recent interconnection regulations.