An Adaptive Power Management Tool For Si
An Adaptive Power Management Tool For Si
Published: 2023-09-12
https://doi.org/10.20935/AcadEng6115
Abstract
Off-grid electrical energy systems based on renewable energy sources (RESs) have become increasingly popular for their ability to
generate low-carbon electricity in remote areas without access to traditional power grids. These systems rely on the effective
management of RESs and storage solutions. Designing and sizing these systems can be a complex task, requiring careful consideration
of various parameters such as energy demand, solar irradiance, storage capacity of batteries and State of Charge, power management
of fuel cells, and hydrogen production and storage. This study presents an adaptive power management tool that facilitates the sizing
of energy equipment for standalone low-carbon microgrids. The proposed simulation tool, implemented in Matlab/Simulink, is based
on mathematical models for each energy unit and incorporates a specific power management strategy to determine the optimal size of
each component in the system. The effectiveness of the tool is illustrated through a case study involving a PV-battery-hydrogen energy
system designed to supply electricity to a standalone district. Results show that the developed tool can be a valuable aid for system
designers and planners for creating sustainable and reliable off-grid electrical energy systems, as well as for educational and learning
activities.
Keywords: solar panels, green hydrogen, fuel cell, battery storage, optimal sizing, standalone microgrid
Citation: Pace L, Zouaghi A, Beley M, Haddour N. An adaptive power management tool for sizing a PV-battery-hydrogen off-grid
electrical energy system. Academia Engineering 2023;1. https://doi.org/10.20935/AcadEng6115
1. Introduction
Within the context of climate change, depletion of natural battery and hydrogen storage. However, these articles do not
resources and energy crisis, low-carbon emitting off-grid cope with the sizing of different energy equipment and
electrical energy systems, and smart autonomous microgrids consequently no optimization procedures are applied. Several
have become increasingly popular in recent years [1–3]. The optimization algorithms are compared for the sizing of a PV-
development of such systems is enabled by the continuous battery-hydrogen microgrid in the study by Diab et al. [8].
improvement in the exploitation of renewable energy sources Nevertheless, the proposed sizing methodology is mostly driven
(RESs), such as solar or wind energy, and advancements in the by costs and the obtained results strongly depend on these
power system efficiency [4]. Although RESs show high capability economic constraints [9]. Similar approaches are used in the
in resolving actual environmental issues related to fossil energy notorious existing software such as HOMER Pro [10] or H2RES
exploitation, their intermittency requires efficient storage [11] to design such energy systems in regard to techno-economic
systems to ensure a steady supply of electricity. Previous work aspects [5, 12–14]. However, there are no real guidelines for the
has shown that hybrid storage systems based on batteries and user to set the optimal size of the energy equipment during
green hydrogen systems are the most efficient solutions to satisfy simulations and no obvious indications are given about the
short- and long-term electrical load requirements [5]. energy management process in these software solutions.
In autonomous low-carbon energy microgrids, the management To the best of the authors’ knowledge, there is still a lack of
of combined energy sources and storage systems led to a more methodology, independent of economic constraints and easily
complex design of the installed equipment. Batiyah et al. [6] adaptable, to provide the optimal size of the energy equipment in
present a Model Predictive Control (MPC) scheme based on the case of standalone microgrids comprising RESs and hybrid
mathematical models which is able to manage disturbances and battery-hydrogen storage systems. In this context, this study
storage systems in a standalone microgrid. The studied system aims to present an adaptive power management tool that
includes photovoltaic (PV) panels, wind turbines (WT), and achieves this goal. The main contributions of this work are based
battery storage. In the study by Cecilia et al. [7], the same MPC on an innovative power management strategy using state
method is applied to a power system that includes a hybrid machine principles and an iterative sizing optimization of the
1UnivLyon, Ecole Centrale de Lyon, INSA Lyon, Université Claude Bernard Lyon 1, CNRS, Ampère, UMR5005, 69130 Ecully, France.
*email: [email protected]
energy equipment from a power study conducted hour by hour, 2. Materials and methods
on a yearly basis. Moreover, proven mathematical models [3, 9]
and a detailed specification extraction methodology are used to 2.1. System overview
represent the energy units (sources and storage systems). Fur- The power management tool proposed in this work is designed in
thermore, since users have full access to each part of the system, Matlab/Simulink in order to supply electrical energy to a
the presented tool can be easily modified to integrate other energy standalone green-energy district. The only source of energy
units, as well as costs or environmental constraints. In this work, comes from a photovoltaic (PV) unit composed of several PV
the proposed sizing tool is developed in Matlab/Simulink. It is panels. The rated power of the PV group and the number of
applied to a fictive off-grid district, named New Era thereafter, panels must be determined. The electrical energy is stored in two
that is supplied by 100% of green electricity through a PV- distinct ways:
battery-hydrogen power system.
• Short-time storage by using a battery unit composed of
The study is structured as follows. First, the Section 2 is divided multiple battery cells. The number of cells and the rated
into five sub-sections. The standalone New Era district, to which power of the battery group must be determined.
the developed simulation tool is applied, is presented in Section
2.1. An overview of the studied PV-battery-hydrogen energy • Long-time storage by converting excess electricity into
system is also provided in this part. Section 2.2 presents the hydrogen. The unit consists of an electrolyzer group, a fuel
hourly electrical consumption profiles considered over a year of cell group, and a hydrogen tank. The parameters to be sized
operation. Subsequently, Section 2.3 details the proposed models include the rated power of the electrolyzer and fuel cell
for the different energy units considered in this work. The power group, as well as the required mass of hydrogen to be stored.
management strategy used to satisfy the electrical load at each The hydrogen is considered to be stored in gaseous form.
time step is presented in Section 2.4, while Section 2.5 describes To size the studied electrical energy system, the power flows must
the proposed sizing methodology to get the optimal values of the be known during a complete year of operation depending on the
equipment capacities in order to ensure a whole year operation PV production, the battery group State of Charge (SoC), and the
of the power system. The Section 3 highlights the obtained stored quantity of hydrogen. Therefore, a power management
simulation results for the specific case study. Finally, a discussion strategy based on a state machine principle is proposed in this
about the performance of the proposed sizing tool is engaged, and work. Figure 1 provides an overview of the energy system
the prospects are identified for future work. implemented in Matlab/Simulink.
The fictive New Era district is considered to be located in the city are also available around the district and could be used to place
of Ecully, France. It is composed of several buildings: photovoltaic panels.
Table 1 • Electrical equipment power and operation time • Two seasons are considered: summer (Apr–Sept) and
winter (Oct–Mar)
Power Operation
Equipment Quantity
(kW) time • People are assumed to be at work during the day (8AM–
Office computer 20 0.2 p.u. 8 AM–6 PM 6PM) and at the apartment during the night (7PM–7AM)
Figure 3 • Electrical consumption profiles (a) by building and (b) total consumption of the district during winter and summer.
2.3. Energy units modeling the development of the power management tool and the sizing
This section aims to present in detail the implemented models for strategy, the models proposed here are simplified and several
the considered energy units which include the PV panels group, physical phenomena that could impact the power conversion are
the battery unit, and hydrogen storage. As this work focuses on neglected. For each energy unit, the limitations of the presented
models and some leads to overcome these limitations are given.
2.3.1. Photovoltaic unit irradiance data used in this work are obtained from Global Solar
The PV unit, comprising all the solar panels, aims to evaluate the Atlas [17] and are presented in Figure 4a. In one day, the solar
produced power, PPV , at every simulation time step, which is irradiance increases to reach its higher value at mid-day, then it
decreases. It must be noted that the four seasons are considered,
considered equal to one hour in this work. This parameter can be whereas the same solar irradiance has been considered for spring
adjusted regarding the energy consumption profiles. and fall for simplification.
The proposed model is inspired from the study by Zahboune et Knowing that the reference solar irradiance, Gref , given in
al. [9] but the energy variables are converted in power variables,
considering then that the power remains constant during one datasheet for solar panels is 1,000 W/m², the electrical power
time step. Thus, the input data of the model are solar irradiance, generated by the PV group, PPV , is given by equation 1. The block
G (W/m²), given every hour of the day for each season. The solar diagram of the PV unit is given in Figure 4b.
Figure 4 • PV unit (a) solar irradiance data for each season and (b) block diagram.
From Figure 5, the relation between SoC and Icell can be As previously mentioned, the design of the proposed model is
expressed as equation 4. fully based on the battery cell specifications. However, it presents
some simplifications and some factors are neglected. Apart from
( ) 2
SoC = sign I cell k2 I cell + k3 I cell (4) the hysteresis phenomenon, the temperature and aging effects,
for example, are not considered here. Similar to the PV unit
where k2 = 8.10−5 A−2 and k3 = 0.01 A−1. model, power electronics systems, such as the Battery Manage-
According to equations 2–4, the block diagram of the battery unit ment System (BMS), and their associated efficiency are not taken
is given in Figure 6. into account. Nevertheless, the user can easily modify the battery
unit model to improve its accuracy by considering some physical
parameters and possibly its own characterization data.
Figure 5 • State of charge variation vs. cell current: extracted data (the blue line); polynomial model (red dots).
2.3.3. Hydrogen storage unit group, mH , is obtained using equation 5. By the same
2prod
The proposed hydrogen storage (HS) unit model uses the same
principle, the mass of hydrogen consumed by the fuel cell group,
approach as those presented in Chamandoust et al. [3], as it aims
mH , is given by equation 6.
to evaluate the quantity of stored hydrogen in grams, mH , at 2cons
2
every simulation time step. The hydrogen mass available is mH = EL k4 PEL (5)
evaluated based on the stored quantity at the previous time step, 2prod
the electrical power supplied to the electrolyzer group PEL , and
k4 PFC
the electrical power demanded by the fuel cells group PFC . In the mH = (6)
2cons FC
proposed sizing strategy detailed in Section 2.5, the stored
quantity of hydrogen given by the HS unit model will be used as where EL is the efficiency of the electrolyzer group and FC is
the main optimization criteria.
the efficiency of the fuel cell group. In this work, these efficiency
According to the Gibbs relation [19], 30 g of H2 corresponds to values are taken from El-Emam and Özcan [20] and Felseghi et
an electrical power of 1 kW during one hour (one time step). al. [21] considering the Proton Exchange Membrane (PEM)
Based on this value, the conversion factor k4 = 30 g/kW is electrolyzer and fuel cell groups.
considered. The mass of hydrogen produced by the electrolyzer
The block diagram of the HS unit is given in Figure 7. In the The presented HS unit model, inspired by Chamandoust et al.
model, the power generated by the electrolyzer group, PEL , is [3], does not take into account some factors that could impact HS
considered positive and the power demanded by the fuel cell capabilities such as temperature or pressure effects for example.
group, PFC , is considered negative. Nevertheless, similar to the other energy unit models, the user
can straightforwardly modify the HS unit model to improve its
accuracy by considering some physical parameters and possibly
its own characterization data.
2.4. Power management unit battery group if the SoC is not at its maximal value, here, SoC <
This subsection presents the proposed power management 0.9 (State 1 or State 2); otherwise the electricity will be used to
strategy in order to optimize the sizing of the different energy produce hydrogen using the electrolyzer group (State 3). It
equipment. First, the basic principle of the method is exposed. should be noted that there are two impossible combinations,
Then, different ways to implement the Power Management Unit highlighted in red in Table 2, that would lead to SoC > 0.9 but
(PMU) in the Matlab/Simulink software are given. SoC < 0.2. Depending on the resulting state value (0, 1, 2 or 3),
∆P is either attributed to the battery group, to the electrolyzer
2.4.1. Methodology group, or to the fuel cell group as illustrated in Figure 8 which
gives the block diagram of the proposed PMU.
The PMU aims to evaluate at every time step the difference of
electrical power, P , between the power produced by the PV Table 2 • Proposed management strategy using a state machine
unit, PPV , and the power demanded by the district, Pload , as
State
given by equation 7. ∆P > 0 SoC > 0.2 SoC > 0.9 ∆P=
(sum)
P = PPV − Pload (7) 0 0 0 0 PFC
A second proposed implementation of the PMU is by using a 2.5. System sizing methodology
“Truth Table” block. This can be done by a direct implementation In this subsection, an iterative process to optimize the size of the
of Table 2 as shown in Figure 10. The “Condition Table” will energy equipment is suggested. In contrast to existing software
return actions defined in the “Action Table” according to the state solutions such as HOMER Pro or H2RES which are mainly
value. In comparison with the previous solution, this method driven by economics, the proposed sizing method is only driven
does not require the user to have specific knowledge in Matlab by energy requirements. This could be an attractive methodology
code. As the previously proposed implementation, the simulation especially in the case of standalone microgrids. The sizing results
time is not increased by this method. obtained with the proposed strategy are presented in the Section
Finally, the PMU can be implemented using the “Stateflow” 3. It should be noted that the following optimization strategy is
toolbox as shown in Figure 11 using a “Chart” block. This not unique and shall be compared in terms of performance to a
solution gives a graphic view of the different states and set of other solutions in future work.
transitions as well as an easily adaptive simulation block to the The sizing of the studied PV-battery-hydrogen system depends
user. Furthermore, when increasing the studied system on three parameters that must be optimized:
complexity, the state flow methodology will become the most
convenient implementation. Another advantage in the software • The number of PV panels, nPV
is that the user is able to observe the switching between states
while running the simulation, which could be useful for • The number of battery cells, ncell
debugging. However, the simulation time is notably lengthened
• The maximal quantity of hydrogen to store, mH
in most cases which constitutes a major drawback in the case of 2max
the implementation of the optimal sizing method that is
presented in the next subsection.
Figure 11 • PMU implementation in Matlab/Simulink using state flow with PB: the battery unit power, PEL: the electrolyzer group
power, and PFC: the fuel cell group power.
The iterative process starts by setting an initial value for nPV the end of the year ( mH
2
( 8,760 ) ), leading to a mass of hydrogen
according to the maximal load demand Pload determined variation coefficient, as given by equation 8.
max
previously. Then, the ncell value is calculated according to the mH = mH
2 2
( 8,760 ) − mH2 ( 0 ) (8)
maximal PV production, PPV , to ensure that the maximal
max
If mH = 0, then the energy system is optimized. Else, nPV is
2
admissible cell current I cell is not exceeded. The simulation
max either increased or decreased and the algorithm process is
is launched and the algorithm is completed to compare the stored repeated. The stopping criterion ( mH = 0 ) can be adapted to
hydrogen quantity at the beginning of the year ( mH ( 0 ) ) and at 2
2
the user needs in terms of remaining hydrogen mass at the end
of the year. Figure 12 shows a schematic representation of the
proposed sizing method. In Figure 12, Gmax corresponds to the • Initial SoC: 0.5
ratio of the maximal solar irradiance in W/m² obtained during • Initial stored mass of hydrogen: 1,200 kg
the year and the reference value of 1,000 W/m².
The sizing methodology presented in Figure 12 is then applied.
The convergence of the proposed iterative process is highlighted
3. Results in Figure 13 which gives the mass of hydrogen difference
The simulations are conducted over one year starting by the between the beginning and end of one year, ΔmH , according to
winter season. It has been verified by authors that there is no 2
impact on the sizing results if the user starts the simulation by the number of PV panels, nPV . The optimal number of PV
another season than winter. However, careful consideration panels, leading to ΔmH = 0 , is 2,095 for the studied system.
must be taken with regard to initial values. If the simulation 2
starts with the winter season, because of low global irradiance, an Moreover, it has been observed that the initial value of nPV
important initial stored mass of hydrogen is needed for correct (1,050) is quite far from the optimal value (2,095) for this case
operation of the power system. Thus, in this work, the initial study which suggests that future work shall focus on this initial
values listed below are set: value formulae to improve the convergence time of the algorithm.
Figure 14 shows the yearly evolution of the amount of stored production is important and the battery group is well charged. In
hydrogen. From Figure 14, it can be seen that the stored hy- spring and fall, the stock of hydrogen still increases but with a
drogen quantity quickly decreases in winter because of the high clearly lower slope, which suggests that the balance between
energy required for the storage, and therefore a high hydrogen produced and demanded electricity is more effective during these
consumption by the fuel cells. In contrast, the stored hydrogen seasons. These results are reasonable and expected in the case of
quantity quickly increases during summer since the PV a standalone microgrid supplied by solar panels.
Figure 14 • Simulated stored mass of hydrogen over one year after optimization.
Figure 15 gives the yearly evolution of the power of the battery main results using the proposed sizing which are the rated power
group, the current of a single battery cell, the power of the of the PV unit, PPV , the size of the hydrogen tank, mH ,
max 2max
electrolyzer group, and the power of the fuel cell group. Figure 16
shows the electrical power evolution over a day in each energy unit the rated power of the battery unit, PB , the rated power of the
max
for the winter and summer seasons. These results are obtained for
a maximal PV unit power PPV of 335 kW. electrolyzer group, PEL , the rated power of the fuel cell group,
max
max
PFC , the number of PV panels, nPV , and the number of
The power profiles depend on the season, as highlighted in max
Figures 15 and 16. As expected, there is no power in the battery cells, ncell . The total area occupied by the solar panels is
electrolyzer group in winter because of the lack of PV production. estimated to be 2,305 m².
At the same season, the fuel cell power is high. A contrasting
behavior can be observed in summer where the electrolyzer Table 3 • Main simulation results
group power is high and the fuel cell group power is low. As
PPV mH PB PEL PFC nPV ncell
shown in Figure 16, the daily electrical power in the battery max 2max max max max
group has positive and negative values, meaning that the battery (kW) (kW) (kW) (kW)
(kg)
group is charging and discharging every day during the year. As
shown in Figure 15b, it should also be verified that the battery 335 1,200 250 230 110 2,095 1,085
cell current, I cell , does not exceed the maximal specified
charging or discharging current of 25 A. Table 3 summarizes the
Figure 15 • Simulation results over one year: (a) battery group power, (b) single battery cell current, (c) electrolyzer group power, and
(d) fuel cell group power.
Figure 16 • Daily simulated power profiles (a) in winter and (b) in summer.