From 7a186e839c1251440ce248a23b67dfed4476f903 Mon Sep 17 00:00:00 2001 From: Jeff MacKinnon Date: Mon, 16 Dec 2024 16:53:54 -0400 Subject: [PATCH] Added voltage for a known string function. --- jepl/jeplpv.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/jepl/jeplpv.py b/jepl/jeplpv.py index e0b4a9d..0700beb 100644 --- a/jepl/jeplpv.py +++ b/jepl/jeplpv.py @@ -47,4 +47,12 @@ def panels_per_string(Vmax,Voc,beta=-0.5,temp = 25,STCtemp = 25): panels_per_string_max = Vmax // Vocadj - return int(panels_per_string_max) \ No newline at end of file + return int(panels_per_string_max) + +def voltage_per_string(panels,Voc,beta=-0.5,temp = 25,STCtemp = 25): + + vocadj = temp_adj_Voc(Voc, temp,beta, STCtemp = 25) + + voltage = vocadj * panels + + return round(voltage,4) \ No newline at end of file