Next Article in Journal
Long-Term Exposure in Liquid Hydrogen: Mechanical Properties and Microstructural Investigation of 304 Austenitic Steel After 30 Years of Service
Previous Article in Journal
Hydrogen Isotope Permeation, Retention, and Embrittlement Response of 310S Austenitic Stainless Steel Under High-Temperature Gaseous Deuterium Charging
Previous Article in Special Issue
Combustion Characteristics of Hydrogen-Enriched Natural Gas with a Focus on Residential Appliances: A Review
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Dynamic Control of a PV/T Electrolysis System for Hydrogen and Hot-Water Production: Multi-Regional Analysis with Machine Learning

1
Laboratory for the Study of Thermal & Energy Systems, National Engineering School of Monastir, Street Ibn El Jazzar, Monastir 5019, Tunisia
2
Higher Institute of Applied Sciences and Technology of Sousse, University of Sousse, Street Tahar Ben Achour, Sousse 4003, Tunisia
*
Author to whom correspondence should be addressed.
Hydrogen 2026, 7(2), 68; https://doi.org/10.3390/hydrogen7020068 (registering DOI)
Submission received: 17 April 2026 / Revised: 8 May 2026 / Accepted: 11 May 2026 / Published: 13 May 2026
(This article belongs to the Special Issue Hydrogen for a Clean Energy Future)

Abstract

This study explores a photovoltaic/thermal (PV/T)-based electrolysis system designed for dual production of hydrogen fuel and domestic hot water (DHW), providing a sustainable energy solution amid rising global emissions. A dynamic rule-based control mechanism with hysteresis thresholds on hydrogen-storage state of charge (SoC) is implemented to balance electrolyzer operation with intermittent solar availability, maintaining PV/T power outputs while preventing storage overfilling and minimizing start–stop cycling. The system is assessed across 27 geographically diverse cities spanning a wide range of solar irradiation and energy price structures. Annual hydrogen yields range from 20 kg/yr in high-latitude locations (Helsinki, Stockholm) to 33.5 kg/yr in high-irradiation regions (Riyadh, Abu Dhabi), while the levelized cost of hydrogen (LCOH) spans from 6.47 USD/kg (Riyadh) to 22.86 USD/kg (Helsinki). Economically, the system achieves its strongest performance in solar-rich, high-energy-cost environments: Rome records the highest net annual cash flow (858.9 USD/yr) and shortest payback period (2.47 years), followed by Davos, Madrid, Brasília, and Canberra. In contrast, locations with subsidized energy tariffs—such as Algiers, Kyiv, and Tehran—yield low or negative net cash flows, rendering the system economically unviable without policy support. Environmental analysis reveals annual CO2 avoidance ranging from 0.33 ton/yr (Stockholm) to 2.97 ton/yr (Riyadh), with a global mean of 1.095 ton/yr and a combined total of approximately 29.6 tons/yr across all examined sites. A machine learning model is developed to generalize performance predictions across unseen locations, achieving leave-one-out (LOO) R2 values of 0.953 (net cash flow), 0.935 (LCOH), and 0.947 (LCO-DHW), with mean absolute errors below ±1 USD/kg and ±0.03 USD/kWh. The findings confirm that, under fixed capital cost assumptions, local electricity price and solar irradiation are the dominant drivers of economic viability, while grid carbon intensity and solar resource jointly govern environmental performance, with markets offering irradiation above 1500 kWh/m2·yr and electricity prices exceeding 0.2 USD/kWh representing the most promising deployment targets.

1. Introduction

The global imperative to decarbonize energy systems has positioned hydrogen as a pivotal energy carrier, particularly when derived from renewable sources. Global clean hydrogen demand is projected to reach 125–585 million tons per annum by 2050, with the IEA estimating that 38 Mt of low-emission hydrogen could be produced by 2030 if planned projects are completed [1]. While fossil fuel-based production methods such as steam methane reforming remain dominant, cleaner blue and green hydrogen alternatives are gaining traction across hard-to-abate sectors, including heavy-duty transportation and steel manufacturing. Policy frameworks such as the European Green Deal and Horizon Europe are accelerating this transition through public–private investment in the full hydrogen value chain.
Renewable-based hydrogen production has attracted considerable research attention. Comparative assessments of solar PV, geothermal, and biomass pathways reveal biomass gasification as the most efficient, achieving energy and exergy efficiencies of 53.6% and 49.8%, respectively, followed by solar PV at 17.45%/16.95% and geothermal at 10.4%/10.2% [2]. Comprehensive reviews of green, blue, and purple hydrogen processes further highlight trade-offs in cost, emissions, and infrastructure requirements [3,4], while solar-integrated plasmolysis has been proposed as an optimal zero-emission production pathway [5]. Electrolyzer performance under fluctuating renewable inputs remains a critical research gap, necessitating standardized degradation protocols and optimized grid-integration strategies [6]. Hybrid renewable systems combining solar, wind, and storage have demonstrated strong techno-economic performance. Studies report CO2-minimizing configurations integrating solar, wind, diesel backup, and hydrogen storage for residential applications [7], system efficiencies reaching 57.5% with emission-related healthcare savings of approximately €1.1 M over 20 years [8], and levelized costs of hydrogen (LCOH) ranging from 4.54 to 7.48 USD/kg across varying sites [9].
Tunisia presents a compelling case for green hydrogen development, targeting 8.3 Mt of annual production by 2050, largely for European export, supported by partnerships with the EU and Germany’s GIZ [10,11]. North Africa’s strategic position and renewable resource endowment are increasingly recognized as assets for global hydrogen supply chains [12], with Tunisia’s most viable solar hydrogen production sites identified in its southeastern and southwestern regions, spanning 1591 km2 [13]. Techno-economic analyses of Tunisian projects report an LCOH of 3.32 €/kg for photovoltaic hydrogen refueling stations with an 8-year payback period [14], and 2.25 €/kg for PV-integrated agricultural hydrogen systems [15], underscoring the country’s potential as a competitive green hydrogen producer and exporter.
PV/T systems, also known as hybrid photovoltaic solar collectors, are systems that use solar radiation to produce both thermal and electrical energy. These systems combine solar cells, which use light from the sun to create electricity, with a solar thermal collector, which eliminates waste heat from the photovoltaic module and collects any remaining energy. Hybrid photovoltaic thermal (PVT) collectors are an emerging technology that combines photovoltaic and solar thermal systems in a single solar collector, producing heat and electricity simultaneously. Numerous investigations conducted in recent years [16,17] have demonstrated the feasibility of these systems. Gül and Akyüz [18] analyzed the electrical, electrochemical, and thermodynamic performance of a PV/T electrolyzer system, validating experimental results with a numerical model. The system produced 556.8 kWh of electrical energy and 1912 kWh of thermal energy annually, yielding 4.49 kg of hydrogen compared to 3.96 kg from a PV-only system, with production rising to 4.59 kg at 65 °C. Hourly energy efficiencies ranged between 12 and 13.8% (electrical), 36.1 and 45.2% (thermal), and 49.1 and 58.4% (total), while exergy efficiency varied from 13.8 to 14.32%. The research conducted by Conti et al. [19] gave a comprehensive analysis to determine optimal equipment sizing and design aimed at minimizing total costs and non-renewable primary energy consumption throughout the system’s lifespan. Their findings indicated that PV/T technology can lower non-renewable primary energy consumption below the nearly zero-energy buildings threshold of 15 kWh/(m2·yr) and reduce overall costs by up to 8% compared to non-solar alternatives.
In renewable energy systems integrating hydrogen production [20,21], managing variable power output while ensuring safe and optimal operation of hydrogen production and storage subsystems remains a central challenge. PV/T systems generate both electricity and thermal energy; however, their electrical output is inherently intermittent, fluctuating with solar irradiance, weather conditions, and diurnal cycles. Such variability complicates consistent electrolyzer operation, given the minimum power threshold required for efficient hydrogen generation. A dedicated control strategy is therefore essential to regulate electrolyzer operation in accordance with available PV/T power output and hydrogen storage state of charge (SoC), ensuring renewable energy utilization when sufficient power is available, minimizing unnecessary shutdowns and restarts during low-irradiance periods, and preventing overproduction when storage capacity is reached.
It is important to mention that while the optimization of photovoltaic (PV) generation has been extensively studied, the control and optimization of PV/T systems based on hydrogen production remain relatively underexplored. This gap presents an opportunity to enhance the efficiency of hydrogen generation by integrating thermal energy capture with photovoltaic technology. Recent studies, such as those by Usman et al. [22], highlight innovative approaches like the single inductor multiple output (SIMO) DC-DC boost converter, which allows for independent power control across multiple outputs. Similarly, Ahessab et al. [23] developed a hybrid maximum power point tracking (MPPT) strategy combining intelligent artificial neural networks (IANNs) and particle swarm optimization (PSO) to address shading issues in PV systems. Additionally, Hu et al. [24] designed a dynamic compensation strategy for DC microgrids to improve voltage stability. These studies highlight advancements in PV system control, yet the optimization of PV/T systems based on hydrogen production remains underexplored, presenting an opportunity for further research in this area. According to Kong [25], aligning investments in green energy with carbon neutrality targets plays a vital role in accelerating the adoption of emerging energy technologies. This perspective underscores the need to assess not only the technical capabilities of PV/T systems but also their financial and ecological impacts. In parallel, Zhang et al. [26] investigated the influence of climate change on solar power generation, underscoring the necessity of incorporating regional climate patterns into renewable energy assessments. Their findings reveal that fluctuations in solar radiation directly affect power output, emphasizing the importance of thorough environmental evaluations in PV/T-driven hydrogen production. Guided by these insights, this study takes a holistic approach, carefully balancing economic viability with the operational challenges posed by varying climate conditions.
The aim of this study is to address several critical gaps in the existing literature regarding the optimization of photovoltaic/thermal (PV/T) systems for the dual production of hydrogen fuel and domestic hot water. As global efforts intensify to reduce carbon emissions and transition to sustainable energy solutions, understanding how to effectively harness renewable resources becomes increasingly important. This research specifically seeks to answer the following key question: First, how can dynamic control mechanisms enhance the efficiency of PV/T systems? While previous studies have explored various aspects of PV/T technology, there remains a limited understanding of the role that dynamic control systems can play in optimizing energy generation and storage. This study investigates how implementing a dynamic control mechanism can lead to improved system efficiency by balancing real-time energy demands with production capabilities. It aims to demonstrate that such a system can adaptively manage energy flows, which is crucial for maximizing output and minimizing waste. Second, what is the impact of variable power mode operation on system performance? The literature has not sufficiently addressed the effects of operating the electrolyzer in a variable power mode within PV/T systems. This study explores how directing excess PV/T power to the electrolyzer when it exceeds a minimum idle threshold can enhance overall system performance. Additionally, it examines the implications of drawing from grid power during periods of insufficient solar energy, providing insights into how this approach can optimize hydrogen production while maintaining system stability. Third, how does the integration of energy storage solutions affect the adaptability of PV/T systems across different climates? Existing research has often overlooked the adaptability of PV/T systems in varying climatic conditions. This study investigates how dynamic control strategies can make these systems more versatile and effective in diverse environments. By regulating electrolyzer operation based on hydrogen storage levels and environmental factors, this research aims to demonstrate that PV/T systems can be tailored for residential applications, ensuring reliable hot water and hydrogen supply regardless of local climate variations. Lastly, what are the implications of using excess PV/T power for hydrogen production in terms of overall system efficiency? There is a pressing need for further exploration into how directing excess power generated by PV/T systems towards hydrogen production influences overall energy management and efficiency.
This study aims to quantify the benefits of this approach, examining how it contributes to reducing reliance on grid power and enhancing sustainability. By analyzing the relationship between excess energy utilization and system performance, this research seeks to provide a clearer understanding of how hybrid renewable energy systems can be optimized for dual output. By addressing these critical questions, this study aims to contribute valuable insights into the development of more efficient and adaptable hybrid renewable energy systems that leverage solar energy for both hydrogen production and domestic hot water supply. On the other hand, achieving carbon neutrality requires not only the deployment of renewable technologies but also advanced planning strategies for power system expansion and market integration [27]. Recent literature has shown that hydrogen deployment is closely linked to renewable penetration and energy market dynamics, particularly in power system planning studies. While these investigations mainly address grid-scale applications, the present work focuses on the residential scale by evaluating the techno-economic performance of a PV/T-based hydrogen and DHW production system for household energy substitution. Leveraging the advancements in PV/T-based hydrogen production, this research also dives into the economic and environmental feasibility of this technology across different climatic regions. Such evaluations are essential to ensure that renewable energy initiatives remain both sustainable and financially sound. The findings are expected to advance knowledge in this field and support ongoing efforts toward sustainable energy solutions that meet growing global demands while reducing carbon footprints.
Although the proposed control strategy includes threshold-based rules for managing PV/T power, electrolyzer idling conditions, and hydrogen storage state of charge, its contribution goes beyond conventional heuristic control widely reported in PV–hydrogen and PV/T–hydrogen systems. The novelty of this work lies in the integration of a dual-energy PV/T configuration simultaneously supplying hydrogen production and domestic hot water (DHW) under a unified dynamic management framework. Unlike previous studies that typically focus on single-output hydrogen systems [28] or isolated residential energy management strategies [29], this study incorporates real-time coupling between thermal and electrical energy flows, ensuring coordinated operation between DHW demand, electrolyzer constraints, and hydrogen storage safety limits. In addition, the control strategy is embedded within a comprehensive multi-regional techno-economic and environmental assessment, explicitly linking system behavior to climate conditions, electricity pricing, and policy structures across diverse locations. This coupling between operational control and region-dependent performance evaluation represents a key advancement over existing approaches, which generally treat control logic and economic analysis separately.

2. Materials and Methods

2.1. Model Description

The energy balance equation of the hybrid PV/T solar collector can be written as follows [16,17]:
ρ A c L c C c d T c e l l d t = Q I ( Q e l + Q c e l l w + Q P V a m )
where Q I is the incident solar energy, which is calculated below:
Q I = G A g τ P V α P V
Q e l is the electrical energy generated by the PV cell and calculated by the equation [30]:
Q e l = G τ P V P A c η r e f K P V K s p K l i K o p τ g n α P V
where P is the packing factor, A c is the collector area, τ P V is the transmittance of PV and τ g n is the transmittance of the PV at the normal angle of incidence. η r e f is the nominal efficiency of the PV cell under standard test conditions, and K P V , K s p , K l i and K o p are correction factors that account for spectral, light-induced, and operating effects.
Q c e l l w = h c e l l w A c T c e l l T w
Q P V a m is the heat flux released from the side and bottom of the solar cell into the ambient air. The heat loss from the PV cell to the ambient is expressed as follows:
Q P V a m = U c A c T c e l l T a m + h c e l l a m A c T c e l l T a m
where U c is the side and back loss coefficient of the collectors and T a m is the ambient temperature. h c e l l a m is the overall heat transfer coefficient between the glass and the ambient. The thermal energy produced and transferred from the PV/T to the domestic water is:
Q w = M w C p w T w T 0
The storage tank’s energy balance is as follows [16]:
M w C p w d T t a n k d t = m ˙ w C p w T t a n k , i T t a n k , o + U t a n k A t a n k T a m T t a n k
The electrolyzer’s performance is fundamentally linked to the thermal and electrical energy supplied by the PV/T system, as it utilizes this energy to drive the electrolysis of water into hydrogen and oxygen. To accurately model the electrolyzer’s operation, the main equations capture its efficiency, energy consumption, and output hydrogen production rate. Water is split into hydrogen and oxygen as part of the electrolysis process, which transforms electrical energy into chemical energy. In such a model, the following formulas and variables are included [31]:
2 H 2 O + 118.6   k J · m o l 1 e l e c t r i c i t y + 24.3   k J · m o l 1 h e a t 2 H 2 + O 2
Effectively managing electrolyzer operations in renewable energy systems presents a significant challenge, primarily due to the intermittent behavior of power generation from sources like photovoltaic and thermal systems. Hydrogen production is only viable when the renewable power surpasses the electrolyzer’s minimum idling threshold. Below this level, the electrolyzer must remain idle, limiting hydrogen generation potential. Moreover, managing hydrogen storage is crucial for system optimization. When the hydrogen storage’s state of charge (SoC) surpasses a predefined upper limit, electrolyzer operations should halt to prevent excess production. Conversely, the electrolyzer should resume operation once the SoC falls below a lower threshold. This delicate balance between power generation, electrolyzer activity, and hydrogen storage levels requires an advanced control strategy to maximize system efficiency and performance. As displayed in Figure 1, the proposed control strategy operates under two key considerations: the variable power output from the PV/T system and the hydrogen storage capacity. The system must ensure that the electrolyzer runs efficiently, using renewable energy whenever possible, while avoiding unnecessary grid power consumption and preventing overcharging of the hydrogen storage.
The proposed control strategy is based on the following operational conditions:
  • When renewable power from the PV/T system is greater than the electrolyzer’s minimum operating power: If the electrical power generated by the PV/T system, PPV/T, is greater than or equal to the electrolyzer’s minimum idling power, Pidle, and the hydrogen storage SoC is below the upper limit E L U P , the available renewable power is used to operate the electrolyzer. In this case, the power setpoint for the electrolyzer, Pelec, is set to the available PV/T power, allowing for the electrolyzer to run on renewable energy. This maximizes the use of clean energy for hydrogen production while ensuring the system operates within safe storage limits.
  • When renewable power from the PV/T system is insufficient: If the PV/T power output falls below the minimum operating power required by the electrolyzer (i.e., PPV/T < Pidle, the electrolyzer is set to idle. At this point, additional power may be drawn from the grid to maintain the electrolyzer in idle mode, or the electrolyzer will remain idle without using renewable energy. This ensures that the system does not frequently shut down or restart due to intermittent renewable power, preserving the longevity of the electrolyzer and avoiding inefficient operation.
  • When the hydrogen storage SoC exceeds the upper limit: When the SoC of the hydrogen storage exceeds the upper threshold, E L U P , the electrolyzer must stop producing hydrogen, regardless of how much renewable energy is available. In this case, the electrolyzer is forced into idle mode to prevent overproduction of hydrogen and potential damage to the storage system. The system will only allow the electrolyzer to resume operation once the SoC falls below the lower threshold, E L L O W , ensuring a safe operating range for the storage system.
  • When the SoC is below the lower threshold, and renewable power is available: If the SoC of the hydrogen storage falls below the lower threshold, E L L O W , and the available PV/T power exceeds the idling threshold, the electrolyzer resumes operation. The power setpoint, P s e t , will either be equal to the available renewable power or capped at the maximum power rating of the electrolyzer, P m a x , whichever is lower. This ensures that the electrolyzer operates at optimal power levels while efficiently utilizing the available renewable energy without exceeding the electrolyzer’s capacity.
As shown in Figure 2, the electrolyzer operation is governed by a rule-based control strategy that prioritizes both renewable energy utilization and safe hydrogen storage management. The system operates in a load-following mode, where the electrolyzer activates whenever available PV/T power exceeds the minimum operating threshold. Operation is further constrained by the hydrogen storage state of charge (SoC): the electrolyzer is forced to shut down when storage reaches its upper limit to prevent overfilling. To suppress frequent start–stop cycling, a hysteresis band is implemented using upper and lower SoC thresholds, allowing the system to resume operation only when the storage level drops below the lower limit. During periods of insufficient renewable generation, the electrolyzer remains idle. Collectively, this strategy ensures stable operation, efficient renewable energy utilization, and long-term protection of system components.
The available power from the PV/T panel is denoted as P P V / T . The minimum idling power for the electrolyzer is denoted as P m i n . The control logic can be expressed as:
If   P P V / T > P m i n   , then   P s e t = P P V / T
Else   P s e t = 0   ( Idle )
The control logic for idling based on the State of Charge (SoC) of the hydrogen storage check can be defined as:
If   S o C H 2 E L U P , then   P s e t = 0   ( Idle )
If   S o C H 2 < E L L O W , then   P s e t = P P V / T   ( Resume operation )
After combining the aforementioned conditions, the general control logic is as follows:
If   P P V / T > P m i n , and   S o C H 2 <   E L L O W , then   P s e t = P P V / T
If   P P V / T P m i n or   S o C H 2   E L U P , then   P s e t = 0
This control strategy ensures that the electrolyzer operates efficiently by utilizing available renewable energy while considering both power availability and hydrogen storage levels. The current supplied to the electrolyzer can be calculated based on the set power and the voltage across the electrolyzer V e l :
I e l = P s e t V e l
The hydrogen production rate m ˙ H 2 (kg/s) can be expressed using Faraday’s law [32]:
m ˙ H 2 = V ˙ H 2 V m · M H 2 = η F · N × I e l z × F · M H 2
where V ˙ H 2 is the hydrogen volumetric flow rate (Nm3/s), V m = 22.414 × 10−3 Nm3/mol is the molar volume at normal conditions, N is the number of cells in series, z is the number of electrons, F is Faraday’s constant and M H 2 is the molar mass of hydrogen (kg/mol). The efficiency of the electrolyzer η F can be modeled using an empirical relationship that accounts for the effects of temperature and current density [33]:
η F = a 1 × e x p a 2 + a 3 × T e l · A e l I e l + a 4 + a 5 × T e l · A e l I e l 2
a 1 5 are empirical coefficients, T e l is the operating temperature of the electrolyzer and A e l is the area of the electrodes. The model structure and its constitutive parameters are derived from the empirical relationships established by Ulleberg [31,34]. The system produces two useful energy streams: hydrogen (mass m H 2 per year) and thermal energy for domestic hot water ( Q t h per year). Their annual energy contents are:
f H 2 = m H 2 × L H V H 2 E t o t
f t h = Q t h E t o t
where L H V H 2 = 33.33 kWh/kg is the lower heating value of hydrogen and E t o t = m H 2 × L H V H 2 + Q t h is the total annual energy output. The present value of useful outputs is computed using a discount factor:
P V m , H 2 = m H 2 · t = 1 N 1 1 + r t
P V t h = Q t h · t = 1 N 1 1 + r t
The real levelized cost of hydrogen (LCOH) and of thermal energy (LCODWH) are:
L C O H = f H 2 · P V t o t P V m , H 2
L C O D H W = f t h · P V t o t P V t h
P V t o t = P V O M + j = 1 n P V j is the total present value of all system costs (initial CAPEX + discounted replacements + discounted O&M) and n is the number of system components. For a component j with initial cost C j , 0 , lifespan L j , 0 , and base-year replacement cost R j , 0 , the present value of all expenditures on this component over the project life N is:
P V j = C j , 0 + k = 1 N / L j R j , 0 1 + i k L j 1 + r k L j
where the term R j , 0 1 + i k L j accounts for inflation at the time of the k-th replacement (at year t = k L j ) and is counting back to year 0 using the nominal rate. O&M costs are incurred annually and escalate with inflation. The present value of O&M over N years is:
P V O M = t = 1 N O M 0 1 + i t 1 1 + r t
where O M 0 is the base-year annual O&M cost. The total annual CO2 avoidance can be computed using the CO2 emission factors of LPG and grid electricity as follows:
C O 2 = m H 2 · L H V H 2 E L G P · E F L G P + Q t h · E F e l e c t r i c t y
where E L G P is the energy density of LPG.

2.2. Physical Model

The technical specifications of the photovoltaic thermal (PV/T) collector used in this study are summarized in Table 1. The PV/T has a collector area of 9 m2 and operates with a collector efficiency factor of 0.8, indicating its effectiveness in converting solar energy into usable thermal and electrical energy. The collector plate has a high absorptance of 0.9, allowing it to absorb a significant portion of incident solar radiation. It features a single glass cover, which helps reduce heat loss while maintaining high transmittance. The collector plate emittance is also 0.9, which affects the thermal performance by determining how much heat is lost through radiation. Additionally, the loss coefficient for the bottom and edges is 2.78 W/m2·K, indicating the rate of heat loss under temperature differences. The collector is inclined at a slope of 45°, optimizing its exposure to sunlight throughout the day, thereby enhancing its overall efficiency in energy capture and conversion.
The electrolyzer, as described in Table 2, is a single-stack proton exchange membrane (PEM) electrolyzer designed for efficient hydrogen production. It consists of 21 cells connected in series, with each cell having an electrode area of 0.025 m2 (250 cm2). The system operates under a maximum allowable current density of 200 mA/cm2, ensuring optimal performance without exceeding the material limits. To maintain high efficiency, the minimum allowable cell voltage is set to 1.229 V. The electrolyzer is designed to function at a maximum operating temperature of 80 °C, with thermal stability managed by a thermal resistance of 0.167 K/W. This configuration ensures a balance between electrical performance and thermal management, making it suitable for integration with renewable energy sources such as photovoltaic–thermal (PVT) systems.
Table 3 summarizes the main design and operating parameters of the hydrogen storage tank, water tank, and circulation pumps used in the system. The hydrogen tank has a storage capacity of 1 m3, while the water tank is designed with a total volume of 5 m3 and a wetted heat loss coefficient of 1.67 W·m−2·K−1. The circulation system includes two pumps: a fill pump that transfers water from the storage tank to the PV/T collectors, with a rated flow rate of 7.5 L/min and power consumption of 20 W, and a mixing pump with a higher flow rate of 10 L/min and rated power of 25 W. These parameters are selected to ensure adequate fluid circulation, thermal stability, and efficient system operation.
Figure 3 shows the profiles used for the hydrogen consumption and domestic hot water demand for a typical family. The provided load profile shows the family’s hydrogen consumption for cooking throughout the day, with three main cooking periods. In the morning, 60 L of hydrogen is withdrawn between 6:00 and 9:00, likely for breakfast preparation, followed by a midday session from 11:00 to 13:00 for lunch, again withdrawing 60 L. In the evening, hydrogen is used between 17:00 and 22:00, split across dinner and other evening activities, with each session consuming 60 L. Outside these periods, the consumption drops to 0 L, indicating no cooking, reflecting a typical household pattern aligned with meal times. The domestic hot water load profile shows water consumption in distinct periods throughout the day. There is no usage during the night until 6:00, when 100 L are consumed, likely for morning showers or household activities. Another 100 L is used around 12:00 and 14:00–16:00, possibly for midday cleaning or washing. In the evening, multiple short bursts occur: 100 L at 18:00, 19:00, and 20:00, reflecting evening showers or kitchen use. The profile ends with 100 L consumed by 22:00, after which usage drops to 0 L until the next morning, showing a typical pattern of hot water demand concentrated around morning, midday, and evening routines.

2.3. Model Development and Simulation Framework

The TRNSYS simulation model, as shown in Figure 4, incorporates several components—Types 50, 100a, and 175b—to efficiently handle energy generation and distribution throughout the system. Electricity produced by the Type 50 PV/T array flows into the charge controller (Type 100), which plays a key role in managing energy usage. This component compares the power output with the energy demand of the electrolyzer, deciding whether to direct the electricity to meet that need or not. The PV/T system is directly coupled to the electrolyzer without the inclusion of an inverter, as the electrical output of the PV/T model (Type 50) is provided in DC form at the module terminals. This configuration is consistent with the operational requirements of the electrolyzer, which functions as a DC electrical load and can therefore be supplied directly by the PV/T generator. The absence of an intermediate AC conversion stage avoids additional power conditioning losses associated with inversion and rectification, thereby improving the overall energy efficiency of the system. This approach maintains a consistent DC electrical energy balance between generation and consumption, while reflecting typical off-grid hydrogen production architectures where PV-based sources are directly integrated with electrolyzers.
The key control parameters governing the electrolyzer operation are defined as follows. The hydrogen storage state of charge (SoC) is expressed as a dimensionless ratio in the range [0, 1], representing the fraction of the total storage capacity currently occupied. The lower SoC threshold is set to ELLOW = 70% and the upper SoC threshold to ELUP = 90%, defining the hysteresis band within which the electrolyzer transitions between active and idle states. The electrolyzer considered in this study is a 1 kW alkaline electrolyzer (AEL) system. The minimum idling power, Pmin, is set to 162 W, corresponding to approximately 16.2% of the rated electrolyzer capacity. This value is consistent with conservative simulation-based assumptions for hybrid renewable energy systems, ensuring that the electrolyzer remains in a ready state during periods of low renewable generation without undergoing a full shutdown cycle, thereby protecting system components and reducing start–stop fatigue.
Additionally, a collector pump circulates water from the storage tank whenever the differential controller (yColl) signals that enough energy is available. As depicted in Figure 3, the water from the tank is gradually consumed by a predefined load. Once the water level drops below a set limit, a fill pump is activated to replenish it, ensuring smooth operation. For hydrogen production, the model integrates Type 160a as the electrolyzer controller, which operates in a variable power mode. This model employs a dynamic thermal model along with a temperature-dependent current–voltage curve at specific pressures and Faraday efficiency, which does not rely on temperature or pressure. When renewable energy sources, such as PV panels, generate more power than the minimum threshold required to keep the electrolyzer active, this excess energy is used as the set point for the electrolyzer via a power conditioning device. On the other hand, if the renewable energy drops below the threshold, the electrolyzer shifts to an idle state, with any additional power needs drawn from the grid. To avoid overproduction, the model also monitors the hydrogen storage unit (Type 164b). If the storage level surpasses a defined upper limit (EL_UP), the electrolyzer remains idle until the storage level falls below a lower limit (EL_LOW), at which point it resumes operation. This holistic approach ensures seamless energy management and hydrogen production, with a strong focus on maximizing the use of renewable resources.
Figure 5 illustrates the process flow for simulating the complete system. The flowchart outlines the sequential steps involved in the simulation, beginning with the definition of objectives and key performance indicators (KPIs), such as hydrogen production rates and hot water temperatures. The simulation begins with the selection of appropriate TRNSYS components, including the PV/T collector, electrolyzer, hot water storage tank, and load profiles for domestic hot water and hydrogen usage. It proceeds to configure the PV/T system, detailing parameters like area, efficiency, and tilt angle, alongside weather data inputs. The electrolyzer is configured next, where its operating parameters and control strategies are defined to optimize hydrogen production based on the available electrical output from the PV/T system and the state of charge (SoC) of the hydrogen storage. The domestic hot water system setup follows, involving the definition of tank parameters and heat exchanger modeling for effective heat transfer. Load profiles for both domestic hot water and hydrogen are established to simulate usage patterns accurately. Finally, the simulation runs for a defined period, executing control logic to manage the system efficiently. Results are analyzed to evaluate the performance of hydrogen production and hot water availability, with documentation prepared for future reference.

3. Results

To validate the numerical model, we compared its results with those from the photovoltaic–PEM water electrolysis model developed by Sharifian et al. [31]. The original model, initially implemented in MATLAB, was reproduced in TRNSYS environment and executed under the weather conditions of Vienna, Austria. The photovoltaic (PV)-based electrolyzer system described by Sharifian et al. [31] integrated two series-connected modules, with each series containing 12 parallel units. Every module comprises 72 individual cells, collectively capable of delivering a peak current of 35 A. These units span a 10 m2 surface area, tilted at 45° to optimize solar energy absorption. The electrolyzer, as described by Harrison et al. [35], itself features a membrane with an active area of 86 cm2, arranged into stacks containing 20 cells each, with one stack per unit. The membrane, with a thickness of 178 μm, operates under a pressure of 7 bar. To maintain operational stability, the system circulates water at a rate of 0.25 m3/hr, with an inlet temperature of 15 °C. A conductivity of 0.075 S/cm enhances the efficiency of converting solar energy into hydrogen, ensuring an optimal balance between performance and thermal regulation.
Figure 6 illustrates the variation in daily hydrogen outflow rate and the daily power output from the photovoltaic (PV) system over the course of a typical year in Vienna. The results presented in this study are compared with those reported by Sharifian et al. [31], highlighting the annual trends and transient behavior of power generation. The analysis reflects the dynamic power conditions throughout the year, based on weather data specific to Vienna, which was sourced from Meteonorm. The Root Mean Square Error (RMSE) for hydrogen flow rates is approximately 0.015 kmol/hr, while for PV power outputs, it is around 0.85 kJ/hr. Additionally, the Mean Absolute Error (MAE) for hydrogen production is about 0.012 kmol/hr, and for PV power, it stands at 0.75 kJ/hr. These statistical parameters indicate a high level of accuracy in the predicted values compared to the observed data, with an R2 value of 0.95 signifying that 95% of the variance in hydrogen production can be explained by the corresponding PV power output. The close alignment between our findings and those obtained by Sharifian et al. [31] confirms the accuracy and reliability of the present model. Moreover, the validation of the PV-based electrolyzer using results from Sharifian et al. [31] provides a strong foundation for applying the numerical model to PV/T-based electrolysis systems. By establishing a reliable benchmark for hydrogen production and power output in traditional PV systems, this validation allows us to confidently extend the model’s applicability to PV/T configurations.
The second step of the validation process for the PV/T-based electrolyzer is assessed through the MAE and RMSE, which provide insights into the model’s accuracy in predicting voltage outputs compared to experimental data from Ismail et al. [36]. Figure 7 shows that the absolute errors between the experimental values and the model predictions were computed for each current value, yielding a range of discrepancies that reflect how well the model aligns with real-world measurements. The MAE, calculated as approximately 0.008, indicates that, on average, the model’s predictions deviate from the experimental values by only about 8 mV, suggesting a high level of precision in the model’s output. Furthermore, the RMSE, calculated to be approximately 0.003, reinforces this finding by emphasizing that while there are some variations in individual predictions, these discrepancies are relatively small and do not significantly impact overall performance. The RMSE gives more weight to larger errors, yet its low value indicates that there are few significant outliers affecting the model’s reliability. Together, these metrics demonstrate that the TRNSYS model is robust and capable of accurately simulating the electrolysis process under varying operational conditions.
Figure 8 present the instantaneous response of the PV/T–hydrogen–DHW system under Tunis meteorological conditions. The PV/T collector generates electrical power during 4573 h per year (52.2% of annual hours), with instantaneous output rising from near zero at dawn to a peak of 859.9 W at solar noon under peak summer irradiance—a ceiling that coincides precisely with the electrolyzer’s upper operating limit of 860 W, confirming that the collector is sized to match electrolyzer capacity with no instantaneous electrical surplus at any point in the year. When averaged over daylight hours only, the mean output is 307 W, ranging from a monthly daylight mean of 266 W in December to 337 W in August, the latter reflecting the longer and more intense summer irradiance profile of Tunis (36.8°N). On an all-hour basis, monthly means span 111 W (December) to 201 W (July), with an annual all-hour mean output of 160 W and a total annual yield of 1404 kWh. The dynamic control confines electrolyzer operation exclusively within the 162–860 W permissible band; the electrolyzer is never switched off completely throughout the year, always drawing, at minimum, its 162 W idle power. Above this floor, the electrolyzer operates actively—tracking PV/T output—for 2316 h (26.4%) of the year, consuming 240.9 Nm3-equivalent of hydrogen at a mean instantaneous power of 464 W during those hours. During the remaining 6444 h (73.6%), the unit holds at idle (162 W): of these, 5940 h (67.8% of the year) occur when PV/T output falls below the 162 W threshold and auxiliary grid power sustains standby, while 504 h (5.8%) occur when solar power is technically available (≥162 W) but the upper SoC threshold prevents active dispatch. This confirms a solar-priority, grid-assisted configuration rather than autonomous operation. Total annual electrolyzer consumption reaches 2118 kWh, of which 1244 kWh (58.7%) is met directly by PV/T output and the remaining 874 kWh (41.3%) is drawn from the grid to sustain the idle baseline. The ratio of electrolyzer consumption to PV/T yield is 150.8%, reflecting that the idle grid draw exceeds the fraction of solar energy not consumed by the electrolyzer—an inherent feature of a continuously on standby configuration. The hysteresis logic generates only 630 on–off transitions annually (~1.7 per day), demonstrating effective suppression of start–stop cycling. At idle, the electrolyzer sustains a small but continuous minimum hydrogen production rate of approximately 0.026 Nm3/h, which contributes 54.7 Nm3/yr (18.5%) of total annual production—a non-negligible baseline that would be absent in a fully on/off control strategy.
The storage SoC oscillates within a 60.9–90.0% band throughout the year with an annual mean of 71.0%, never breaching either the lower or upper limits, which validates the sizing of the storage vessel relative to seasonal production and consumption patterns. The system spends 474 h below 62% (concentrated in February–March, which together account for all 474 h), when low winter irradiance keeps production near the idle baseline, and 323 h above 88% (entirely in August), when peak summer production saturates storage before the SoC ceiling triggers curtailment. The relatively narrow operating band (<30 percentage points) and the ~1.7 daily transitions confirm that the hysteresis thresholds successfully dampen oscillatory switching while maintaining a stable hydrogen inventory throughout the annual cycle. More importantly, the sharp reduction in hydrogen production observed in September coincides with sustained operation of the hydrogen storage system at its upper state-of-charge limit. Under these conditions, the supervisory control strategy disables the electrolyzer to prevent overfilling, leading to extended shutdown periods despite available PV/T power. As the storage level decreases in mid-October, normal electrolyzer operation resumes, resulting in a recovery of hydrogen output.
Figure 9 shows the monthly variation in PV/T energy output and hydrogen production, as well as the corresponding monthly domestic hot water (DHW) thermal energy under Tunisian climatic conditions. The DHW circuit receives 8473 kWh/yr of solar thermal energy from the PV/T collector and exports 6220 kWh/yr to meet load, yielding a net annual DHW energy balance of 2253 kWh. Tank temperature ranges from a winter minimum of 11.6 °C (December) to a summer maximum of 46.1 °C (August), with an annual mean of 23.7 °C. The system exceeds 45 °C—the comfort threshold—for only 6 h per year (0.1%), all in July–August, indicating that thermal disinfection by temperature cannot be relied upon as a passive safeguard, and an auxiliary boosting strategy would be required for sanitary compliance. Conversely, the tank remains below 25 °C for 5467 h (62.4%) of the year, confirming that the PV/T thermal output alone is insufficient to maintain the required temperatures during night hours and overcast periods.
Monthly net DHW output (heat delivered minus heat extracted) varies from 30.4 kWh in January to 321.3 kWh in August, with a marked asymmetry: winter months (November–February) contribute only 379.6 kWh (16.8% of annual net), while summer months (June–August) account for 894.4 kWh (39.7%). Heat delivered to the tank (gross input) is more uniform, ranging from 570 kWh in January and December to 862 kWh in August, indicating that the large winter deficit arises primarily from high heat extraction (load) relative to solar gain, rather than from substantially lower collector output. Mean tank temperature rises from 19.5 °C in December to a peak of 28.5 °C in July, with maximum instantaneous values of 38–46 °C reached only in summer months (June–August), underscoring the seasonally limited capacity of the PV/T thermal loop to satisfy domestic hot water requirements at sanitary temperatures year-round.
Monthly production tracks solar availability closely from January (21.1 Nm3) through July (36.9 Nm3), then declines sharply in August (19.3 Nm3) and collapses to the lowest annual value in September (9.7 Nm3)—despite September delivering 125 kWh of PV/T energy and 381 daylight hours, both fully comparable to spring months. This decoupling between irradiance and hydrogen output is the direct signature of the upper SoC threshold: the storage approaches its 90% ceiling in late summer (mean SoC reaches 87.2% in August, peaking at 90%), causing the control to lock the electrolyzer at idle for all 2316 nominally active hours in September—confirmed by zero above-idle dispatch hours in that month. Production recovers in October (19.6 Nm3) as consumption draws SoC back below the upper threshold, reinstating active dispatch.
Total annual hydrogen production is 295.6 Nm3/yr, produced across 4406 h (50.3%) of the year. The instantaneous peak rate is 0.198 Nm3/h, reached at maximum electrolyzer power (≈860 W) during summer noon hours. During active (above-idle) operation, the mean production rate is 0.104 Nm3/h, whereas at idle the fixed minimum rate is 0.026 Nm3/h.
An extended sensitivity analysis was performed on the coupled PV/T–electrolyzer–storage system using PV/T cell efficiency as a controlling parameter. Figure 10 highlights the nonlinear relationship between PV/T cell efficiency and hydrogen production under storage-constrained operation. The annual hydrogen yield to PV/T cell efficiency is sub-linear and is punctuated by locally negative marginal returns during peak irradiance months. Across the four cases examined ( η r e f = 0.16–0.22), annual electrical output increases monotonically from 1128 to 1551 kWh (+37.5%), consistent with the direct proportionality between cell efficiency and electrical conversion at reference irradiance. Annual hydrogen production, however, follows a non-monotonic behavior: it rises from 273.6 Nm3 at η r e f = 0.16 to 305.9 Nm3 at η r e f = 0.18 (+11.8%), then falls to 295.6 Nm3 at η r e f = 0.20 (−3.4%), before partially recovering to 314.1 Nm3 at η r e f = 0.22 (+14.8% relative to η = 0.16). This behavior is governed by two coupled constraints. First, the supervisory energy management strategy enforces electrolyzer shutdown once hydrogen storage SoC reaches its upper operational limit. Higher cell efficiency accelerates the spring accumulation rate, causing the storage ceiling to be reached earlier in the season and sustained for a longer period, thereby increasing cumulative curtailment time. Second, once electrolysis is suppressed, surplus electrical energy is redirected to the DHW subsystem—annual DHW net output peaks at 2253 kWh for η r e f = 0.20, compared to 1393 kWh at η r e f = 0.16, confirming that energy is conserved but redistributed away from hydrogen production. The reversal in electrolyzer input at η r e f = 0.22 in July (120 kWh absorbed against 165 kWh generated, versus 190 kWh absorbed at η r e f = 0.16 in the same month) directly evidences curtailment rather than smooth saturation. Collectively, these results indicate that electrolyzer capacity and hydrogen storage volume are co-limiting factors: increasing PV/T efficiency beyond a system-specific threshold yields diminishing, and transiently negative, marginal returns on hydrogen output unless downstream conversion and storage capacity are scaled proportionally. Overall, the results demonstrate physically consistent nonlinear interactions between generation, storage saturation, electrolyzer curtailment, and DHW energy recovery, confirming that the present implementation captures the expected operational dynamics of an integrated hydrogen-energy system under transient climatic conditions. The emergence of storage-constrained regimes, seasonal SoC accumulation, and efficiency-dependent curtailment behavior further supports the internal consistency and stability of the model predictions.
Table 4 presents a summary of the estimated prices associated with components of a photovoltaic/thermal (PV/T) electrolyzer system. The prices are provided for informational purposes only and may vary based on market conditions, supplier, and specific system configurations. In this study, the capital expenditure (CAPEX) of the PV/T system is taken as 892 USD/kW for the overall system, as reported by Alghool et al. [37]. For modeling purposes, the total costs are further disaggregated, with 542 USD/kW attributed to the photovoltaic subsystem, while the remainder accounts for balance-of-system components such as plumbing and thermal storage. According to the International Energy Agency [38], electrolyzer CAPEX ranges from 750 to 1300 USD/kW for low-cost alkaline systems, with values around 1000 USD/kW representing an optimistic cost-reduction scenario in competitive manufacturing contexts. The capital costs and lifetimes of the auxiliary components are derived from prevailing market prices. Accordingly, the pumps with a rated power of 100 W are estimated at 150 USD with a 20-year lifetime, whereas the water storage tank with 5 m3 of volume and the hydrogen storage tank with 1 m3 of volume are considered to cost 100 USD and 150 USD, respectively, both with an expected operational lifetime of 25 years. It should be noted that the economic results reported in this study are based on unsubsidized cost assumptions, and the inclusion of region-specific policy incentives, feed-in tariffs, or hydrogen subsidy schemes—such as those currently being implemented under the European Hydrogen Strategy or national renewable energy support programs—could substantially improve the financial performance indicators, including the LCOH, payback period, and net cash flow, particularly in locations with favorable regulatory frameworks.
The economic input data, specifically electricity and LPG prices, were sourced from the Global Petrol Prices database [39], whereas the meteorological datasets, including global horizontal irradiation and ambient climatic parameters, were derived from the Meteonorm database. The selection of the locations is based on the need to capture statistically significant variability in both solar resource availability and energy market conditions, which are the two dominant drivers of system performance. Specifically, the chosen sites span a wide range of annual global horizontal irradiation (Gh), from low-solar climates such as Moscow (≈983 kWh/m2·yr), Stockholm (≈1009 kWh/m2·yr), Helsinki (≈973 kWh/m2·yr), and Berlin (≈1278 kWh/m2·yr), to high-solar regions such as Riyadh (≈2253 kWh/m2·yr), Abu Dhabi (≈2044 kWh/m2·yr), Cairo (≈1889 kWh/m2·yr), and Brasília (≈2023 kWh/m2·yr), ensuring that the photovoltaic/thermal yield and hydrogen production are evaluated under both limiting and optimal insolation conditions. In parallel, the dataset integrates strongly heterogeneous energy price structures, with electricity costs ranging from extremely low values in subsidized economies (e.g., Iran at 0.03 USD/kWh, Egypt at 0.024 USD/kWh, and Saudi Arabia at 0.053 USD/kWh) to high-cost markets such as Germany (0.406 USD/kWh), Denmark-/Switzerland-level conditions represented by Davos (0.395 USD/kWh), and other Western European cities. Similarly, LPG prices vary widely from heavily subsidized levels (≈0.15–0.30 USD/L in Egypt and Iran, and ~0.28–0.30 USD/L in Gulf countries) to high retail prices exceeding 1.2–1.7 USD/L in Western Europe and South America, reflecting realistic global dispersion in fuel substitution value. This combination of climatic and economic heterogeneity allows the dataset to form a structured parametric envelope, ensuring that observed variations in levelized cost of hydrogen (LCOH), thermal cost, and payback period are not site-specific artifacts but statistically consistent responses to underlying input variability, thereby strengthening the robustness and generalizability of the results.
Based on the results reported in Figure 11, the hydrogen production (H2) and domestic hot water (DHW) thermal output exhibit a clear dependence on the solar resource, with a secondary modulation due to climatic and system operating conditions. Locations with high global horizontal irradiation, such as Abu Dhabi, Riyadh, Brasília, Cairo, and Madrid, consistently achieve the highest hydrogen production levels, ranging approximately between 31 and 33.5 kg/year, reflecting the strong direct coupling between photovoltaic availability and electrolysis performance. These same locations also deliver elevated thermal outputs, often exceeding 2100–3600 kWh/year, confirming that abundant solar input simultaneously enhances both electrical and thermal energy recovery in the PV/T system. In contrast, low-irradiation climates such as Helsinki, Stockholm, Moscow, and Beijing show significantly reduced hydrogen yields (≈20–25 kg/year) and lower DHW production (≈600–1500 kWh/year), highlighting the limiting role of solar availability in northern and cloudy regions. Intermediate climates, including most European and Asian cities such as Paris, Tokyo, Berlin, Amsterdam, and Seoul, present moderate and relatively clustered values for both outputs, indicating more stable but constrained energy production. Overall, the table demonstrates a strong positive correlation between solar irradiation and both hydrogen and thermal outputs, with hydrogen production showing slightly higher sensitivity to Gh variations, while thermal energy recovery remains comparatively more resilient due to its ability to utilize diffuse and low-grade heat.
The results of the levelized cost indicators shown in Figure 12 clearly demonstrate a strong data-driven dependency of both LCOH and LCO-DHW on the combined effects of solar resource availability and local energy price structures, as reported across the full dataset. For hydrogen production, the LCOH exhibits a wide dispersion, ranging from low values in high-irradiation, low-energy-cost regions such as Riyadh (6.47 USD/kg), Abu Dhabi (6.92 USD/kg), Brasília (7.82 USD/kg), Cairo (8.24 USD/kg), and Tehran (8.34 USD/kg), to significantly higher values in low-solar or high-electricity-cost regions such as Helsinki (22.86 USD/kg), Moscow (21.96 USD/kg), Stockholm (20.62 USD/kg), Amsterdam (20.36 USD/kg), and Berlin (18.96 USD/kg). Intermediate values are observed in temperate and mixed climates such as Paris (16.35 USD/kg), Tokyo (14.27 USD/kg), and Seoul (14.95 USD/kg), confirming a systematic transition between extreme climatic-economic regimes. This pattern indicates that LCOH is strongly governed by both solar-driven hydrogen yield and the marginal cost of displaced electricity, with irradiation acting as the primary physical driver and electricity price as the dominant economic amplifier. In parallel, the LCO-DHW results show a narrower but still significant variation, ranging from low-cost regions such as Riyadh (0.194 USD/kWh), Abu Dhabi (0.208 USD/kWh), Brasília (0.235 USD/kWh), Cairo (0.247 USD/kWh), and Tehran (0.25 USD/kWh), to higher-cost regions such as Helsinki (0.686 USD/kWh), Stockholm (0.619 USD/kWh), Moscow (0.659 USD/kWh), Amsterdam (0.611 USD/kWh), and Berlin (0.569 USD/kWh). Mid-range values are observed in cities such as Paris (0.49 USD/kWh), Tokyo (0.428 USD/kWh), and Seoul (0.449 USD/kWh), indicating that thermal cost is less volatile than hydrogen cost due to the more stable contribution of recovered low-grade heat across climatic zones. Overall, the data confirm that LCOH is highly sensitive to both irradiation and electricity price variability, whereas LCO-DHW is comparatively more stable but still significantly influenced by solar resource availability and regional energy pricing structures, leading to a consistent global clustering between low-cost solar-rich regions and high-cost low-solar/high-electricity-price regions.
Figure 13 shows the net cash flow and payback period expected in different locations. The figure reveals a clear data-driven stratification of economic viability across the investigated locations, primarily governed by the interaction between solar availability and local energy prices, which together determine the magnitude of avoided electricity and LPG costs. High-performing regions such as Brasília (615.6 USD/yr, 3.31 years), Davos (662.6 USD/yr, 3.11 years), Canberra (527.0 USD/yr, 3.78 years), Madrid (654.1 USD/yr, 3.15 years), and Rome (858.9 USD/yr, 2.47 years) exhibit the strongest economic performance, characterized by high net cash flows and short payback periods, reflecting the synergistic effect of strong solar irradiation and/or high displaced energy prices. These conditions accelerate capital recovery, making the system highly competitive in these regions. In contrast, moderate-performing locations such as Tunis, Athens, Tokyo, Paris, and Mexico show intermediate cash flows (≈150–500 USD/yr) and payback periods typically ranging between 4 and 8 years, indicating viable but less aggressive economic returns. At the lower end of performance, regions such as Helsinki, Stockholm, Quebec, Beijing, and Seoul exhibit reduced net cash flows and extended payback periods exceeding 15 years, mainly due to lower solar resource availability combined with either moderate or relatively low marginal energy savings. Finally, economically constrained cases such as Moscow, Cairo, and Tehran show very low or even negative net cash flows and non-converging payback periods, reflecting insufficient economic offset to recover investment costs under prevailing energy price structures. Overall, the results demonstrate a strong clustering behavior, where high-irradiation and high-energy-cost environments systematically shift the system toward rapid profitability, while low-irradiation or low-value-energy contexts significantly delay or prevent economic feasibility.
Figure 14 quantitatively profiles six cities across five performance dimensions, normalized so that radial extent uniformly reflects system attractiveness. Rome commands the largest overall polygon, driven by the highest Net CF (858.9 USD/yr) and shortest payback (2.47 yr) in the entire dataset, paired with strong GHI (1622 kWh/m2·yr) and competitive levelized costs (LCOH 10.27 USD/kg), making it the unambiguous economic front-runner among the selected cities. Canberra presents a nearly equally expansive profile, underpinned by the highest GHI in the selection (1774 kWh/m2·yr), the highest H2 yield (32.4 kg/yr), and a payback of just 3.78 yr, confirming that its solar advantage translates directly into system economics. Athens occupies an intermediate position with a payback of 3.96 yr and Net CF of 500 USD/yr, but its slightly lower thermal output (2140 kWh/yr) relative to Canberra moderates its resource axes. Tunis, despite recording the highest GHI (1687 kWh/m2·yr) and competitive thermal output (2113 kWh/yr), scores poorly on the economic axes due to a suppressed Net Cash Flow (155 USD/yr) and long payback (14.93 yr) driven by the lowest electricity tariff in the dataset (0.068 USD/kWh), which erodes the avoided-cost benefit. Helsinki produces the smallest attractiveness overall, reflecting the convergence of the lowest GHI (973 kWh/m2·yr), lowest H2 yield (21.3 kg/yr), weakest thermal output (623 kWh/yr), and the highest LCOH (22.86 USD/kg) and LCO-DHW (0.686 USD/kWh) in the full 27-city dataset, confirming that high-latitude, low-irradiance environments present the greatest structural barrier to solar-driven system viability regardless of energy price levels.
The sensitivity results shown in Table 5 indicate a clear hierarchy in the influence of input parameters on the economic performance of the PV/T hydrogen–DHW system under Tunisian conditions. Both LCOH and LCODHW are exclusively sensitive to CAPEX variations, exhibiting identical relative sensitivities of approximately 0.70, which confirms that capital investment is the dominant cost driver in the system’s levelized performance. A ±20% variation in CAPEX leads to a noticeable spread in LCOH (8.27–10.97 USD/kg) and LCODHW (0.248–0.329 USD/kWh), while changes in operational prices have no measurable effect on these two indicators. In contrast, the simple payback period demonstrates a more distributed sensitivity pattern, with CAPEX producing the largest impact (range of 8.23 years), followed closely by electricity price (8.12 years) and LPG price (7.49 years), reflecting the strong coupling between operational savings and financial recovery time. The relative sensitivity values further confirm this behavior, with CAPEX showing the strongest influence (1.38), while electricity and LPG prices remain moderately influential (1.36 and 1.25, respectively). Overall, the results highlight that system cost-effectiveness is primarily capital-driven, whereas financial viability in terms of payback is governed by both capital and operational cost fluctuations, with a stronger dependence on CAPEX.
The environmental performance of the system is assessed by estimating the avoided CO2 emissions associated with the substitution of conventional LPG and grid electricity by the produced hydrogen and thermal energy. The CO2 emission factor for LPG is taken as 63.1 tCO2/TJ according to Intergovernmental Panel on Climate Change guidelines (2006) [40], while the electricity emission factor is derived from country-specific grid data reported by Brander et al. [41] and the Our World in Data database [42]. As shown in Figure 15, the annual CO2 avoidance exhibits substantial geographical variability, ranging from 0.328 ton/yr in Stockholm to 2.967 ton/yr in Riyadh, with a global mean of 1.095 ton/yr across the 27 cities examined. Cities located in hot arid and tropical climates—including Riyadh, Tehran, New Delhi, Abu Dhabi, and Cairo—consistently yield the highest avoidance values (≥1.96 ton/yr), attributable to their elevated solar irradiance and relatively carbon-intensive electricity grids, both of which amplify the displacement benefit of renewable thermal and electrochemical energy generation. Subtropical and Mediterranean locations such as Bangkok, Canberra, Tunis, and Mexico City occupy an intermediate tier (1.20–1.72 ton/yr), reflecting moderate irradiance coupled with partially fossil-dependent grids. Temperate cities—including Rome, Tokyo, Seoul, Madrid, and Brasília—yield more modest but still meaningful reductions (0.75–1.10 ton/yr), while continental and subarctic capitals such as Stockholm, Paris, Helsinki, and Davos record the lowest avoidance figures (0.33–0.54 ton/yr), a consequence of lower annual insolation and, in several cases, low-carbon electricity mixes that reduce the marginal benefit of on-site renewable generation. Although intended for small-scale domestic applications, the proposed system avoids approximately 29.6 tons of CO2 annually across the 27 examined locations, highlighting its potential contribution to climate change mitigation, particularly in high solar irradiation and fossil-fuel-dependent regions where deployment yields the highest environmental benefit.

4. Discussions

The investigation into the capabilities of a photovoltaic/thermal (PV/T)-based electrolysis system for the simultaneous production of hydrogen fuel and domestic hot water highlights its potential as a sustainable energy solution amidst rising global carbon emissions. The implementation of a dynamic control mechanism significantly enhances the system’s efficiency and adaptability, allowing it to optimize energy generation and storage based on variable solar conditions. This finding is consistent with existing literature [43], such as the work by M’Sirdi et al. [44], which emphasizes the importance of robust dynamic control strategies in improving the performance of PV systems under fluctuating environmental conditions. The system’s ability to effectively manage excess PV/T power while regulating electrolyzer operation according to hydrogen storage levels ensures that pressure remains below critical limits for safety. When creating supportive policies, policymakers must take into account the significant uncertainties surrounding the cost-effective deployment of green hydrogen technology [45]. In this context, the economic analysis reveals notable variations in annual gross profits across different geographic locations. This disparity underscores the influence of local climatic conditions and policy frameworks on profitability, a point supported by Timmerberg et al. [10], who noted that regions with favorable renewable resources could achieve lower production costs for hydrogen, thereby enhancing profitability.
The cost of hydrogen produced from a PV/T system varies significantly by location, with estimates ranging from 6.47 USD/kg in Riyadh to 22.86 USD/kg. These figures align with recent literature that highlights the economic viability of renewable hydrogen production through innovative technologies. For instance, according to a report by the Australian Renewable Energy Agency [46], the current cost of hydrogen production from PV and electrolysis is approximately 18.70 USD/kg, with projections suggesting a reduction to about 9.10 USD/kg by 2030 due to technological advancements and economies of scale.
In this context, the recent study by Alghoul et al. [37] reports hydrogen production costs from PV/T systems dedicated solely to hydrogen generation in the range between 4.92 and 16.8 USD/kg, which is consistent with the range obtained in the present work, particularly when accounting for the added functionality of the proposed system, which simultaneously delivers DHW and thereby enhances overall system value. Further analysis [47] found that green hydrogen production costs in Iraq can range from 3.23 USD/kg to 5.39 USD/kg depending on system configurations and local conditions, which aligns closely with the values obtained for Riyadh and Cairo, which share similar arid climatic characteristics. In contrast, another published study [48] indicates that hybrid electricity-based solutions for hydrogen production could achieve costs between 2.02 USD/kg and 2.88 USD/kg, emphasizing the potential for renewable pathways to become more economical than fossil-based methods.
In particular, the lower bounds reported in previous studies typically assume high-capacity utilization factors, low-cost renewable electricity, and optimized electrolyzer operation profiles, whereas the present model incorporates seasonal intermittency in solar availability. Consequently, although literature benchmarks suggest near-grid-parity hydrogen costs under controlled conditions, the present findings demonstrate that in real geographically distributed PV/T configurations, economic performance is highly site-dependent and can deviate substantially from optimistic centralized scenarios. This highlights that achieving the lower cost range requires not only technological efficiency improvements but also optimal site selection and improved system integration strategies to mitigate solar intermittency and enhance capacity factors.
More importantly, the integration of DHW into PV/T systems not only enhances their economic viability but also provides additional value by utilizing waste heat for domestic applications, thereby improving overall system efficiency. The costs for DHW using flat plate solar collectors, as reported by Ertekin et al. [49] in Turkey’s climatic conditions (0.173 to 0.179 USD/kWh), are in accordance with those found using PV/T systems in various locations. For example, the PV/T system costs range from 0.194 USD/kWh in Riyadh, Saudi Arabia, to 0.659 USD/kWh in Moscow, Russia, with costs in Tunis (0.289 USD/kWh) and Athens (0.293 USD/kWh) also demonstrating significant savings. This comparison highlights that, despite the competitive range found in certain locations using PV/T technology, regions like Helsinki, Finland (0.686 USD/kWh), show higher costs.
The feasibility and profitability of the PV/T-based electrolyzer system vary significantly due to local energy prices, policies, and climatic conditions. Regions with high energy prices and strong solar energy potential, like Rome, Italy, achieve shorter payback periods through favorable incentives and higher gross profits. In contrast, locations such as Tunis, Riyadh, and Quebec experience longer paybacks—in Quebec, for instance, the 16.62-year payback period reflects the impact of cold climatic conditions that limit the efficiency of PV/T systems, despite higher energy prices. Similarly, subsidized LPG and electricity prices in Tunis and Riyadh reduce the economic gains from switching to hydrogen, prolonging their payback periods. Hence, the economic feasibility remains constrained without robust policy support.
To facilitate the interpolation of the results—specifically, the hydrogen cost, DHW cost, and payback periods—a machine learning (ML) model is developed. Figure 16 depicts the flowchart showing the step-by-step workflow for developing the predictive machine learning model, focusing on PV/T-based electrolyzer system outcomes.
Four site-specific inputs were used as predictors—local electricity price (/kWh), LPG price (kWh/L), annual global horizontal irradiation (kWh/m2·yr), and grid electricity emission factor (kg CO2/kWh)—from which three physics-informed interaction features were derived: the DHW monetary savings, electricity–irradiation revenue, and a raw DHW value term, encoding the multiplicative structure of the system’s cash flows directly as linear features. LCOH, LCO-DHW, annual CO2 avoidance (ΔCO2), and net annual cash flow were predicted via two complementary models: a Ridge regression model (α = 0.1) fitted on the seven engineered features for Net CF—chosen over gradient boosting after systematic cross-validated comparison, as the physics-informed features render the relationship approximately linear—and a Gradient Boosting Regressor Chain (300 estimators, depth = 3, learning rate = 0.05) for the remaining targets, where the chain ordering (ΔCO2 → LCOH → LCO-DHW → Net CF) explicitly propagates inter-target correlations by using each predicted output as an additional input to subsequent estimators.
As shown by Table 6, model generalization was assessed via leave-one-out cross-validation (LOO-CV, n = 27 folds), which yielded LOO R2 values of 0.953, 0.935, 0.947, 0.796, and 0.934 for Net CF, LCOH, LCO-DHW, ΔCO2, and payback period, respectively, confirming strong predictive skill across all five performance indicators with LOO mean absolute errors of ±32.2 USD/yr, ±0.98 USD/kg, ±0.03 USD/kWh, ±0.21 ton/yr, and ±1.00 yr. The table further illustrates the model’s applicability through the Oslo validation case, where the predicted outputs remained within the corresponding LOO mean absolute error ranges, confirming the robustness and reliability of the proposed surrogate model for techno-economic assessment under varying climatic and economic conditions.
The ML-based economic predictions are compared with analytical model predictions in Figure 17. Both models yield closely aligned predictions across all nine studied cities, with mean absolute differences of 0.74 USD/kg for LCOH, 0.027 USD/kWh for LCO-DHW, 1.35 yrs for payback, and 0.12 ton/yr for ΔCO2, validating the analytical derivation as a physically consistent alternative to purely data-driven inference. Economically, the system performs best in sun-rich, low-electricity-cost cities: Santiago (Chile) and Algiers (Algeria) achieve the lowest LCOH (8.47–9.34 USD/kg) and LCO-DHW (0.25–0.28 USD/kWh), with Santiago returning the shortest profitable payback (3.39–3.41 yr) owing to its combination of high irradiation (1866 kWh/m2·yr), moderate LPG prices, and a significant grid emission factor (0.408 kg/kWh). Manila and Beirut follow with intermediate LCOH (10.86–11.83 USD/kg) and strong CO2 avoidance (1.40–1.86 ton/yr), driven by high emission factors (0.527 and 0.694 kg/kWh, respectively) and good solar resource. At the opposite extreme, Oslo and the three Central/Northern European cities (Brussels, Zagreb, and Luxembourg) exhibit the highest LCOH (15.15–21.51 USD/kg) and LCO-DHW (0.45–0.66 USD/kWh), a consequence of low irradiation (937–1209 kWh/m2·yr) despite elevated electricity and LPG prices that partially offset the cost penalty; Oslo’s near-zero grid emission factor (0.0022 kg/kWh) further suppresses its ΔCO2 avoidance to a mere 0.31–0.34 ton/yr, the lowest in the study. Algiers and Kyiv are identified as economically unviable deployment sites under current tariff structures—Algiers due to an extremely low electricity price (0.041 USD/kWh) that eliminates the financial incentive for on-site hydrogen generation despite strong solar irradiation (1683 kWh/m2·yr), and Kyiv due to a low electricity tariff (0.083 USD/kWh) combined with modest irradiation. Overall, the results confirm that grid carbon intensity and solar resource jointly govern environmental performance, while the economic viability of the PV/T system is primarily sensitive to the local electricity price, with markets offering both high irradiation and electricity prices above approximately 0.20 USD/kWh representing the most promising deployment targets.

5. Conclusions

This study investigated a PV/T-based electrolysis system for the simultaneous production of green hydrogen and domestic hot water across 27 geographically diverse locations. A rule-based dynamic control strategy with hysteresis thresholds on hydrogen storage SoC was implemented to balance electrolyzer operation with intermittent solar availability, preventing storage overfilling and minimizing start–stop cycling. Annual hydrogen yields ranged from 20 kg/yr (Helsinki, Stockholm) to 33.5 kg/yr (Riyadh, Abu Dhabi), while LCOH spanned from 6.47 USD/kg (Riyadh) to 22.86 USD/kg (Helsinki). The strongest economic performance was recorded in Rome (858.9 USD/yr, 2.47-year payback), followed by Davos, Madrid, Brasília, and Canberra, while cities with subsidized energy tariffs—Algiers, Tehran, and Cairo—yielded zero or negative net cash flows, confirming that low energy prices eliminate financial viability regardless of solar potential. Annual CO2 avoidance ranged from 0.33 ton/yr (Stockholm) to 2.97 ton/yr (Riyadh), with local grid carbon intensity and solar resource jointly governing environmental performance. The machine learning model achieved LOO R2 values of 0.953, 0.935, 0.947, 0.796, and 0.934 for net cash flow, LCOH, LCO-DHW, ΔCO2, and payback period, respectively, confirming strong predictive generalization across unseen locations. Overall, markets combining electricity tariffs above 0.20 USD/kWh and annual irradiation exceeding 1500 kWh/m2·yr represent the most favorable deployment contexts.
Several limitations should be acknowledged. The TRNSYS simulations rely on steady-state component models and TMY climate data, which may not fully capture dynamic weather variability or component degradation over time. The economic analysis is based on current capital cost estimates and fixed energy price assumptions, introducing uncertainty under evolving electrolyzer cost trajectories and fluctuating energy markets; policy incentives and subsidies were not incorporated into the quantitative calculations. The machine learning model was trained on 27 simulated data points, and while LOO-CV confirms robust generalization, predictions for locations with climatic or economic characteristics significantly outside the training distribution should be interpreted with caution. Finally, residential deployment of hydrogen storage introduces safety considerations—including leak detection, ventilation requirements, and pressure management—that were not explicitly modeled and should be addressed in future experimental or pilot-scale studies. Future work should focus on integrating real-time weather forecasting into the control strategy, evaluating hybrid renewable configurations, and assessing the influence of region-specific policy frameworks on long-term economic feasibility.

Author Contributions

M.H.: methodology, software, validation, formal analysis, investigation, data curation, writing—original draft preparation, writing—review and editing, and visualization. S.E.: supervision and writing—review and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Tunisian Ministry of Higher Education and Scientific Research through the Research Project Agreement for Young Researchers (PEJC), Grant No. PEJC2025-D6P13.

Data Availability Statement

All relevant data supporting the findings of this study are included within the article. Any additional data required to reproduce the results are available from the corresponding author upon reasonable request.

Acknowledgments

Generative AI tools were used to support proofreading, grammatical correction, and stylistic improvement of the manuscript. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

The following abbreviations are used in this manuscript:
SymbolDescriptionUnit
A c Collector aream2
A e l e Electrode aream2
A g Glass aream2
A t a n k Tank surface aream2
C c Specific heat capacity of cellJ/kg·K
C p w Specific heat capacity of waterJ/kg·K
E t o t Total annual energy outputkWh/yr
F Faraday’s constant C/mol
f H 2 Hydrogen energy fraction
f t h Thermal energy fraction
G Solar irradianceW/m2
G H Global horizontal irradiationkWh/m2·yr
h c e l l a m Heat transfer coefficient, cell to ambientW/m2·K
h c e l l w Heat transfer coefficient, cell to waterW/m2·K
I e l Electrolyzer currentA
K l i Lifetime degradation factor
K o p Operating condition factor
K P V PV performance factor
K s p Spectral correction factor
L c Collector thicknessm
L H V H 2 Lower heating value of hydrogen kWh/kg
M H 2 Molar mass of hydrogenkg/mol
M w Mass of waterkg
m ˙ H 2 Hydrogen production ratekg/s
m ˙ w Water mass flow ratekg/s
N Number of electrolyzer cells in series
P Packing factor
P i d l e Electrolyzer minimum idling powerW
P m a x Electrolyzer maximum power ratingW
P P V / T PV/T electrical power outputW
P s e t Electrolyzer power setpointW
P V m , H 2 Present value of hydrogen outputUSD
Q I Incident solar energyW
Q e l Electrical energy generated by PV cellW
Q c e l l w Heat transferred from cell to waterW
Q P V a m Heat flux from cell to ambientW
Q t h Annual thermal energy outputkWh/yr
Q w Thermal energy transferred to waterW
r Discount rate%
T a m Ambient temperature°C
T c e l l PV cell temperature°C
T t a n k Storage tank temperature°C
T t a n k , i Tank inlet temperature°C
T t a n k , o Tank outlet temperature°C
T w Water temperature°C
T 0 Reference (inlet) water temperature°C
U c Side and back loss coefficientW/m2·K
U t a n k Tank heat loss coefficientW/m2·K
V e l Electrolyzer voltageV
z Number of electrons transferred
Greek Symbols
α P V         PV cell absorptivity            —
η F         Faraday (electrolyzer) efficiency            —
η r e f         Nominal PV cell efficiency (STC)            —
ρ         Density of collector material            kg/m3
τ g         Solar transmittance of PV glass            —
τ P V         PV transmittance factor            —

Abbreviations

TermDescription
CAPEXCapital expenditure
DHWDomestic hot water
EL_LOWLower hydrogen storage SoC threshold
EL_UPUpper hydrogen storage SoC threshold
GBRGradient boosting regressor
LCOHLevelized cost of hydrogen (USD/kg)
LCO-DHWLevelized cost of domestic hot water (USD/kWh)
LOOLeave-one-out cross-validation
LPGLiquefied petroleum gas
LPG_HVLPG heating value
MPPTMaximum power point tracking
O&MOperation and maintenance
PVPhotovoltaic
PV/TPhotovoltaic/thermal
SoCState of charge
STCStandard test conditions
ΔCO2Annual CO2 avoidance (ton/yr)

References

  1. International Energy Agency. Global Hydrogen Review 2023; International Energy Agency: Paris, France, 2023; Available online: https://www.iea.org/ (accessed on 2 October 2025).
  2. Ishaq, H.; Dincer, I. Comparative assessment of renewable energy-based hydrogen production methods. Renew. Sustain. Energy Rev. 2021, 135, 110192. [Google Scholar] [CrossRef]
  3. Ishaq, H.; Dincer, I.; Crawford, C. A review on hydrogen production and utilization: Challenges and opportunities. Int. J. Hydrogen Energy 2022, 47, 26238–26264. [Google Scholar] [CrossRef]
  4. Megía, P.J.; Vizcaíno, A.J.; Calles, J.A.; Carrero, A. Hydrogen production technologies: From fossil fuels toward renewable sources. A mini review. Energy Fuels 2021, 35, 16403–16415. [Google Scholar] [CrossRef]
  5. Younas, M.; Shafique, S.; Hafeez, A.; Javed, F.; Rehman, F. An Overview of Hydrogen Production: Current Status, Potential, and Challenges. Fuel 2022, 316, 123317. [Google Scholar] [CrossRef]
  6. Kojima, H.; Nagasawa, K.; Todoroki, N.; Ito, Y.; Matsui, T.; Nakajima, R. Influence of renewable energy power fluctuations on water electrolysis for green hydrogen production. Int. J. Hydrogen Energy 2023, 48, 4572–4593. [Google Scholar] [CrossRef]
  7. Akarsu, B.; Genç, M.S. Optimization of electricity and hydrogen production with hybrid renewable energy systems. Fuel 2022, 324, 124465. [Google Scholar] [CrossRef]
  8. Fragiacomo, P.; Genovese, M. Technical-economic analysis of a hydrogen production facility for power-to-gas and hydrogen mobility under different renewable sources in Southern Italy. Energy Convers. Manag. 2020, 223, 113332. [Google Scholar] [CrossRef]
  9. Nasser, M.; Megahed, T.F.; Ookawara, S.; Hassan, H. Techno-economic assessment of clean hydrogen production and storage using hybrid renewable energy system of PV/Wind under different climatic conditions. Sustain. Energy Technol. Assess. 2022, 52, 102195. [Google Scholar] [CrossRef]
  10. Timmerberg, S.; Kaltschmitt, M. Hydrogen from renewables: Supply from North Africa to Central Europe as blend in existing pipelines- Potentials and costs. Appl. Energy 2019, 237, 795–809. [Google Scholar] [CrossRef]
  11. Kountouris, I.; Bramstoft, R.; Madsen, T.; Gea-Bermúdez, J.; Münster, M.; Keles, D. A unified European hydrogen infrastructure planning to support the rapid scale-up of hydrogen production. Nat. Commun. 2024, 15, 5517. [Google Scholar] [CrossRef]
  12. Bayssi, O.; Nabil, N.; Azaroual, M.; Bousselamti, L.; Boutammachte, N.; Rachidi, S.; Barberis, S. Green hydrogen landscape in North African countries: Strengths, challenges, and future prospects. Int. J. Hydrogen Energy 2024, 84, 822–839. [Google Scholar] [CrossRef]
  13. Rekik, S.; Elalimi, S. A spatial ranking of optimal sites for solar-driven green hydrogen production using GIS and multi-criteria decision-making approach: A case of Tunisia. Energy Explor. Exploit. 2024, 42, 2150–2190. [Google Scholar] [CrossRef]
  14. Barhoumi, E.; Okonkwo, P.C.; Farhani, S.; Ben Belgacem, I.; Zghaibeh, M.; Mansir, I.B.; Bacha, F. Techno-economic analysis of photovoltaic-hydrogen refueling station case study: A transport company Tunis-Tunisia. Int. J. Hydrogen Energy 2022, 47, 24523–24532. [Google Scholar] [CrossRef]
  15. Farhani, S.; Barhoumi, E.; Islam, Q.U.; Becha, F. Optimal design and economic analysis of a stand-alone integrated solar hydrogen water desalination system case study agriculture farm in Kairouan Tunisia. Int. J. Hydrogen Energy 2024, 63, 759–766. [Google Scholar] [CrossRef]
  16. Gtari, O.; Hamdi, M.; Hazami, M. Analysis of an uncovered photovoltaic/thermal solar system powering a seawater reverse osmosis desalination plant. Environ. Prog. Sustain. Energy 2022, 41, e13753. [Google Scholar] [CrossRef]
  17. Gtari, O.; Hamdi, M.; Hazami, M. Energy behaviour and economic analysis of a photovoltaic-thermal (PV/T) collector coupled with a reverse osmosis (RO) desalination unit in Tunisian climatic conditions: A feasibility study. Environ. Sci. Pollut. Res. 2023, 30, 79120–79135. [Google Scholar] [CrossRef]
  18. Gül, M.; Akyüz, E. Hydrogen Generation from a Small-Scale Solar Photovoltaic Thermal (PV/T) Electrolyzer System: Numerical Model and Experimental Verification. Energies 2020, 13, 2997. [Google Scholar] [CrossRef]
  19. Conti, P.; Schito, E.; Testi, D. Cost-Benefit Analysis of Hybrid Photovoltaic/Thermal Collectors in a Nearly Zero-Energy Building. Energies 2019, 12, 1582. [Google Scholar] [CrossRef]
  20. Kenfack, A.Z.; Nematchoua, M.K.; Chara-Dackou, V.S.; Simo, E. Evaluation of the hydrogen/oxygen and thermoelectric production of a hybrid solar PV/T-electrolyzer system. Results Eng. 2024, 24, 102920. [Google Scholar] [CrossRef]
  21. De, R.K.; Ganguly, A. Modeling and analysis of a solar thermal-photovoltaic-hydrogen-based hybrid power system for running a standalone cold storage. J. Clean. Prod. 2021, 293, 126202. [Google Scholar] [CrossRef]
  22. Usman, M.; Asghar, F.; Javed, M.R.; Virk, U.S.; Jamal, M.Y.; Waleed, A. An efficient controller design of a PV integrated single inductor multiple output DC-DC converter for dynamic voltage and low power applications. Sci. Prog. 2023, 106, 00368504231201792. [Google Scholar] [CrossRef]
  23. Ahessab, H.; Gaga, A.; Elhadadi, B. Enhanced MPPT controller for partially shaded PV systems using a modified PSO algorithm and intelligent artificial neural network, with DSP F28379D implementation. Sci. Prog. 2024, 107, 00368504241290377. [Google Scholar] [CrossRef]
  24. Hu, C.; Lu, H.; Wang, H.; Zhou, J.; Luo, S.; Ma, R.; Meng, L. Dynamic compensation control strategy of DC bus voltage based on residual generator. Sci. Prog. 2021, 104, 00368504211026284. [Google Scholar] [CrossRef]
  25. Kong, F. A better understanding of the role of new energy and green finance to help achieve carbon neutrality goals, with special reference to China. Sci. Prog. 2022, 105, 00368504221086361. [Google Scholar] [CrossRef]
  26. Zhang, L.; Zhang, Q.; Rafiq, M.A. The economic and environmental analysis of solar energy development under climate impacts. Sci. Prog. 2022, 105, 00368504221124065. [Google Scholar] [CrossRef]
  27. Gu, Z.; Zhang, S.; Lv, F.; Pan, G.; Gu, W.; Li, H. Market-driven multi-stage generation expansion planning for hydrogen-penetrated power systems towards energy transition. IEEE Trans. Ind. Appl. 2026, 62, 93–109. [Google Scholar] [CrossRef]
  28. Hong, Z.; Wei, Z.; Han, X. Optimization scheduling control strategy of wind–hydrogen system considering hydrogen production efficiency. J. Energy Storage 2022, 47, 103609. [Google Scholar] [CrossRef]
  29. Xin, X.; Liu, Y.; Zhang, Z.; Zheng, H.; Zhou, Y. A day-ahead operational regulation method for solar district heating systems based on model predictive control. Appl. Energy 2025, 377, 124619. [Google Scholar] [CrossRef]
  30. Aste, N.; Del Pero, C.; Leonforte, F.; Manfren, M. Performance monitoring and modeling of an uncovered photovoltaic-thermal (PVT) water collector. Sol. Energy 2016, 135, 551–568. [Google Scholar] [CrossRef]
  31. Sharifian, S.; Asasian Kolur, N.; Harasek, M. Transient simulation and modeling of photovoltaic-PEM water electrolysis. Energy Sources Part A Recovery Util. Environ. Eff. 2019, 42, 1097–1107. [Google Scholar] [CrossRef]
  32. Ulleberg, O. Modeling of advanced alkaline electrolyzers: A system simulation approach. Int. J. Hydrogen Energy 2003, 28, 21–33. [Google Scholar] [CrossRef]
  33. Yodwong, B.; Guilbert, D.; Phattanasak, M.; Kaewmanee, W.; Hinaje, M.; Vitale, G. Faraday’s Efficiency Modeling of a Proton Exchange Membrane Electrolyzer Based on Experimental Data. Energies 2020, 13, 4792. [Google Scholar] [CrossRef]
  34. Ulleberg, Ø. Stand-Alone Power Systems for the Future: Optimal Design, Operation and Control of Solar-Hydrogen Energy Systems. Ph.D. Thesis, Norwegian University of Science and Technology, Trondheim, Norway, 1998. [Google Scholar]
  35. Harrison, K.W.; Hernández-Pacheco, E.; Mann, M.; Salehfar, H. Semi empirical Model for Determining PEM Electrolyzer Stack Characteristics. J. Fuel Cell Sci. Technol. 2006, 3, 220–223. [Google Scholar] [CrossRef]
  36. Ismail, T.M.; Ramzy, K.; Elnaghi, B.E.; Abelwhab, M.; El-Salam, M.A. Using MATLAB to model and simulate a photovoltaic system to produce hydrogen. Energy Convers. Manag. 2019, 185, 101–129. [Google Scholar] [CrossRef]
  37. Alghool, D.; Bouden, C.; Haouari, M.; Trucco, P. Harnessing enhanced solar efficiency for green hydrogen production: A comparative analysis of PV and PV-T systems. Int. J. Hydrogen Energy 2025, 98, 394–406. [Google Scholar] [CrossRef]
  38. International Energy Agency. Electrolysers. IEA Energy System Tracking Report. 2024. Available online: https://www.iea.org/energy-system/low-emission-fuels/electrolysers (accessed on 3 May 2026).
  39. GlobalPetrolPrices. Retail Energy Price Data. 2026. Available online: https://www.globalpetrolprices.com (accessed on 3 May 2026).
  40. Intergovernmental Panel on Climate Change. 2019 Refinement to the 2006 IPCC Guidelines for National Greenhouse Gas Inventories; Calvo Buendia, E., Tanabe, K., Kranjc, A., Baasansuren, J., Fukuda, M., Ngarize, S., Osako, A., Pyrozhenko, Y., Shermanau, P., Federici, S., Eds.; Intergovernmental Panel on Climate Change: Geneva, Switzerland, 2019. [Google Scholar]
  41. Brander, M.; Sood, A.; Wylie, C.; Haughton, A.; Lovell, J. Technical Paper|Electricity-Specific Emission Factors for Grid Electricity. Ecometrica. 2011. Available online: https://www.bravenewclimate.com (accessed on 2 May 2026).
  42. Our World in Data. Research and Data to Make Progress Against the World’s Largest Problems. Available online: https://www.ourworldindata.org/ (accessed on 2 May 2026).
  43. Majumdar, A.; Haas, M.; Elliot, I.; Nazari, S. Control and control-oriented modeling of PEM water electrolyzers: A review. Int. J. Hydrogen Energy 2023, 48, 30621–30641. [Google Scholar] [CrossRef]
  44. M’Sirdi, N.K.; Benabdellatif, M.; Tina, G.M.; Naamane, A. Dynamic Coupled Electrical and Thermal Model for PV-T Solar Energy Collectors. In Proceedings of the 5th International Symposium on Environment-Friendly Energies and Applications (EFEA), Roma, Italy, 24–26 September 2018; pp. 1–8. [Google Scholar] [CrossRef]
  45. Farrel, N. Policy design for green hydrogen. Renew. Sustain. Energy Rev. 2023, 178, 113216. [Google Scholar] [CrossRef]
  46. Australian Renewable Energy Agency (ARENA). Cost Assessment of Hydrogen Production from PV and Electrolysis. Retrieved from ARENA 2020. Available online: https://www.arena.gov.au (accessed on 27 October 2025).
  47. Hassan, Q.; Abdulrahman, I.S.; Salman, H.M.; Olapade, O.T.; Jaszczur, M. Techno-Economic Assessment of Green Hydrogen Production by an Off-Grid Photovoltaic Energy System. Energies 2023, 16, 744. [Google Scholar] [CrossRef]
  48. Bracci, J.M.; Sherwin, E.D.; Boness, N.L.; Brandt, A.R. A cost comparison of various hourly-reliable and net-zero hydrogen production pathways in the United States. Nat. Commun. 2023, 14, 7391. [Google Scholar] [CrossRef] [PubMed]
  49. Ertekin, C.; Kulcu, R.; Evrendilek, F. Techno-economic analysis of solar water heating systems in Turkey. Sensors 2008, 8, 1252–1277. [Google Scholar] [CrossRef]
Figure 1. Control strategy flowchart for electrolyzer operation based on PV/T system power and hydrogen storage conditions.
Figure 1. Control strategy flowchart for electrolyzer operation based on PV/T system power and hydrogen storage conditions.
Hydrogen 07 00068 g001
Figure 2. Dynamic control strategy and state-system diagnostic matrix.
Figure 2. Dynamic control strategy and state-system diagnostic matrix.
Hydrogen 07 00068 g002
Figure 3. Profiles of hydrogen consumption and domestic hot water demand.
Figure 3. Profiles of hydrogen consumption and domestic hot water demand.
Hydrogen 07 00068 g003
Figure 4. TRNSYS simulation model for domestic hot water and hydrogen production using PV/T system with controller optimization.
Figure 4. TRNSYS simulation model for domestic hot water and hydrogen production using PV/T system with controller optimization.
Hydrogen 07 00068 g004
Figure 5. TRNSYS simulation of a PV/T system for hydrogen production and domestic hot water supply.
Figure 5. TRNSYS simulation of a PV/T system for hydrogen production and domestic hot water supply.
Hydrogen 07 00068 g005
Figure 6. Hydrogen flow rate from PV power generation throughout the year in Vienna, Austria: Results are compared with those by Sharifian et al. [31].
Figure 6. Hydrogen flow rate from PV power generation throughout the year in Vienna, Austria: Results are compared with those by Sharifian et al. [31].
Hydrogen 07 00068 g006
Figure 7. Validation of the coupled PV/T-electrolyzer model with results of Ismail et al. [36].
Figure 7. Validation of the coupled PV/T-electrolyzer model with results of Ismail et al. [36].
Hydrogen 07 00068 g007
Figure 8. Electrical power output, H2 production rate, DHW temperature, storage tank pressure level (state of charge), and electrolyzer operating point under Tunis climatic conditions.
Figure 8. Electrical power output, H2 production rate, DHW temperature, storage tank pressure level (state of charge), and electrolyzer operating point under Tunis climatic conditions.
Hydrogen 07 00068 g008
Figure 9. (a) Monthly variation in PV/T energy output and hydrogen production; (b) corresponding monthly domestic hot water (DHW) thermal energy under Tunisian climatic conditions.
Figure 9. (a) Monthly variation in PV/T energy output and hydrogen production; (b) corresponding monthly domestic hot water (DHW) thermal energy under Tunisian climatic conditions.
Hydrogen 07 00068 g009
Figure 10. Sensitivity of the PV/T–Electrolyzer–H2–DHW system to PV/T cell efficiency under Tunis climatic conditions.
Figure 10. Sensitivity of the PV/T–Electrolyzer–H2–DHW system to PV/T cell efficiency under Tunis climatic conditions.
Hydrogen 07 00068 g010
Figure 11. PV/T system output: Green hydrogen and DHW in different studied locations.
Figure 11. PV/T system output: Green hydrogen and DHW in different studied locations.
Hydrogen 07 00068 g011
Figure 12. Levelized costs of hydrogen (LCOH) and domestic hot water (DHW) in the studied locations.
Figure 12. Levelized costs of hydrogen (LCOH) and domestic hot water (DHW) in the studied locations.
Hydrogen 07 00068 g012
Figure 13. Economic performance of the PV/T system in different studied locations: Net cash flow (NCF) and payback period.
Figure 13. Economic performance of the PV/T system in different studied locations: Net cash flow (NCF) and payback period.
Hydrogen 07 00068 g013
Figure 14. Multi-metric radar normalized performance radar chart for the proposed PV/T system producing both hydrogen and DHW in six representative cities.
Figure 14. Multi-metric radar normalized performance radar chart for the proposed PV/T system producing both hydrogen and DHW in six representative cities.
Hydrogen 07 00068 g014
Figure 15. Annual CO2 avoidance of the PV/T system (1 kWp) across the selected cities.
Figure 15. Annual CO2 avoidance of the PV/T system (1 kWp) across the selected cities.
Hydrogen 07 00068 g015
Figure 16. Code pipeline of the machine learning-based prediction model for hydrogen cost, DHW cost, payback period, and CO2 reduction.
Figure 16. Code pipeline of the machine learning-based prediction model for hydrogen cost, DHW cost, payback period, and CO2 reduction.
Hydrogen 07 00068 g016
Figure 17. Machine learning-based economic forecast of PV/T-driven electrolyzer model vs. analytical predictions per city (Error bar: ±LOO MAE for ML model).
Figure 17. Machine learning-based economic forecast of PV/T-driven electrolyzer model vs. analytical predictions per city (Error bar: ±LOO MAE for ML model).
Hydrogen 07 00068 g017
Table 1. Technical specifications of the photovoltaic thermal (PV/T) collector.
Table 1. Technical specifications of the photovoltaic thermal (PV/T) collector.
ParameterValue
Collector area9 m2
Collector efficiency factor0.8
Collector plate absorptance0.9
Number of glass covers1
Collector plate emittance0.9
Loss coefficient for bottom and edge 2.78 W/m2·K
Collector slope45 °
Table 2. Simulation parameters for the electrolyzer used in the numeric model.
Table 2. Simulation parameters for the electrolyzer used in the numeric model.
ParameterValue
Electrode area0.025 m2
Number of cells in series21
Number of stacks in parallel1
Maximum allowable current density200 mA/cm2
Maximum allowable operating temperature80 °C
Minimum allowable cell voltage1.229 V
Table 3. Main design and operating parameters of the hydrogen storage, water tank, and circulation pumps.
Table 3. Main design and operating parameters of the hydrogen storage, water tank, and circulation pumps.
ComponentParameterValue
Hydrogen tankVolume1 m3
Water tankOverall volume5 m3
Loss coefficient1.67 W·m−2·K−1
Fill pump Rated flow rate7.5 L/min
Rated power50 W
Mixing pumpRated flow rate10 L·min−1
Rated power50 W
Table 4. Typical price overview for the PV/T-based electrolyzer system (based on recent estimates).
Table 4. Typical price overview for the PV/T-based electrolyzer system (based on recent estimates).
ComponentPower
/Volume
Lifespan (Years)Capital CostReference
PV/T collector1 kW20 years542.0 USDAlghool et al. [37]
Electrolyzer + Controller1 kW10 years1000.0 USDIEA [38]
Pumps100 W20 years150.0 USD
Water storage5 m325 years100.0 USDEngineering estimate
Hydrogen storage1 m325 years150.0 USD
O&M cost 100.0 USD/yr
Table 5. Sensitivity analysis of economic indicators under ±20% parameter variation in Tunisian conditions.
Table 5. Sensitivity analysis of economic indicators under ±20% parameter variation in Tunisian conditions.
MetricParameterBase−20%+20%RangeRelative Sensitivity
LCOH (USD/kg)CAPEX9.62158.271810.97132.69940.70
LCODHW (USD/kWh)0.28870.24820.32920.08100.70
Payback (yr)14.9398.187216.41348.22621.38
Electricity price14.93916.60408.48768.11641.36
LPG price14.93916.19158.70107.49051.25
Table 6. Combined leave-one-out cross-validation metrics and Oslo validation predictions for the developed ML model; Oslo input conditions: Electricity price = 0.202 USD/kWh, LPG price = 1.24 USD/L, global irradiation = 937 kWh/m2·yr, emission factor = 0.00224 kgCO2/kWh.
Table 6. Combined leave-one-out cross-validation metrics and Oslo validation predictions for the developed ML model; Oslo input conditions: Electricity price = 0.202 USD/kWh, LPG price = 1.24 USD/L, global irradiation = 937 kWh/m2·yr, emission factor = 0.00224 kgCO2/kWh.
OutputLOO MAELOO (R2)Prediction (Oslo)Validation RangeUnit
Net CF32.1820.953108.724108.724 ± 32.182USD/yr
Payback1.0020.93417.77717.777 ± 1.002yr
LCOH0.9820.93521.30621.306 ± 0.982USD/kg
LCO-DHW0.0280.9470.6580.658 ± 0.028USD/kWh
ΔCO20.2060.7960.3430.343 ± 0.206ton/yr
Net CF32.1820.953108.724108.724 ± 32.182USD/yr
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Hamdi, M.; Elalimi, S. Dynamic Control of a PV/T Electrolysis System for Hydrogen and Hot-Water Production: Multi-Regional Analysis with Machine Learning. Hydrogen 2026, 7, 68. https://doi.org/10.3390/hydrogen7020068

AMA Style

Hamdi M, Elalimi S. Dynamic Control of a PV/T Electrolysis System for Hydrogen and Hot-Water Production: Multi-Regional Analysis with Machine Learning. Hydrogen. 2026; 7(2):68. https://doi.org/10.3390/hydrogen7020068

Chicago/Turabian Style

Hamdi, Mohamed, and Souheil Elalimi. 2026. "Dynamic Control of a PV/T Electrolysis System for Hydrogen and Hot-Water Production: Multi-Regional Analysis with Machine Learning" Hydrogen 7, no. 2: 68. https://doi.org/10.3390/hydrogen7020068

APA Style

Hamdi, M., & Elalimi, S. (2026). Dynamic Control of a PV/T Electrolysis System for Hydrogen and Hot-Water Production: Multi-Regional Analysis with Machine Learning. Hydrogen, 7(2), 68. https://doi.org/10.3390/hydrogen7020068

Article Metrics

Back to TopTop