Open
Description
Describe the bug
bishop88_v_from_i
does not converge to a voltage solution when current is greater than short-circuit, and the reverse bias term is active.
To Reproduce
pvlib.singlediode.bishop88_v_from_i(resistance_shunt=1000., resistance_series=1., nNsVth=2.3, photocurrent=8., saturation_current=1e-8, current=8.1, breakdown_factor=0.1)
File "C:\Users\cliff\anaconda3\lib\site-packages\pvlib\singlediode.py", line 372, in bishop88_v_from_i
vd = newton(func=lambda x, *a: fi(x, current, *a), x0=v0,
File "C:\Users\cliff\anaconda3\lib\site-packages\scipy\optimize\_zeros_py.py", line 368, in newton
raise RuntimeError(msg)
RuntimeError: Failed to converge after 100 iterations, value is nan.
Expected behavior
Converge to a voltage on the reverse bias voltage portion of the I, V curve.
Versions:
pvlib.__version__
: 0.9.5
Metadata
Metadata
Assignees
Labels
No labels