☀️ Rooftop Solar Home: PV Cell I-V Curve, MPPT and Battery Storage

2D interactive simulation · educational model

Drag the time slider to scrub the day, or let it play; change clouds, temperature, panel count and battery size and watch the energy flows.

The science

Photovoltaic cell (single-diode model). A 60-cell module is modelled by I = Iph - I0[exp((V+I Rs)/a) - 1] - (V+I Rs)/Rsh, with a = n Ns kT/q. The photocurrent scales with light, Iph = Isc(1+Ki(T-25))·G/1000, and the dark saturation current grows steeply with temperature, I0 ∝ T3 exp(-qEg/nk·(1/T-1/Tref)), so a hot panel loses open-circuit voltage (about -0.3 %/K here) and power. The implicit equation is solved with Newton's method for every voltage.

Maximum power point. Power P=V·I(V) has one maximum, found by golden-section search. A real inverter tracks it (MPPT). Fill factor FF = Pmpp/(VocIsc) is typically 0.72-0.80.

Day model. Irradiance follows G(t) = Gpk(1-cloud)·sin(π(t-6)/12) between 06:00 and 18:00; cell temperature Tc = Ta + (NOCT-20)/800·G with NOCT = 45 C. Inverter efficiency 96 %. A household load profile (breakfast and evening peaks) is served first by PV, then by the battery (95 % each way, max 0.5 C), then by the grid; surplus is exported. Three passes are run so the battery state of charge is periodic.

Honest simplifications. No spectrum, angle-of-incidence, shading, degradation or soiling; sinusoidal clear-sky shape instead of real solar geometry; constant parameters (Rs, Rsh, n) are typical, not from a datasheet; the load profile is invented. Use it to see trends (heat, clouds, storage size), not to size a real system.

Solar home

Readouts

Self-checks