Buildings.Controls.OBC.CDL.Logical.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.Logical.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.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Constant Constant Validate the Constant block
Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse Pulse Validation model for the Boolean Pulse block
Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger SampleTrigger Validation model for the SampleTrigger block

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

Validate the Constant block

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

Information

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

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model Constant "Validate the Constant block" extends Modelica.Icons.Example; Buildings.Controls.OBC.CDL.Logical.Sources.Constant con(k=true) "Block output boolean constant value"; end Constant;

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

Validation model for the Boolean Pulse block

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

Information

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

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model Pulse "Validation model for the Boolean Pulse block" extends Modelica.Icons.Example; Buildings.Controls.OBC.CDL.Logical.Sources.Pulse booPul(width=0.5, period=1) "Block that generates pulse signal of type Boolean"; end Pulse;

Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger

Validation model for the SampleTrigger block

Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger

Information

Validation test for the block Buildings.Controls.OBC.CDL.Logical.Sources.SampleTrigger.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Modelica definition

model SampleTrigger "Validation model for the SampleTrigger block" extends Modelica.Icons.Example; Buildings.Controls.OBC.CDL.Logical.Sources.SampleTrigger samTri(period=0.5) "Block that generates sample trigger signal"; Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp ramp2( duration=5, offset=0, height=20) "Block that generates ramp signal"; Buildings.Controls.OBC.CDL.Discrete.TriggeredSampler triggeredSampler "Triggered sampler"; equation connect(ramp2.y, triggeredSampler.u); connect(samTri.y, triggeredSampler.trigger); end SampleTrigger;