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.

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.

Modelica definition

model Constant "Validate the Constant block" 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.

Modelica definition

model Pulse "Validation model for the Boolean Pulse block" 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.

Modelica definition

model SampleTrigger "Validation model for the SampleTrigger block" 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;