8000 Change setter for losses_model to allow it to set multiple loss funct… by ncroft-b4 · Pull Request #1084 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

Change setter for losses_model to allow it to set multiple loss funct… #1084

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

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dc_ohms_from_percent parameter changes
  • Loading branch information
ncroft-b4 committed Nov 29, 2020
commit e80f37d99ab0b5577d538660dcdc50c3665364be
6 changes: 3 additions & 3 deletions pvlib/pvsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2355,7 +2355,7 @@ def pvwatts_losses(soiling=2, shading=3, snow=0, mismatch=2, wiring=2,
return losses


def dc_ohms_from_percent(v_mp_ref, i_mp_ref, dc_ohmic_percent=0,
def dc_ohms_from_percent(V_mp_ref, I_mp_ref, dc_ohmic_percent,
modules_per_string=1,
strings_per_inverter=1):
"""
Expand Down Expand Up @@ -2388,9 +2388,9 @@ def dc_ohms_from_percent(v_mp_ref, i_mp_ref, dc_ohmic_percent=0,
----------
-- [1] PVsyst 7 Help. "Array ohmic wiring loss". https://www.pvsyst.com/help/ohmic_loss.htm
"""
vmp = modules_per_string * v_mp_ref
vmp = modules_per_string * V_mp_ref

imp = strings_per_inverter * i_mp_ref
imp = strings_per_inverter * I_mp_ref

Rw = (dc_ohmic_percent / 100) * (vmp / imp)

Expand Down
0