Buildings.Controls.OBC.CDL.Integers.Sources.Validation

Collection of models that validate the logical sources blocks of the CDL

Information

This package contains models that validate the blocks in Buildings.Controls.OBC.CDL.Integers.Sources.

The examples plot various outputs, which have been verified against analytical solutions. These model outputs are stored as reference data to allow continuous validation whenever models in the library change.

Package Content

Name Description
Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant Constant Validate the Constant block
Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse Pulse Validation model for the Integer Pulse block
Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable TimeTable Validation model for TimeTable block
Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTableNegativeStartTime TimeTableNegativeStartTime Validation model for TimeTable block with negative start time

Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant

Validate the Constant block

Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Constant

Information

Validation test for the block Buildings.Controls.OBC.CDL.Integers.Sources.Constant.

Modelica definition

model Constant "Validate the Constant block" Buildings.Controls.OBC.CDL.Integers.Sources.Constant con( k=5) "Block output integer constant value"; end Constant;

Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse

Validation model for the Integer Pulse block

Buildings.Controls.OBC.CDL.Integers.Sources.Validation.Pulse

Information

Validation test for the block Buildings.Controls.OBC.CDL.Integers.Sources.Pulse.

Modelica definition

model Pulse "Validation model for the Integer Pulse block" Buildings.Controls.OBC.CDL.Integers.Sources.Pulse pul3( amplitude=1, width=0.5, period=1, offset=3) "Block that generates pulse signal of type Integer at simulation start time"; Buildings.Controls.OBC.CDL.Integers.Sources.Pulse pul1( amplitude=2, width=0.5, period=1, offset=1, shift=1.75) "Block that generates pulse signal of type Integer starting from after the simulation start time"; Buildings.Controls.OBC.CDL.Integers.Sources.Pulse pul2( amplitude=3, width=0.5, period=1, offset=-2, shift=-1.25) "Block that generates pulse signal of type Integer starting from before the simulation start time"; Buildings.Controls.OBC.CDL.Integers.Sources.Pulse pul( width=0.5, period=1) "Block that generates pulse signal of type Integer at simulation start time and has infinite number of periods"; end Pulse;

Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable

Validation model for TimeTable block

Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable

Information

Validation test for the block Buildings.Controls.OBC.CDL.Integers.Sources.TimeTable.

Modelica definition

model TimeTable "Validation model for TimeTable block" Buildings.Controls.OBC.CDL.Integers.Sources.TimeTable intTimTab( table=[ 0,1,4; 1.3,2,2; 2.9,0,-1; 4,3,7], period=5) "Integer time table"; Buildings.Controls.OBC.CDL.Integers.Sources.TimeTable intTimTab1( table=[ 0,-1,-2; 6,1,4; 7.3,2,2; 8.9,0,-1; 10,3,7], period=11) "Integer time table"; Buildings.Controls.OBC.CDL.Integers.Sources.TimeTable tabOneRow( table=[ 0,-1], period=2) "Time table with only one row of data"; end TimeTable;

Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTableNegativeStartTime Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTableNegativeStartTime

Validation model for TimeTable block with negative start time

Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTableNegativeStartTime

Information

This model validates the block Buildings.Controls.OBC.CDL.Integers.Sources.TimeTable. The model is identical to Buildings.Controls.OBC.CDL.Integers.Sources.Validation.TimeTable except that the start time is negative.

Modelica definition

model TimeTableNegativeStartTime "Validation model for TimeTable block with negative start time" Buildings.Controls.OBC.CDL.Integers.Sources.TimeTable intTimTab( table=[ 0,1,4; 1.3,2,2; 2.9,0,-1; 4,3,7], period=5) "Integer time table"; Buildings.Controls.OBC.CDL.Integers.Sources.TimeTable intTimTab1( table=[ 0,-1,-2; 6,1,4; 7.3,2,2; 8.9,0,-1; 10,3,7], period=11) "Integer time table"; Buildings.Controls.OBC.CDL.Integers.Sources.TimeTable tabOneRow( table=[ 0,-1], period=2) "Time table with only one row of data"; end TimeTableNegativeStartTime;