Buildings.Controls.OBC.CDL.Utilities.Validation
Collection of models that validate the utilities blocks of the CDL
Information
This package contains models that validate the blocks in Buildings.Controls.OBC.CDL.Utilities.
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 |
---|---|
Assert | Validate the Assert block |
Buildings.Controls.OBC.CDL.Utilities.Validation.Assert
Validate the Assert block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Utilities.Assert.
Modelica definition
model Assert "Validate the Assert block"
Buildings.Controls.OBC.CDL.Utilities.Assert assert(message=
"input became false")
"Trigger warning and print warning message";
Buildings.Controls.OBC.CDL.Logical.Sources.Pulse booPul(period=0.5)
"Output boolean pulse";
equation
connect(booPul.y, assert.u);
end Assert;