Skip to content

Commit a8fe2f3

Browse files
committed
Add start values in record to prevent errors in OM #1575
1 parent 91185a0 commit a8fe2f3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

IBPSA/Electrical/Data/PV/Generic.mo

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ within IBPSA.Electrical.Data.PV;
22
record Generic "Basic record of a PV cell"
33
extends Modelica.Icons.Record;
44

5-
parameter Integer nSer "Number of cells connected in series on the PV panel"
5+
parameter Integer nSer(start = 1) "Number of cells connected in series on the PV panel"
66
annotation(Dialog(group="General"));
7-
parameter Integer nPar "Number of parallel cell circuits on the PV panel"
7+
parameter Integer nPar(start = 1) "Number of parallel cell circuits on the PV panel"
88
annotation(Dialog(group="General"));
9-
parameter Modelica.Units.SI.Area ACel
9+
parameter Modelica.Units.SI.Area ACel(start = 1.0)
1010
"Area of a single cell"
1111
annotation (Dialog(group="Cell specific: Geometrical data"));
1212
parameter Modelica.Units.SI.Area APan=ACel*nSer*nPar
1313
"Area of one Panel, must not be confused with area of the whole module"
1414
annotation (Dialog(group="Cell specific: Geometrical data"));
15-
parameter Modelica.Units.SI.Area AMod "Area of one module (housing)"
15+
parameter Modelica.Units.SI.Area AMod(start = 1.0) "Area of one module (housing)"
1616
annotation (Dialog(group="Cell specific: Geometrical data"));
1717
parameter Modelica.Units.SI.Temperature TNOCT
1818
"Cell temperature under NOCT conditions"
1919
annotation (Dialog(group="Cell specific: Electrical characteristics"));
20-
parameter Modelica.Units.SI.Energy Eg0
20+
parameter Modelica.Units.SI.Energy Eg0(start = 1.79604e-19)
2121
"Band gap energy under standard conditions. For Si: 1.79604e-19 J or 1.121 eV";
2222

2323
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(coordinateSystem(

IBPSA/Electrical/Data/PV/SingleDiodeData.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ record SingleDiodeData
3838
parameter Modelica.Units.SI.Voltage VMP0
3939
"MPP voltage under standard conditions"
4040
annotation (Dialog(group="Cell specific: Electrical characteristics"));
41-
parameter Real C(unit="1")
41+
parameter Real C(unit="1/K")
4242
"Band gap temperature coefficient; for Silicon: 0.0002677";
4343

4444
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(coordinateSystem(

0 commit comments

Comments
 (0)