Buildings.Controls.OBC.CDL.Logical.Validation
Collection of models that validate the logical blocks of the CDL
Information
This package contains models that validate the blocks in Buildings.Controls.OBC.CDL.Logical.
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 |
---|---|
And | Validation model for the And block |
And3 | Validation model for the And3 block |
Change | Validation model for the Change block. |
Edge | Validation model for the Edge block |
FallingEdge | Validation model for the falling edge block |
Latch | Validation model for the Latch block |
MultiAnd | Model to validate the application of MultiAnd block |
MultiOr | Model to validate the application of MultiOr block |
Nand | Validation model for the Nand block |
Nor | Validation model for the Nor block |
Not | Validation model for the Not block |
OnOffController | Validation model for the OnOffController block |
Or | Validation model for the Or block |
Or3 | Validation model for the Or3 block |
Switch | Validation model for the Switch block |
Timer | Validation model for the Timer block |
TimerAccumulating | Validation model for the timer that accumulates the time |
TimerAccumulatingNegativeStartTime | Validation model for the timer that accumulates the time, with a negative start time |
TimerNegativeStartTime | Validation model for the Timer block with a negative start time |
Toggle | Validation model for the Toggle block |
TriggeredTrapezoid | Validation model for the TriggeredTrapezoid block |
TrueDelay | Validation model for the TrueDelay block |
TrueFalseHold | Validation model for the TrueFalseHold block |
TrueHoldWithReset | Validation model for the TrueHoldWithReset block |
Xor | Validation model for the Xor block |
ZeroCrossing | Validation model for the zero crossing block |
Buildings.Controls.OBC.CDL.Logical.Validation.And
Validation model for the And block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.And.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.And3
Validation model for the And3 block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.And3.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Change
Validation model for the Change block.
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Change.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Edge
Validation model for the Edge block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Edge.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.FallingEdge
Validation model for the falling edge block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.FallingEdge.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Latch
Validation model for the Latch block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Latch. Following tests are implemented:
-
When the clear input is
false
, the initial output should equal to the initial latch input. -
When the clear input is
true
, the initial output should befalse
, regardless of the value of the latch input. -
At the same moment, when both the clear input and the latch input rise from
false
totrue
, the output should becomefalse
if it wastrue
, or remainfalse
if it wasfalse
. -
At the same moment, when the clear input falls from
true
tofalse
and the latch input rises fromfalse
totrue
, the output should rise fromfalse
totrue
.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.MultiAnd
Model to validate the application of MultiAnd block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.MultiAnd.
The input signals are configured as follows:
- input u1 has a period of 1 s and a width of 0.5 s.
- input u2 has a period of 2 s and a width of 0.5 s.
- input u3 has a period of 3 s and a width of 0.5 s.
- input u4 has a period of 4 s and a width of 0.5 s.
- input u5 has a period of 5 s and a width of 0.5 s.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.MultiOr
Model to validate the application of MultiOr block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.MultiOr.
The input signals are configured as follows:
- input u1 has a period of 1 s and a width of 0.5 s.
- input u2 has a period of 2 s and a width of 0.5 s.
- input u3 has a period of 3 s and a width of 0.5 s.
- input u4 has a period of 4 s and a width of 0.5 s.
- input u5 has a period of 5 s and a width of 0.5 s.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Nand
Validation model for the Nand block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Nand.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Nor
Validation model for the Nor block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Nor.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Not
Validation model for the Not block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Not.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.OnOffController
Validation model for the OnOffController block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.OnOffController.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Or
Validation model for the Or block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Or.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Or3
Validation model for the Or3 block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Or3.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Switch
Validation model for the Switch block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Switch.
The input u2
is the switch input: If u2 = true
,
then output y = u1
;
else output y = u3
.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Timer
Validation model for the Timer block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Timer.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulating
Validation model for the timer that accumulates the time
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.TimerAccumulating.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.TimerAccumulatingNegativeStartTime
Validation model for the timer that accumulates the time, with a negative start time
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.TimerAccumulating.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.TimerNegativeStartTime
Validation model for the Timer block with a negative start time
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Timer.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Toggle
Validation model for the Toggle block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Toggle. Following tests are implemented:
-
When the clear input is
false
, the initial output should equal to the initial toggle input. -
When the clear input is
true
, the initial output should befalse
, regardless of the value of the toggle input. -
At the same moment, when both the clear input and the toggle input rise from
false
totrue
, the output should becomefalse
if it wastrue
, or remainfalse
if it wasfalse
. -
At the same moment, when the clear input falls from
true
tofalse
and the toggle input rises fromfalse
totrue
, the output should rise fromfalse
totrue
.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid
Validation model for the TriggeredTrapezoid block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.TriggeredTrapezoid.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.TrueDelay
Validation model for the TrueDelay block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.TrueDelay.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.TrueFalseHold
Validation model for the TrueFalseHold block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.TrueFalseHold.
The validation uses different instances to validate different hold trueHoldDurations, different lengths of the input pulse, and different initial values for the input signal.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.TrueHoldWithReset
Validation model for the TrueHoldWithReset block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.TrueHoldWithReset.
The validation uses different instances to validate different hold durations, different lengths of the input pulse, and different initial values for the input signal.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.Xor
Validation model for the Xor block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Xor.
Modelica definition
Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing
Validation model for the zero crossing block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.ZeroCrossing.