-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/lbl-srg/modelica-buildings …
…into issue2028_dualMin
- Loading branch information
Showing
27 changed files
with
1,653 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,6 @@ SolarAzimuth | |
SolarHourAngle | ||
WallSolarAzimuth | ||
ZenithAngle | ||
solarAzimuthNoEvent | ||
solarAzimuthWithEvent | ||
Examples |
32 changes: 32 additions & 0 deletions
32
Buildings/BoundaryConditions/SolarGeometry/BaseClasses/solarAzimuthNoEvent.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
within Buildings.BoundaryConditions.SolarGeometry.BaseClasses; | ||
function solarAzimuthNoEvent "Determines solar azimuth with no event" | ||
input Real solAziTem(quantity="Angle",unit="rad",displayUnit="deg") "Temporary solar azimuth"; | ||
input Real solTim(quantity="Time", unit="s") "Solar time"; | ||
input Real day(quantity="Time", unit="s") "Number of seconds in day"; | ||
output Real solAzi(quantity="Angle",unit="rad",displayUnit="deg") "Solar azimuth"; | ||
algorithm | ||
if noEvent(solTim - integer(solTim/day)*day<43200) then | ||
solAzi := -solAziTem; | ||
else | ||
solAzi := solAziTem; | ||
end if; | ||
|
||
annotation ( | ||
Documentation(info="<html> | ||
<p> | ||
This function is used within | ||
<a href=\"modelica://Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarAzimuth\"> | ||
Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarAzimuth</a> | ||
to calculate solar azimuth with no events. | ||
</p> | ||
</html>", revisions="<html> | ||
<ul> | ||
<li> | ||
June 9, 2020 by David Blum:<br/> | ||
Initial implementation. | ||
This is for issue | ||
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/1373\">#1373</a>. | ||
</li> | ||
</ul> | ||
</html>")); | ||
end solarAzimuthNoEvent; |
31 changes: 31 additions & 0 deletions
31
Buildings/BoundaryConditions/SolarGeometry/BaseClasses/solarAzimuthWithEvent.mo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
within Buildings.BoundaryConditions.SolarGeometry.BaseClasses; | ||
function solarAzimuthWithEvent "Determines solar azimuth with event" | ||
input Real solAziTem(quantity="Angle",unit="rad",displayUnit="deg") "Temporary solar azimuth"; | ||
input Real solTim(quantity="Time", unit="s") "Solar time"; | ||
input Real day(quantity="Time", unit="s") "Number of seconds in day"; | ||
output Real solAzi(quantity="Angle",unit="rad",displayUnit="deg") "Solar azimuth"; | ||
algorithm | ||
if (solTim - integer(solTim/day)*day<43200) then | ||
solAzi := -solAziTem; | ||
else | ||
solAzi := solAziTem; | ||
end if; | ||
annotation ( | ||
Documentation(info="<html> | ||
<p> | ||
This function is used within | ||
<a href=\"modelica://Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarAzimuth\"> | ||
Buildings.BoundaryConditions.SolarGeometry.BaseClasses.SolarAzimuth</a> | ||
to calculate solar azimuth with events. | ||
</p> | ||
</html>", revisions="<html> | ||
<ul> | ||
<li> | ||
June 9, 2020 by David Blum:<br/> | ||
Initial implementation. | ||
This is for issue | ||
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/1373\">#1373</a>. | ||
</li> | ||
</ul> | ||
</html>")); | ||
end solarAzimuthWithEvent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.