Among the various renewable-powered pathways for green hydrogen production, solar photovoltaic (PV) technology represents a particularly promising option due to its environmental sustainability, widespread availability, and declining costs. However, the inherent intermittency of solar irradiance presents operational challenges for electrolyzers, particularly in terms of stability and efficiency. This study presents a MATLAB-based dynamic model of an off-grid, DC-coupled solar PV-Anion Exchange Membrane (AEM) electrolyzer system, with a specific focus on realistically estimating hydrogen output. The model incorporates thermal energy management strategies, including electrolyte pre-heating during startup, and accounts for performance degradation due to load cycling. The model is designed for a comprehensive analysis of hydrogen production by employing a 10-year time series of irradiance and ambient temperature profiles as inputs. The results are compared with two simplified scenarios: one that does not consider the equipment response time to variable supply and another that assumes a fixed start temperature to evaluate their impact on productivity. Furthermore, to limit the effects of degradation, the algorithm has been modified to allow the non-sequential activation of the stacks, resulting in an improvement of the single stack efficiency over the lifetime and a slight increase in overall hydrogen production.
Driven by the growing availability of funding opportunities, electrolyzers have become increasingly accessible, unlocking significant potential for large-scale green hydrogen production. The goal of this investigation is to develop a techno-economic optimization framework for the design of a stand-alone photovoltaic (PV)-driven hydrogen production and refueling station, with the explicit objective of minimizing the levelized cost of hydrogen (LCOH). The system integrates PV generation, a proton-exchange-membrane electrolyzer, battery energy storage, compression, and high-pressure hydrogen storage to meet the daily demand of a fleet of fuel cell buses. Results show that the optimal configuration achieves an LCOH of 11 €/kg when only fleet demand is considered, whereas if surplus hydrogen sales are accounted for, the LCOH reduces to 7.98 €/kg. The analysis highlights that more than 75% of total investment costs are attributable to PV and electrolysis, underscoring the importance of capital incentives. Financial modeling indicates that a subsidy of about 58.4% of initial CAPEX is required to ensure a 10% internal rate of return under EU market conditions. The proposed methodology provides a reproducible decision-support tool for optimizing off-grid hydrogen refueling infrastructure and assessing policy instruments to accelerate hydrogen adoption in heavy-duty transport.