Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,462 additions
and
104 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
64 changes: 64 additions & 0 deletions
64
Buildings/Controls/OBC/CDL/Continuous/Sources/Validation/TimeTableNegativeStartTime.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,64 @@ | ||
within Buildings.Controls.OBC.CDL.Continuous.Sources.Validation; | ||
model TimeTableNegativeStartTime | ||
"Validation model for TimeTable block with negative start time" | ||
|
||
Buildings.Controls.OBC.CDL.Continuous.Sources.TimeTable timTabLin( | ||
smoothness = Buildings.Controls.OBC.CDL.Types.Smoothness.LinearSegments, | ||
table = [0,0; 6*3600,1; 18*3600,0.5; 24*3600,0]) | ||
"Time table with smoothness method of linear segments" | ||
annotation (Placement(transformation(extent={{-80,10},{-60,30}}))); | ||
Buildings.Controls.OBC.CDL.Continuous.Sources.TimeTable timTabLinHol( | ||
smoothness = Buildings.Controls.OBC.CDL.Types.Smoothness.LinearSegments, | ||
extrapolation = Buildings.Controls.OBC.CDL.Types.Extrapolation.HoldLastPoint, | ||
table = [0,0; 6*3600,1; 18*3600,0.5; 24*3600,0]) | ||
"Time table with smoothness method of linear segments, hold first and last value" | ||
annotation (Placement(transformation(extent={{-10,10},{10,30}}))); | ||
Buildings.Controls.OBC.CDL.Continuous.Sources.TimeTable timTabLinDer( | ||
smoothness = Buildings.Controls.OBC.CDL.Types.Smoothness.LinearSegments, | ||
extrapolation = Buildings.Controls.OBC.CDL.Types.Extrapolation.LastTwoPoints, | ||
table=[0,0; 6*3600,1; 18*3600,0.5; 24*3600,0]) | ||
"Time table with smoothness method of linear segments, extrapolate with der" | ||
annotation (Placement(transformation(extent={{50,10},{70,30}}))); | ||
Buildings.Controls.OBC.CDL.Continuous.Sources.TimeTable timTabCon( | ||
smoothness = Buildings.Controls.OBC.CDL.Types.Smoothness.ConstantSegments, | ||
table=[0,0; 6*3600,1; 18*3600,0.5; 24*3600,0]) | ||
"Time table with smoothness method of constant segments" | ||
annotation (Placement(transformation(extent={{-80,-30},{-60,-10}}))); | ||
Buildings.Controls.OBC.CDL.Continuous.Sources.TimeTable timTabLinCon( | ||
smoothness=Buildings.Controls.OBC.CDL.Types.Smoothness.LinearSegments, | ||
table=[0,0; 6*3600,0; 6*3600,1; 18*3600,0.5; 24*3600,0]) | ||
"Time table with smoothness method of linear segments" | ||
annotation (Placement(transformation(extent={{-10,-30},{10,-10}}))); | ||
|
||
annotation (experiment(Tolerance=1e-6, StartTime=-129600.0, StopTime=172800), | ||
__Dymola_Commands(file="modelica://Buildings/Resources/Scripts/Dymola/Controls/OBC/CDL/Continuous/Sources/Validation/TimeTableNegativeStartTime.mos" | ||
"Simulate and plot"), | ||
Documentation(info="<html> | ||
<p> | ||
This model validates the block | ||
<a href=\"modelica://Buildings.Controls.OBC.CDL.Continuous.Sources.TimeTable\"> | ||
Buildings.Controls.OBC.CDL.Continuous.Sources.TimeTable</a>. | ||
The model is identical to | ||
<a href=\"modelica://Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable\"> | ||
Buildings.Controls.OBC.CDL.Continuous.Sources.Validation.TimeTable</a> | ||
except that the start time is negative, and not a multiple of a full day. | ||
</html>", | ||
revisions="<html> | ||
<ul> | ||
<li> | ||
March 13, 2020, by Michael Wetter:<br/> | ||
First implementation in CDL. | ||
</li> | ||
</ul> | ||
</html>"), | ||
Icon(graphics={ | ||
Ellipse(lineColor = {75,138,73}, | ||
fillColor={255,255,255}, | ||
fillPattern = FillPattern.Solid, | ||
extent = {{-100,-100},{100,100}}), | ||
Polygon(lineColor = {0,0,255}, | ||
fillColor = {75,138,73}, | ||
pattern = LinePattern.None, | ||
fillPattern = FillPattern.Solid, | ||
points = {{-36,60},{64,0},{-36,-60},{-36,60}})})); | ||
end TimeTableNegativeStartTime; |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ Ramp | |
Sine | ||
StandardTime | ||
TimeTable | ||
TimeTableNegativeStartTime |
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.