Comprehensive Modeling and Control of Grid-Connected Hybrid Energy Sources Using MPPT Controller

: Nuclear and renewables energies are the two variants for low-carbon energy and the evolv-ing grid suggests possible synergies between them. Nuclear energy introduces supple operations based on power demand, while renewables such as PV and wind hybrid systems depend on the presence and strength of sunlight or wind. For grid stability, there is need to improve their performance in order to overcome the impact of this disadvantage. The paper is a step in this direction as it addresses a detailed comprehensive dynamic modeling and an efﬁcient control of grid-connected energy sources such as PV or wind system to increase system reliability and to ensure the power quality and safe operation of critical demands. The behavior of the suggested hybrid system is tested at different climate circumstances such as variation of sun radiation and wind speed. The PV is equipped with a boost converter and a three-phase pulse width modulation (PWM) inverter. The wind energy comprises a doubly fed generator (DFIG) based on a variable-speed wind turbine. The two controllers’ rotor-side and grid-side converters of DFIG have the ability to generate and observe reactive power, to keep constant speed of the rotor and control the DC-link voltage. The proposed scheme was investigated using MATLAB software. The maximum power point tracking (MPPT) was used for two systems, PV and wind, in varying weather conditions. The simulation results prove that the voltage at the point of common coupling was constant. Furthermore, the injected current of the grid side was in sinusoidal form and was synchronized with grid side voltage. In addition, the injected power-to-utility grid was around power delivered by the hybrid PV and wind system. test


Introduction
Energy plays a major role in daily life and energy demand is increasing owing to an increase in population and industrialization [1][2][3]. Fossil fuels-based energy sources are depleting as the rate of energy consumption increases and supply decreases, resulting in energy reduction. The depleting oil reserves associated with coal and natural gasfired generation are encouraging practitioners to research for alternative and sustainable energy resources. However, there is a strong relation between energy policy and climate policy since most of the sources of greenhouse gases are from the energy sector. The key solution to lowering greenhouse gas emissions is the use of clean energy sources (the sun, wind, water, and atom), referred to as the green square. Synergy between them is a key component in developing pathways to decarbonization of the energy sector [4]. Nuclear-renewable hybrid systems are integrated facilities that include nuclear reactors and renewable generators. They can simultaneously address greenhouse gas emission • currently, nuclear reactors include modern electrical loads that are more sensitive to PQ because of numerous microprocessor-based controls; • intricacy of the nuclear reactor's various processes; • restarting-up has high costs and consumes time; • large computer systems in numerous applications and facilities.
Recently, the applications of hybrid renewable energy sources have grown quickly and have attracted great interests. The uses of new energy resources, especially wind and solar photovoltaic (PV), systems are highly recommended. These new energy resources are renewable, environmentally friendly, inexhaustible, and economical over an interval of time.
Among the resources of renewable energy, wind and solar generation systems have recently become predominant and can be considered the most promising technology to produce electricity [6]. Both solar and wind energy are considered excellent sources from which energy can be obtained. Photovoltaic systems have numerous advantages over the wind system such as low maintenance, no moving parts, and an accessible structure. Otherwise, wind energy is recognized as one of the most efficient clean renewable sources and has attracted comprehensive research interests in academic and industrial areas. Wind systems are less expensive than PV systems, especially on a large scale. However, wind energy systems require qualified staff for operation and maintenance [7].
Hybrid systems are interconnected using PV, wind energy, fuel cells, and micro turbine generators to produce power to load and connect to utility grids. The PV and wind system has a higher accuracy in transmitting continuous power versus an individual source. Thus, the amalgamation of these resources of renewable energy to form a PV and wind hybrid composed of two or more renewable sources is an excellent choice for distributing energy production that can be applied to overcoming intermittency and providing highly reliable and continuous output power to utility grids and rural areas [8]. Different control techniques have been presented that prevail over issues related to maximum extraction of power and injected power quality (PQ). Lately, different investments and research have been executed regarding hybrid PV/wind, such as Bansod [9].
To draw maximum power from hybrid PV/wind and deliver stable power on-demand, a significant battery bank is required. However, the use of a battery is not environmentally friendly and there are drawbacks such as hulking weights, huge size, high costs, and chemical defilement. Thus, one method to use the electric power generated by the PV and wind systems is by directly connecting them to the utility grid [10,11].
As mentioned before, in the future, it is anticipated that the majority of grid sources will consist of nuclear and renewable energy. Nuclear reactors need a stable and reliable grid in order to operate safely and this requires an improved performance of renewables. The contribution of this research work is to study the performance of a grid-connected PV/wind system under several operating circumstances, such as variations of sun irradiance and wind speed. The suggested system uses a boost converter with PV for maximum power point tracking (MPPT) and a double fed induction generator (DFIG) driven by a variable speed wind turbine (WT). Generally, the DFIG is applied to wind generation because of its different merits, such as easy construction, real and reactive power control, and the capability to reduce maximum power from the WTs [11].
The rest of this manuscript is well-regulated as follows. In Section 2, the PV/Wind system modeling, control, and its components are developed. In Section 3, photovoltaic system modeling is presented. Wind system and control technique are demonstrated in Section 4. The results and discussions about the performance of the hybrid system are included in Section 5. Conclusions, followed by references, are presented in the final section.

Hybrid Solar PV/Wind Systems Configuration
A hybrid system is generally composed of two or more renewable resources to provide increased efficiency and greater stability in energy supply. The overall system configuration of the PV/wind system is presented in Figure 1. It consists of two blocks: the power and control blocks. The power block includes the PV array and wind turbine as the energy source. The PV system is equipped with a boost converter to increase array output voltage to the desired voltage level (500 V DC) with MPPT. Additionally, the DC-AC inverter converts 500 V DC to 260 V AC and maintains a power factor equal to one. The wind system includes a doubly fed generator based on a variable speed WT. The rotor side converter (RSC) is used to extract maximum power of wind at variations in wind speed and the grid side converter (GSC) is used to set DC-bus voltage at a specific value. The transformer is applied in order to raise output voltage to PCC voltage. Regarding the control block, numerous techniques have been investigated to extract maximum power, maintain a power factor equal to one, and adjust the -link voltage [12,13].
variable speed wind turbine (WT). Generally, the DFIG is applied to wind generation because of its different merits, such as easy construction, real and reactive power control, and the capability to reduce maximum power from the WTs [11].
The rest of this manuscript is well-regulated as follows. In Section 2, the PV/Wind system modeling, control, and its components are developed. In Section 3, photovoltaic system modeling is presented. Wind system and control technique are demonstrated in Section 4. The results and discussions about the performance of the hybrid system are included in Section 5. Conclusions, followed by references, are presented in the final section.

Hybrid Solar PV/Wind Systems Configuration
A hybrid system is generally composed of two or more renewable resources to provide increased efficiency and greater stability in energy supply. The overall system configuration of the PV/wind system is presented in Figure 1. It consists of two blocks: the power and control blocks. The power block includes the PV array and wind turbine as the energy source. The PV system is equipped with a boost converter to increase array output voltage to the desired voltage level (500 V DC) with MPPT. Additionally, the DC-AC inverter converts 500 V DC to 260 V AC and maintains a power factor equal to one. The wind system includes a doubly fed generator based on a variable speed WT. The rotor side converter (RSC) is used to extract maximum power of wind at variations in wind speed and the grid side converter (GSC) is used to set DC-bus voltage at a specific value. The transformer is applied in order to raise output voltage to PCC voltage. Regarding the control block, numerous techniques have been investigated to extract maximum power, maintain a power factor equal to one, and adjust the -link voltage [12,13].

Photovoltaic (PV) System Description
In this section, modeling of a PV and its performance are described. In addition to the boost converter, the MPPT technique and DC-AC inverter are debated.

Photovoltaic (PV) System Description
In this section, modeling of a PV and its performance are described. In addition to the boost converter, the MPPT technique and DC-AC inverter are debated.

Photovoltaic Generator Model
In general, an equivalent circuit of a PV system is used and inserted based on a PNPN diode or Shockley diode, as depicted in Figure 2, which is usually composed of a photo-generated current that depends on irradiation and temperature, an anti-parallel diode declaring non-linear impedance of the P-N junction, and series and shunt inherent resistances accounting for resistive losses [14]. The electrical idiosyncratic of a PV module can be simulated with reference to the differences in the climate conditions like temperature and sun irradiation [15]. By applying Kirchhoff's current law, the corresponding equations that mathematically depict the I-V curve can be described as follows [16,17]:

Photovoltaic Generator Model
In general, an equivalent circuit of a PV system is used and inserted based on a PNPN diode or Shockley diode, as depicted in Figure 2, which is usually composed of a photogenerated current that depends on irradiation and temperature, an anti-parallel diode declaring non-linear impedance of the P-N junction, and series and shunt inherent resistances accounting for resistive losses [14]. The electrical idiosyncratic of a PV module can be simulated with reference to the differences in the climate conditions like temperature and sun irradiation [15]. By applying Kirchhoff's current law, the corresponding equations that mathematically depict the I-V curve can be described as follows [16,17]: The PV module output current is identified by: Where the light-generated current relates to the irradiance, the cell temperature is expressed as follows: The diode saturation current depends on the cell temperature as follows: TS: standard test condition (TS = 25 °C, GS = 1000 W/m 2 ); G: solar irradiation (W/m 2 ); Ki: short circuit current coefficient; Eg: band-gap of the PV cell semiconductor.
The specifications of the PV system are stated in Table 1. Figure 3 presents the I-V and PV characteristics of the PV array obtained during modeling at different sun irradiation intensity conditions. The PV module output current is identified by: where I out , V out : output current (A) and voltage of PV cell (V); I Ph , I 0 : photocurrent and diode saturation current of PV cell (A); R s , R P : series and parallel intrinsic resistances of PV cell (Ω); q: charge of electron (1.6 × 10 −19 c); A: P-N junction ideality factor; K: Boltzmann's gas constant (1.4 × 10 −23 J/K); T C : cell absolute operating temperature (Kelvin); Where the light-generated current relates to the irradiance, the cell temperature is expressed as follows: The diode saturation current depends on the cell temperature as follows: T S : standard test condition (T S = 25 • C, GS = 1000 W/m 2 ); G: solar irradiation (W/m 2 ); K i : short circuit current coefficient; E g : band-gap of the PV cell semiconductor. The specifications of the PV system are stated in Table 1. Figure 3 presents the I-V and PV characteristics of the PV array obtained during modeling at different sun irradiation intensity conditions.   Open circuit voltage (OCV) 320 V 9 Short circuit current (SCC) 392 A

Modeling of Boost Converter with MPPT
In this manuscript, the DC-DC converter is applied for MPPT. Since the voltage from the PV system has a small magnitude to be converted to AC voltage through DC-AC inverter, the converter topology steps the voltage from the PV array (VMPP = 272 VDC at irradiation of 1000 W/m 2 ) to the desired voltage level (500 VDC). This converter will display a low ripple current on the PV array side [18]. The circuit connection of the DC-DC boost converter to PV array is depicted in Figure 4. Switching the duty cycle is referred to as (D) and is piloted by the MPPT controller that uses the "incremental conductance + integral regulator" method.
The converter topology in the state-space model is demonstrated by the following set of equations [6]:

Modeling of Boost Converter with MPPT
In this manuscript, the DC-DC converter is applied for MPPT. Since the voltage from the PV system has a small magnitude to be converted to AC voltage through DC-AC inverter, the converter topology steps the voltage from the PV array (V MPP = 272 V DC at irradiation of 1000 W/m 2 ) to the desired voltage level (500 V DC ). This converter will display a low ripple current on the PV array side [18]. The circuit connection of the DC-DC boost converter to PV array is depicted in Figure 4. Switching the duty cycle is referred to as (D) and is piloted by the MPPT controller that uses the "incremental conductance + integral regulator" method.
where, Vin: input voltage to boost converter and output from PV system; Vout: desired output voltage from boost converter; L, C: boost inductance and output capacitance; D: duty cycle of boost converter switch; Io: output current from boost converter; IL: input current to boost converter.

Incremental Conductance (IC) Based MPPT
This section discusses the solar energy intensity changes through time, and the MPPT algorithm is applied to extract maximum power from the PV in certain operating circumstances [19]. Previous studies have proposed different MPPT methods such as fuzzy logic control, perturb and observe (P&O), and particle swarm optimization [16][17][18][19][20]. In this work, the "incremental conductance + integral regulator" method is applied owing to its simplicity and merit of providing a perfect attitude of fast variation of sun irradiation.
The basic idea of incremental conductance for MPPT on a PV curve is depicted in Figure 5; the slope indicates the derivative of power with regards to voltage (dP/dV), which is null at the MPP, increasing on the left-hand side and decreasing on the right- The converter topology in the state-space model is demonstrated by the following set of equations [6]: where, V in : input voltage to boost converter and output from PV system; V out : desired output voltage from boost converter; L, C: boost inductance and output capacitance; D: duty cycle of boost converter switch; I o : output current from boost converter; I L : input current to boost converter.

Incremental Conductance (IC) Based MPPT
This section discusses the solar energy intensity changes through time, and the MPPT algorithm is applied to extract maximum power from the PV in certain operating circumstances [19]. Previous studies have proposed different MPPT methods such as fuzzy logic control, perturb and observe (P&O), and particle swarm optimization [16][17][18][19][20]. In this work, the "incremental conductance + integral regulator" method is applied owing to its simplicity and merit of providing a perfect attitude of fast variation of sun irradiation.
The basic idea of incremental conductance for MPPT on a PV curve is depicted in Figure 5; the slope indicates the derivative of power with regards to voltage (dP/dV), which is null at the MPP, increasing on the left-hand side and decreasing on the right-hand side of MPP [21]. The mathematical model of this method is as follows if the working point is the MPP: Using the rules in Equation (6), the basic flow chart based on MPPT incremental conductance is depicted in Figure 6. In this method, the tracking of MPP is obtained by a constant step size (±δ). If the working point is the MPP, the error signal will be (0) whereas at the right or left of the MPP, this error signal is regulated by an integral regulator switch to adjust PV output voltage.  Equation (5) can be reorganized in the following form: where ∆I & ∆V are the PV increments of current and voltage, respectively. The basic rules for incremental conductance can be derived from the PV curve shown in Figure 5 and is illustrated as: Using the rules in Equation (6), the basic flow chart based on MPPT incremental conductance is depicted in Figure 6. In this method, the tracking of MPP is obtained by a constant step size (±δ). If the working point is the MPP, the error signal will be (0) whereas at the right or left of the MPP, this error signal is regulated by an integral regulator switch to adjust PV output voltage.

DC/AC Inverter Controller
The proposed scheme of inverter control is shown in Figure 7. The main objective is performed to set the DC-link voltage, inject real power control, and make the power factor equal to one at PCC. This control is helpful for its decoupled control ability and quick dynamics [22].

DC/AC Inverter Controller
The proposed scheme of inverter control is shown in Figure 7. The main objective is performed to set the DC-link voltage, inject real power control, and make the power factor equal to one at PCC. This control is helpful for its decoupled control ability and quick dynamics [22]. Then, Converting Equation (7) into d-q synchronous rotating frame gives the voltage balance across the line: where, V abc , I abc : voltage and current at DC-AC converter; ω: grid frequency; R f , L f : resistance and inductance of RL filter; C bus : DC-link capacitor; V dc : DC-link voltage. The phase locked loop is known as a closed loop control. The main purpose of PLL is the estimation of the grid angle voltage (θ) for d-q coordinates. Therefore, there is an accurate synchronization among inverter output voltage based on grid voltage and current.
The DC-link control loop of voltage is accountable for arranging DC-link voltage at a stable given value.
The reference DC voltage is compared with the present value and the difference is used for the PI controller in order to adjust voltage at 500 V DC; the output is applied as direct-axis reference (I d-ref ) for the inner-current controller.
The current controllers independently loop the direct and quadrature axis (I d & I q ) for grid currents. The (I d-ref ) is obtained from the DC-link voltage control whereas the (I q-ref ) is imposed to zero to guarantee a power factor equal to one. Since the direct axis is aligned with the grid voltage vector (V d ), the quadrature axis grid voltage (V q ) is imposed to zero. Thus, the real and reactive power can be adjusted separately by means of I d and I q , respectively. Then, Output voltage V d-ref and V q-ref from the current controller loop are transformed to three various modulating signals: Uref (a), Uref (b), and Uref (c). The three levels of PWM technique use these signals to produce IGBTs switching pulses.

Wind Power Description
In this part, the mechanical modeling of the WT and its performance are introduced. In addition to the doubly fed generator (DFIG) model, the two controllers' rotor-side and grid-side converters of the DFIG and MPPT method are discussed.

Wind Turbine (WT) Model
The wind turbine is modeled by an aerodynamic input torque that drives a DFIG. The captured mechanical power (P mech ) that is produced by the turbine is dependent on the wind velocity and is described mathematically as follows [23]: where, P mech : mechanical output power of WT (watt); C P : turbine power coefficient; λ t : tip speed ratio of rotor blade; β P : blade pitch angle in degrees; Energies 2021, 14, 5142 9 of 22 ρ air : air density (kg/m 3 ); A t : turbine swept area (m 2 ); V w : wind speed (m/s).
The power coefficient C p (λ t , β P ) is a combination of the blade pitch angle and tip speed ratio and can be calculated using the mathematical relation as follows: The value of the constants (C 1 -C 6 ) depends on the type of WT and manufacturer [23]. The coefficients (C 1 -C 6 ) are given as (0.5176, 116, 0.4, 5, 21, and 0.0068), where λ i is known as: 1 Equations from (11)- (13) have been applied in developing the mathematical model of WT. Moreover, Equation (11) is normalized into a per unit system as follows: where, P mech-pu : the nominal power for values A and ρ; C p-pu : performance coefficient of C p maximum value; V W-pu : the base wind speed; K p : power gain for C p-pu =1 pu & V pu =1 pu. The design specifications of wind power are specified in Table 2. The output torque from WT is transferred through a drive train to the rotor of DFIG. Figure 8 depicts the typical WT power curve for various wind speeds. The MPP occurs at different wind speeds.

DFIG Model
The DFIG is a wound rotor induction generator and is preferred in wind power due to its small size with higher MVA ratings, reduced inverter rating, variable generator speed, fixed frequency operation, and improved system performance as well as producing power at the stator terminals at a fixed voltage and frequency regardless of generator speed. DFIG requires only handling a fraction (25-30%) of the overall power to obtain

DFIG Model
The DFIG is a wound rotor induction generator and is preferred in wind power due to its small size with higher MVA ratings, reduced inverter rating, variable generator speed, fixed frequency operation, and improved system performance as well as producing power at the stator terminals at a fixed voltage and frequency regardless of generator speed. DFIG requires only handling a fraction (25-30%) of the overall power to obtain entire control of generator. In the suggested control scheme, a stator flux oriented control (SFOC) is applied separately to the control of the real and reactive power on the stator side. The DFIG park model can be represented by the equivalent circuits in direct-quadrature (d-q) reference frame as depicted in Figure 9. ims: stator magnetizing current; P: number of pole pairs; m: stator modulation factor. The instantaneous real and reactive power equations of the stator and rotor windings in terms of two axis voltage and current are defined as follows [12]: From the above equations, it is obvious that the injected power to electrical grid can be controlled by controlling the rotor current d-q components. The design specifications of DFIG are given in Table 3. The stator and rotor equations of DFIG modeling in flux linkage can be described as follows [24]: The electrical mathematical modeling of DFIG in the d-q synchronous rotating frame for the stator and rotor voltage equations under balanced operating conditions can be written as follows [25]: where ω slip = (ω e − ω r ) is the slip speed. The expression of the electromagnetic torque for the DFIG can be described as follows: T e = 1.5 P L m L s λ sd i rq − λ sq i rd (17) where, λ sd , λ sq : stator flux d-q components; λ rd , λ rq : rotor flux d-q components; i sd , i sq : stator current d-q components; i rd , i rq : rotor current d-q components; R s , L s : stator resistance & stator self-inductance of DFIG; The instantaneous real and reactive power equations of the stator and rotor windings in terms of two axis voltage and current are defined as follows [12]: From the above equations, it is obvious that the injected power to electrical grid can be controlled by controlling the rotor current d-q components. The design specifications of DFIG are given in Table 3. Stator nominal voltage (L-L) 575 V 4 Nominal frequency f = 60 Hz 5 Stator resistance in pu R s = 0.03 6 Stator inductance in pu L s = 0. 18 7 Rotor resistance in pu R r = 0.02 8 Rotor inductance in pu L r = 0. 15 9 Magnetizing inductance in pu L m = 2.8 10 Nominal DC-link voltage 1150 V

Rotor Side Converter of DFIG
The major assignment of RSC is employed to obtain MPPT and control the inoculated reactive power by the DFIG to maintain the stator at a power factor equal to one [26]. For flux λ s , orientation of the stator along the synchronously rotating d-axis, λ s = λ sd , therefore λ sq = 0. Hence, using (15) and (16), the stator currents and voltages d-q components can be represented as: The rotor voltage references d-q components v * rd and v * rq can be described with the stator flux orientation of the d-axis using (15) and (16) as follows: where ω slip = (ω e − ω r ) is the slip speed, σ = 1 − L 2 m /L s L r is the leakage factor, i ms is the magnetizing current, and (V rd ) and V rq are the control outputs of the PI controllers. By substituting (20) in (17) and (18), the stator real and reactive powers and the electromagnetic torque Te are expressed by the following equations [27]: The suggested control for the RSC scheme is illustrated in Figure 10. The q-axis rotor voltage reference (v * rq ) can be created via an MPPT controller after computing reference torque T * e . The d-axis rotor voltage reference (v * rd ) can be produced from the control loop of reactive power. The reference of reactive power (Q * ) is equal to zero; thus, it is considered that the required reactive power for the DFIG can be drawn from GSC and maintain the stator at a power factor equal to one [12].

Grid Side Converter of DGIG
The major assignment of GSC is employed to maintain a DC-link voltage constant regardless of the value and trend of rotor power flow and is also used to produce or absorb reactive power and to maintain a power factor equal to one at the connection point to the utility grid. The set of voltage equations for GSC can be described as follows: where Rf and Lf are the resistance and self-inductance coefficient for the line inductors, respectively, and iagc, ibgc, icgc are the line currents and Vagc, Vbgc, Vcgc are the converter voltages. By applying the three phase to two phase transformations, the grid side converter voltage equations can be converted into a d-q reference frame synchronously as follows:

Grid Side Converter of DGIG
The major assignment of GSC is employed to maintain a DC-link voltage constant regardless of the value and trend of rotor power flow and is also used to produce or absorb reactive power and to maintain a power factor equal to one at the connection point to the utility grid. The set of voltage equations for GSC can be described as follows: (23)  where R f and L f are the resistance and self-inductance coefficient for the line inductors, respectively, and i agc , i bgc , i cgc are the line currents and V agc , V bgc , V cgc are the converter voltages. By applying the three phase to two phase transformations, the grid side converter voltage equations can be converted into a d-q reference frame synchronously as follows: The d-axis of the reference frame through the grid voltage vector is aligned, then V dg = |V g |, so V qg = 0. Therefore using Equation (18), the active power and the DC-bus voltage can be illustrated via i * dgc , whereas the reactive power can be controlled via i * qgc , as follows: Finally, the DC-link voltage can be written as follows: The suggested control structure of the grid side is shown in Figure 11. The GSC is a regulated PWM converter, with d-axis current (i * dgc ) set to DC-bus voltage and the q-axis current (i * qgc ) set to the exchanged reactive power with the utility grid. The q-axis current reference (i * qgc ) is adjusted to (0) to maintain the utility grid at a power factor equal to one. The d-q reference components for the GSC voltage for current regulation can be represented as follows: Finally, the DC-link voltage can be written as follows: The suggested control structure of the grid side is shown in Figure 11. The GSC is a regulated PWM converter, with d-axis current (i * ) set to DC-bus voltage and the q-axis current (i * ) set to the exchanged reactive power with the utility grid. The q-axis current reference (i * ) is adjusted to (0) to maintain the utility grid at a power factor equal to one. The d-q reference components for the GSC voltage for current regulation can be represented as follows: Figure 11. Schematic diagram control for GSC.

Improved MPPT for Wind Energy Conversion System (WECS)
The maximum power from WT is removed at optimal speed of the rotor (ω * ). Accordingly, if wind speed changes, the MPPT controller computes the rotational speed (ω * ) to track the MPP. Since the popular MPPT controllers with measurement of wind speed and WT performance, the error in modelling of WT and obscurity of accuracies in the

Improved MPPT for Wind Energy Conversion System (WECS)
The maximum power from WT is removed at optimal speed of the rotor (ω * r ). Accordingly, if wind speed changes, the MPPT controller computes the rotational speed (ω * r ) to track the MPP. Since the popular MPPT controllers with measurement of wind speed and WT performance, the error in modelling of WT and obscurity of accuracies in the sensors will impact the setting of the MPPT [28]. The proposed MPPT flow chart is represented in Figure 12. The MPPT depends on the mechanical power (P m-pu ) to define the optimal rotational speed (ω * r ), which is generally 1.2 pu, but for mechanical power (P m-pu ) levels can be less than 75% and are described as follows [29]:

Results and Discussion
The represented model of the hybrid PV/wind system illustrated in Figure 1 was simulated using MATLAB software to demonstrate its performance. Figure 13 depicts the overall simulated diagram of a 10-MW hybrid PV/wind connected to the utility grid. The system was analyzed at different operating circumstances, such as wind speed and sun radiation. This study examined detailed dynamic modeling, control and simulation of a solar PV-and DFIG-based wind hybrid system interconnected to the utility grid, and variations in the AC load power and dispatch power to the distribution grid. The simulation was investigated in three case studies: system attitude of the PV, wind, and hybrid PV/wind. The simulation outcomes indicated that the presented control successfully performed the required system attitude.

Results and Discussion
The represented model of the hybrid PV/wind system illustrated in Figure 1 was simulated using MATLAB software to demonstrate its performance. Figure 13 depicts the overall simulated diagram of a 10-MW hybrid PV/wind connected to the utility grid. The system was analyzed at different operating circumstances, such as wind speed and sun radiation. This study examined detailed dynamic modeling, control and simulation of a solar PV-and DFIG-based wind hybrid system interconnected to the utility grid, and variations in the AC load power and dispatch power to the distribution grid. The simulation was investigated in three case studies: system attitude of the PV, wind, and hybrid PV/wind. The simulation outcomes indicated that the presented control successfully performed the required system attitude.

Case (I): System Performance of PV
This section investigated the performance under variations of sun irradiance. The PV array temperature was considered to be fixed at 25 °C throughout the entire simulation. The output of most solar panels was measured at standard test conditions (STC): a temperature of 25 °C (77 °F). The variation of sun irradiance is illustrated in Figure 14a. This difference shows the shift of irradiation throughout the day. The PV array output voltage well-affected the voltage at MPP, responding to variations in sun irradiance, as depicted in Figure 14b. PV output current was affected by sun irradiance variations, as illustrated in Figure 14c. Since dP/dV was nearly zero, the PV array operating power points were well-tracked across the MPPs during variations of sun irradiance, as represented in Figure  14d. Thus, MPPT accurately tracked the MPPs of the PV array while the sun irradiance changed continuously.

Case (I): System Performance of PV
This section investigated the performance under variations of sun irradiance. The PV array temperature was considered to be fixed at 25 • C throughout the entire simulation. The output of most solar panels was measured at standard test conditions (STC): a temperature of 25 • C (77 • F). The variation of sun irradiance is illustrated in Figure 14a. This difference shows the shift of irradiation throughout the day. The PV array output voltage well-affected the voltage at MPP, responding to variations in sun irradiance, as depicted in Figure 14b. PV output current was affected by sun irradiance variations, as illustrated in Figure 14c. Since dP/dV was nearly zero, the PV array operating power points were well-tracked across the MPPs during variations of sun irradiance, as represented in Figure 14d. Thus, MPPT accurately tracked the MPPs of the PV array while the sun irradiance changed continuously.

Case (I): System Performance of PV
This section investigated the performance under variations of sun irradiance. The PV array temperature was considered to be fixed at 25 °C throughout the entire simulation. The output of most solar panels was measured at standard test conditions (STC): a temperature of 25 °C (77 °F). The variation of sun irradiance is illustrated in Figure 14a. This difference shows the shift of irradiation throughout the day. The PV array output voltage well-affected the voltage at MPP, responding to variations in sun irradiance, as depicted in Figure 14b. PV output current was affected by sun irradiance variations, as illustrated in Figure 14c. Since dP/dV was nearly zero, the PV array operating power points were well-tracked across the MPPs during variations of sun irradiance, as represented in Figure  14d. Thus, MPPT accurately tracked the MPPs of the PV array while the sun irradiance changed continuously.  Figure 15a illustrates the three-phase injected current, in which the waveforms were sinusoidal. In Figure 15b, the injected real power was close to the created value; thus, small losses and the reactive power was null, hence a power factor equal to one (P.F). Figure 15c illustrates the injected voltage and current to the electrical grid; the grid voltage and current were in phase due to one P.F.   Figure 15a illustrates the three-phase injected current, in which the waveforms were sinusoidal. In Figure 15b, the injected real power was close to the created value; thus, small losses and the reactive power was null, hence a power factor equal to one (P.F). Figure 15c illustrates the injected voltage and current to the electrical grid; the grid voltage and current were in phase due to one P.F.  Figure 15a illustrates the three-phase injected current, in which the waveforms were sinusoidal. In Figure 15b, the injected real power was close to the created value; thus, small losses and the reactive power was null, hence a power factor equal to one (P.F). Figure 15c illustrates the injected voltage and current to the electrical grid; the grid voltage and current were in phase due to one P.F.

Case (2): System Performance of Wind Energy
This case examined the wind performance under variation of wind speed. Figure 16a illustrates the speed variation of the gradation wind and the ramp change of wind speed was 15 m/s and 9 m/s, respectively. Figure 16b represents mechanical torque of the WT in the process of extracting maximum wind energy. In Figure 16c, the DC-link voltage was fixed at 1150 V, irrespective of magnitude of the injected power. Figure 16d,e depicts constant stator voltage and variation of stator current under variations of wind speed; the waveforms of the three-phase stator voltage and current were sinusoidal.
(a) Sketch of wind speed

Case (2): System Performance of Wind Energy
This case examined the wind performance under variation of wind speed. Figure 16a illustrates the speed variation of the gradation wind and the ramp change of wind speed was 15 m/s and 9 m/s, respectively. Figure 16b represents mechanical torque of the WT in the process of extracting maximum wind energy. In Figure 16c, the DC-link voltage was fixed at 1150 V, irrespective of magnitude of the injected power. Figure 16d,e depicts constant stator voltage and variation of stator current under variations of wind speed; the waveforms of the three-phase stator voltage and current were sinusoidal.

Case (2): System Performance of Wind Energy
This case examined the wind performance under variation of wind speed. Figure 16a illustrates the speed variation of the gradation wind and the ramp change of wind speed was 15 m/s and 9 m/s, respectively. Figure 16b represents mechanical torque of the WT in the process of extracting maximum wind energy. In Figure 16c, the DC-link voltage was fixed at 1150 V, irrespective of magnitude of the injected power. Figure 16d,e depicts constant stator voltage and variation of stator current under variations of wind speed; the waveforms of the three-phase stator voltage and current were sinusoidal.
(a) Sketch of wind speed  Figure 17a illustrates the injected real power from the DFIG wind farm changes according to wind speed, whereas the delivered reactive power was null; hence, a power factor equal to one. To explain the validity of GSC and RSC, Figure 17b illustrates that the stator voltage and current were in phase due to zero reactive power and a power factor  Figure 17a illustrates the injected real power from the DFIG wind farm changes according to wind speed, whereas the delivered reactive power was null; hence, a power factor equal to one. To explain the validity of GSC and RSC, Figure 17b illustrates that the stator voltage and current were in phase due to zero reactive power and a power factor equal to one. Figure 17c shows the injected current from the wind system. The change of current amplitude reflects the variation of power since grid voltage continued to be constant.
Energies 2021, 14, x FOR PEER REVIEW 20 of 23 equal to one. Figure 17c shows the injected current from the wind system. The change of current amplitude reflects the variation of power since grid voltage continued to be constant.

Case (3): Hybrid PV/Wind System Performance
This scenario examined the system performance of the hybrid PV/wind at variations of sun irradiation and wind speed. Figure 18a illustrates the waveforms of the three-phase grid voltage, and it is evident that grid voltage remained constant. Figure 18b depicts the current of the grid side, which is in sinusoidal form. Figure 18c shows the power balance of the hybrid PV/wind system; the injected power from the PV was equal to 1 MW at TS, whereas the maximum power of wind energy was equal to 9 MW at base wind speed.

Case (3): Hybrid PV/Wind System Performance
This scenario examined the system performance of the hybrid PV/wind at variations of sun irradiation and wind speed. Figure 18a illustrates the waveforms of the three-phase grid voltage, and it is evident that grid voltage remained constant. Figure 18b depicts the current of the grid side, which is in sinusoidal form. Figure 18c shows the power balance of the hybrid PV/wind system; the injected power from the PV was equal to 1 MW at T S , whereas the maximum power of wind energy was equal to 9 MW at base wind speed.

Conclusions
In the future, it is strongly recommended that the majority of the grid's resources be nuclear and renewable to solve the problem of energy reduction and global climate change simultaneously. Nuclear reactors need a stable and reliable grid in order to operate safely and this requires an improved performance of renewable energies, especially wind and solar PV systems. Among their drawbacks is the dependence of the presence and strength of wind or sunlight (changes of wind speed and solar irradiation). This manuscript is a step in this direction. It introduces a comprehensive dynamic modeling and

Conclusions
In the future, it is strongly recommended that the majority of the grid's resources be nuclear and renewable to solve the problem of energy reduction and global climate change simultaneously. Nuclear reactors need a stable and reliable grid in order to operate safely and this requires an improved performance of renewable energies, especially wind and solar PV systems. Among their drawbacks is the dependence of the presence and strength of wind or sunlight (changes of wind speed and solar irradiation). This manuscript is a step in this direction. It introduces a comprehensive dynamic modeling and control and an efficient grid-inserted hybrid photovoltaic/wind system, which was analyzed and successfully performed using MATLAB program. The behavior of the suggested hybrid system was tested at different climate circumstances, such as variations of sun radiation and wind speed. The MPPT was utilized for two systems, PV and wind, to analyze the maximum power under different environmental conditions. Characteristics of the doubly fed induction generator were analyzed and the control mode of DFIG were designed and implemented in this study. The simulation and the test results proved the robustness of the suggested hybrid system in response to swift variations in sun radiation and wind speed conditions during the day. Future work will be oriented toward investigating the stability of a hybrid system during grid fault.