Skip to content

Trouble figuring out how to run IV gold standard test cases in pvlib #1578

Description

@reepoi

Describe the bug
When pvsystem.singlediode is called with method = 'brentq' or method = 'newton' and ivcurve_pnts > 0, singlediode.bishop88 is called to calculate the voltage and current of the ivcurve points. singlediode.bishop88 expects diode voltage, but pvsystem.singlediode passes it voltage instead.

To Reproduce
Steps to reproduce the behavior:

  1. Call with method = 'brentq' or method = 'newton',
    pvlib.pvsystem.singlediode(8, 5e-10, 1, 300, 1.8683643583499283, ivcurve_pnts=100, method='brentq')
    
  2. The first few voltage values are negative.

Expected behavior
The ivcurve points should be on this curve: https://cwhanse.github.io/ivcurves/test_cases.html#case-21

Versions:

  • pvlib.__version__: 0.9.3
  • pandas.__version__: 1.4.3
  • python: 3.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions