Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

bishop88_v_from_i does not always converge #1757

Copy link
Copy link
Open
@cwhanse

Description

@cwhanse
Issue body actions

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.