Skip to content

Commit ac2755b

Browse files
committed
revise dc_ohmic_loss and dc_ohms_from_percent docstrings
1 parent 68315e4 commit ac2755b

File tree

1 file changed

+34
-28
lines changed

1 file changed

+34
-28
lines changed

pvlib/pvsystem.py

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2872,45 +2872,45 @@ def dc_ohms_from_percent(vmp_ref, imp_ref, dc_ohmic_percent,
28722872
modules_per_string=1,
28732873
strings=1):
28742874
"""
2875-
Calculates the equivalent resistance of the wires from a percent
2876-
ohmic loss at STC.
2877-
2878-
Equivalent resistance is calculated with the function:
2879-
2880-
.. math::
2881-
Rw = (L_{stc} / 100) * (Varray / Iarray)
2882-
2883-
:math:`Rw` is the equivalent resistance in ohms
2884-
:math:`Varray` is the Vmp of the modules times modules per string
2885-
:math:`Iarray` is the Imp of the modules times strings per array
2886-
:math:`L_{stc}` is the input dc loss percent
2875+
Calculates the equivalent resistance of the conductors from a percent
2876+
ohmic loss of an array at reference conditions.
28872877
28882878
Parameters
28892879
----------
28902880
vmp_ref: numeric
2891-
Voltage at maximum power in reference conditions [V]
2881+
Maximum power voltage of one module at reference conditions. [V]
28922882
imp_ref: numeric
2893-
Current at maximum power in reference conditions [V]
2894-
dc_ohmic_percent: numeric, default 0
2895-
input dc loss as a percent, e.g. 1.5% loss is input as 1.5
2883+
Maximum power current of one module at reference conditions. [A]
2884+
dc_ohmic_percent: numeric
2885+
Array DC loss as a percent, e.g. 1.5% loss is input as 1.5.
28962886
modules_per_string: int, default 1
2897-
Number of modules per string in the array.
2887+
Number of series-connected modules per string in the array.
28982888
strings: int, default 1
28992889
Number of parallel strings in the array.
29002890
29012891
Returns
29022892
----------
29032893
Rw: numeric
2904-
Equivalent resistance [ohm]
2894+
Equivalent resistance. [ohm]
29052895
29062896
See Also
29072897
--------
29082898
pvlib.pvsystem.dc_ohmic_losses
29092899
2910-
References
2911-
----------
2912-
.. [1] PVsyst 7 Help. "Array ohmic wiring loss".
2913-
https://www.pvsyst.com/help/ohmic_loss.htm
2900+
Notes
2901+
-----
2902+
Equivalent resistance is calculated as:
2903+
2904+
.. math::
2905+
Rw = (L_{stc} / 100) * (Varray / Iarray)
2906+
2907+
:math:`Rw` is the equivalent resistance in ohms.
2908+
:math:`Varray` is the array voltage, equal to ``vmp_ref`` times
2909+
``modules_per_string``.
2910+
:math:`Iarray` is the array current, equal to ``imp_ref`` times
2911+
``strings``.
2912+
:math:`L_{stc}` is the input DC loss percent at reference conditions.
2913+
29142914
"""
29152915
vmp = modules_per_string * vmp_ref
29162916

@@ -2929,9 +2929,9 @@ def dc_ohmic_losses(resistance, current):
29292929
Parameters
29302930
----------
29312931
resistance: numeric
2932-
Equivalent resistance of wires [ohm]
2932+
Equivalent resistance of wires. [ohm]
29332933
current: numeric, float or array-like
2934-
Operating current [A]
2934+
Operating current. [A]
29352935
29362936
Returns
29372937
----------
@@ -2942,10 +2942,16 @@ def dc_ohmic_losses(resistance, current):
29422942
--------
29432943
pvlib.pvsystem.dc_ohms_from_percent
29442944
2945-
References
2946-
----------
2947-
.. [1] PVsyst 7 Help. "Array ohmic wiring loss".
2948-
https://www.pvsyst.com/help/ohmic_loss.htm
2945+
Notes
2946+
-----
2947+
Ohmic (also termed joule or heat) loss is the power lost due to current
2948+
flowing through a conductor. Ohmic loss :math:`L` is computed as
2949+
2950+
.. math::
2951+
L = I \times R^2
2952+
2953+
where :math:`I` is the current (A) and :math:`R` is the resistance of the
2954+
conductor (ohms).
29492955
"""
29502956
return resistance * current * current
29512957

0 commit comments

Comments
 (0)