MATLAB Simscape Model of An Alkaline Electrolyser
MATLAB Simscape Model of An Alkaline Electrolyser
Electrical and Electronic Engineering Department, Auckland University of Technology, Auckland 1010, New Zealand
(david.martinez@outlook.co.nz, ramon.zamora@aut.ac.nz)
*Corresponding Author; Dr. Ramon Zamora, Electrical and Electronic Engineering Department, Auckland University of
Technology, Auckland 1010, New Zealand, Tel: +64-9-921-9999, ramon.zamora@aut.ac.nz
Abstract- This paper discusses a MATLAB/Simulink/Simscape power system implementation of an alkaline electrolyser
directly coupled to a photovoltaic module. Meteorological average daily irradiance and temperature data for a typical summer
and winter day in Auckland, New Zealand, is used in a 15-hour simulation duration to show characteristic responses of the
system. In addition to the steady state output, boundary conditions are applied to the referenced mathematical models to
include the transient performance, governed by the photovoltaic module internal parameters. The simulation results show that
the steady state output of the proposed implementation matches the general response of similar systems reported in previous
published papers. Overall electrolyser efficiency of 68.48% for summer and 63.32% for winter is in accordance with results
from the referenced studies.
Keywords- Alkaline electrolyser; Simscape; hydrogen; PV module; irradiance.
553
INTERNATIONAL JOURNAL OF RENEWABLE ENERGY RESEARCH
D. Martinez and R. Zamora. ,Vol. 8, No. 1, March, 2018
2.2. Boundary Conditions for the Alkaline Electrolyser added to the model to produce hydrogen only if the cell
voltage is greater than . The final set of boundary
Due to the presence of a logarithmic function in Eq. (1), conditions can be expressed in equations (6) and (7).
a careful consideration is needed to avoid negative values
that can produce unrealistic results. This is obvious at low Using Matlab/Simulink math blocks, equations (1)–(7)
levels of current where the model parameters cannot are constructed for each input and output. The electrolyser
follow the electrolyser response properly. components in detail are shown in Figs. 1 and 2.
Similarly, when input current is zero in Eq. (1), the
electrolyser cell is equal to the reversible voltage and can Simscape electrical interaction is added by utilizing
potentially act as a voltage source feeding current to other voltage/current controlled sources blocks, voltage/current
elements of the electrical circuit. To avoid this situation, measurement blocks, and electrical connection ports from
the mathematical element is disconnected from the circuit the power systems specialized technology toolbox.
to block any current flow and to force the voltage to follow For the electrolyser diagram shown in Fig. 3, the
the external circuit. boundary condition of zero current was implemented with
Finally, production rate given by Eq. (2) only depends a diode between the mathematical block subsystem and the
on the input current regardless of the voltage input. This is power systems blocks. Finally, a memory block was added
not accurate since water can only be divided into hydrogen to the electrolyser model to break the algebraic loop and to
and oxygen when the cell voltage is enough to provide the facilitate the convergence of the solution when other
required activation energy. A special consideration is elements are connected.
(6)
(7)
554
INTERNATIONAL JOURNAL OF RENEWABLE ENERGY RESEARCH
D. Martinez and R. Zamora. ,Vol. 8, No. 1, March, 2018
(9)
where: is the reverse saturation current of the diode, T is
the cell temperature, is an ideality factor representing the
type of technology, is the number of cells connected in
series, k is Boltzmann constant and q is the electron charge.
(11)
Fig. 6. PV module simscape power systems diagram.
(12)
3. Characterization of the Elements
where: is short circuit current, is open circuit
voltage, is irradiance input, is irradiance at STC = To observe the response of each model to several
1000 W/m , 2 o
is temperature at STC = 25 C, and is temperatures, a variable input was introduced as a current
source for the electrolyser and a variable resistor for the
the material band gap energy, 1.12 eV for Si.
PV module. Ambient temperature values were selected
2.4. Boundary Condition for the PV Module according to average mean monthly minimum and
maximums for Auckland: January/February average max.
The output current of the equivalent circuit represented is 27 oC and July/August average min is 5 oC [21].
by Eq. (8) can generate negative values of current even if The parameters describing each model shown in Table
the photo generated current is zero. However, this leads 2 were tuned for the following equipment in the mentioned
to an inaccurate result where the diode current is still
555
INTERNATIONAL JOURNAL OF RENEWABLE ENERGY RESEARCH
D. Martinez and R. Zamora. ,Vol. 8, No. 1, March, 2018
studies: ELECTROCELL Micro Flow Cell [9] for the graphs match their mathematical representation. The
electrolyser and PWX 500 49W [20] for the PV module. impact of increasing the temperature in terms of voltage is
positive for the electrolyser due to less cell overvoltage
The I-V curves for the electrolyser and PV module are
and negative for the PV module due to less power
shown in Figs. 7 and 8 respectively. For both models the
delivered.
4. System Simulation
556
INTERNATIONAL JOURNAL OF RENEWABLE ENERGY RESEARCH
D. Martinez and R. Zamora. ,Vol. 8, No. 1, March, 2018
10. The error between the total cumulative values of the guarantying a correct input for the simulation.
initial data and the fitted curve was only 0.04%,
Fig. 10. Input irradiance data – January. Fig. 11. Input Temperature data – January.
Temperature data from NIWA in [21] gives hourly 5. Results and Discussion
average values for a total of 15 points. To obtain the
Since the voltage variation of the electrolyser cell for
missing points representing 60 second intervals within
all given temperatures is much lower than the knee of the
each hour, the algorithm generates a series of steps equal
I-V curve of the PV module (Vrev + 1.5 V << Voc), the
to the average temperature of the specific hour. A
module acts as a current source proportional to the
visualisation of the data analysis for January is shown Fig.
irradiance. This proportional relationship is shown in Fig.
11. For average hourly temperature in a year, the mean
12 with both irradiance and current curves superimposed
value is calculated between the available data, which are
for all evaluated cases. The compared studies also show
summer maximum and winter minimum.
the same responses where current follows the irradiance
To assess the validity of the patterns.
MATLAB/Simulink/simscape power systems model, four
The voltage curve in Fig. 13 shows a different pattern
previous studies with similar simulation architecture were
where two zones can be clearly identified. Steady state
selected. Study A [22] ran a simulation using irradiance
zone A is where the electrolyser is fully active and
data for Miami USA, study B [23] used real devices for
transient zone B is a startup/shutdown region where
irradiance in Cairo Egypt, study C [24] used a real
voltage fluctuation is predominant.
experimental setup in Algeria and study D [25] ran a
simulation using irradiance data for Pamplona Spain. The shape of the output curves agrees with all four
Unfortunately, due to the size difference of each system, compared studies for the steady state zone A. However,
the comparison mostly just involves the general trend of the zone B characteristics cannot be compared since all
the output, following the shape of the curves for each referenced papers ignored the transient response.
variable analysed.
557
INTERNATIONAL JOURNAL OF RENEWABLE ENERGY RESEARCH
D. Martinez and R. Zamora. ,Vol. 8, No. 1, March, 2018
Fig. 14. Zone B region: voltage and current (left), voltage and irradiance (right).
To further assess the response of the transient zone B, a Wh and for the winter day 19.668 Wh. Based on Eq. (5),
closer examination is performed by analysing the specific the amount of hydrogen produced by the single
times of occurrence and the level of variation. By visual electrolyser cell was found to be 0.5856 grams in summer
inspection, for January data, zone B finishes around 6:30 and 0.29 grams in winter which represents 19.3248 Wh
am and starts again at 6:30 pm. For June data, zone B and 9.57 Wh, respectively. The electrolyser efficiency is
finishes at 8 am and starts again at 5 pm. After a careful then calculated to be 68.48% and 63.32% for summer and
inspection of the data, with voltage superimposed with winter, respectively. These values fall in the range of
both irradiance and current shown in Fig. 14, the variation reported efficiency values in [2] and [18]. The energy and
in voltage occurs in the PV module due to a low-level volume were calculated based on the hydrogen energy
input of irradiance that is not high enough to generate content of 120 MJ/kg or 33 kWh/kg and the volumetric
current to the external circuit, dissipating through the PV density of 0.089 kg/m3 [26], [27].
module parallel resistance. The resulting voltage is then
To allow a further comparison with the reference
directly proportional to the irradiance and the internal
studies, instantaneous efficiency and flow rate was plotted
parallel resistance of the PV module.
in Fig. 15 for January, June and year average irradiance
The amount of electrical energy inputted to the system values. As expected from Eq. (2), the flow rate follows
can be found by calculating the area under the power curve. current. This general outcome matches the curves in the
For the summer day, the total input energy was 26.1625 four reference studies.
558
INTERNATIONAL JOURNAL OF RENEWABLE ENERGY RESEARCH
D. Martinez and R. Zamora. ,Vol. 8, No. 1, March, 2018
559
INTERNATIONAL JOURNAL OF RENEWABLE ENERGY RESEARCH
D. Martinez and R. Zamora. ,Vol. 8, No. 1, March, 2018
[12] MathWorks, “Matlab”, [Online]. Available: [20] H. Bellia, R. Youcef, and M. Fatima, “A detailed
https://www.mathworks.com/products/matlab/feature modeling of photovoltaic module using MATLAB”,
s.html. [Accessed: 20-Nov-2017]. NRIAG Journal of Astronomy and Geophysics, vol.
[13] MathWorks, “Simscape: Model and simulate 3, pp. 53-61, 2014.
multidomain physical systems”, [Online]. Available: [21] P.R. Chappel, “The Climate and Weather of
https://www.mathworks.com/products/simscape.html. Auckland, 2nd Edition” NIWA Science and
[Accessed: 20-Nov-2017]. technology series, Num. 60, pp. 23, [Online].
[14] M. R. Rashel, A. Albino, M Tlemcani, and T. C. F. Available:
Goncalves, “MATLAB Simulink modelling of https://www.niwa.co.nz/static/Auckland%20Climate
photovoltaic cells for understanding shadow effect”, WEB.pdf. [Accessed: 10-Nov-2017].
5th International Conference on Renewable Energy [22] A. Khalilnejad, A. Abbaspour, and A.I. Sarwat,
Research and Applications, Birmingham, pp.747-750, “Multi-level optimization approach for directly
November 2016. coupled photovoltaic-electrolyser system”,
[15] K. Jazayeri, S. Uysal, and M. Jazayeri, International Journal of Hydrogen Energy, vol. 41, pp.
“MATLAB/simulink based simulation of solar 11884-11894, 2016.
incidence angle and the sun's position in the sky with [23] G.E. Ahmad and E.T. El Shenawy, “Optimized
respect to observation points on the Earth”, photovoltiac system for hydrogen production”,
International Conference on Renewable Energy Renewable Energy, vol. 31, pp. 1043-1054, 2006.
Research and Applications, Madrid, pp.173-177, [24] A. Djafour, M. Matoug, H. Bouras, B. Bouchekima,
October 2013. M.S. Aida, and B. Azoui, “Photovoltaic-assisted
[16] C. Henao, K. Agbossou, M. Hammoudi, Y. Dubé, alkaline water electrolysis: Basic principles”,
and A. Cardenas, “Simulation tool based on a physics International Journal of Hydrogen Energy, vol. 36, pp.
model and an electrical analogy for an alkaline 4117-4124, 2011.
electrolyser”, Journal of Power Sources, vol. 250, pp. [25] A. Ursua, I. S. Martin, E. L. Barrios, and P. Sanchis,
58-67, 2014. “Stand-alone operation of an alkaline water
[17] The National Institute of Water and Atmospheric electrolyser fed by wind and photovoltaic systems”,
Research, “SolarView”, [Online]. Available: International Journal of Hydrogen Energy, Vol. 38,
https://solarview.niwa.co.nz/. [Accessed: 20-Nov- pp. 14952-14967, 2013.
2017]. [26] K. Lu, Materials in Energy Conversion, Harvesting,
[18] K. Zeng and D. Zhang, “Recent progress in alkaline and Storage, Hoboken, New Jersey: John Wiley &
water electrolysis for hydrogen production and Sons, Inc. 2014, pp. 387.
applications”, Progress in Energy and Combustion [27] Universal Industrial Gases, Inc., “Unit Conversion
Science, vol. 36, pp. 307-326, 2010. Data for Hydrogen”, [Online]. Available:
[19] P. Oliviera, C. Bourasseaua and B. Bouamamab, http://www.uigi.com/h2_conv.html. [Accessed: 15-
“Low-temperature electrolysis system modelling: A Nov-2017].
review”, Renewable and Sustainable Energy Reviews,
vol 78, pp. 280-300, 2017.
560