Skip to content

Commit

Permalink
Add and update documentation #1575
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraMaier committed Oct 6, 2023
1 parent d532921 commit ac70d26
Show file tree
Hide file tree
Showing 23 changed files with 205 additions and 58 deletions.
14 changes: 14 additions & 0 deletions IBPSA/Electrical/BaseClasses/PV/BaseClasses/Icons/package.mo
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
within IBPSA.Electrical.BaseClasses.PV.BaseClasses;
package Icons
annotation(Documentation(info="<html>
<p>
This package contains icons for the models in
<a href=\"modelica://IBPSA.Electrical.BaseClasses.PV.BaseClasses\">IBPSA.Electrical.BaseClasses.PV.BaseClasses</a>.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
end Icons;
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,18 @@ partial model partialPVIcon "Partial model for basic PV model icon"
textString="%name",
textColor={0,0,255})}),
Diagram(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{
100,100}})));
100,100}})),
Documentation(info="<html>
<p>
This is a partial model containing the base icon of the PV-related models.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
end partialPVIcon;
15 changes: 14 additions & 1 deletion IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/PVType.mo
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@ type PVType = enumeration(
ThinFilmSI
"Thin film Silicon PV technology",
ThreeJuncAmorphous "Three-junction amorphous PV technology")
"Enumeration to define definition of the PV technology";
"Enumeration to define definition of the PV technology"
annotation(Documentation(info="<html>
<p>
Enumeration to define the PV material type used in the PV models.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
14 changes: 14 additions & 0 deletions IBPSA/Electrical/BaseClasses/PV/BaseClasses/PVOptical/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,18 @@ within IBPSA.Electrical.BaseClasses.PV.BaseClasses;
package PVOptical "Models for computing irradiance-related boundary conditions for PV systems"


annotation(Documentation(info="<html>
<p>
This package contains base classes that are used to construct the models extending from
<a href=\"modelica://IBPSA.Electrical.BaseClasses.PV.PVOpticalAbsRat\">IBPSA.Electrical.BaseClasses.PV.PVOpticalAbsRat</a>.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
end PVOptical;
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,12 @@ protected
thickness=0.5),
Text(
extent={{-72,80},{-102,68}},
lineColor={0,0,0},
lineThickness=0.5,
fillColor={255,255,255},
fillPattern=FillPattern.Solid,
textString="I"),
Text(
extent={{80,-80},{50,-92}},
lineColor={0,0,0},
lineThickness=0.5,
fillColor={255,255,255},
fillPattern=FillPattern.Solid,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ partial model PartialPVThermal
iconTransformation(extent={{-140,-50},{-100,-10}})));
annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,
-100},{120,100}}), graphics={
Text(extent={{-84,-68},{0,-102}},lineColor={0,0,255},textString= "%name"),
Text(extent={{-84,-68},{0,-102}},textString= "%name"),
Rectangle(extent={{-94,84},{6,-74}}, lineColor={215,215,215},fillColor={215,215,215},
fillPattern = FillPattern.Solid),
Rectangle(extent={{-90,24},{-62,-4}},
Expand Down
13 changes: 6 additions & 7 deletions IBPSA/Electrical/BaseClasses/PV/BaseClasses/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@ within IBPSA.Electrical.BaseClasses.PV;
package BaseClasses "Package with base classes for IBPSA.Electrical"
extends Modelica.Icons.BasesPackage;








annotation(preferredView="info", Documentation(info="<html>
<p>
This package contains base classes that are used to construct the models in
<a href=\"modelica://IBPSA.Electrical.BaseClasses.PV\">IBPSA.Electrical.BaseClasses.PV</a>.
</p>
</html>"));
end BaseClasses;
5 changes: 0 additions & 5 deletions IBPSA/Electrical/BaseClasses/PV/package.mo
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
within IBPSA.Electrical.BaseClasses;
package PV "Base classes for PV models"






annotation(preferredView="info", Documentation(info="<html>
<p>
This package contains base classes that are used to construct the models in
Expand Down
7 changes: 7 additions & 0 deletions IBPSA/Electrical/DC/Sources/Validation/BaseClasses/package.mo
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
within IBPSA.Electrical.DC.Sources.Validation;
package BaseClasses "BaseClasses for validation"
extends Modelica.Icons.BasesPackage;

annotation(preferredView="info", Documentation(info="<html>
<p>
This package contains base classes that are used to construct the models in
<a href=\"modelica://IBPSA.Electrical.DC.Sources.Validation\">IBPSA.Electrical.DC.Sources.Validation</a>.
</p>
</html>"));
end BaseClasses;
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,7 @@ equation
StartTime=18057600,
StopTime=19008000,
Interval=300,
Tolerance=1e-06,
__Dymola_Algorithm="Dassl"),
Tolerance=1e-06),
__Dymola_Commands(file=
"modelica://IBPSA/Resources/Scripts/Dymola/Electrical/DC/Sources/Validation/PVSingleDiodeRooftopBuildingValidation.mos"
"Simulate and plot"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ model PVSingleDiodeNISTValidation
annotation (Placement(transformation(extent={{-96,-10},{-76,10}})));

PVSingleDiode pVSingleDiode(
redeclare IBPSA.Electrical.Data.PV.SingleDiodeShardNUU235F2 data,
redeclare IBPSA.Electrical.Data.PV.SingleDiodeSharpNUU235F2 data,
PVTechType=IBPSA.Electrical.BaseClasses.PV.BaseClasses.PVOptical.PVType.MonoSI,
n_mod=312,
groRef=rho,
Expand Down Expand Up @@ -184,7 +184,6 @@ equation
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false), graphics={Text(
extent={{-94,46},{-36,12}},
lineColor={28,108,200},
horizontalAlignment=TextAlignment.Left,
textString="1 - Air temperature in °C
2 - Wind speed in m/s
Expand All @@ -193,8 +192,7 @@ equation
experiment(
StopTime=86400,
Interval=300,
Tolerance=1e-06,
__Dymola_Algorithm="Dassl"),
Tolerance=1e-06),
__Dymola_Commands(file=
"modelica://IBPSA/Resources/Scripts/Dymola/Electrical/DC/Sources/Validation/PVSingleDiodeNISTValidation.mos"
"Simulate and plot"),
Expand All @@ -221,6 +219,5 @@ Oct 5, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"),
__Dymola_experimentSetupOutput(events=false));
</html>"));
end PVSingleDiodeNISTValidation;
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ equation
StartTime=18057600,
StopTime=19094400,
Interval=300,
Tolerance=1e-06,
__Dymola_Algorithm="Dassl"),
Tolerance=1e-06),
__Dymola_Commands(file=
"modelica://IBPSA/Resources/Scripts/Dymola/Electrical/DC/Sources/Validation/PVSingleDiodeRooftopBuildingValidation.mos"
"Simulate and plot"),
Expand All @@ -102,6 +101,5 @@ Nov 17, 2022, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"),
__Dymola_experimentSetupOutput(events=false));
</html>"));
end PVSingleDiodeRooftopBuildingValidation;
7 changes: 7 additions & 0 deletions IBPSA/Electrical/DC/Sources/Validation/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,11 @@ within IBPSA.Electrical.DC.Sources;
package Validation "Package with example models"
extends Modelica.Icons.ExamplesPackage;

annotation (Documentation(info="<html>
<p>
This package contains validation for the use of models that can be found in
<a href=\"modelica://IBPSA.Electrical.DC.Sources\">
IBPSA.Electrical.DC.Sources</a>.
</p>
</html>"));
end Validation;
14 changes: 13 additions & 1 deletion IBPSA/Electrical/Data/PV/Generic.mo
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,17 @@ record Generic "Basic record of a PV cell"
"Band gap energy under standard conditions. For Si: 1.79604e-19 J or 1.121 eV";

annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(coordinateSystem(
preserveAspectRatio=false)));
preserveAspectRatio=false)),Documentation(info="<html>
<p>
This is a base record containing the base information for PV models.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
end Generic;
14 changes: 13 additions & 1 deletion IBPSA/Electrical/Data/PV/SingleDiodeData.mo
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,17 @@ record SingleDiodeData
"Band gap temperature coefficient; for Silicon: 0.0002677";

annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(coordinateSystem(
preserveAspectRatio=false)));
preserveAspectRatio=false)),Documentation(info="<html>
<p>
This is the base data model for the data models for the single-diode PV model.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
end SingleDiodeData;
23 changes: 0 additions & 23 deletions IBPSA/Electrical/Data/PV/SingleDiodeShardNUU235F2.mo

This file was deleted.

37 changes: 37 additions & 0 deletions IBPSA/Electrical/Data/PV/SingleDiodeSharpNUU235F2.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
within IBPSA.Electrical.Data.PV;
record SingleDiodeSharpNUU235F2
"Single-diode record for Sharp NU-U235F2 modules"
extends IBPSA.Electrical.Data.PV.SingleDiodeData(
n_ser=60,
n_par=1,
A_cel=((V_mp0*I_mp0)/(1000*eta_0))/n_ser,
A_mod=0.994*1.640,
eta_0=0.144,
V_oc0=37,
I_sc0=8.6,
V_mp0=30,
I_mp0=7.84,
P_mp0=235,
TCoeff_Isc=0.00053*I_sc0,
TCoeff_Voc=-0.00351*V_oc0,
gamma_Pmp=-0.00485,
T_NOCT=47.5 + 273.15,
Eg0 = 1.107,
C=0.0002677);
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)),Documentation(info="<html>
<p>
This is an exemplary data model of the mono-Si module Sharp NU-U235 F2 used for the single-diode PV model.
This data is used for validation in
<a href=\"modelica://IBPSA.Electrical.DC.Sources.Validation.PVSingleDiodeNISTValidation\">IBPSA.Electrical.DC.Sources.Validation.PVSingleDiodeNISTValidation</a>.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
end SingleDiodeSharpNUU235F2;
16 changes: 15 additions & 1 deletion IBPSA/Electrical/Data/PV/SingleDiodeSolibroSL2CIGS110.mo
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,19 @@ record SingleDiodeSolibroSL2CIGS110 "Single-diode record for Solibro SL2 CIGS 11
Eg0 = 1.107,
C=0.0002677);
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
coordinateSystem(preserveAspectRatio=false)),Documentation(info="<html>
<p>
This is an exemplary data model of the thin-film module Solibro SL2 CIGS 110 Wp used for the single-diode PV model.
This data is used for validation in
<a href=\"modelica://IBPSA.Electrical.DC.Sources.Validation.PVSingleDiodeRooftopBuildingValidation\">IBPSA.Electrical.DC.Sources.Validation.PVSingleDiodeRooftopBuildingValidation</a>.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
end SingleDiodeSolibroSL2CIGS110;
16 changes: 15 additions & 1 deletion IBPSA/Electrical/Data/PV/SingleDiodeSolibroSL2CIGS115.mo
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,19 @@ record SingleDiodeSolibroSL2CIGS115
Eg0 = 1.107,
C=0.0002677);
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
coordinateSystem(preserveAspectRatio=false)),Documentation(info="<html>
<p>
This is an exemplary data model of the thin-film module Solibro SL2 CIGS 115 Wp used for the single-diode PV model.
This data is used for validation in
<a href=\"modelica://IBPSA.Electrical.DC.Sources.Validation.PVSingleDiodeRooftopBuildingValidation\">IBPSA.Electrical.DC.Sources.Validation.PVSingleDiodeRooftopBuildingValidation</a>.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
end SingleDiodeSolibroSL2CIGS115;
16 changes: 15 additions & 1 deletion IBPSA/Electrical/Data/PV/SingleDiodeSolibroSL2CIGS120.mo
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,19 @@ record SingleDiodeSolibroSL2CIGS120
Eg0 = 1.107,
C=0.0002677);
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
coordinateSystem(preserveAspectRatio=false)),Documentation(info="<html>
<p>
This is an exemplary data model of the thin-film module Solibro SL2 CIGS 120 Wp used for the single-diode PV model.
This data is used for validation in
<a href=\"modelica://IBPSA.Electrical.DC.Sources.Validation.PVSingleDiodeRooftopBuildingValidation\">IBPSA.Electrical.DC.Sources.Validation.PVSingleDiodeRooftopBuildingValidation</a>.
</p>
</html>",
revisions="<html>
<ul>
<li>
Oct 6, 2023, by Laura Maier:<br/>
First implementation.
</li>
</ul>
</html>"));
end SingleDiodeSolibroSL2CIGS120;
6 changes: 6 additions & 0 deletions IBPSA/Electrical/Data/PV/package.mo
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
within IBPSA.Electrical.Data;
package PV "Data records for PV models"
annotation(preferredView="info", Documentation(info="<html>
<p>
This package contains data required for PV models in the package
<a href=\"modelica://IBPSA.Electrical\">IBPSA.Electrical</a>.
</p>
</html>"));
end PV;
2 changes: 1 addition & 1 deletion IBPSA/Electrical/Data/PV/package.order
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Generic
SingleDiodeData
SingleDiodeShardNUU235F2
SingleDiodeSharpNUU235F2
SingleDiodeSolibroSL2CIGS110
SingleDiodeSolibroSL2CIGS115
SingleDiodeSolibroSL2CIGS120
Loading

0 comments on commit ac70d26

Please sign in to comment.