-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add recombination current params to all bishop88 functions #763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
509ba3e
f4f4fe0
cbb78ac
22637f8
c20fa3e
149ebfe
f603461
309c87a
4086fc8
dddc4cd
5ad5241
1e3f8d6
581a427
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2473,7 +2473,8 @@ def singlediode(photocurrent, saturation_current, resistance_series, | |
|
|
||
|
|
||
| def max_power_point(photocurrent, saturation_current, resistance_series, | ||
| resistance_shunt, nNsVth, method='brentq'): | ||
| resistance_shunt, nNsVth, d2mutau=0, NsVbi=np.Inf, | ||
| method='brentq'): | ||
| """ | ||
| Given the single diode equation coefficients, calculates the maximum power | ||
| point (MPP). | ||
|
|
@@ -2491,6 +2492,17 @@ def max_power_point(photocurrent, saturation_current, resistance_series, | |
| nNsVth : numeric | ||
| product of thermal voltage ``Vth`` [V], diode ideality factor ``n``, | ||
| and number of serices cells ``Ns`` | ||
| d2mutau : numeric, default 0 | ||
| PVsyst parameter for cadmium-telluride (CdTe) and amorphous-silicon ' | ||
| '(a-Si) modules that accounts for recombination current in the ' | ||
| 'intrinsic layer. The value is the ratio of instrinsic layer thickness' | ||
cwhanse marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ' squared :math:`d^2` to the diffusion length of charge carriers ' | ||
| ':math:`\\mu \\tau`. [V] | ||
| NsVbi : numeric, default np.inf | ||
| PVsyst parameter for cadmium-telluride (CdTe) and amorphous-silicon ' | ||
| '(a-Si) modules that is the product of the PV module number of series ' | ||
| 'cells ``Ns`` and the builtin voltage ``Vbi`` of the intrinsic layer.' | ||
| '[V]'. | ||
| method : str | ||
| either ``'newton'`` or ``'brentq'`` | ||
|
|
||
|
|
@@ -2508,7 +2520,8 @@ def max_power_point(photocurrent, saturation_current, resistance_series, | |
| """ | ||
| i_mp, v_mp, p_mp = _singlediode.bishop88_mpp( | ||
| photocurrent, saturation_current, resistance_series, | ||
| resistance_shunt, nNsVth, method=method.lower() | ||
| resistance_shunt, nNsVth, d2mutau=0, NsVbi=np.Inf, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it an oversight that these parameters are hardcoded with default values here instead of passing through the arguments to this function?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it’s unintentional. Look at the git blame for these lines. When bishop was first added, we included the capability to model thin films but we didn’t fully implement passing the arguments and docstring in all the single diode &
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I probably copy/pasted from the function signature. :(
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @kandersolar & @adriesse addressed in #1733 - btw: the recombination losses were only implemented in |
||
| method=method.lower() | ||
| ) | ||
| if isinstance(photocurrent, pd.Series): | ||
| ivp = {'i_mp': i_mp, 'v_mp': v_mp, 'p_mp': p_mp} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.