Memuat
Memuat
Surplus solar becomes hydrogen by day, then a fuel cell returns it as electricity at night.
0 views
A green-hydrogen energy chain over 48 hours: a fluctuating 80 kWp solar array serves the local load first, the surplus goes to a PEM electrolyser (Nernst, activation and ohmic terms), hydrogen is stored in a 3 m3 tank whose pressure limits production, and a 20 kW fuel cell covers the shortfall at night.

The hour of day comes from a mod-24 block, the clear-sky curve is multiplied by a cloud factor, and the local load is read from a lookup.
Solar serves the load first; the surplus goes to the electrolyser (limited by tank pressure and a 3 kW minimum power), a deficit is supplied by the fuel cell.
Cell voltage = reversible voltage + Nernst term + activation (asinh) term + ohmic term; an Integrator moves the current until the stack power equals the command.
Faraday law gives the hydrogen rate; stack efficiency is computed against the lower heating value, and system efficiency includes the auxiliary load.
Hydrogen mass is an Integrator output; pressure follows the ideal gas law, and near 30 bar the electrolyser power is cut.
A 20 kW fuel cell with a 5 s lag covers the deficit while hydrogen remains; its efficiency comes from a load-dependent table.
System
A 100-cell 300 cm2 electrolyser stack (up to 450 A), a 3 m3 tank at 300 K, a 20 kW fuel cell and 80 kWp of solar.
Scenario
A 48 h simulation (172,800 s) with a 1 s step and two thick-cloud events; the tank starts at 8 bar.
Note: The fuel cell and tank use simple models (ideal gas, tabulated efficiency); the efficiency figures apply to this example parameter set.
Simulink model elektroliser_pem_hidrogen.slx (standard block diagram); Builder script buat_model.m and runner jalankan.m; Result plots grafik_hidrogen (PNG) and metrik.json; Step-by-step PDF guide (sent with the package; also part of the video class); Video tutorial in the MATLAB Simulink 2026 Trends class (this project's episode; episode 1 is free); Requires MATLAB and Simulink (built in R2025b); the slh.m builder helper is included.
Yes. The .slx model opens in MATLAB with Simulink (built in R2025b; use the same or a newer release). Project 09 also needs the Communications Toolbox. The package includes the builder script and the runner, so you can also rebuild the model and rerun the plots yourself.
Yes. Parameters are kept in the Model Workspace, so you can change values such as gains, capacities and profiles and rerun the simulation. If you would like us to adapt or extend the model for you, message us on WhatsApp.
The project costs US$24. Use the "Buy via WhatsApp" button on this page; the project files are delivered after payment is confirmed.
Found a problem or have a suggestion for this project? Tell us on WhatsApp
Back to MATLAB Simulink portfolio