Skip to content

Commit

Permalink
Formatted file
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Jan 4, 2024
1 parent 293a775 commit 5e68913
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions IBPSA/Electrical/BaseClasses/PV/BaseClasses/PartialPVOptical.mo
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
within IBPSA.Electrical.BaseClasses.PV.BaseClasses;
partial model PartialPVOptical


parameter PVOptical.PVType PVTecTyp=
IBPSA.Electrical.BaseClasses.PV.BaseClasses.PVOptical.PVType.MonoSI
parameter PVOptical.PVType PVTecTyp=IBPSA.Electrical.BaseClasses.PV.BaseClasses.PVOptical.PVType.MonoSI
"Type of PV technology";

parameter Boolean use_Til_in = false
Expand All @@ -17,8 +15,9 @@ partial model PartialPVOptical
Modelica.Blocks.Interfaces.RealOutput absRadRat
"Ratio of absorbed radiation under operating conditions to standard conditions"
annotation (Placement(transformation(extent={{100,-10},{120,10}})));
Modelica.Blocks.Interfaces.RealInput zenAng(final unit="rad", final
displayUnit="deg") "Zenith angle for object"
Modelica.Blocks.Interfaces.RealInput zenAng(
final unit="rad",
final displayUnit="deg") "Zenith angle for object"
annotation (Placement(transformation(extent={{-140,60},{-100,100}}),
iconTransformation(extent={{-140,60},{-100,100}})));
Modelica.Blocks.Interfaces.RealInput HGloHor(final unit="W/m2") "Global horizontal irradiation"
Expand All @@ -27,18 +26,19 @@ partial model PartialPVOptical
Modelica.Blocks.Interfaces.RealInput HDifHor(final unit="W/m2") "Diffuse horizontal irradiation"
annotation (Placement(transformation(extent={{-140,-60},{-100,-20}}),
iconTransformation(extent={{-140,-60},{-100,-20}})));
Modelica.Blocks.Interfaces.RealInput incAng(final unit="rad", final
displayUnit="deg") "Incidence angle"
Modelica.Blocks.Interfaces.RealInput incAng(
final unit="rad",
final displayUnit="deg") "Incidence angle"
annotation (Placement(transformation(extent={{-140,20},{-100,60}}),
iconTransformation(extent={{-140,20},{-100,60}})));
Modelica.Blocks.Interfaces.RealInput tilSet(final unit="rad") if use_Til_in
"Conditional input for tilt angle control" annotation (Placement(
transformation(extent={{-140,-100},{-100,-60}}),
iconTransformation(
iconTransformation(
extent={{-140,-80},{-100,-40}})));

protected
Modelica.Blocks.Interfaces.RealInput Til_in_int
Modelica.Blocks.Interfaces.RealInput Til_in_int(final unit="rad")
"Needed to connect to conditional tilt connector";

equation
Expand All @@ -49,7 +49,8 @@ equation
end if;

annotation (Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},
{120,100}}), graphics={
{120,100}}),
graphics={
Ellipse(
extent={{-78,76},{-22,24}},
lineColor={0,0,0},
Expand All @@ -63,10 +64,13 @@ equation
Line(
points={{-26,32},{44,-14},{-34,-56}},
color={0,0,0},
arrow={Arrow.None,Arrow.Filled})}), Diagram(
arrow={Arrow.None,Arrow.Filled})}),
Diagram(
coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,100}})),
Documentation(info="<html>
<p>This is a partial model for the optical surrogate model of a photovoltaic model.</p>
<p>
This is a partial model for the optical surrogate model of a photovoltaic model.
</p>
</html>", revisions="<html>
<ul>
<li>
Expand Down

0 comments on commit 5e68913

Please sign in to comment.