string sizing
string_sizingCalculates optimal solar panel string and MPPT configuration based on panel electrical specs, inverter/charge-controller MPPT limits, and site temperature extremes. Applies temperature coefficients to determine Voc at minimum temperature (cold) and Vmp at maximum temperature (hot), then computes the safe range of panels per string, maximum parallel strings, and total array wattage. Prevents over-voltage damage in winter and under-voltage MPPT dropout in summer. Essential for NEC 690.7 compliant residential and commercial solar design.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mppt_imax | Yes | Maximum MPPT input current in amps | |
| mppt_vmax | Yes | Maximum MPPT input voltage in volts | |
| mppt_vmin | Yes | Minimum MPPT start/operating voltage in volts | |
| panel_imp | Yes | Panel maximum power current (Imp) at STC in amps | |
| panel_isc | Yes | Panel short circuit current (Isc) at STC in amps | |
| panel_vmp | Yes | Panel maximum power voltage (Vmp) at STC in volts | |
| panel_voc | Yes | Panel open circuit voltage (Voc) at STC in volts | |
| temp_max_c | No | Maximum expected cell temperature in Celsius, default 60 | |
| temp_min_c | No | Minimum expected site temperature in Celsius, default -10 | |
| temp_coeff_voc_pct_per_c | No | Voc temperature coefficient in %/C (negative for silicon), default -0.30 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| isc_total | Yes | Total short circuit current from all parallel strings (A) | |
| array_watts | Yes | Total array power at maximum power point (W) | |
| total_panels | Yes | Total panels in the array (strings * panels per string) | |
| vmp_hot_per_string | Yes | String Vmp at maximum temperature (V) | |
| voc_cold_per_string | Yes | String Voc at minimum temperature (V) | |
| max_parallel_strings | Yes | Maximum parallel strings (limited by MPPT Imax) | |
| max_panels_per_string | Yes | Maximum panels per string (limited by Voc at cold temp) | |
| min_panels_per_string | Yes | Minimum panels per string (to meet MPPT Vmin at hot temp) | |
| recommended_panels_per_string | Yes | Recommended panels per string (uses max for best output) |