Techno-Economic Assessment of Green Hydrogen Production by an Off-Grid Photovoltaic Energy System

: Green hydrogen production is essential to meeting the conference of the parties’ (COP) decarbonization goals; however, this method of producing hydrogen is not as cost-effective as hydrogen production from fossil fuels. This study analyses an off-grid photovoltaic energy system designed to feed a proton-exchange membrane water electrolyzer for hydrogen production to evaluate the optimal electrolyzer size. The system has been analyzed in Baghdad, the capital of Iraq, using experimental meteorological data. The 12 kW p photovoltaic array is positioned at the optimal annual tilt angle for the selected site. The temperature effect on photovoltaic modules is taken into consideration. Several electrolyzers with capacities in the range of 2–14 kW were investigated to assess the efﬁciency and effectiveness of the system. The simulation process was conducted using MATLAB and considering the project life span from 2021 to 2035. The results indicate that various potentially cost-competitive alternatives exist for systems with market combinations resembling renewable hydrogen wholesale. It has been found that the annual energy generated by the analyzed photovoltaic system is 18,892 kWh at 4313 operating hours, and the obtained hydrogen production cost ranges from USD 5.39/kg to USD 3.23/kg. The optimal electrolyzer capacity matches a 12 kW p PV system equal to 8 kW, producing 37.5 kg/year/kW p of hydrogen for USD 3.23/kg.


Introduction
For more than a century, fossil fuels have fueled industry and societal needs [1].Today, various factors stimulate the decrease in fossil fuel consumption [2].The growth in the world population resulted in high energy demand, which led to more use of fossil fuels and fueled a price increase [3].Therefore, it is crucial to focus on renewable sources to mitigate the consequences of climate change [4].
It is projected that, by 2050, hydrogen base system consumption will account for 12% of global energy consumption [5].This increase emphasizes the significance of low-carbon hydrogen since it is estimated that two-thirds of the total hydrogen will be generated from renewable energy resources and one-third from natural gas combined with CCS.To achieve the targets outlined in the Paris Agreement [5], experts worldwide believe that green hydrogen will play an essential role.
Hydrogen energy is recognized as the most promising energy carrier of the 21st century because it can be produced using sustainable renewable energy systems.Sustainable development using hydrogen can be characterized as an energy vector sufficient to meet the diverse demands of multiple sectors, including the industrial, transportation, energy conservation, and domestic sector.Meanwhile, most of the raw materials for producing Energies 2023, 16, 744 2 of 20 hydrogen come from the chemical reformation of existing energy sources.Unlike the production of hydrogen from fossil fuels, hydrogen production by water electrolysis does not create carbon dioxide.However, the sustainable use of water is important since fresh water can be a finite resource [6].It has to be noticed that electrolyzers require highquality fresh water, and most water or seawater still cannot be accepted directly by a typical electrolyzer.Currently, new types of electrolyzers are being investigated using seawater, which is a promising way to produce hydrogen and also alleviates the use of highly demanding fresh water; however, there are still many issues to be solved with that solution.The consumption of water in order to generate hydrogen comes from two main processes: (i) hydrogen production and (ii) the production of the upstream energy carrier.Water electrolysis can consume approximately 9 kg of water per 1 kg of hydrogen.However, including the process of water preparation (for example, demineralization), hydrogen production may require at least two times that, i.e., 18 kg of water per kg of hydrogen.Although most of the cost per kilogram of hydrogen generated by electrolysis is due to the cost of power, it is also significant that the cost per kilogram depends on the amount to which electrolyzers are used [7].Therefore, in this research study, this issue is being investigated to account for the size of the electrolyzer (EL) about the amount of photovoltaic (PV) energy produced.Simoes et al. [8] found that the water from the public tap water system is a good source of water for electrolysis.Low costs, avoidance of complicated permitting processes and low supply risk are parameters that play an essential role.Other possible sources of water (wastewater, seawater) are characterized by high costs of water transport, waste disposal or water treatment.Hydrogen production using water electrolysis is now hampered by several factors, notably among them, being the drawback of high cost.Most of the cost of water-electrolytic hydrogen production comes from investments in fixed assets, power expenses, production, and operating expenses (water consumption, water preparation).Approximately 80% of the overall cost is electricity, indicating that the high energy cost is the primary reason for the high cost of water electrolysis [9].There are two approaches to minimizing the hydrogen production cost by water electrolysis: reducing energy consumption by the electrolysis process and the electricity cost.Consequently, the second kind of approach is the most successful nowadays.However, given the inequitable distribution of new energy sources are disadvantaged [10].The development of solar energy generation for hydrogen production does not relieve the matter of the high cost of water electrolysis since water sourcing dramatically affects the project's total cost and sometimes covers around 10% of the total installed cost of hydrogen projects.Therefore, the design and development of solar hydrogen production facilities must be increased in these regions.

Hydrogen Production from Water
Water is a naturally abundant chemical famous as a substantial source of hydrogen.At Standard Temperature and Pressure (STP), the thermodynamic of a water molecule is approximately 285.83 kJ/mol, and water breakdown by direct heat occurs at very high temperatures (up to 2000 • C).However, it becomes challenging to separate oxygen from hydrogen at this temperature.However, thankfully using a catalyst and ceramic membrane for the decomposition reaction and gas separation water splitting can be a low-temperature process for hydrogen production [11].Figure 1 illustrates the electrolysis of water using a standard electrical source.

Literature Review
Various processes for producing hydrogen, including electroly tions, and thermolysis, are described in the literature.Although the mo friendly method of hydrogen production is to be adopted in the futu technologies based on electricity from renewable energy sources are m lowing the initial stages of the study on the electrolysis technique, se lized this technique to enhance hydrogen production.Electrolysis te alkaline water [12], photovoltaic [13], and proton exchange membran methods for hydrogen production.Acar et al. [15] provided a review study on the photocatalytic p gen.The study evaluated the benefits and drawbacks of several hy technologies, focusing on photocatalytic hydrogen synthesis.Addition ical, and economic indicators are considered when evaluating specific ufacturing techniques and types.Another review article on solar wat ogies has been presented by Chatterjee et al. [16].
Review articles examining models that simulate electrolyzer p specific weather phenomena that occur within a particular electroly highly beneficial to the research community, not only because they p derstanding of the current state of the art but also because they provid variables and valuable guidelines for the creation of new models.Ca lished a review on the proton exchange membrane (PEM) electrolysis a section on modeling PEM water electrolysis.Olivier et al. [18] wrote of low-temperature electrolysis system designs, including alkaline an solutions.They also put the models they looked at into groups based mains they were involved in or how they were modeled numerically.
Gibson and Kelly [19] determined that the efficiency of the PVcould be maximized by synchronizing the PV system's amplitude an

Literature Review
Various processes for producing hydrogen, including electrolysis, chemical reactions, and thermolysis, are described in the literature.Although the most environmentally friendly method of hydrogen production is to be adopted in the future, electrochemical technologies based on electricity from renewable energy sources are more applicable.Following the initial stages of the study on the electrolysis technique, several scientists utilized this technique to enhance hydrogen production.Electrolysis technologies, such as alkaline water [12], photovoltaic [13], and proton exchange membranes [14], are the main methods for hydrogen production.Acar et al. [15] provided a review study on the photocatalytic production of hydrogen.The study evaluated the benefits and drawbacks of several hydrogen production technologies, focusing on photocatalytic hydrogen synthesis.Additionally, social, ecological, and economic indicators are considered when evaluating specific photocatalyst manufacturing techniques and types.Another review article on solar water-splitting technologies has been presented by Chatterjee et al. [16].
Review articles examining models that simulate electrolyzer performance and/or specific weather phenomena that occur within a particular electrolyzer component are highly beneficial to the research community, not only because they provide a clearer understanding of the current state of the art but also because they provide a variety of input variables and valuable guidelines for the creation of new models.Carmo et al. [17] published a review on the proton exchange membrane (PEM) electrolysis of water, including a section on modeling PEM water electrolysis.Olivier et al. [18] wrote a thorough review of low-temperature electrolysis system designs, including alkaline and PEM technology solutions.They also put the models they looked at into groups based on the physical domains they were involved in or how they were modeled numerically.
Gibson and Kelly [19] determined that the efficiency of the PV-electrolyzer system could be maximized by synchronizing the PV system's amplitude and peak power production with the voltage level of the PEM electrolyzers.The results showed that the optimization procedure increased the hydrogen production efficiency to 12 percent for a solar-powered PV/PEM electrolyzer that could produce enough hydrogen for a fuel cell automobile.Clarke et al. [20] investigated the feasibility of directly coupling a photovoltaic system and a PEM electrolyzer for hydrogen production.The results indicated that the judicious matching of the properties of the photovoltaic and electrolyzer under varying solar radiation is crucial for achieving a maximum hydrogen production rate.Bhattacharyya et al. [21] electrolyzed water with yearly hydrogen production of the order of 10 Nm 3 /h.According to their study, an electrolyzer with a maximum power output of around 120 kW is necessary to produce 10 Nm 3 /h of hydrogen.The estimated payback period was 11,6 years based on an economic analysis of the selected site.
Qureshy and Dincer [22] put together an energy system that uses a renewable resource to generate hydrogen and a complete thermodynamic model to analyze the solar-waterhydrogen-power cycle in detail.The presented results demonstrate that the proposed system obtained an energy efficiency of 25.07%.At 115.86 MW, the energy and entropy production output in the photovoltaic panel is the highest.When the solar receiver collects heat at a rate of 1000 MW at 33.53%, it uses the least energy.Beck and [23] illustrate that integrating photovoltaic modules into the system is crucial to optimizing solar-to-hydrogen conversion.The study offers a novel paradigm based on simple transmission concepts to demonstrate that detaching the PV modules from the electrolytic system via energy monitoring could significantly improve the system's efficiency.Decoupled systems could also use the current technology of solar cells and the silicon photovoltaic sector's stability to speed up hydrogen production.Varadhan [24] described a simple and cost-effective strategy focused on photoelectrodes that operationally and spatially disentangle the lightharvesting aspect of the device from the electrolytic cell part, thus eradicating parasitic light absorption, reducing costs, and improving consistency without compromising the efficiency of hydrogen production.A correspondingly developed epitaxial lift-off produced the monolithically integrated electrolytic cell.The results show that the remarkable efficiency and durability attained here are a consequence of the light-harvesting/catalysis decoupled strategy, which simultaneously enhances the optical and electromagnetic properties and produces hydrogen of high quality.Grimm et al. [25] provide a circuit-comparison model for calculating the steady-state effectiveness of photoelectrochemical cells.The model consists of five distinct photoelectrochemical devices based on experimental data.The estimated performance corresponds well with the experimental data for the multiple devices.In addition, the model has been expanded to include the impact of light and tilt angle on the effectiveness of hydrogen production.The developed model was used to compare devices for various locations with varying average light levels and tilt angles.The outcomes indicate that the annual average solar-to-hydrogen conversion rate is much lower than the optimal rate.Astakhov et al. [26] showed that implementing batteries in PV water-splitting electrochemical systems is a suitable alternative to smooth out PV power fluctuations.In particular, the distribution of photovoltaic energy over 24 h reduces the electrochemical cell's power and, consequently, its electrode potential loss.
The authors demonstrated the viability of the unassisted running of the PV, electrochemical, and rechargeable batteries device in a meaningful duty cycle.They investigated how the PV, electrochemical, and batteries system could function at a better solar-tohydrogen efficiency than the similar standard PV, electrochemical system, notwithstanding the losses incurred by the batteries.Furthermore, Hassan et al. [27] compared the cost of hydrogen to determine two different technologies for hydrogen production using the photovoltaic system.The designs of the PV/EL system and the photoelectrochemical system have been compared based on hydrogen production cost and system efficiency.The results demonstrated that the hydrogen cost for the off-grid PV/EL system was determined to be USD 6.22/kg with an efficiency of 10.9%, and for the photoelectrochemical system, the hydrogen cost was USD 8.43/kg with an efficiency of 10%, which was much higher.The research study indicated that photoelectrochemical systems' potential technoeconomic advantages over PV/EL are ambiguous and, in the best-case scenario, modest.Although research into photoelectrochemical cells is still interesting, there is little reason to invest money into developing and scaling up the technology.Another critical study was conducted by Giménez and Bisquert [28], who investigated the economic and technical feasibility of two photoelectrochemical systems and two types of PV/EL systems.The results demonstrate that the photoelectrochemical system has a lower hydrogen cost than the off-grid PV/EL.
It has been found that prices have gone down a lot since it was published, especially for photovoltaic panels.However, the cost estimation of several essential components Energies 2023, 16, 744 5 of 20 of the photoelectrochemical system was based on commercially available photovoltaic components and electrolyzers, which could be significantly different from that of an actual photoelectrochemical system in which both components are combined into a single device.There is a promising idea to combine solar PV and wind that have been investigated if the capacity of the electrolyzer that will be installed is enough to boost hydrogen production.Khouya [29] studied the synthesis of hydrogen using an electrolyzer powered by a solargenerated electric current.The research was carried out using weather information from the Tangier area of Morocco.The results demonstrate that the electrolyzer electricity consumption rates are 64 kWh/kg of solar energy respectively.The efficiency of hydrogen generation production was 62%, and the prices of electricity and hydrogen decreased as the photovoltaic capacity increased.
Hassani et al. [30] presented an energy management technique for a photovoltaic system with battery storage and an electrolyzer for hydrogen production, where each subsystem was developed to determine the most appropriate quantity of hydrogen-supplying components.An energy management system was implemented to control these various sources.Three critical situations were selected to show how improvements to the supervision protect batteries and get a steady power load.Yang et al. [31] investigate a universal technique to estimate the power redistribution and capacity configurations for grid-connected combined hydrogen production, utilizing 100 MW of photovoltaic electrical characterization and power to control the hydrogen system process under various storage configurations.The results showed that three sets of 800 Nm 3 /h electrolyzers and an annual hydrogen output of 7.01 million Nm 3 were the best ways to set up the hydrogen production system using the grid connection method, which can cut CO 2 emissions by 7.72 million tons compared to if it had been produced from fossil fuels.
Abd Elaziz et al. [32] implemented artificial intelligence to estimate the performance of PV/EL systems, including electrolytic hydrogen production.The investigation was carried out using two cooling working fluids (water or air), and a model was developed to estimate the effectiveness of the proposed system.The results showed that the proposed system could produce 4.41 kg of hydrogen per day at a high rate.Kurşun and Okten [33] developed a photovoltaic system for hydrogen production using a proton exchange membrane electrolyzer plant.The results indicated that the photovoltaic system improved energy efficiency, and hydrogen production increased between 0.02 kg/h and 0.30 kg/h at various rates depending on the parameter settings.The system proposed by Nordin and Rahman [34] utilizes extra energy to produce hydrogen, which will then be supplied to local customers.Using an adaptive approach, the authors compare the off-grid photovoltaic system with/without a battery for hydrogen production.The feasibility assessment of the off-grid PV system with a battery was much better in hydrogen production.
Green hydrogen stands at an early stage in most applications and requires policy support to advance from niche to mainstream and be a piece of the energy evolution; once priorities are set, policymakers must address the barriers specific to the sectors where green hydrogen is expected to deploy.Across countries, divergences are emerging as national H2 strategies reveal varying attitudes toward the role of hydrogen in ET (energy transitions).The development of a hydrogen policy is still in its early stages, although there is global interest and support.At present, only 12 countries and the European Union have published "National hydrogen strategies", and a similar number is going to publish such a document in the near future [35].
Policymakers recognize the need to complement the energy transition with clean fuels such as green hydrogen.A large number of studies show the significant potential of hydrogen in global energy systems.Most countries identified green hydrogen as part of their decarbonization strategy, as well as a key element enabling energy security and resiliency.
The global market penetration by hydrogen will depend on several parameters, including technical, economic, infrastructure availability, initiatives, industry, private capital, investment and policy or regulatory decisions.Li et al. [36] assessed using a water electrolyzer fed by photovoltaic systems to produce hydrogen.Different water mass flow rates were used to evaluate the production of heat and electrical energy.Increasing the mass flow rate caused the electrolyzer temperature to drop, which ensured the maximum electrical efficiencies for water consumption by about 33.8% and 8.5%, respectively.Temiz and Javani [37] examined the utilization of a floating photovoltaic system in hydrogen production.Essential documentation for the investigation was obtained from Mumcular Dam in Turkey.The floating photovoltaic system decreased the temperature of the solar panels and improved power production.This system produces most of its electrical energy without needing fossil fuels or a grid connection.In addition, a floating photovoltaic system reduced the evaporation of water in a 3009 m 2 area.Berrada and Laasmi [38] examined the technological and economic effects of producing sustainable hydrogen using solar energy in Morocco.The distribution of public subsidies has also been considered and researched to determine its influence on hydrogen price, energy cost, and CO 2 emission reductions.The observed results indicate that the cost of producing hydrogen ranges between USD 3.49/kg and USD 5.96/kg.The investment site significantly increases due to the green hydrogen and the economic potential of its export.
Akyuz et al. [39] evaluated the intensity of solar radiation as a component of a set of variables that influence the performance of photovoltaic systems.In this investigation, a prototype system was installed in Turkey, and its hydrogen production was evaluated based on annual irradiance measurements.According to this research, one of the parameters estimating the probability distribution of the effectiveness of hydrogen production is the time variable.It was stated that the highest hydrogen production was around 600 and 650 W/m 2 , the total energy efficiency was 8.1%, and the average energy effectiveness of the examined PEM electrolysis system was 60.5% with a current density of 0.48 A/cm 2 .Authors conclude that hydrogen production in the Balikesir area of Turkey is expected to be approx.USD 4.39 per kilogram; however, many developments and price changes have appeared since this research time.According to the projections, 60 kW of power is required to generate 10 Nm 3 /h at 70 • C and 5 bar pressures.Bhattacharyya et al. [21] investigated the production of hydrogen gas under various environmental conditions using a photovoltaic system.It has been found that a different level of solar irradiation significantly impacts hydrogen production.

Objective and Structure
Numerous studies have examined hydrogen production using renewable energy globally; however, there still needs to be an investigation into hydrogen production in Iraq, even though the country is so rich in solar irradiation, and there is no information about the optimal electrolyzer size in reference to photovoltaic system size.The presented studies are carried out to fill a scientific and literature gap caused by a lack of this type of research work.At present, to the authors' knowledge, there is no analysis presenting the potential of generating hydrogen gas using photovoltaic systems combined with an electrolyzer system in Iraq.This study is structured as follows: Section 2 contains the experimental data collected at the investigation locations and utilized for the proposed system.Section 3 describes the mathematical model used to predict PV power based on measured solar irradiance, hydrogen production, and cost.The results indexes acquired in Sections 4 and 5 provide some final observations and conclusions.

Proposed System and Site of Investigation
The system under consideration is presented in Figure 2. The system consists of five primary parts.The first component is the PV array responsible for power generation; the next is AC/DC converter, an electrolyzer, a compressor, and a hydrogen tank.The photovoltaic array with the converter is responsible for controlling the amount of DC power that is transported to the electrolyzer.In addition, it is also responsible for the electric energy to drive the compressor.The water electrolyzer is accountable for separating oxygen and hydrogen from water.
The proposed system is complete with the hydrogen storage tank and compressor units responsible for compressing up to 1000 bar and storing the hydrogen created.Table 1 shows the technical and economic specifications of the proposed energy system.
nergies 2023, 16, x FOR PEER REVIEW The proposed system is complete with the hydrogen storage tank an units responsible for compressing up to 1000 bar and storing the hydrogen 1 shows the technical and economic specifications of the proposed energy s  The proposed hydrogen production system is tested in Baghdad, Iraq, 33.31 N and 44.36 E. The PV array was positioned at the optimum annual ad the simulation procedure was performed at a resolution of one minute.Th lifespan between 2021 and 2035; since the economic evaluation is based on tions, the annual interest rate is 6%.

Experimental Environmental Data
The environmental data (solar irradiance and ambient temperature) ha ured for the selected site at a one-minute resolution by weather station typ the year 2021.Figures 3 and 4 show the daily (for four selected days) and age solar irradiance and ambient temperature.The annual average of solar i recorded at 4.5 kWh/m 2 /day, and the daily average ambient temperature w Table 2 shows the daily solar irradiance and ambient temperature for days through 2021.Among the selected days, the highest solar irradiance temperature were observed on 2 July, which was 7.26 kWh/m 2 , 38.3 °C, res the lowest solar irradiance and ambient temperature were observed on 2 Ja was 1.36 kWh/m 2 , 11.8 °C, respectively.The proposed hydrogen production system is tested in Baghdad, Iraq, at coordinates 33.31 N and 44.36 E. The PV array was positioned at the optimum annual adjustment, and the simulation procedure was performed at a resolution of one minute.The project has a lifespan between 2021 and 2035; since the economic evaluation is based on Iraqi regulations, the annual interest rate is 6%.

Experimental Environmental Data
The environmental data (solar irradiance and ambient temperature) have been measured for the selected site at a one-minute resolution by weather station type (FT0300) for the year 2021.Figures 3 and 4 show the daily (for four selected days) and monthly average solar irradiance and ambient temperature.The annual average of solar irradiance was recorded at 4.5 kWh/m 2 /day, and the daily average ambient temperature was 27.8 • C.
Table 2 shows the daily solar irradiance and ambient temperature for four selected days through 2021.Among the selected days, the highest solar irradiance and ambient temperature were observed on 2 July, which was 7.26 kWh/m 2 , 38.3 • C, respectively, and the lowest solar irradiance and ambient temperature were observed on 2 January, which was 1.36 kWh/m 2 , 11.8 • C, respectively.Figure 4 shows the experimental measurement's monthly average solar irradiance and ambient temperature, the highest during the summer months and the lowest during the winter months.

Model of PV Array
The photovoltaic power output is estimated by the amount of incident solar irradiations and other environmental factors such as ambient temperature and humidity, etc. PV output power can be calculated as [43]: whereas the temperature can be determined using solar irradiance, ambient temperature, and wind speed presented as [44,45]: The fluctuation of PV cell temperatures can be evaluated using [46].
( ) where τα demonstrates the effective absorption transmittance of PV cells.

Model of PV Array
The photovoltaic power output is estimated by the amount of incident solar irradiations and other environmental factors such as ambient temperature and humidity, etc. PV output power can be calculated as [43]: whereas the temperature can be determined using solar irradiance, ambient temperature, and wind speed presented as [44,45]: The fluctuation of PV cell temperatures can be evaluated using [46].
where τα demonstrates the effective absorption transmittance of PV cells.

Model for Electrolyzer
The electrolyzer hydrogen production rate is calculated as [47]: The quantity of electrical energy input required by the electrolyzer can be calculated as [48]:

Model for Compressor and Hydrogen Tank
The power required to compress the hydrogen contained in the hydrogen tank can be calculated as [49]: The predicted pressure within the hydrogen tank can be calculated as follows:

Model for Converter
The PV panel provides DC electricity, but the demand is typically AC.Therefore, the converter/inverter is required to convert DC power to AC power, in addition applied in the power system to regulate the energy flow.The efficiency of the converter can be calculated as [50]:

System Power Flow
The power flow distribution between the proposed system components, which is generated by the photovoltaic array and supplies adequate electricity to the electrolyzer and hydrogen, can be presented as the following equation:

Hydrogen Cost
The cost of hydrogen can be used to calculate the cost of producing one kilogram of hydrogen and may be computed using the following expression [4,51]:

Results and Discussions
Based on the real environmental data and the system presented in Figure 2, represented by the numerical model Equation (1), the simulation set was performed using MATLAB model implemented code at a one-minute precision.The photovoltaic array consisted of 12 modules with a total power of 12 kW p (module specifications presented in Table 1).The array was installed and placed at the optimal annual orientation for the chosen location.(tilt angle = 30 • and azimuth angle = 0 • south facing).The impact of ambient temperature on the energy generated by the photovoltaic array was considered with the power coefficient of 0.26%/ • C. The derating factor was 95%, with the remaining 5% representing energy losses in the wiring and dust.The electrolyzer is available in various capacities (2 kW, 4 kW, 6 kW, 8 kW, 10 kW, 12 kW, and 14 kW) to select the optimal capacity that can be connected to the PV array in order to obtain the highest hydrogen production.The pricing for the proposed system components is based on Iraqi market conditions and an inflation rate of 0.6%.

Power Generation and Energy Production by the Photovoltaic Arrays
Figure 5 shows the daily power for the selected days and the monthly energy produced by the photovoltaic array.The day with the highest solar irradiance is 2 July 2021, and the day with the lowest solar irradiance is 2 January 2021 (see Figure 3).The daily energy generated by the photovoltaic array for four selected days the presented in Table 3.The maximum monthly energy generated by the proposed PV array in July and the minimum in December, with an annual maximum of 18,892 kWh at 4313 operation hours.
consisted of 12 modules with a total power of 12 kWp (module specifications presented in Table 1).The array was installed and placed at the optimal annual orientation for the chosen location.(tilt angle = 30° and azimuth angle = 0° south facing).The impact of ambient temperature on the energy generated by the photovoltaic array was considered with the power coefficient of 0.26%/°C.The derating factor was 95%, with the remaining 5% representing energy losses in the wiring and dust.The electrolyzer is available in various capacities (2 kW, 4 kW, 6 kW, 8 kW, 10 kW, 12 kW, and 14 kW) to select the optimal capacity that can be connected to the PV array in order to obtain the highest hydrogen production.The pricing for the proposed system components is based on Iraqi market conditions and an inflation rate of 0.6%.

Power Generation and Energy Production by the Photovoltaic Arrays
Figure 5 shows the daily power for the selected days and the monthly energy produced by the photovoltaic array.The day with the highest solar irradiance is 2 July 2021, and the day with the lowest solar irradiance is 2 January 2021 (see Figure 3).The daily energy generated by the photovoltaic array for four selected days the presented in Table 3.The maximum monthly energy generated by the proposed PV array in July and the minimum in December, with an annual maximum of 18,892 kWh at 4313 operation hours.Table 3 shows the daily energy produced by the proposed PV array.

Daily Electrolyzer Energy Consumption and Hydrogen Production
The energy is taken by the electrolyzer at various capacities during the selected days presented in Table 4. Depending on the incident solar irradiance, the photovoltaic array begins producing electricity when the sun rises, and its maximum output is possible at midday.The electrolyzer energy consumption is highly dependent on the energy provided by the photovoltaic array and the electrolyzer capacity; with increasing electrolyzer capacity, energy consumption increases.The highest consumption for the electrolyzer capacity was 75.82 kWh on 2 July 2021.(10-14 kW).The daily hydrogen production at various electrolyzer capacities for specified days is shown in Figure 6.The pace of hydrogen production is highly dependent on the power generated by the photovoltaic arrays and the electrolyzer capacity used.When PV power production and electrolyzer capacity expanded, then hydrogen production increased; however, this increase is not linear.
Table 5 shows the daily hydrogen production at several electrolyzer capacities for the selected days.The hydrogen production rate is highly dependent on the power consumed by the electrolyzer, which depends on the power generated by the photovoltaic array.Hydrogen production can be seen when PV power production and electrolyzer capacity increase.The highest production among the selected days was observed on 2 July 2021 and was equal to 1.82 kg at the electrolyzer capacity (10-14 kW).

Monthly Electrolyzer Energy Consumption and Hydrogen Production
The energy consumed by the electrolyzer depends on the amount of energy produced by the solar PV array, which is highest in the summer and lowest in the winter.The monthly energy consumption of the electrolyzer in various capacities is shown in Figure 7.The energy consumption of electrolyzers increased as their capacity increased; July had the highest electrolyzer energy usage, equal to 2230.43 kWh at the 10-14 kW electrolyzer.
The amount of hydrogen produced by an electrolyzer depends on the energy produced by a photovoltaic array.Figure 8 shows the monthly hydrogen production by the electrolyzer at various capacities.The maximum hydrogen production is shown in summer, and in winter, the lowest.The hydrogen production by electrolysis increased as the capacity was increased, the month of June, with 10-14 kW, electrolyzers produced the most hydrogen, approximately 53.21 kg.
Based on daily and monthly statistics, it is difficult to determine the optimum electrolyzer capacity to obtain the highest hydrogen production for a 12 kW p photovoltaic array.At least one year of data is required for such analysis.Based on annual statistics for the analyzed case of a 12 kW p photovoltaic installation, increasing the electrolyzer power over 8 kW does not bring the expected benefits.It unnecessarily increases the cost and size of the device and contributes to a higher demand for primary energy necessary to produce it as well as requiring more rare materials.After exceeding a certain limit, the increase in the amount of hydrogen produced is small or negligibly small, which does not justify increasing its power.

Figure 6.
Daily hydrogen production at various electrolyzer capacities for the selected days.
Table 5 shows the daily hydrogen production at several electrolyzer capacities f selected days.The hydrogen production rate is highly dependent on the power cons by the electrolyzer, which depends on the power generated by the photovoltaic Hydrogen production can be seen when PV power production and electrolyzer cap

Monthly Electrolyzer Energy Consumption and Hydrogen Production
The energy consumed by the electrolyzer depends on the amount of energy produced by the solar PV array, which is highest in the summer and lowest in the winter.The monthly energy consumption of the electrolyzer in various capacities is shown in Figure 7.The energy consumption of electrolyzers increased as their capacity increased; July had the highest electrolyzer energy usage, equal to 2230.43 kWh at the 10-14 kW electrolyzer.The amount of hydrogen produced by an electrolyzer depends on the energy produced by a photovoltaic array.Figure 8 shows the monthly hydrogen production by the electrolyzer at various capacities.The maximum hydrogen production is shown in summer, and in winter, the lowest.The hydrogen production by electrolysis increased as the capacity was increased, the month of June, with 10-14 kW, electrolyzers produced the most hydrogen, approximately 53.21 kg.Based on daily and monthly statistics, it is difficult to determine the optimum electrolyzer capacity to obtain the highest hydrogen production for a 12 kWp photovoltaic array.At least one year of data is required for such analysis.Based on annual statistics for the analyzed case of a 12 kWp photovoltaic installation, increasing the electrolyzer power over 8 kW does not bring the expected benefits.It unnecessarily increases the cost and size of the device and contributes to a higher demand for primary energy necessary to produce it as well as requiring more rare materials.After exceeding a certain limit, the increase in the amount of hydrogen produced is small or negligibly small, which does not justify increasing its power.

Jan
As can be seen in Figure 8, increasing the capacity of the electrolyzer beyond 8 kW brings no benefit for fuel production and should not be justified by a greater potential cofinancing for this type of investment.For this reason, for the implementation of green hydrogen, it is crucial to set not only the right priorities and the right policy in this area but also economically justified regulations.Policymakers should address barriers specific to sectors where green hydrogen is expected to be deployed, but this must be done for the benefit of the environment.

Annual Electrolyzer Energy Consumption and Hydrogen Production
The annual energy consumption of the electrolyzer at several capacities is shown in Figure 9.The capacity of the 10 kW electrolyzer had the highest consumption, at 18,822.98 kWh.As the electrolyzer capacity increased, this value slightly decreased to 18,793.11kWh for the 12 kW electrolyzer and 18,754.80kWh for the 14 kW electrolyzer, which is due to the efficiency drop because the electrolyzer capacity did not match the PV array As can be seen in Figure 8, increasing the capacity of the electrolyzer beyond 8 kW brings no benefit for fuel production and should not be justified by a greater potential co-financing for this type of investment.For this reason, for the implementation of green hydrogen, it is crucial to set not only the right priorities and the right policy in this area but also economically justified regulations.Policymakers should address barriers specific to sectors where green hydrogen is expected to be deployed, but this must be done for the benefit of the environment.

Annual Electrolyzer Energy Consumption and Hydrogen Production
The annual energy consumption of the electrolyzer at several capacities is shown in Figure 9.The capacity of the 10 kW electrolyzer had the highest consumption, at 18,822.98 kWh.As the electrolyzer capacity increased, this value slightly decreased to 18,793.11kWh for the 12 kW electrolyzer and 18,754.80kWh for the 14 kW electrolyzer, which is due to the efficiency drop because the electrolyzer capacity did not match the PV array capacity (it is overestimated).

Annual Hydrogen Production and Cost
The annual hydrogen production by the electrolyzer at various capacities, with production cost, is shown in Figure 10.The 14 kW electrolyzer had the highest production of about 456.68 kg.As the electrolyzer capacity went up, this value went up, but the difference in hydrogen production between the electrolyzer capacities of 10 kW and 14 kW is minimal, approx.1.06 kg/year, which is noticeable because increasing the electrolyzer capacity by more than 10 kW uses the lowest cost.

Annual Hydrogen Production and Cost
The annual hydrogen production by the electrolyzer at various capacities, with production cost, is shown in Figure 10.The 14 kW electrolyzer had the highest production of about 456.68 kg.As the electrolyzer capacity went up, this value went up, but the difference in hydrogen production between the electrolyzer capacities of 10 kW and 14 kW is minimal, approx.1.06 kg/year, which is noticeable because increasing the electrolyzer capacity by more than 10 kW uses the lowest cost.
For this analysis, the cost of hydrogen (COH) is calculated for one kilogram of hydrogen using Equation (10).The economic setting for the system components is presented in Table 1, and the project life span is taken as ten years for the period of (2021-2030).The results as depicted in Figure 10.shows that hydrogen costs vary from USD 5.39/kg to USD 3.23/kg.The lowest hydrogen cost was observed at the 8 kW electrolyzer size (450 kg/year), and this cost increased with increasing electrolyzer capacity.

Annual Hydrogen Production and Cost
The annual hydrogen production by the electrolyzer at various capacities, with production cost, is shown in Figure 10.The 14 kW electrolyzer had the highest production of about 456.68 kg.As the electrolyzer capacity went up, this value went up, but the difference in hydrogen production between the electrolyzer capacities of 10 kW and 14 kW is minimal, approx.1.06 kg/year, which is noticeable because increasing the electrolyzer capacity by more than 10 kW uses the lowest cost.
For this analysis, the cost of hydrogen (COH) is calculated for one kilogram of hydrogen using Equation (10).The economic setting for the system components is presented in Table 1, and the project life span is taken as ten years for the period of (2021-2030).The results as depicted in Figure 10.shows that hydrogen costs vary from USD 5.39/kg to USD 3.23/kg.The lowest hydrogen cost was observed at the 8 kW electrolyzer size (450 kg/year), and this cost increased with increasing electrolyzer capacity.For this analysis, the cost of hydrogen (COH) is calculated for one kilogram of hydrogen using Equation (10).The economic setting for the system components is presented in Table 1, and the project life span is taken as ten years for the period of (2021-2030).The results as depicted in Figure 10 shows that hydrogen costs vary from USD 5.39/kg to USD 3.23/kg.The lowest hydrogen cost was observed at the 8 kW electrolyzer size (450 kg/year), and this cost increased with increasing electrolyzer capacity.
Figure 11 shows the cost of green hydrogen production in USD /kg by location, with the cost of green hydrogen in Iraq in the current study being 45% cheaper than that of the United States [52,53].
The lower price of hydrogen is caused by many factors.It means, among others, efficient use of available devices, extending their working time, and using renewable energy to a greater extent.As research has shown, there is an optimal size of the electrolyzer whose use is the best, which has serious consequences and results in the lowest price of hydrogen produced.This globally means lower unit consumption of valuable and rare minerals for the construction of devices.This also translates into lower specific water consumption resulting from lower demand for primary energy used in the production of equipment and renewable energy used in the production of hydrogen.
Energies 2023, 16, x FOR PEER REVIEW 17 of 21 Figure 11 shows the cost of green hydrogen production in USD /kg by location, with the cost of green hydrogen in Iraq in the current study being 45% cheaper than that of the United States [52,53].The lower price of hydrogen is caused by many factors.It means, among others, efficient use of available devices, extending their working time, and using renewable energy to a greater extent.As research has shown, there is an optimal size of the electrolyzer whose use is the best, which has serious consequences and results in the lowest price of hydrogen produced.This globally means lower unit consumption of valuable and rare minerals for the construction of devices.This also translates into lower specific water consumption resulting from lower demand for primary energy used in the production of equipment and renewable energy used in the production of hydrogen.

Conclusions
It is clear that hydrogen can act as an energy carrier and industrial feedstock in a climate-neutral economy, but hydrogen is not widely available on the Earth and must be produced.Currently, for most applications, the production of hydrogen using renewable energy is at an early stage and still requires political support and funding, both at the stage of basic research and implementation or expansion of the distribution network, to move much faster from the concept and development stage and become an element of the energy transformation.At the same time, research studies are still required in order to reduce the cost of hydrogen production.Some predictions show that by 2050 hydrogen base system consumption will account for as much as 12% of global energy consumption.Recent changes in the energy market may speed up this process.At the current state, it is estimated that two-thirds of total hydrogen will be generated using renewable energy resources.That is a significant change in direction because two decades ago, nuclear power plants and chemical thermocycles were considered the leading sources of hydrogen production.This research study emphasizes the role of hydrogen production and system use in determining the eventual price of supplied hydrogen.It has been determined that a photovoltaic system alone has tremendous potential to produce green hydrogen.
The electrolyzer can be supplied with energy in an ever-independent and cost-effective approach.In many cases, energy can be used for hydrogen production exceeding that of energy that cannot be used for any other load.

Conclusions
It is clear that hydrogen can act as an energy carrier and industrial feedstock in a climate-neutral economy, but hydrogen is not widely available on the Earth and must be produced.Currently, for most applications, the production of hydrogen using renewable energy is at an early stage and still requires political support and funding, both at the stage of basic research and implementation or expansion of the distribution network, to move much faster from the concept and development stage and become an element of the energy transformation.At the same time, research studies are still required in order to reduce the cost of hydrogen production.Some predictions show that by 2050 hydrogen base system consumption will account for as much as 12% of global energy consumption.Recent changes in the energy market may speed up this process.At the current state, it is estimated that two-thirds of total hydrogen will be generated using renewable energy resources.That is a significant change in direction because two decades ago, nuclear power plants and chemical thermocycles were considered the leading sources of hydrogen production.This research study emphasizes the role of hydrogen production and system use in determining the eventual price of supplied hydrogen.It has been determined that a photovoltaic system alone has tremendous potential to produce green hydrogen.
The electrolyzer can be supplied with energy in an ever-independent and cost-effective approach.In many cases, energy can be used for hydrogen production exceeding that of energy that cannot be used for any other load.Furthermore, the system is only available throughout the day: the electrolysis system must be activated at varying periods of the day, and not all applications work at total capacity.The variable nature of the solar resource reduces not only the electrolyzer's rate of consumption but also its output and efficiency.
The use of electrolyzers whose size is adapted to the size of photovoltaic systems is crucial for further increasing hydrogen production while minimizing not only the cost of its production but also the environmental costs associated with its production.A lower unit price of hydrogen generation means not only a system with higher efficiency but also translates into lower unit consumption of mineral resources and water necessary for production.This also means less waste to be processed in the future and further benefits from this.
An optimal off-grid solar photovoltaic system is proposed for hydrogen production.The energy system is modeled and analyzed in MATLAB software at a one-minute resolution using one year of experimental data.The optimal system configuration, i.e., the electrolyzer capacity that matches the 12 kW p PV array, was obtained, minimizing the cost of hydrogen production.The annual energy generated by the specified PV array was 18,892 kWh at 4313 operation hours.
The results show the relevance of hydrogen production and the system utilization factor in determining the total cost of produced hydrogen, and the yearly hydrogen production cost, and energy consumption for the investigated site are as follows:

•
For a 2 kW electrolyzer capacity, the annual energy consumption was 7526.39 kWh, and the annual hydrogen production was 183.27 kg at the cost of USD 5.39/kg.

•
For a 4 kW electrolyzer capacity, the annual energy consumption was 12,917.96kWh, and the annual hydrogen production was 315.12 kg at USD 4.48/kg.

•
For a 6 kW electrolyzer capacity, the annual energy consumption was 16,382.28kWh, and the annual hydrogen production was 400.56 kg at USD 4.02/kg.

•
For an 8 kW electrolyzer capacity, the annual energy consumption was 18,358.13kWh, and the annual hydrogen production was 450.14 kg at USD 3.23/kg.

•
For a 10 kW electrolyzer capacity, the annual energy consumption was 18,822.98kWh, and the annual hydrogen production was 463.33 kg at USD 3.68/kg.

•
For a 12 kW electrolyzer capacity, the annual energy consumption was 18,793.11kWh, and the annual hydrogen production was 464.6 kg at USD 3.72/kg.

•
For a 14 kW electrolyzer capacity, the annual energy consumption was 18,754.8kWh, and the annual hydrogen production was 465.68 kg at USD 3.95/kg.
The results indicate that a few costs competitive alternatives exist for systems with market combinations that closely resemble renewable hydrogen wholesale, tending to result in a hydrogen production cost range of USD 5.39/kg to USD 3.23/kg, with the optimal electrolyzer capacity of 8 kW matching a 12 kW p photovoltaic array that can produce 450 kg/year of hydrogen at the cost of USD 3.23/kg.In many studies, analyses show better solutions than using the same photovoltaic system and electrolyzer sizes.On the one hand, it fully utilizes PV power but simultaneously overestimates the electrolyzer size and increases the cost of hydrogen.It has been found that for the analyzed conditions, it is recommended to use two-thirds of the PV power as a size for the electrolyzer.Hydrogen cost at optimal configuration is much lower in the United States of America, Germany, and Japan.
The study reveals that this solar hydrogen production system is well suited for installation in the central region of Iraq and other regions with comparable climatic conditions, especially those with comparatively high solar energy.
The cost of green hydrogen production depends on reducing energy consumption by the system with electrolyzer and the electricity cost.For this reason, it is crucial to optimize electrolyzer size in reference to photovoltaic system size and to use a location with a large potential for renewable energy (high energy production from PV systems).Consequently, the first and the second kind of approaches should be taken parallel into account.

Figure 1 .
Figure 1.The electrolysis of water with supplied DC power.

Figure 1 .
Figure 1.The electrolysis of water with supplied DC power.

Figure 2 .
Figure 2. Schematic of the proposed system to produce hydrogen using solar energ

Figure 2 .
Figure 2. Schematic of the proposed system to produce hydrogen using solar energy.

Figure 3 .
Figure 3. Daily solar irradiance and ambient temperature for four selected days through 2021.

Figure 4 .
Figure 4. Monthly average experimental solar irradiance and ambient temperature.

Figure 4 .
Figure 4. Monthly average experimental solar irradiance and ambient temperature.

Figure 7 .
Figure 7. Monthly energy consumption by the electrolyzer at various capacities.

Figure 7 . 21 Figure 8 .
Figure 7. Monthly energy consumption by the electrolyzer at various capacities.

Figure 8 .
Figure 8. Monthly hydrogen production by an electrolyzer at several capacities.

Energies 2023 , 21 Figure 9 .
Figure 9. Annual energy consumption by the electrolyzer at various capacities.

Figure 10 .
Figure10.Annual hydrogen production by an electrolyzer and hydrogen costs at several capacities.

Figure 9 .
Figure 9. Annual energy consumption by the electrolyzer at various capacities.

Figure 9 .
Figure 9. Annual energy consumption by the electrolyzer at various capacities.

Figure 10 .
Figure 10.Annual hydrogen production by an electrolyzer and hydrogen costs at several capacities.

Figure 10 .
Figure 10.Annual hydrogen production by an electrolyzer and hydrogen costs at several capacities.

Figure 11 .
Figure 11.Hydrogen cost compared with other countries.

Figure 11 .
Figure 11.Hydrogen cost compared with other countries.
T A Ambient temperature ( • C) T A,NOCT Temperature at which NOCT (25 • C) T C Temperature of the PV ( • C) T C,NOCT Cell temperature at which NOCT T htci Hydrogen tank compressor inlet temperature Ts Temperature of the PV under standard test conditions (25 • C) U L Coefficient of heat transfer to the surrounding V h tan K Volume of hydrogen tank Y PV Nominal capacity of PV α P Temperature coefficient of power (%/ • C)

Table 1 .
The technical and economic specifications.

Table 1 .
The technical and economic specifications.

Table 2 .
Daily average solar irradiance and ambient temperature from experimental measurement for four selected days through 2021.
nergies 2023, 16, x FOR PEER REVIEW Figure 3. Daily solar irradiance and ambient temperature for four selected days through

Table 2 .
Daily average solar irradiance and ambient temperature from experimental me for four selected days through 2021.

Table 3 .
Daily energy generated by the PV array for the selected days.

Table 4 .
Daily electrolyzer energy consumption (kWh) at several capacities for selected days.

Table 5 .
Daily hydrogen production (kg) by an electrolyzer at several capacities for selected days.