8000 WIP: Speed up singlediode._lambertw by cwhanse · Pull Request #1661 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

WIP: Speed up singlediode._lambertw #1661

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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Apply suggestions from code review
Co-authored-by: Kevin Anderson <kevin.anderson@nrel.gov>
  • Loading branch information
cwhanse and kandersolar authored Feb 15, 2023
commit 4da7d2fba9ab086296c337be82f81034fdcd965e
4 changes: 2 additions & 2 deletions docs/sphinx/source/user_guide/singlediode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Then

.. math::

V = \left(I_L + I_0 - I\right) R_sh - I R_s - n Ns V_th W\left( \psi \right)
V = \left(I_L + I_0 - I\right) R_{sh} - I R_s - n Ns V_{th} W\left( \psi \right)

When computing :math:`V = V\left( I \right)`, care must be taken to avoid overflow errors because the argument
of the exponential function in :math:`\psi` can become large.
Expand All @@ -82,7 +82,7 @@ the equation :math:`P = V I` and evaluating at the maximum power current

.. math::

0 = \frac{dP}{dI} \Bigr|_{I=I_{mp}} = \left(V + \frac{dV}{dI}\right) \Bigr|_{I=I_{mp}}
0 = \frac{dP}{dI} \Bigr|_{I=I_{mp}} = \left(V + I \frac{dV}{dI}\right) \Bigr|_{I=I_{mp}}

obtains

Expand Down
0