Closed
Description
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:
- Call with
method = 'brentq'
ormethod = 'newton'
,pvlib.pvsystem.singlediode(8, 5e-10, 1, 300, 1.8683643583499283, ivcurve_pnts=100, method='brentq')
- 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.3pandas.__version__
: 1.4.3- python: 3.10
Metadata
Metadata
Assignees
Labels
No labels