-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added validation case for #842 [ci skip]
- Loading branch information
Showing
4 changed files
with
314 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
IBPSA/BoundaryConditions/WeatherData/Validation/DecemberToJanuary.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,30 @@ | ||
within IBPSA.BoundaryConditions.WeatherData.Validation; | ||
model DecemberToJanuary | ||
"Validation model for a data reader that has data spanning only some hours in December to January" | ||
extends Modelica.Icons.Example; | ||
IBPSA.BoundaryConditions.WeatherData.ReaderTMY3 weaDat(filNam="modelica://IBPSA/Resources/weatherdata/DecemberToJanuary.mos") | ||
"Weather data reader with data file going from December to January" | ||
annotation (Placement(transformation(extent={{-10,-10},{10,10}}))); | ||
|
||
annotation (experiment( | ||
StartTime=30992400, | ||
StopTime=31860000, | ||
Tolerance=1e-06), | ||
__Dymola_Commands(file="modelica://IBPSA/Resources/Scripts/Dymola/BoundaryConditions/WeatherData/Validation/DecemberToJanuary.mos" | ||
"Simulate and plot"), | ||
Documentation(info="<html> | ||
<p> | ||
This is a validation case for a data file that has a few incomplete days in December and goes into | ||
a few days into January. The data does not start and does not end at midnight. | ||
</p> | ||
</html>", revisions="<html> | ||
<ul> | ||
<li> | ||
October 26, 2017, by Michael Wetter:<br/> | ||
First implementation for | ||
<a href=\"https://github.com/ibpsa/modelica-ibpsa/issues/842\">issue 842</a>. | ||
</li> | ||
</ul> | ||
</html>")); | ||
|
||
end DecemberToJanuary; |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
DecemberToJanuary | ||
ReaderTMY3HDirNor |
2 changes: 2 additions & 0 deletions
2
.../Resources/Scripts/Dymola/BoundaryConditions/WeatherData/Validation/DecemberToJanuary.mos
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,2 @@ | ||
simulateModel("IBPSA.BoundaryConditions.WeatherData.Validation.DecemberToJanuary", startTime=30992400, stopTime=31860000, method="dassl", tolerance=1e-06, resultFile="DecemberToJanuary"); | ||
createPlot(id=3, position={55, 50, 588, 413}, y={"weaDat.weaBus.TDryBul", "weaDat.weaBus.HDirNor", "weaDat.weaBus.HDifHor"}, range={358.0, 370.0, -6000.0, 2000.0}, grid=true, colors={{28,108,200}, {238,46,47}, {0,140,72}}, timeUnit="d", displayUnits={"degC", "", ""}); |
Oops, something went wrong.