Off-Grid Solar Water Pump — 2D

A 2D-canvas companion to the 3D off-grid solar pump simulator, built around the same real physics but making the electrical matching visible: a single-diode PV I-V curve is solved by numeric bisection against the pump motor's load line every frame to find the true operating point, and that point's power drives a real hydraulic flow calculation (P = ρgQH) against the chosen lift head. Watch the operating point slide along the curve as the sun moves, clouds pass, or you change panel area and head, while the tank fills through the day and the irrigation valve draws it back down.