Regenerative Fuel Cell: Lunar Night Power Storage (2D)
A 2D schematic of a regenerative hydrogen fuel cell storing solar power across the two-week lunar day/night cycle: watch a PEM electrolyzer split water into H2 and O2 during sunlight and a fuel cell recombine them for power through the long lunar night.
A regenerative fuel cell closes the electrolysis/fuel-cell loop to store solar power for spacecraft and surface bases that must survive long stretches of darkness — most notably the Moon's roughly two-week night, where a battery heavy enough to last would eat too much of the mission's mass budget. This 2D schematic models the real power balance: during sunlight a PEM electrolyzer splits stored water into hydrogen and oxygen using surplus solar power, filling a pressurized tank shown as a rising gas-particle fill level; once the sun sets, a fuel cell recombines that hydrogen and oxygen back into water, releasing electrical power to keep the load running. Tune the day/night cycle length, solar array size, constant load, round-trip efficiency and tank capacity to see whether the system survives a full night or brownouts before sunrise, with live readouts for stored hydrogen mass, net power flow, elapsed mission time and the fraction of load actually served.
A 2D schematic of a regenerative hydrogen fuel cell storing solar power across the two-week lunar day/night cycle, splitting water into H2/O2 by day and recombining it for power through the long lunar night.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install