Skip to content

Commit cfd6e78

Browse files
authored
Clarify PVWatts DC and inverter documentation (#1785)
* some doc clarifications * formatting * edit inline comment
1 parent cfd9fcc commit cfd6e78

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

pvlib/inverter.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def pvwatts(pdc, pdc0, eta_inv_nom=0.96, eta_inv_ref=0.9637):
335335
NREL's PVWatts inverter model.
336336
337337
The PVWatts inverter model [1]_ calculates inverter efficiency :math:`\eta`
338-
as a function of input DC power
338+
as a function of input DC power :math:`P_{dc}`
339339
340340
.. math::
341341
@@ -369,6 +369,10 @@ def pvwatts(pdc, pdc0, eta_inv_nom=0.96, eta_inv_ref=0.9637):
369369
370370
Notes
371371
-----
372+
When sourcing ``pdc`` from pvlib functions
373+
(e.g. :py:func:`pvlib.pvsystem.pvwatts_dc`) their DC power output is in W,
374+
and ``pdc0`` should have the same unit (W).
375+
372376
Note that ``pdc0`` is also used as a symbol in
373377
:py:func:`pvlib.pvsystem.pvwatts_dc`. ``pdc0`` in this function refers to
374378
the DC power input limit of the inverter. ``pdc0`` in
@@ -393,6 +397,7 @@ def pvwatts(pdc, pdc0, eta_inv_nom=0.96, eta_inv_ref=0.9637):
393397
pdc_neq_0 = ~np.equal(pdc, 0)
394398

395399
# eta < 0 if zeta < 0.006. power_ac is forced to be >= 0 below. GH 541
400+
# In some published versions of [1] the parentheses are missing
396401
eta = eta_inv_nom / eta_inv_ref * (
397402
-0.0162 * zeta - np.divide(0.0059, zeta, out=eta, where=pdc_neq_0)
398403
+ 0.9858) # noQA: W503

pvlib/pvsystem.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2809,9 +2809,9 @@ def pvwatts_dc(g_poa_effective, temp_cell, pdc0, gamma_pdc, temp_ref=25.):
28092809
28102810
P_{dc} = \frac{G_{poa eff}}{1000} P_{dc0} ( 1 + \gamma_{pdc} (T_{cell} - T_{ref}))
28112811
2812-
Note that the pdc0 is also used as a symbol in
2813-
:py:func:`pvlib.inverter.pvwatts`. pdc0 in this function refers to the DC
2814-
power of the modules at reference conditions. pdc0 in
2812+
Note that ``pdc0`` is also used as a symbol in
2813+
:py:func:`pvlib.inverter.pvwatts`. ``pdc0`` in this function refers to the DC
2814+
power of the modules at reference conditions. ``pdc0`` in
28152815
:py:func:`pvlib.inverter.pvwatts` refers to the DC power input limit of
28162816
the inverter.
28172817
@@ -2836,7 +2836,7 @@ def pvwatts_dc(g_poa_effective, temp_cell, pdc0, gamma_pdc, temp_ref=25.):
28362836
Returns
28372837
-------
28382838
pdc: numeric
2839-
DC power.
2839+
DC power. [W]
28402840
28412841
References
28422842
----------

0 commit comments

Comments
 (0)