Modeling , Control , and Simulation of a Solar Hydrogen / Fuel Cell Hybrid Energy System for Grid-Connected Applications

Different energy sources and converters need to be integrated with each other for extended usage of alternative energy, in order to meet sustained load demands during various weather conditions.The objective of this paper is to associate photovoltaic generators, fuel cells, and electrolysers. Here, to sustain the power demand and solve the energy storage problem, electrical energy can be stored in the form of hydrogen. By using an electrolyser, hydrogen can be generated and stored for future use. The hydrogen produced by the electrolyser using PV power is used in the FC system and acts as an energy buffer.Thus, the effects of reduction and even the absence of the available power from the PV system can be easily tackled. Modeling and simulations are performed using MATLAB/Simulink and SimPowerSystems packages and results are presented to verify the effectiveness of the proposed system.


Introduction
At present, most of energy demand in the world relies on fossil fuels such as petroleum, coal, and natural gas that are being exhausted very fast.One of the major severe problems of global warming is one of these fuels combustion products, carbon dioxide; these are resulting in great danger for life on our planet [1].
Fossil fuels can have as an alternative some renewable energy sources like solar, wind, biomass, and so; among them on the photovoltaic (PV) generator which converts the solar radiation into electricity, largely used in low power applications.The photovoltaic generator is chosen for its positive points including being carbon free and inexhaustible; moreover, it does not cause noise for it is without moving parts and with size-independent electric conversion efficiency [2].
Nevertheless, the power generated by a PV system is influenced by weather conditions; for example, at night or in cloudy periods, it would not generate any power or application.In addition, it is difficult to store the power generated by a PV system for future use.The best method to overcome this problem is to integrate the PV generator with other power sources such as an electrolyser, hydrogen storage tank, FC system, or battery due to their good features such as high efficiency response, modular production, and fuel flexibility [3,4].Its coordination with a PV system could be successful for both grid-connected and stand-alone power applications.Thanks to the rapid response capability of the fuel cell power system, the photovoltaic fuel cell hybrid system can be able to overcome the inconvenience of the intermittent power generation.Furthermore, unlike a secondary battery, the FC does not only store energy but also produce electricity for unlimited time to support the PV power generator.Hence, the coordination between the FC power system and the photovoltaic generator becomes necessary in order to smooth out the PV power fluctuations.
This paper focuses on developing a simulation model to design and size the hybrid system for a variety of loading and meteorological conditions.This simulation model is performed using Matlab and SimPowerSystems and results are presented to verify the effectiveness of the proposed system.

A Dynamic Model of PV Generator.
PV arrays are built up with combined series/parallel combinations of PV solar cells, which allow extracting the characteristic parameters of the one-diode equivalent model for a single solar cell.

Cathode
Load The PV cell output voltage is a function of the photocurrent that is mainly determined by load current depending on the solar irradiation level during the operation [2]: The parameters used in the mathematical model of the PV system are shown in the abbreviations section.

A Dynamic Model of PEMFC.
The PEMFC is an electrochemical device which allows the electric energy conversion of the chemical energy contained in a reaction between a fuel, the hydrogen, and an oxidizer, the oxygen.The temperature effects have been taken into account in the typical range of low temperature PEM (60-100 ∘ C) and a thermal behaviour submodel has been introduced.A bias voltage is applied across the electrochemical cell in order to induce electrochemical reactions at both electrodes.Water is introduced at the anode and dissociated into oxygen, protons, and electrons.The protons are driven by an electric field through the PEM to the cathode where they combine with the electrons arriving from the external circuit to form hydrogen gas.The assessment of these two half reactions produces water, heat, and electricity as Figure 1 shows.
Many models have been proposed to simulate the fuel cell in the literature [4,5].This model is built by utilizing the relationship between the output voltage and potential pressure of hydrogen, oxygen, and water.Figure 2 shows the detailed PEMFC model, which is then embedded into the Sim-PowerSystems of MATLAB-controlled voltage source and integrated into the overall system.
The proportional relationship of the molar flow of gas through a valve with its partial pressure can be expressed as For hydrogen molar flow, the derivative of the partial pressure can be calculated using the perfect gas equation as follows [5] The relationship between the hydrogen flow and the FC system current can be written as [5] Using ( 4) and (3), the hydrogen partial pressure can be rewritten in the (s) domain as [5] where Typically, the fuel cell output voltage is obtained from the sum of three effects [5,6], the Nernst potential, the cathode and anode activation overvoltage, and the ohmic overvoltage due to internal resistance: where Now, the Nernst voltage in terms of gas molarities may be expressed as [5] The FC system consumes hydrogen obtained from the on-board high-pressure hydrogen tanks according to the power demand.A feedback control strategy is used to control hydrogen flow rate according to the output power of the FC system.This feedback control is achieved where FC current how the output is taken back into the input while converting the hydrogen into molar form [5,7].
The quality of hydrogen found from the hydrogen tank is given by: 2.
3. An Electrolyser Model.Electrolysis of water is the dissociation of water molecules into hydrogen and oxygen gas.The electrochemical reaction of water electrolysis is given by The rate of hydrogen reacting is directly proportional to the electrical current in the equivalent electrolysis circuit [8,9], given by The relation between the real hydrogen flow rate and the theoretical one is defined as the Faraday's efficiency.In general, it is assumed to be more than 99%.The Faraday efficiency is expressed by [9,10]   = 96.5 (0.09/  −75.5/ 2  ) .
Figure 3 shows the simulation model of the electrolyser implemented in MATLAB/Simulink.

A Hydrogen Storage
System.The amount of hydrogen required by the PEMFC is sent directly from the electrolyzer system based on the relationship between the output power and the hydrogen requirement of the PEMFC system.The remaining amount of hydrogen is sent to the storage tank [11].The parameters used in the hydrogen storage system are listed in the abbreviations section.
In this study, the dynamic of the storage is obtained as follows [10,11]: Neither the compression dynamics nor the compression energy requirements are accounted for in our calculations.All auxiliary power requirements such as pumps, valves were ignored in the dynamic model.The Simulink version of the hydrogen storage model is depicted in Figure 4.

An Averaged Model of the Converters.
The simulation of power electronic systems behavior using semiconductor refined models gives an accurate, but unaffordable results.The structure of the switch cell is given in Figure 5; it has two basic switching cells (P-cell and N-cell).
Each cell consists of one controlled switch and one diode.The two active switches are directly controlled by external control signals.The diodes are indirectly controlled by the state of the controlled switches and the circuit conditions.The load is presented by an inductor  and a voltage source (  ).The DC loop inductance is modeled by an inductor   .Depending on the sign of the load current   (), only two devices (one controlled device and one diode) operate simultaneously [12][13][14][15].The proposed averaged model of the PWM-switch is presented in Figure 5(b).This model contains a controlled voltage source ( 1 ) and a controlled current source ( 1 ).The PWM-switch is the only nonlinear element which is supposed to be responsible for the nonlinear behavior of the converter, Considering   as the switching period of the controlled switches and () the duty ratio which is the ratio of the on-time value ( on ) of the upper controlled switch ( 1 ) and the switching period   .
In Figure 5(b), the current source ( 1 ) and the voltage source ( 1 ) are given by where ⟨  ⟩ and ⟨  2 ⟩ are the time averaged values of the instantaneous terminal waveforms   () and   2 (), respectively, over one cycle   .In this paper we have chosen MOSFET's devices for the controlled switch and the PIN devices for diodes.We notice that the load current   is considered constant and equal to the averaged value of the real current   () in the load over the switching period   .During devices turn-on and turn-off phases, the different voltage magnitudes are given by The averaged values of the voltage across the device of the voltage source  1 and current  1 are obtained by integrating the voltage and the current evolutions over one cycle   .

The PV System Model and Integration to the Overall
Hybrid Model.As shown in Figure 6, the majority of the PVFC system comprises a solar-cell model, a PEM fuel cell generator, and a water electrolyser.The parameters of the PV systems are listed in Table 1.The PEMFC system parameters are given in Table 2.
DC-DC converters are widely used in PV generating systems as an interface between the PV generator and the water electrolyser.An optimized controller for the DC-DC The number of series cells per strings (  ) 1 The number of parallel modules 6 Ideality or completion factor () 1 .9 Boltzmann's constant () PV cell reverse saturation current ( 0 ) (A) 0.00005 Series resistance of PV cell (  ) (Ω) 0.0277 must find the optimum duty cycle which leads the PV generator as close as possible to its MPPT and ensure that the working point at the water electrolyser is a safety point.Since the fuel cell stack operates at a low DC voltage range (102 V in this paper), the DC-DC converter must boost the DC voltage and invert it to the AC grid frequency (230 V/50 Hz here) for grid-connected operations.To keep the DC buses fixed at 400 V, we chose to use a hysteresis regulator.Hence, the fuel cell control problem is translated into an output current control requirement, to be realized by the DC/DC converter, in order to ensure optimal operation for  a given fuel flow rate.Under these conditions, the cell output power is directly related to its fuel consumption at the selected optimum operating point of the V-I characteristic.
Operating the fuel cell at different output power levels requires suitable variation of its input flow rate, to be realized by the overall control system of the cell.The power demand requirement of the fuel cell is translated into a current demand input by dividing with stack output voltage:  7).The implementation structure of the loop regulation with hysteresis is given in Figure 8 scheme.This cascaded control structure shows that it could satisfy the different requirements of the hybrid system both from the point of view of the feed load and from the point of view of the component limits.

Results and Discussion
In this section we present simulation results for the coupling between the PV/FC and the PEM electrolyser through the DC-DC converter controller.The PV generator is a 2880 W power plant at 1000 (w/m 2 ) solar radiation.From Figures 9 and 10, we observe that the current and the available power from the PV generator decreases because of radiation variation.
Initially, the total power generated by the PV generator is sent to the electrolyser through a DC-DC converter to generate hydrogen.The hydrogen produced by the electrolyser causes the pressure of the storage tank to vary as shown in Figure 11.These results are obtained for two values of solar radiation 1000 (w/m 2 ) and 800 (w/m 2 ).We notice that the final value of pressure is used as initial condition in the following simulation.After this, the total power generated by the PV system is sent to grid via a DC/AC converter.At 1000 (w/m 2 ) solar radiation, the PV generator used in this study is capable of delivering 2880 W while the FC delivers 200 W, but at 800 (w/m 2 ) solar radiation (at 1 s) the power produced by the PV system tends to 2300 W. So the generated power by the PV is less than the demand; power will be supplied from the FC system.The power produced by the FC system tends to 500 W at 1 s of time simulation.
The internal voltage of the FC system decreases when the FC output power increases.This relation between power and the voltage of the FC system authenticates the reliability of the FC model.The transient response of the FC system voltage to the load changes varies according to the amount of power supplied by the FC system as shown in Figure 12.The power produced by the FC system is given in Figure 13.
The amount of hydrogen moles consumed by the FC system is proportional to the power drawn from the FC system.The hydrogen flow to the FC system per second is depicted in Figure 14.
Figure 15 shows the hydrogen storage tank pressure variation corresponding to the amount of hydrogen extracted from the storage tank.It is evident that the hydrogen storage tank pressure decreases with time as more and more hydrogen is extracted from the storage tank.The pressure variation of storage hydrogen is as illustrated in Figure 16.

Conclusion
In this paper, a PV/FC generator and PEM electrolyser have been described for a PV/FC system intended for gridconnected operations.Special attention has been paid to the modeling of temperature dependence, concentration over potential, and limiting current in the PEM electrolyser model.Then, the power conditioning system, including the DC/DC and DC/AC converters, is presented and typical waveforms are shown from its simulation in MATLAB/Simulink.

Figure 4 :Figure 5 :
Figure 4: The Simulink model of the hydrogen storage system.

Figure 6 :
Figure 6: Schematic drawing of the PVFC hybrid system.

Figure 7 :
Figure 7: Inner control loop insuring fast dynamics of PEMFC.

Figure 10 :
Figure 10: The current variation for the PV solar system.

Table 1 :
PV system model parameters.

Table 2 :
FC system model parameters.