1 Introduction

Nowadays, the continuous growth of the electrical energy demand and the quick depletion of conventional energy resources have necessitated an imperative search for renewable energy resources as alternative energy sources. Of the many renewable energy sources, PV energy and wind energy have been considered as the most promising sources toward meeting the permanent increase of the energy demand. The penetration level of the PV systems is currently significant and its usage is expected to increase globally due to the declined PV cell price and advanced power electronics technology. Also, wind energy is considered to be the most vital and promising renewable energy resource since being clean, global and can be harvested with large power capacity. However, wind energy and PV energy are not completely trustworthy and have some disadvantages such as they are unpredicted in nature and immensely depend on the variations of the environmental conditions such as solar irradiation and wind speed. Hence, the combination of PV energy and wind energy as a PV/wind hybrid generating power system can mitigate their individual variations, increase overall output energy, and inject more reliable power with greater quality into the electrical grid [1]. On the other hand, the increased penetration of the grid-connected PV/wind hybrid power systems has raised several concerns related to its dynamic performance during the grid voltage sag and the transient grid faults [2]. Recently, the national grid codes require that all grid-connected generation power plants (PV stations and wind farms) should have the capability of FRT in order to enhance its dynamic behavior during the grid faults. The FRT capability means that all generation power systems must remain connected to the electrical network during the transient grid faults and simultaneously inject reactive power to support the grid voltage, and also immediately resume the generated active power after fault clearance [3, 4].

Nowadays, several literatures have been carried out in the area of FRT capability enhancement for grid-connected generation power systems during the grid disturbances [5,6,7]. Among them, Al-Shetwi [5], presented a comprehensive review of several FRT strategies and controllers for grid-connected PV power plants under the grid fault conditions. In [8], the paper introduced a comprehensive Low Voltage Ride-Through (LVRT) capability control strategy for a single-stage inverter-based grid-connected PV power station. The employed control system ensures the reactive power support through the reactive current injection according to the standards grid codes requirements as soon as the grid voltage sag is detected. Also, the proposed control strategy eliminates the problems related to ac over-current and dc-link over-voltage that may cause disconnection or damage to the inverter under the grid faults. Also, Joshi [9], implemented adaptive control strategies in 100 kW grid-connected PV power plants to control active and reactive power during normal and abnormal grid conditions. Moreover, with respect to the detection of voltage sag in the grid-connected PV power stations for LVRT capability control, two automatic fault detection methods are addressed in [10]. These methods are the Root Mean Square (RMS) that based d–q components of the grid voltage and the positive sequence voltage. These approaches are utilized to determine the voltage sag depth in order to regulate the required reactive current to be injected according to the LVRT grid codes requirements.

Furthermore, Hossain [6], proposed three nonlinear controllers to generate the appropriate resistance of Variable Resistive Fault current Limiter (VR-FCL) in order to enhance the transient stability of a large-scale grid-connected hybrid power system. The hybrid power system consisting of 50 MW PV plant, 60 MW DFIG-based wind farm, and 100 MVA synchronous generator. The effectiveness of the proposed control strategies in augmentation of the dynamic stability of the hybrid power system has been evaluated during symmetrical and unsymmetrical faults in the grid. In [7], the paper proposed an efficient control strategy to enhance the FRT capability of a hybrid power system consisting of 1 MW PV station and 9 MW DFIG-based wind farm during balanced and unbalanced grid faults. The proposed FRT control strategy based on modification of the control scheme so that inject reactive power during the faults and activation of the outer crowbar protection system to protect the DFIG.

Today, Flexible AC Transmission Systems (FACTS) devices like STATCOM, SVC, and UPFC can be employed for ensuring the power quality and the FRT capability of the grid-connected renewable energy sources and the microgrids. Several studies have recommended the employment of STATCOM to improve the FRT capability and mitigate voltage fluctuations during the grid disturbances [11,12,13,14,15,16]. Among them, Hemeida [15], presented a comprehensive comparison between STATCOM and SVC for stability improvement of a grid-connected wind farm during a three-line-to-ground (3LG) fault. In [17], the paper proposed a fuzzy controller-based SVC to enhance the voltage stability and LVRT capability a grid-integrated wind farm. Also, Döşoğlu [16], discussed the impact of STATCOM on FRT capability enhancement of DFIG-based wind farm during 3LG fault and double-line-to-ground (2LG) fault. Ahsan [11], discussed the impact of the integration between STATCOM and 12 MW wind farm-based Squirrel Cage Induction Generator (SCIG) during normal and abnormal conditions. In [12], the paper proposed a supercapacitor energy storage system interfaced through STATCOM to support the dynamic performance of the DFIG wind generation system during symmetrical 3LG fault. Noureldeen [13], suggested the utilization of STATCOM and supercapacitor to achieve constant active and reactive power from 200 MW wind farm during an extreme gust. Furthermore, regarding multi-machine power systems, Movahedi [14], discussed the effects of three FACTS controllers on the transient stability of a multi-machine power system consisting of 120 MW PV plant and 200 MW wind farm based on DFIG. In addition, Zhou [18], investigated the employment of reinforcement learning controllers in conjunction with Convertible Static Compensator (CSC) to enhance the LVRT capability of a hybrid power system. The hybrid power system under study consists of two synchronous generators and one DFIG based wind farm. Furthermore, Jamil [19], explored the potential impact of STATCOM to improve the power transfer quality in a grid-tied PV-wind energy hybrid system during the presence of variable loading conditions.

However, so far, most previous studies have focused on FRT capability improvement of single renewable energy source connected to the electrical grid. No large-scale attempts have yet been made for FRT capability enhancement of large-scale grid-connected hybrid power systems, where more than one renewable energy source is employed. Therefore, the main objective of this study is to employ the STATCOM controller to enhance the FRT capability and support the dynamic performance of a grid-connected PV/wind hybrid power system during the transient grid faults. The hybrid power system consisting of 9 MW DFIG-based wind farm and 1 MW PV station is integrated with 100 MVAR STATCOM through the PCC bus. The dynamic performance of the PV/wind hybrid power system with the proposed STATCOM controller is analyzed and compared with another FRT control strategy during a grid voltage sag. The FRT control strategy is based on injection of reactive power from the hybrid system to enhance the FRT capability during the grid faults, and also activation of the outer crowbar protection system to protect the DFIG. On the other hand, the proposed STATCOM controller adjusts the PCC bus voltage during the grid disturbances by dynamically controlling the amount of reactive power injected to or absorbed from the electrical grid. The effectiveness of both the proposed STATCOM controller and the FRT control strategy is evaluated during a three-phase grid voltage sag of 50%.

2 Proposed hybrid power system with STATCOM

The proposed hybrid power system consists of 9 MW DFIG-based wind farm and 1 MW PV station which is integrated with 100 MVAR STATCOM at the PCC bus as illustrated in Fig. 1. The generated power from the PV/wind hybrid system is injected into the grid via 1 km double circuit transmission lines and 25/120 kV Δ/Y step-up transformer. The detailed specifications of the proposed hybrid power system and the STATCOM parameters are listed in Table 1. The PV station consists of 660 parallel-connected PV strings, each PV string formed by 5 PV panels connected in series to achieve the rated power of PV station (1 MW). Moreover, the PV station is equipped with a DC/DC boost converter to extract the optimum power during the change of solar radiation and it is synchronized with the grid through three-phase DC/AC inverter [6, 20].

Fig. 1
figure 1

Configuration of the proposed PV/wind hybrid power system with STATCOM

Table 1 Design specifications of the proposed hybrid power system and STATCOM parameters

On the other hand, the 9 MW wind farm consists of six variable-speed wind turbines from 1.5 MW General Electric (GE) wind turbine type [21]. Each wind turbine is equipped with DFIG including the Rotor Side Converter (RSC) to capture the maximum power during the variation of wind speed and the Grid Side Converter (GSC) to regulate the exchanged reactive power with the grid. Modeling and simulation of the wind farm have been implemented using SimPowerSystems toolbox in MATLAB/SIMULINK library. Moreover, as shown in Fig. 1, a typical 100 MVAR STATCOM is linked with the hybrid power system through the PCC bus to enhance the FRT capability and improves its dynamic performance during and after the grid disturbances. The main objective of the STATCOM controller is to regulate the PCC bus voltage during the grid voltage sag by dynamically controlling the amount of reactive power injected to or absorbed from the electrical grid.

2.1 PV station configuration

2.1.1 PV system model

The implemented PV Station consists of 5 PV modules electrically connected in series to form a PV string and a total of 660 PV strings that are connected in parallel to reach the rated power (1 MW). SunPower SPR-305-WHT PV panel with a maximum power of 305.23 W is employed for this work [22]. Figure 2 shows the equivalent circuit of the PV system and the corresponding Current–Voltage (I–V) characteristics can be expressed as follows [23]:

$$I_{pv} = I_{ph} - I_{d} - I_{sh} = I_{ph} - I_{o} \left[ {exp\left( {\frac{{V_{pv} + I_{pv} R_{s} }}{a}} \right) - 1} \right] - \frac{{V_{pv} + I_{pv} R_{s} }}{{R_{sh} }}$$
(1)
$$a = \frac{nkT}{q}.$$
(2)
Fig. 2
figure 2

Equivalent circuit of the PV system

2.1.2 Inverter control strategy

The PV station is provided with the DC/DC boost converter to extract the maximum power during the variation of solar irradiance and integrated with the PCC bus through 3-level, 3-phase Pulse Width Modulation (PWM) inverter. The control strategy of the DC/AC inverter is illustrated in Fig. 3. Voltage-Oriented Control (VOC) strategy is applied to adjust the DC-link voltage at a constant value and control the injected reactive power to the electrical grid. The inverter voltage in the d–q synchronous rotating reference frame can be described as follows [24, 25]:

$$V_{d\_inv} = V_{d} + R_{f} I_{d} + L_{f} \frac{{dI_{d} }}{dt} - \omega_{e} L_{f} I_{q}$$
(3)
$$V_{q\_inv} = V_{q} + R_{f} I_{q} + L_{f} \frac{{dI_{q} }}{dt} + \omega_{e} L_{f} I_{d}$$
(4)

The main parts of the DC/AC inverter controller are Phase Locked Loop (PLL), DC-link voltage controller, and current controller. Figure 3a shows the block diagram of the Phase Locked Loop (PLL). The main objective of the PLL is to generate the grid voltage angle (θPLL) that utilized for abc/d–q transformation and to synchronize the inverter output voltage (Vabc-inv) with the PCC bus voltage and the grid current [26, 27].

Fig. 3
figure 3

a Block diagram of the PLL; b control strategy of the DC/AC inverter

Moreover, the main task of the DC-link voltage controller is to maintain the voltage of DC-link at a specified constant value (500 V). As shown in Fig. 3b, the actual DC-link voltage (Vdc1) is compared with the reference value (Vdc1_ref) and the difference is applied to PI-controller to adjust the voltage at 500 V. Then, the output current of the voltage controller is utilized as reference d-axis component of inverter current (Id_ref) for the inner current controller. During the steady-state operation, the DC power generated from the PV panels (Ppv) is the same as the AC power injected into the grid (Pg_pv). Thus, the power balance sustains the Vdc1 constant at its rated value (500 V). However, when a voltage sag occurs in the electrical grid, the voltage drop at the PCC bus reduces the injected PV station power into the grid from Pg_pv to Pg_f. Meanwhile, the MPPT technique implemented on the DC/DC boost converter continues to extract the maximum power from the PV modules. Therefore, the power difference between the Ppv and the Pg_f generates a severe increase in the DC-link voltage that can be expressed mathematically as [28, 29]:

$$(P_{pv} - P_{{g\__{f} }} )\Delta t = \frac{1}{2}C_{1} \left( {V_{dc1\_f}^{2} - V_{dc1}^{2} } \right)$$
(5)
$$V_{dc1\_f} = \sqrt {\frac{{2\left( {P_{pv} - 3V_{f} I_{g} } \right)\Delta t}}{{C_{1} }} + V_{dc1}^{2} }$$
(6)

It can be observed from Eq. (6) that the increase of DC-link voltage during the grid voltage sag depends on the magnitude of voltage drop and the fault duration. Furthermore, the current control loop utilizes the Id-ref to maintain the DC-link voltage constant at 500 V, while the reference q-axis current of inverter voltage (Iq-ref) is set to zero to maintain the PV station at unity power factor. Then, the Id-ref and the Iq-ref are compared with the d–q axis components of the inverter current (Id, Iq) and the errors are passed through PI-controllers to create the reference d–q axis components of inverter voltage (Vd-ref, Vq-ref). Finally, the Vd-ref and the Vq-ref are converted into reference three-phase voltage (Vabc-ref) that compared with the triangular carrier waveform of fixed switching frequency to generate the switching pulses for IGBTs switches of the inverter [30].

2.2 Wind farm configuration

The implemented wind farm consists of six variable-speed wind turbines from 1.5 MW General Electric (GE) type [21]. Each wind turbine is provided with the DFIG including the RSC controller to capture the peak power during the wind speed variation and the GSC controller to regulate the exchanged reactive power with the grid. Also, the wind farm is integrated with the main PCC bus through 0.575/25 kV Δ/Y step-up transformer to inject the generated power into the electrical grid. The mechanical power captured from the wind turbine is stated as follows [31, 32]:

$$P_{mech} = \frac{1}{2}C_{p} \left( {\lambda ,\beta } \right)\rho A_{t} V_{w}^{3}$$
(7)
$$C_{p} \left( {\lambda ,\beta } \right) = C_{1} \left( {\frac{{C_{2} }}{{\lambda_{i} }} - C_{3} \beta - C_{4} } \right)e^{{\left( { - \frac{{C_{5} }}{{\lambda_{i} }}} \right)}} + C_{6} \lambda$$
(8)
$$\frac{1}{{\lambda_{i} }} = \frac{1}{\lambda + 0.08\beta } - \frac{0.035}{{\beta^{3} + 1}}$$
(9)

During the grid voltage sag, all the generation sources inject fault current to the faulty node because of the severe voltage drop at that node, therefore the generated voltage and the injected active power of the wind farm are decreased. Thus, the DFIG incurs the instability and may lack the equilibrium state according to the swing equation as follows [33]:

$$\frac{{2H_{g} }}{{\omega_{s} }}\frac{{d^{2} \delta }}{{dt^{2} }} = P_{mech} - P_{e}$$
(10)

From Eq. (10), it is clear that during the grid voltage sag as the electrical output power from the DFIG becomes lower than the input mechanical power, the DFIG suffers from the instability due to the acceleration of the DFIG rotor.

2.2.1 DFIG model under the grid voltage sag

The two-axis fourth-order model of the DFIG in the synchronously rotating reference frame is employed to study the dynamic performance under the grid voltage sag. The flux linkage and voltage for the stator and rotor are described as follows [34]:

$$V_{s} = R_{s} i_{s} + j\omega_{s} \lambda_{s} + \frac{{d\lambda_{s} }}{dt}$$
(11)
$$V_{r} = R_{r} i_{r} + j(\omega_{s} - p\omega_{r} )\lambda_{r} + \frac{{d\lambda_{r} }}{dt}$$
(12)
$$\lambda_{s} = M_{sr} i_{r} + L_{s} i_{s}$$
(13)
$$\lambda_{r} = L_{r} i_{r} + M_{sr} i_{s}$$
(14)

During the normal operating conditions with constant stator voltage (Vs), the stator flux linkage \((\lambda_{s} )\) remains almost constant, therefore the stator dynamics \(\left( {\frac{{d\lambda_{s} }}{dt}} \right)\) can be neglected. However, when three-phase voltage sag occurs, the stator voltage fluctuates and the \(\lambda_{s}\) decreases proportionally to the grid voltage. According to constant flux linkage principle, the value of \(\lambda_{s}\) divided into to stationary portion with respect to the stator (natural component) and a rotating portion at synchronous speed (forced component). The amplitude of the forced component is proportional to the maintaining voltage, while the natural component magnitude depends on the amplitude of voltage dip during fault and generates large Electromagnetic Force (EMF) in the rotor windings. The stator flux linkage and the rotor dynamics as referred to the rotor reference frame can be expressed as follows [34, 35]:

$$\lambda_{s} = \frac{{V_{s} }}{{j\omega_{s} }}e^{{ - j\left( {p\omega_{r} - \omega_{s} } \right)t}} + \frac{{V_{s\_o} - V_{s} }}{{j\omega_{s} }}e^{{ - jp\omega_{r} t }} e^{{ - \delta_{s} t}}$$
(15)
$$V_{r} = R_{r}^{{\prime }} i_{r} + j(\omega_{s} - p\omega_{r} )L_{r}^{{\prime }} i_{r} + L_{r}^{{\prime }} \frac{{di_{r} }}{dt} + e_{r}$$
(16)
$$R_{r}^{{\prime }} = R_{r} + R_{s} \left( {\frac{{M_{sr} }}{{L_{s} }}} \right)^{2} ,\quad L_{r}^{{\prime }} = L_{r} - \frac{{M_{sr}^{2} }}{{L_{s} }}$$
(17)
$$e_{r} = \frac{{M_{sr} }}{{j\omega_{s} L_{s} }}\left[ {\left( { - \frac{{R_{s} }}{{L_{s} }} + j(\omega_{s} - p\omega_{r} )} \right)V_{s} e^{{ - j \left( {p\omega_{r} - \omega_{s} } \right)t}} - \left( {\frac{{R_{s} }}{{L_{s} }} + jp\omega_{r} } \right)\left( {V_{s - o} - V_{s} } \right)e^{{ - jp\omega_{r} t }} e^{{ - \delta_{s} t}} } \right]$$
(18)

From Eq. (18), it can be seen that the induced EMF in the rotor windings (er) is severely proportional to the magnitude of voltage drop during fault and the pre-fault rotor speed. Therefore, the severe voltage drop during the grid voltage sag induces high EMF and over-current in the rotor windings that may damage the power electronic switches of the RSC.

2.2.2 Rotor side converter (RSC) controller

The major task of the RSC is extraction the optimum power from the variable-speed wind turbines and regulation the DFIG terminal voltage [36]. The stator Flux-Oriented Control (SFOC) system is employed to perform the decoupled control strategy of the RSC. Therefore, the stator active power (Ps) and the electromagnetic torque (Te) can be controlled through iqr, while the stator reactive power (Qs) can be adjusted by the idr as follows [37]:

$$P_{s} = \frac{3}{2}\left[ { - i_{qs} V_{qs} } \right] = \frac{{3L_{m} }}{{2L_{s} }}\left[ {i_{qr} \omega_{e} \varPhi_{ds} } \right]$$
(19)
$$Q_{s} = \frac{3}{2}\left[ {i_{ds} V_{qs} } \right] = \frac{{3\omega_{e} }}{2}\left[ {i_{ds} \varPhi_{ds} } \right] = \frac{{3\omega_{e} \varPhi_{ds} }}{{2L_{s} }}\left( {\varPhi_{ds} - L_{m} i_{dr} } \right)$$
(20)
$$T_{e} = \frac{3}{2}\frac{P}{2}\frac{{L_{m} }}{{L_{s} }}\left[ {i_{qr} \varPhi_{ds} } \right]$$
(21)

The control strategy of the RSC is described in Fig. 4. The q-axis component is utilized for the extraction of the peak power from the variable-speed wind turbines during the wind speed variation. Hence, the MPPT technique generates the optimum rotational speed of the DFIG rotor (ωref) that compared with the actual rotational speed (ωr) and the error is applied to the PI controller to generate the reference q-axis component of the rotor current (iqr-ref).

Fig. 4
figure 4

Control scheme of the RSC

On the other hand, the d-axis component is utilized for regulation the DFIG stator voltage, where the reference d-axis component of rotor current (idr-ref) is created from the voltage regulator control loop. During the normal operation conditions, the reference value of the stator reactive power (Qref) is imposed to zero in order to maintain the unity power factor at the stator terminals of the DFIG [38]. However, when the grid voltage sag occurs, the idr-ref is employed to regulate the stator voltage and generated from the voltage regulator loop after comparing the stator voltage (Vs) with the reference value (Vref). Therefore, the DFIG injects reactive power to enhance the FRT capability of the wind farm and support its dynamic performance during the voltage sag. Then, the idr-ref and the iqr-ref are compared with the d–q axis components of the measured rotor current (idr, iqr) to create the reference d–q axis components of the rotor voltage (Vd-ref, Vq-ref). that can be stated mathematically as follows [37, 39, 40]:

$$V_{dr\_ref} = V_{dr}^{*} - (\omega_{e - } \omega_{r} )\sigma_{s} L_{r} i_{qr}$$
(22)
$$V_{qr\_ref} = V_{qr}^{*} + (\omega_{e - } \omega_{r} )\left( {\frac{{L_{m}^{2} }}{{L_{s} }}i_{ms} + \sigma_{s} L_{r} i_{dr} } \right)$$
(23)

2.2.3 Grid side converter (GSC) controller

The GSC controller is utilized to maintain the DC-bus voltage (Vdc2) constant irrespective of magnitude and direction of rotor power flow and regulate the reactive power exchanged with the grid. Voltage-Oriented Control (VOC) system is used to accomplish the decoupled control strategy of the GSC. Hence, the injected active power from the GSC (Pc) and the DC-bus voltage (Vdc2) is adjusted through idg, while the injected reactive power from the GSC (Qc) is controlled by the iqg as follows [41, 42]:

$$P_{c} = \frac{3}{2}\left( {V_{d} i_{dg} + V_{q} i_{qg} } \right) = \frac{3}{2}V_{d} i_{dg}$$
(24)
$$Q_{c} = \frac{3}{2}\left( {V_{q} i_{dg} - V_{d} i_{qg} } \right) = - \frac{3}{2}V_{d} i_{qg}$$
(25)
$$C_{2} \frac{{dV_{dc2} }}{dt} = \frac{3m}{4\sqrt 2 }i_{dg} - i_{or}$$
(26)

Figure 5 illustrates the control strategy of the GSC. The GSC controller employs the d-axis component to keep the DC-bus voltage (Vdc2) constant at 1150 V irrespective of the magnitude and direction of the rotor power flow. Therefore, the reference d-axis component of the GSC current (idg-ref) is generated from comparing the reference DC-bus voltage (Vdc2-ref) with the measured value (Vdc2) and applying the difference to PI-controller.

Fig. 5
figure 5

Control scheme of the GSC

On the other hand, the q-axis component (iqg) is employed to control the exchanged reactive power with the electrical grid. During the normal operation conditions, the reference q-axis component of the GSC current (iqg-ref) is determined at zero value to maintain the wind farm at unity power factor. Then, the idg-ref and the iqg-ref are compared with the d–q axis components of measured GSC current (idg, iqg) and the differences are applied to PI-controllers to create the reference d–q axis components of GSC voltage (Vdg-ref, Vqg-ref) that can be described as [41]:

$$V_{dg\_ref} = - V_{dg}^{*} + \omega_{e} L_{choke} i_{qg} + V_{d}$$
(27)
$$V_{qg\_ref} = - V_{qg}^{*} - \omega_{e} L_{choke} i_{dg}$$
(28)

2.3 STATCOM configuration and control strategy

A typical ± 100 MVAR STATCOM is connected to the electrical grid at the PCC bus as shown in Fig. 1. The main objective of the STATCOM controller is to regulate the PCC bus voltage by dynamically controlling the amount of reactive power injected to or absorbed from the grid. Figure 6 shows the equivalent circuit of the STATCOM. It basically consists of Voltage Source Inverter (VSI) based on Gate Turn-Off thyristor (GTO) that generates AC voltage with less harmonics, coupling transformer between VSI and the grid, and DC-link capacitor which acts as a storage system for reactive power compensation. The active and reactive power transfer between the STATCOM and the electrical grid can be expressed mathematically as follows [13, 43]:

$$P = 3\left( {\frac{{V_{g} V_{st} }}{{X_{tr} }}} \right)\text{Sin} \left( \alpha \right)$$
(29)
$$Q = 3\left( {\left( {\frac{{V_{g} V_{st} }}{{X_{tr} }}} \right)\text{Cos} (\alpha ) - \frac{{V_{g}^{2} }}{{X_{tr} }}} \right)$$
(30)

It can be seen that the active power flow is dominated by changing the phase angle between STATCOM voltage and grid voltage (α), while the STATCOM reactive power depends on the difference between the STATCOM voltage and grid voltage. It is clear also from Eq. (30) that when a grid voltage sag occurs and the PCC bus voltage (Vg) becomes less than the STATCOM voltage (Vst), the STATCOM acts as a capacitor injecting reactive power to the grid. On the reverse, when the PCC bus voltage is greater than the STATCOM voltage, the STATCOM operates as an inductor absorbing reactive power from the grid [43].

Fig. 6
figure 6

Equivalent circuit of the STATCOM

2.3.1 Voltage sag detection

The voltage sag detection method is a strategy that detects the occurrence of sudden disturbances in the electrical grid such as the transient faults and the voltage dips. In this paper, the voltage sag detection method is implemented using the peak value technique based on the orthogonal signal generator which employs the quarter period (T/4) delay structure. This strategy has many merits such as flexibility, fast response, ease in the implementation [44]. Figure 7 shows the voltage sag detection method using the peak value technique that can be expressed mathematically as follows:

$$V_{m} = \sqrt {V_{g}^{2} + V_{g}^{\prime 2} } = \sqrt {V_{m}^{2} \sin^{2} \left( {\omega t} \right) + V_{m}^{2} \cos^{2} \left( {\omega t} \right)}$$
(31)

Furthermore, the national grid codes as such as the E.ON Netz grid code proposed by Germany require that all grid-connected renewable energy generation sources should have the FRT capability during the grid voltage sag. The FRT capability means that all generation power plants (PV stations and wind farms) must remain connected to the electrical network during the transient grid faults and simultaneously inject reactive power to support the grid voltage, and also immediately resume the generated active power after fault clearance. Figure 8 illustrates the amount of required reactive current during the grid voltage sag according to the German grid code [45]. It is clear that when the magnitude of grid voltage sag is equal to 50% of the rated value, the amount of injected reactive current should be equal to 1 p.u.

Fig. 7
figure 7

Voltage sag detection method using peak value technique

Fig. 8
figure 8

Injected reactive current during the voltage sag according to the German grid code

2.3.2 STATCOM configuration

Figure 9 demonstrates the configuration of the 48-pulse STATCOM that employed to regulate the voltage at the PCC bus and enhance the FRT capability of the hybrid power system by injecting leading or lagging current to the grid. It comprises four 3-phase, 3-level GTO inverters coupled with four 3-phase phase-shifting transformers introducing a phase shift of ± 7.5°. In this configuration, the STATCOM DC-link is interconnected with the four inverters and the generated voltages from the inverters are supplied to the secondary windings of the zigzag phase-shifting transformers that linked in ∆ or Y to neutralize all odd harmonics [46]. In addition, the inverter’s pulse patterns are phase-shifted and the primary windings of the transformers are connected in series so that the STATCOM generates a 48-step voltage (Vst) approximating a sin wave. The main advantages of this configuration are the elimination of harmonic distortion in the STATCOM voltage and the prevention of problems related to power quality and system harmonic instability [47].

Fig. 9
figure 9

Configuration of the ± 100 MVAR STATCOM based on 48-pulse GTO VSI

2.3.3 STATCOM control strategy

The control strategy of the STATCOM is implemented as illustrated in Fig. 10. It consists of the Phase Locked Loop (PLL) that generates the reference angle (θPLL) for abc/dq transformation and synchronizes the GTO thyristors pulses with the grid voltage. In the outer voltage regulator loop, the actual PCC bus voltage (Vg) is compared with the reference value (Vref) and the difference is applied to the PI controller to generate the reference reactive current (Iq-ref). Then, the inner current regulation loop compares the injected or absorbed reactive current (Iq) with the reference value (Iq-ref) to produce the desired phase angle (α) which is the phase shift of the STATCOM voltage (Vst) with respect to the grid voltage (Vg) [48]. Also, the conduction angle of the 3-level inverters (σ) is fixed to 172.5° to minimize the 23rd and the 25th harmonics of generated voltage from the square-wave inverters. Moreover, to eliminate the non-characteristic harmonics, using the DC-link voltage regulator, the positive and negative voltages of the DC-link capacitor are forced to maintain equal by applying a slight offset (∆α) on the conduction angles (σ) for the positive and negative half-cycles. Finally, the firing pulses generator utilizes the phase angle (α) from the current regulator and the output (ω.t) from the PLL to generate the 48 pulses for the four GTO inverters [43, 47]. The STATCOM control strategy can be expressed mathematically as follows:

$$I_{q\_ref} = (V_{ref} - V_{g} )\left( {K_{p} + \frac{{K_{i} }}{s}} \right)$$
(32)
$$\alpha = \left( {I_{q\_ref} - I_{q} } \right)\left( {K_{p} + \frac{{K_{i} }}{s}} \right)$$
(33)
$$\Delta \alpha = \left( {V_{dc2} - V_{dc1} } \right)\left( {K_{p} + \frac{{K_{i} }}{s}} \right)$$
(34)
Fig. 10
figure 10

Control scheme of the STATCOM

3 Simulation results and discussion

The grid-connected PV/wind hybrid power system under study is shown in Fig. 1. During the normal operation conditions, the PV station is under the Standard Test Conditions (Irradiance (G) = 1000 W/m2 and Temperature (T) = 25 °C), and the wind farm is subjected to the rated wind speed (11.5 m/s). Therefore, during the steady-state operation, the injected active power from the hybrid power system is equal to 10 MW divided as 1 MW from the PV station and 9 MW from the wind farm. However, under low voltage fault conditions, the PCC bus voltage drops sharply and generally the injected active power into the grid decreases significantly. In this section, the dynamic performance of the hybrid power system with the proposed STATCOM controller shown in Fig. 10 is analyzed and compared with the proposed FRT control strategy in the literature [7]. The proposed FRT control strategy is based on the modification of the inverter and RSC controllers so that inject reactive power during the faults and also activation of the outer crowbar protection system to protect the DFIG [7]. The effectiveness of both the proposed FRT control strategy and the STATCOM controller is evaluated during a three-phase grid voltage sag of 50% occurring at t = 5 s and lasting for 150 ms (9 cycles) [49].

3.1 Dynamic response of the STATCOM controller

In this subsection, the dynamic response of the STATCOM controller to the 50% three-phase grid voltage sag is investigated. Figure 11a illustrates the dynamic response of the STATCOM voltage and the STATCOM current to the fault. Since the STATCOM operates in capacitive mode during the voltage sag, the STATCOM voltage (Vst) is greater than and in phase with the PCC bus voltage (Vg) and the STATCOM current (Ist) leads the STATCOM voltage by 90°; the STATCOM is, therefore, generating reactive power. Figure 11b demonstrates that during the grid voltage sag, the injected reactive current from the STATCOM follows the required reactive current according to the German grid code. Since the magnitude of grid voltage sag is 50% of the rated value, the amount of injected reactive current is about 1 p.u. Figure 11c shows the STATCOM reactive power that injected according to the difference between the STATCOM voltage and the PCC bus voltage during the grid voltage dip. When the grid voltage sag occurs, the STATCOM controller reacts by generating a reactive power of 77.6 MVAR to increase the PCC bus voltage to 0.69 p.u as compared to 0.5 p.u when the STATCOM is not employed.

Fig. 11
figure 11

Response of the STATCOM controller to the 50% voltage sag a STATCOM voltage, STATCOM current, and PCC bus voltage; b STATCOM reactive current; c STATCOM reactive power

3.2 Dynamic performance of the PV station

Figure 12 compares the impact of both the STATCOM controller and the FRT control strategy on the dynamic performance of the PV station during the event of the 50% grid voltage sag. Figure 12a depicts the injected active power from the PV station. During the steady-state operation, the PV station utilizes the MPPT technique to inject the maximum power of 1 MW into the PCC bus. However, during the grid voltage sag, when the proposed FRT control strategy in [7] is implemented, the PV station power increases slightly to 0.83 MW compared to 0.79 MW without any protection system. Also, after fault clearance, the overshoot of active power decreases by 0.15 MW with the FRT control strategy. On the other hand, when the STATCOM controller is employed, the injected active power maintains constant at its rated value (1 MW) during the voltage sag and its overshoot after fault clearance is eliminated. From Fig. 12b, it is clear that when the FRT control strategy is applied during the voltage sag, the PV station has to inject reactive power of 0.47 MVAR to enhance the FRT capability. However, with the STATCOM controller, the injected reactive power sustains at zero during and after the fault occurrence to keep the PV station at a unity power factor. Figure 12c illustrates the response of the PV DC-link voltage to the grid voltage sag. In both cases (1) without protection system, (2) with the FRT control strategy, the DC-link voltage increases drastically to 1000 V and 950 V, respectively because of the great difference between the extracted power from the PV station and the power injected into the grid. Moreover, after the voltage sag is cleared, the DC/AC inverter controller fails to retrieve the DC-link voltage to its rated value due to the severe voltage drop and the large overshoot of the DC-link voltage during the fault. In contrast, when the STATCOM controller is employed, the DC-link voltage successfully maintains constant at its reference value (500 V) during and after the fault occurrence.

Fig. 12
figure 12

Dynamic performance of the PV station during 50% voltage sag a injected active power from the PV station; b injected reactive power from the PV station; c PV DC-link voltage

3.3 Dynamic performance of the wind farm

The following results discuss the dynamic behavior of the wind farm under the 50% grid voltage sag. Figure 13a demonstrates the active power transmitted from the wind farm to the PCC bus. During the normal operation conditions, the MPPT technique is implemented on the RSC to extract the maximum power from the wind farm, so the injected active power is equal to the rated value (9 MW). However, when the grid voltage sag occurs, in the case with the FRT control strategy, the wind farm power rises to 6.1 MW compared to 5.5 MW without any protection system. But when the STATCOM control strategy is implemented, the injected active power from wind farm increases significantly to 7.4 MW during the fault and quickly returns back to its rated value after fault clearance. Figure 13b illustrates that when the STATCOM controller is utilized during the grid voltage sag, the injected reactive power from the wind farm increases slightly by 0.2 MVAR compared to without protection system and with the FRT control strategy. Figure 13c illustrates the response of the DC-bus voltage to the grid voltage sag. Compared to the cases without any protection system and with the STATCOM controller, the FRT control strategy reduces considerably the oscillations of the DC-bus voltage during and after the fault occurrence.

Fig. 13
figure 13

Dynamic performance of the wind farm during 50% voltage sag a injected active power from the wind farm; b injected reactive power from the wind farm; c DC-bus voltage; d mechanical torque of the wind turbine; e DFIG rotor speed

Figure 13d shows the variation of the mechanical torque of the wind turbine during the grid voltage dip. It is clear that in the case without any protection system, the mechanical torque during the grid fault drops sharply to 0.29 p.u compared to 0.38 p.u when the FRT control strategy is applied. However, when the STATCOM controller is employed, the drop in the mechanical torque is decreased by 0.25 p.u compared to without protection system and it quickly returns back to its rated value (0.8 p.u) after the fault clearance. Figure 13e illustrates that without any protection system and with the FRT control strategy, the DFIG rotor speed oscillates severely to 1.27 p.u during the voltage sag. The oscillations of the rotor speed are due to the injected active power from the DFIG decreases significantly during the fault and the mechanical power of the wind turbine cannot be converted completely into electrical power. But when the STATCOM controller is used, the rotor speed oscillations are low and the time for reaching its pre-fault value (1.2 p.u) is quicker when the fault is cleared.

3.4 Dynamic performance of the PV/wind hybrid power system at the PCC bus

In this subsection, the dynamic performance of the hybrid power system at the PCC bus during the grid voltage sag is discussed. As can be seen from Fig. 14a, without the STATCOM control strategy, the PCC bus voltage decreases sharply to 0.5 p.u during the grid voltage dip. However, when the STATCOM controller is employed, the voltage raises significantly to 0.7 p.u. Figure 14b shows the injected active power from the hybrid power system. It is clear that when the STATCOM controller is utilized during the voltage sag, the active power increases considerably to 8.5 MW as compared to 6.3 MW without protection system and 6.9 MW with the FRT control strategy. Also, in the case with the STATCOM controller, the injected active power rapidly returns back to its rated value (10 MW) after the fault clearance. Figure 14c illustrates that when the STATCOM controller is employed, the injected reactive power at the PCC bus during the voltage sag is equal to about 78.11 MVAR so that the FRT capability and the dynamic performance of the hybrid system can be enhanced. From the previous results, it can be observed that the dynamic performance of the hybrid power system during the grid voltage sag is greatly improved with the proposed STATCOM controller when compared to the FRT control strategy in the literature [7].

Fig. 14
figure 14

Performance of PV/wind hybrid system at PCC bus during 50% voltage sag a terminal voltage at the PCC bus in p.u; b injected active power from the PV/wind hybrid system at the PCC bus; c injected reactive power at the PCC bus

4 Conclusions

In this paper, the STATCOM controller has been utilized in reactive power compensation to enhance the FRT capability and improve the dynamic performance of a grid-connected PV/wind hybrid power system during the transient grid faults. The hybrid power system consisting of 9 MW DFIG-based wind farm and 1 MW PV station is merged with 100 MVAR STATCOM through the main PCC bus. The dynamic performance of the hybrid power system with the proposed STATCOM controller is evaluated and compared with another FRT control strategy during a grid voltage dip. The FRT control strategy is based on injection of reactive power from the hybrid system to enhance the FRT capability during the grid faults, and also activation of the outer crowbar protection system to protect the DFIG. On the other hand, the proposed STATCOM controller regulates the PCC bus voltage during the grid disturbances by dynamically controlling the amount of reactive power injected to or absorbed from the electrical network. The validity of both the proposed STATCOM controller and the FRT control strategy is verified during a 50% grid voltage sag for 150 ms. The simulation results have proved that the STATCOM controller raises significantly the PCC bus voltage during the grid voltage sag to 0.7 p.u as compared to 0.5 p.u without the STATCOM. Moreover, the STATCOM control strategy sustains effectively the PV station power at its rated value (1 MW) as compared to 0.83 MW with the FRT control strategy and 0.79 MW without any protection system. In addition, the STATCOM controller protects successfully the PV DC-link voltage from overshoot by maintaining its rated value (500 V) as compared to the sharp increase to 1000 V and 950 V with the FRT strategy and without protection system, respectively.

On the other hand, when the STATCOM controller is employed during the fault, the wind farm power is improved considerably to 7.4 MW as compared to 6.1 MW with the FRT control strategy and 5.5 MW without any protection system. Also, the STATCOM control system reduces efficiently the oscillations of the DFIG rotor speed and decreases the drop in the mechanical torque of the wind turbine during the fault. The comparison illustrates that the dynamic performance of the hybrid power system during the grid voltage sag is greatly improved with the proposed STATCOM controller when compared to the FRT control strategy.