Skip to content

Commit e89ebf9

Browse files
committed
Reformulated initial values as parameters instead of variables #1575
1 parent a0b4236 commit e89ebf9

File tree

1 file changed

+9
-21
lines changed

1 file changed

+9
-21
lines changed

IBPSA/Electrical/BaseClasses/PV/PVElectricalSingleDiodeMPP.mo

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,20 @@ model PVElectricalSingleDiodeMPP
55
IBPSA.Electrical.BaseClasses.PV.BaseClasses.PartialPVElectricalSingleDiode;
66

77
// Main parameters under standard conditions
8+
// Analytical parameter extraction equations under standard conditions (Batzelis et al., 2016)
89

9-
Modelica.Units.SI.ElectricCurrent IPh0
10+
parameter Modelica.Units.SI.ElectricCurrent IPh0=(1+RS0/RSh0)*ISC0
1011
"Photo current under standard conditions";
11-
Modelica.Units.SI.ElectricCurrent IS0
12+
parameter Modelica.Units.SI.ElectricCurrent IS0=IPh0*exp(-1/(a0/VOC0))
1213
"Saturation current under standard conditions";
13-
Modelica.Units.SI.Resistance RS0
14+
parameter Modelica.Units.SI.Resistance RS0=(a0*(w0-1)-VMP0)/IMP0
1415
"Series resistance under standard conditions";
15-
Modelica.Units.SI.Resistance RSh0
16+
parameter Modelica.Units.SI.Resistance RSh0=a0*(w0-1)/(ISC0*(1-1/w0)-IMP0)
1617
"Shunt resistance under standard conditions";
17-
Real a0(unit="V") "Modified diode ideality factor under standard conditions";
18-
Real w0(final unit="1")
18+
19+
parameter Real a0(unit="V")=VOC0*(1-TCel0*betaVOC)/(50.1-TCel0*alphaISC)
20+
"Modified diode ideality factor under standard conditions";
21+
parameter Real w0(final unit="1")=IBPSA.Electrical.BaseClasses.PV.BaseClasses.lambertWSimple(exp(1/(a0/VOC0)+1))
1922
"MPP auxiliary correlation coefficient under standard conditions";
2023

2124
// Additional parameters and constants
@@ -50,21 +53,6 @@ model PVElectricalSingleDiodeMPP
5053

5154
equation
5255

53-
// Analytical parameter extraction equations under standard conditions (Batzelis et al., 2016)
54-
55-
a0 = VOC0*(1 - TCel0*betaVOC)/(50.1 - TCel0*alphaISC);
56-
57-
w0 = IBPSA.Electrical.BaseClasses.PV.BaseClasses.lambertWSimple(exp(1/(a0/
58-
VOC0) + 1));
59-
60-
RS0 = (a0*(w0 - 1) - VMP0)/IMP0;
61-
62-
RSh0 = a0*(w0 - 1)/(ISC0*(1 - 1/w0) - IMP0);
63-
64-
IPh0 = (1 + RS0/RSh0)*ISC0;
65-
66-
IS0 = IPh0*exp(-1/(a0/VOC0));
67-
6856
// Parameter extrapolation equations to operating conditions (DeSoto et al., 2006)
6957

7058
a/a0 = TCel/TCel0;

0 commit comments

Comments
 (0)