forked from ibpsa/modelica-ibpsa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from ibpsa/master
update local master
- Loading branch information
Showing
223 changed files
with
2,785 additions
and
3,147 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
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
IBPSA/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 IBPSA.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://IBPSA.BoundaryConditions.SolarGeometry.BaseClasses.SolarAzimuth\"> | ||
IBPSA.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
IBPSA/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 IBPSA.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://IBPSA.BoundaryConditions.SolarGeometry.BaseClasses.SolarAzimuth\"> | ||
IBPSA.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
Oops, something went wrong.