Abstract
Compressed hydrogen storage is a mature option for storing surplus photovoltaic (PV) electricity, but the pressure of a given hydrogen inventory rises with the gas temperature, an effect rarely represented in energy management systems. This study proposes a thermal-aware model predictive control (TA-MPC) of a stand-alone PV–electrolyzer–compressed hydrogen storage–fuel cell system and evaluates it for a case study in Siliana, Tunisia. A plant model with a two-zone real-gas tank model, validated against published fueling test data (mean absolute pressure error 2.4%) and verified numerically for slow charging, was simulated over a synthetic meteorological year. Filling raised the gas temperature by less than 1 K, but the diurnal ambient cycle caused afternoon pressure rises: rule-based control opened the relief valve 211 times per year and vented 7.0% of the produced hydrogen, and an energy-only MPC still vented 5.3%. The TA-MPC eliminated venting while keeping the unserved energy within 1 kWh/yr of rule-based control, raised the round-trip efficiency from 28.8% to 31.4% and remained vent-free with 30% forecast errors. A multi-objective optimization (NSGA-II) showed that eliminating unserved energy raised the levelized cost of storage from 0.69 to 1.07 USD/kWh. Temperature-aware filling should be a design requirement for outdoor hydrogen storage in hot climates.