Introduction

In the relentless pursuit of sustainable and renewable energy sources, unlocking the untapped potential of wind power has emerged as a beacon of promise. This quest has led to the exploration of integrating wind power into hydrogen production, particularly in coastal regions blessed with abundant winds. This paper presents a comprehensive technical analysis that delves into the harnessing of untapped wind power for sustainable hydrogen energy production in three Moroccan cities—Tetouan, Essaouira, and Tangier. This synergistic approach not only addresses the energy challenges of these coastal regions but also aligns with broader environmental preservation goals and the global transition towards carbon neutrality. Coastal regions, characterized by their consistent and high-speed winds, offer a unique opportunity for sustainable energy generation. Tetouan, Essaouira, and Tangier, situated along the Moroccan coastline, embody such regions with significant untapped wind potential. Building upon previous research on wind power in coastal areas, studies conducted globally, such as in the North Sea and the Mediterranean, have successfully demonstrated the viability of harnessing wind energy for electricity generation and other applications. A groundbreaking study by Onea et al. (2016) demonstrated the effective incorporation of wind power by assessing the wind potential in the proximity of the Mediterranean Sea to ascertain the feasibility of implementing offshore wind farms along coastal areas to provide a reliable source of electricity. This study serves as a guiding light for the exploration of untapped wind power in Moroccan coastal cities. The focus on hydrogen production in this analysis arises from its potential to reshape the energy landscape. Hydrogen, a versatile and clean energy carrier, can be stored and transported for various applications. By utilizing untapped wind power for hydrogen production, these coastal cities can establish a reliable and sustainable energy source while decoupling energy production from carbon-intensive processes. Recent advancements in hydrogen production, such as electrolysis powered by renewable energy (conducted by Adeli et al. 2024), have paved the way for green hydrogen production. Countries like Germany and Japan (Jensterle et al. 2019) have invested significantly in green hydrogen as part of their climate goals, offering a blueprint for the exploration in Tetouan, Essaouira, and Tangier. This technical analysis aims to evaluate the feasibility and potential benefits of integrating untapped wind power into hydrogen production in the Moroccan coastal cities. Specific objectives include assessing the wind resource potential, identifying optimal locations for wind farms, and analyzing the technical viability of coupling wind power with hydrogen production technologies. The exploration of untapped wind power for sustainable hydrogen energy production in Tetouan, Essaouira, and Tangier holds immense promise for addressing the energy needs of these coastal regions. By drawing inspiration from successful precedents and leveraging the latest advancements in wind power and hydrogen technologies, this analysis contributes valuable insights toward the development of a cleaner and more sustainable energy future for Morocco and beyond.

Green hydrogen production system

Study area description

This section offers a comprehensive view of our chosen study area and elucidates the reasoning behind the selection of specific Moroccan cities as the main subjects of our research. We have meticulously selected Tangier, Tetouan, and Essaouira, as shown in Fig. 1, due to their strategic importance in the arenas of renewable energy production and environmental sustainability, with a distinct emphasis on their potential for substantial hydrogen generation. Tangier, situated in the northern region of Morocco, has a prominent status as a crucial port city. Its geographical location along the Mediterranean coast presents unique wind patterns, making it a promising candidate for the utilisation of wind power in sustainable hydrogen production. Tetouan, located close proximity to Tangier, shares the advantage of coastal wind patterns and exhibits notable potential for the advancement of renewable energy initiatives. Its geographic location aligns seamlessly with our research objectives, further enriching the diversity of regions under our investigative lens. Essaouira, located on the Atlantic coast of Morocco, is well suited to receiving consistent and robust wind resources, designating it as another strategically significant city for our research. The prevailing wind patterns in Essaouira lay a robust foundation for our exploration into the feasibility of wind-powered hydrogen production. The spatial distribution of these selected cities is visually represented in Fig. 1, providing an essential geographical context for our study.

Fig. 1
figure 1

Map of Morocco with an emphasis on the selected cities for study (Google Maps 2023)

Through our focused examination of Tangier, Tetouan, and Essaouira, we endeavor to delve into the intricacies of wind patterns, the technical aspect of wind-to-hydrogen systems, and the overarching potential for harnessing wind energy to generate hydrogen. These cities, marked by their geographical diversity and strategic importance, play a pivotal role in our quest to unravel sustainable and environmentally friendly energy solutions within Moroccan urban landscapes.

Figure 2 describes our proposed setup, which integrates renewable energy generation with hydrogen production and storage, creating a sustainable energy system that efficiently uses wind power. We now present a comprehensive overview of this innovative system. At its core, a wind turbine harnesses the kinetic energy of the wind and converts it into mechanical power. This mechanical energy is then transformed into electrical energy through an attached generator. To make the electricity generated by the wind turbine suitable for hydrogen production, it must be converted from alternating current (AC) to direct current (DC). This conversion is achieved through an AC-to-DC conditioner or rectifier. The conditioner ensures a stable and consistent DC power supply for the subsequent hydrogen production process. Water plays a pivotal role in the hydrogen production process via electrolysis. A water tank is employed to store a supply of clean water, usually deionized or demineralized, which is essential for the electrolysis process. This stored water is fed into the electrolyzer, where it undergoes a chemical reaction to separate it into hydrogen and oxygen. The heart of the system is the proton exchange membrane (PEM) electrolyzer. This advanced device employs an electrolyte membrane to split water molecules into hydrogen and oxygen gas. The DC power from the conditioner is applied to the electrolyzer, driving the water-splitting process. Hydrogen gas is produced at the cathode, while oxygen gas is released at the anode. PEM technology stands out for its high efficiency and is particularly well suited for on-site hydrogen generation. The hydrogen gas produced by the electrolyzer is collected and safely stored in a hydrogen tank. These tanks are specifically designed to contain and store hydrogen gas until it is required for various applications. The stored hydrogen can be utilized as a clean fuel source for hydrogen fuel cells, for various industrial processes, or for other applications. In summary, this integrated system combines the advantages of renewable wind energy generation with hydrogen production and storage. It offers a clean and sustainable approach to electricity generation and hydrogen production for diverse applications.

Fig. 2
figure 2

Scheme of green hydrogen production using wind-based renewable resources (Engel 2021)

A mathematical modeling approach

In this intriguing segment, we discuss the foundational mathematics that dictate the effectiveness, dependability, and overall functionality of our eco-friendly hydrogen production system. Through the creation of a mathematical framework, our goal is to unravel the intricate relationships between renewable energy sources and hydrogen production methods.

  • Model wind turbine

In our existing hybrid system, we make use of seven Eno 114 horizontal-axis wind turbines (Eno Energy Systems 2024), as illustrated in Fig. 3 and outlined in Table 1. These wind turbines play a crucial function in converting the kinetic energy of the wind into electrical power. To estimate the electrical power produced by these turbines, we can apply the following fundamental equations (we suppose that the wind efficiency equals 92%):

$$ P_{{{\text{WT}}}} = 0 \to {\text{for}}\;V < V_{{\text{cut-in}}} \;{\text{and}}\;V > V_{{\text{cut-out}}} $$
(1)
$$ P_{{{\text{WT}}}} = P_{{{\text{rated}}}} \times \eta_{{{\text{WT}}}} \to {\text{for}}\;V_{{{\text{rated}}}} { < }V \le V_{{\text{cut-out}}} $$
(2)
$$ P_{{{\text{WT}}}} = {\text{ }}\left( {P_{{{\text{rated}}}} \times {\text{ }}\frac{{V^{3} - V_{{{\text{cut - in}}}}^{3} }}{{V_{{{\text{Rated}}}}^{3} - V_{{{\text{cut - in}}}}^{3} }}} \right){\text{ }} \times \eta _{{{\text{WT}}}} \to {\text{for}}\;V_{{{\text{cut - in}}}} < V \le V_{{{\text{rated}}}} . $$
(3)
Fig. 3
figure 3

Wind roses of the wind speeds at three cities (Tangier, Tetouan, and Essaouira)

Table 1 Characteristics of an Eno 114 wind turbine (Eno Energy Systems 2024)

In our current hybrid setup, the Eno 114 wind turbines are engineered for the conversion of wind kinetic energy into electrical power. This conversion process is made possible by the turbine's rated power (Prated), denoting its maximum electrical output capacity. The turbine initiates power generation once the wind speed exceeds the cut-in speed (Vcut-in) and ceases operation to protect against damage when the wind speed exceeds the cut-out speed (Vcut-out). At the rated speed (Vrated), the turbine achieves its peak efficiency, ensuring optimal energy transformation. The efficiency (ηWT) further guarantees that a significant proportion of the kinetic energy is efficiently converted into electrical power. The key variables at play in this process include ηWT, AWT, NWT, Prated in kW, V in m/s, Vcut-in and Vcut- out.

Within the current system, the Eno 114 horizontal axis wind turbines possess the capacity to produce electrical power of up to 4000 kW.

  • Model power conditioner

Within this hybrid system, the pivotal role of orchestrating the integration of diverse energy sources falls to the power conditioner unit. The need for such a unit arises because wind turbines generate alternating current (AC), whereas most devices require direct current (DC) to operate effectively. To surmount this challenge, the system incorporates a power conditioner comprising two essential power converters: one exclusively dedicated to the conversion of AC to DC (AC/DC) and the other meticulously designed for the conversion of DC to DC (DC/DC). This configuration is visually represented in Fig. 1. In this context, the electrical power produced by the wind turbine is guided through an AC/DC rectifier, establishing a connection to the DC bus. These converters are interconnected via the DC bus, which delivers the required current to the electrolyzer. Additionally, the power conditioner unit performs the indispensable role of supplying the essential power to the compressor. It is noteworthy that the efficiency of all these converters consistently maintains a presumed and constant level of 95% (Nasser et al. 2022). The fundamental principle governing the power conditioner model can be succinctly encapsulated by the following equation:

$${P}_{{\text{EZ}}}=\left[{P}_{{\text{WT}}}\times {\eta }_{\frac{{\text{AC}}}{{\text{DC}}}}\right].$$
(4)
  • Electrolyzer model (PEM)

The generation of hydrogen using electricity from wind power systems relies on the process of water electrolysis. This involves the integration of renewable energy systems with an electrolyzer. The appeal of this combination lies in the fact that wind technologies inherently provide the necessary DC for the electrolyzer to operate, eliminating the need for an AC/DC converter. Although various electrolyzer technologies are available, PEM and alkaline electrolyzers are the most well established and commonly utilized in commercial applications. For the purposes of this study, we have chosen PEM technology to drive the water electrolysis process. In PEM electrolyzers, an acidic polymer membrane acts as the electrolyte, in which hydrogen is separated from oxygen in water under the influence of an electric current. This process involves the use of a negatively charged cathode and a positively charged anode. Additionally, PEM electrolyzers offer extended operational lifetimes, high efficiency, a wide operational range, and rapid dynamic response times. These attributes make them well suited to accommodating fluctuations in electricity production, a common occurrence with intermittent renewable energy sources like wind technologies. It is important to emphasize that producing 1 kg of hydrogen through electrolysis requires 52.5 kWh of energy, with an associated efficiency rate of 75%. This efficiency encompasses all the energy requirements of the electrolysis process, including energy losses, the electrolysis cell stack, and any additional energy demands as outlined in the literature (Touili et al. 2022).

$$m=\frac{{P}_{{\text{EZ}}}\times \eta }{{{\text{HHV}}}_{{\text{H}}2}}.$$
(5)

Within this framework, the variable m represents the amount of hydrogen produced, expressed in kilograms. PEZ signifies the quantity of electricity generated, measured in kilowatt hours (kWh). HHVH2 is an abbreviation for the higher heating value of hydrogen, set at 39.4 kWh per kilogram. Lastly, \(\eta \) denotes the efficiency of the electrolyzer, which is assumed to be 75%.

Computational simulation and validation

We present the results of our simulation of the climatic conditions in four distinct Moroccan cities with the aim of generating compressed hydrogen using wind turbines. These outcomes are displayed on an hourly basis and cover the span of 1 year. The data collection process for our study was carefully designed to establish a strong foundation for analyzing crucial parameters; specifically, the total wind speed, as depicted in Fig. 3 and Table 2. These parameters play a vital role in assessing the wind energy potential in the selected regions. Our data-gathering approach was methodical and relied on reputable sources, including NASA's Prediction of Worldwide Energy Resources (POWER; POWER Project Team 2023), known for its reliability and precision in providing precise monthly wind-speed data. This comprehensive approach spanned an entire year, totaling 8760 h. This long duration allowed us to delve deep into the examination of seasonal variations and long-term trends in wind speed. The result of this meticulous data collection and analysis ensures the reliability and significance of our findings. By amalgamating data from these respected sources and adopting an extended time frame, our research is fortified with a robust and comprehensive dataset. This, in turn, enables a thorough assessment of the wind energy potential in the chosen regions. Figure 3 illustrates the prevailing wind directions in Essaouira, Tetouan, and Tangier, with the north–north–east, east–northeast, and east sectors being predominant in the three cities, accounting for 67%, 36%, and 46% of the wind, respectively. South winds are rare across all locations. Examining wind speed variations along these three directions, the longest spokes, provides valuable insights:

  • Tangier: winds ranging from 2 to 4 m/s occur 6.5% of the time, followed by 4–6 m/s (10%), and 6–8 m/s (10%). Higher speeds become progressively less frequent.

  • Tetouan: similar to Tangier, wind speeds gradually increase in frequency, with 2–4 m/s occurring 7% of the time and 4–6 m/s occurring 6% of the time.

  • Essaouira: the occurrence rate of 4–6 m/s is 8%, that of 6–8 m/s is 12%, and that of 8–10 m/s is 10.5%. Higher speeds are even less common than in Tangier and Tetouan.

Table 2 Location data (POWER Project Team 2023)

This analysis underscores the significant potential for renewable energy production in these regions, as the consistent speeds offer a reliable and promising resource.

  • Monthly power and hydrogen output production

In Fig. 4, along with Table 3, we provide an extensive examination of the seasonal patterns of power generation from diverse renewable energy sources in three significant Moroccan urban centers: Tangier, Tetouan and Essaouira. These visual representations grant us valuable insights into the fluctuations and long-term trends in the production of wind energy throughout the year. Figure 4 offers a visual depiction of the data, while Table 3 delivers a comprehensive overview of the main discoveries. We now explore the observations and the significance of these vital datasets.

Fig. 4
figure 4

Seasonal power and hydrogen generation. a Wind power output per month in three cities (Tangier, Tetouan, Essaouira). b Hydrogen output per month in three cities (Tangier, Tetouan, Essaouira). c Water consumption (in hydrogen production units per month) in three cities (Tangier, Tetouan, Essaouira)

Table 3 Seasonal energy production summary

Within the context of the energy and resource dynamics in three Moroccan cities, namely Tangier, Tetouan, and Essaouira, the table offers a thorough summary of both the overall power generation and the production of hydrogen. Tangier boasts a substantial wind power output of 9.96 GW throughout the year, which is derived from wind turbines, and utilizes this renewable energy source to produce 180.41 tonnes of hydrogen (Table 4). In Tetouan, a commendable 2.93 GW of wind power is generated annually, contributing to the region's renewable energy production and resulting in the production of 53 tonnes of hydrogen. Essaouira is a standout in wind energy production, with a remarkable yearly output of 19.78 GW. This clean and sustainable energy source is harnessed to produce a substantial 358 tonnes of hydrogen, making a significant contribution to the region's energy landscape.

Table 4 System production analysis

Conclusion

In conclusion, our in-depth exploration of the integration of untapped wind power into hydrogen production in Moroccan coastal cities has unveiled a promising trajectory toward sustainable energy solutions. Through meticulous analysis of seasonal power-generation patterns that emphasizes wind energy sources and by providing a comprehensive overview of the total power output and hydrogen production, this research underscores the pivotal role of renewable energy in shaping Morocco's energy landscape. The findings highlight the dynamic nature of wind power output, showcasing the adaptability of coastal regions to harness abundant wind resources for hydrogen production. Notably, Essaouira emerges as a leader in both wind power generation and hydrogen production, making significant contributions to the region's renewable energy portfolio. The analysis of the data collected hourly for a year offers not only valuable insights into the fluctuations and trends in wind energy production but also a robust foundation for informed decision-making and policy development. The research, characterized by meticulous data collection from reliable sources and an extended time frame for analysis, ensures the reliability and relevance of the findings. Furthermore, this research acts as a valuable resource for stakeholders, equipping them with essential information for a detailed evaluation of wind energy potential in the selected regions. We conclude that this study significantly contributes to our understanding of renewable energy dynamics in Moroccan cities, with a specific emphasis on the importance of wind power. It serves as a cornerstone for informed energy planning and policy development, with the potential to drive the adoption of sustainable and environmentally friendly energy practices in the future. The insights garnered not only benefit Morocco but also contribute to the broader global effort towards a cleaner and more sustainable energy future. Additionally, the pivotal importance of hydrogen production in Morocco's pursuit of a sustainable and resilient energy future cannot be overstated. As a nation committed to harnessing renewable energy, Morocco sees hydrogen production as a key enabler for storing and utilizing surplus clean energy. This initiative aligns seamlessly with global efforts to transition towards green hydrogen derived from renewable sources as a clean alternative to conventional fossil-fuel-based hydrogen. The integration of hydrogen production plays a crucial role in diversifying Morocco's energy mix, reducing its dependence on fossil fuels and bolstering the nation's resilience to energy market fluctuations. Moreover, it contributes significantly to the overarching goal of decarbonizing the energy sector, thereby mitigating the environmental impact and addressing climate change concerns. Beyond environmental benefits, hydrogen production in Morocco holds economic promise by creating new job opportunities in the renewable energy and hydrogen technology sectors. It also positions the country on the global stage as a potential player in the emerging hydrogen economy, fostering international collaborations and technological advancements. In essence, the importance of hydrogen production in Morocco extends beyond immediate energy needs. It serves as a catalyst for sustainable development, economic growth, and global participation in shaping a cleaner and more resilient energy landscape.