## 4 Modeling a Solar-Hydrogen System in the University
### Simulation Result
All things considered, the examination of these factors within the framework of a solar-hydrogen storage system emphasizes how energy is generated, stored, and used in a dynamic manner, underscoring the system's flexibility in responding to changing environmental circumstances and energy requirements. PElectrolyzer, or the electrolyzer's energy consumption, and mH2, or the hydrogen mass flow rate, are used to analyze the relationship between the electrolyzer's power consumption and the rate at which hydrogen is produced. While mH2 drops from 0 to 99, indicating changes in the rate of hydrogen generation over time, PElectrolyzer ranges from 179 to 195, demonstrating fluctuations in the energy spent by the electrolyzer during hydrogen production. According to the investigation, mH2, which tends to climb as PElectrolyzer values rise, reflects higher rates of hydrogen creation. This positive correlation means that more energy is used for electrolysis, which raises the rates at which hydrogen is produced. PElectrolyzer values tend to rise with increased electrolyzer energy consumption, and mH2 values tend to rise with increased rates of hydrogen synthesis. A direct correlation between hydrogen generation and electrolyzer power consumption is shown by the fact that mH2 values decrease in proportion to a decrease in PElectrolyzer. As  
Figure 9: Performance results of Pstorage and PElectrolyzer. PElectrolyzer falls, indicating a lower energy input for electrolysis, mH2 values fall as well, indicating a dip in the rates at which hydrogen is generated. The dependence of hydrogen production on the energy used by the electrolyzer is highlighted by this negative correlation. This study illustrates the interplay between energy production, storage, and consumption in the context of a solar-hydrogen storage system. The dynamic link between PElectrolyzer, mH2, and hydrogen generation highlights how adaptable the system is to shifting energy needs and environmental conditions. Through comprehension and enhancement of these variables, the solar-hydrogen storage system may effectively produce, store, and employ energy, hence augmenting sustainability and resilience within energy systems. The dynamic behavior of a solar-hydrogen storage system can be understood by an examination of the State of Charge (SOC) and hydrogen mass flow rate (mH2) (Figure 11). The SOC drops from 100 to 75 over time, suggesting a progressive loss of energy storage capacity. The use of stored energy to meet energy demand or offset variations in the production of renewable energy is reflected in this fall in SOC. The system's capacity to store energy declines with SOC, which may call for modifications to energy management tactics in order to preserve system performance and dependability. The rate of hydrogen synthesis increases in tandem with the increase in mH2, which rises from 0 to 99. Higher amounts of hydrogen synthesis by electrolysis are shown by the growing mH2 readings, which are a result of the energy input and operating parameters of the system. The system may prioritize hydrogen synthesis to store excess energy for later use or to fulfill current energy demand as renewable energy supply varies and energy storage is depleted (reflected in decreasing SOC). The analysis emphasizes how the solar-hydrogen storage system's energy storage and hydrogen generation interact dynamically. SOC values that are declining indicate that stored energy is being used, whereas mH2 values that are rising indicate increased hydrogen production to meet fluctuating energy needs. The system may efficiently balance energy supply and demand, maximize energy usage, and improve overall system resilience and performance by comprehending and optimizing these dynamics. Figure 10: Performance results of PElectrolyzer and mH2.