Skip to content

Commit

Permalink
Added validation case for #842 [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
mwetter committed Oct 26, 2017
1 parent a1ff2d8 commit 0e45251
Show file tree
Hide file tree
Showing 4 changed files with 314 additions and 0 deletions.
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;
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DecemberToJanuary
ReaderTMY3HDirNor
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", "", ""});
Loading

0 comments on commit 0e45251

Please sign in to comment.