Skip to content

Commit

Permalink
Add initial version of PV model structure #1575
Browse files Browse the repository at this point in the history
  • Loading branch information
LauraMaier committed Jun 13, 2022
1 parent 36c2bd1 commit 929f0b7
Show file tree
Hide file tree
Showing 13 changed files with 75 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
within IBPSA.Electrical.BaseClasses.BaseClasses;
partial model PartialPVElectrical
"Partial electrical model for PV module model"
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
end PartialPVElectrical;
5 changes: 5 additions & 0 deletions IBPSA/Electrical/BaseClasses/BaseClasses/PartialPVOptical.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
within IBPSA.Electrical.BaseClasses.BaseClasses;
partial model PartialPVOptical
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
end PartialPVOptical;
5 changes: 5 additions & 0 deletions IBPSA/Electrical/BaseClasses/BaseClasses/PartialPVThermal.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
within IBPSA.Electrical.BaseClasses.BaseClasses;
partial model PartialPVThermal
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
end PartialPVThermal;
5 changes: 5 additions & 0 deletions IBPSA/Electrical/BaseClasses/BaseClasses/package.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
within IBPSA.Electrical.BaseClasses;
package BaseClasses "Base parameters for PV Model"
extends Modelica.Icons.BasesPackage;

end BaseClasses;
3 changes: 3 additions & 0 deletions IBPSA/Electrical/BaseClasses/BaseClasses/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
PartialPVElectrical
PartialPVThermal
PartialPVOptical
24 changes: 24 additions & 0 deletions IBPSA/Electrical/BaseClasses/PVSimple.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
within IBPSA.Electrical.BaseClasses;
model PVSimple
"Simple PV model with internal or external MPP tracking"

replaceable model ElectricalModel =
IBPSA.Electrical.BaseClasses.BaseClasses.PartialPVElectrical
"Model with electrical characteristics";

replaceable model ThermalModel =
IBPSA.Electrical.BaseClasses.BaseClasses.PartialPVThermal
"Model with thermal characteristics";

replaceable model OpticalModel =
IBPSA.Electrical.BaseClasses.BaseClasses.PartialPVOptical
"Model with optical characteristics"
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));

replaceable parameter IBPSA.Electrical.DataBase.PVSimpleBaseDataDefinition data
constrainedby AixLib.DataBase.SolarElectric.PVBaseDataDefinition
"PV Panel data definition"
annotation (choicesAllMatching);

end PVSimple;
5 changes: 5 additions & 0 deletions IBPSA/Electrical/BaseClasses/package.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
within IBPSA.Electrical;
package BaseClasses "Package with base classes for IBPSA.Electrical"
extends Modelica.Icons.BasesPackage;

end BaseClasses;
2 changes: 2 additions & 0 deletions IBPSA/Electrical/BaseClasses/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
PVSimple
BaseClasses
6 changes: 6 additions & 0 deletions IBPSA/Electrical/DataBase/PVSimpleBaseDataDefinition.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
within IBPSA.Electrical.DataBase;
record PVSimpleBaseDataDefinition "Basic record of a PV Simple model"
extends Modelica.Icons.Record;
annotation (Icon(coordinateSystem(preserveAspectRatio=false)), Diagram(
coordinateSystem(preserveAspectRatio=false)));
end PVSimpleBaseDataDefinition;
3 changes: 3 additions & 0 deletions IBPSA/Electrical/DataBase/package.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
within IBPSA.Electrical;
package DataBase "Data base for electrical package"
end DataBase;
1 change: 1 addition & 0 deletions IBPSA/Electrical/DataBase/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PVSimpleBaseDataDefinition
8 changes: 8 additions & 0 deletions IBPSA/Electrical/package.mo
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
within IBPSA;
package Electrical "Package with models for electrical systems and components"
extends Modelica.Icons.Package;

annotation (Icon(graphics={Line(points={{6,82},{-60,0},{12,0},{-24,-62},{-36,
-56},{-28,-90},{2,-76},{-8,-70},{52,20},{52,20},{-14,20},{40,82},{6,
82}}, color={0,0,0})}));
end Electrical;
2 changes: 2 additions & 0 deletions IBPSA/Electrical/package.order
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DataBase
BaseClasses

0 comments on commit 929f0b7

Please sign in to comment.