Buildings.Controls.OBC.CDL.Routing.Validation

Collection of models that validate the routing blocks of the CDL

Information

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

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.Routing.Validation.BooleanReplicator BooleanReplicator Validation model for the BooleanReplicator block
Buildings.Controls.OBC.CDL.Routing.Validation.ExtractSignal ExtractSignal Validation model for the ExtractSignal block
Buildings.Controls.OBC.CDL.Routing.Validation.IntegerReplicator IntegerReplicator Validation model for the IntegerReplicator block
Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator RealReplicator Validation model for the RealReplicator block

Buildings.Controls.OBC.CDL.Routing.Validation.BooleanReplicator Buildings.Controls.OBC.CDL.Routing.Validation.BooleanReplicator

Validation model for the BooleanReplicator block

Buildings.Controls.OBC.CDL.Routing.Validation.BooleanReplicator

Information

Validation test for the block Buildings.Controls.OBC.CDL.Routing.BooleanReplicator.

Modelica definition

model BooleanReplicator "Validation model for the BooleanReplicator block" Buildings.Controls.OBC.CDL.Routing.BooleanReplicator booRep( nout=3) "Block that outputs the array replicating input value"; Buildings.Controls.OBC.CDL.Logical.Sources.Pulse booPul( period=0.2) "Block that outputs boolean pulse"; equation connect(booPul.y, booRep.u); end BooleanReplicator;

Buildings.Controls.OBC.CDL.Routing.Validation.ExtractSignal Buildings.Controls.OBC.CDL.Routing.Validation.ExtractSignal

Validation model for the ExtractSignal block

Buildings.Controls.OBC.CDL.Routing.Validation.ExtractSignal

Information

Validation test for the block Buildings.Controls.OBC.CDL.Routing.ExtractSignal.

Modelica definition

model ExtractSignal "Validation model for the ExtractSignal block" Buildings.Controls.OBC.CDL.Routing.ExtractSignal extSig( nin=5, nout=3, extract={1,2,5}) "Block that extracts signals from an input signal vector"; Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp ram( height=5, duration=1, offset=-2) "Block that outputs ramp signal"; Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp ram1( duration=1, height=4, offset=-1) "Block that outputs ramp signal"; Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp ram2( duration=1, height=3, offset=-2) "Block that outputs ramp signal"; Buildings.Controls.OBC.CDL.Continuous.Sources.Pulse pul( amplitude=0.5, period=0.2) "Generate pulse signal of type Real"; Buildings.Controls.OBC.CDL.Continuous.Sources.Pulse pul1( period=0.2, amplitude=1.5, offset=-0.2) "Generate pulse signal of type Real"; equation connect(ram.y, extSig.u[1]); connect(pul.y, extSig.u[2]); connect(pul1.y, extSig.u[3]); connect(ram1.y, extSig.u[4]); connect(ram2.y, extSig.u[5]); end ExtractSignal;

Buildings.Controls.OBC.CDL.Routing.Validation.IntegerReplicator Buildings.Controls.OBC.CDL.Routing.Validation.IntegerReplicator

Validation model for the IntegerReplicator block

Buildings.Controls.OBC.CDL.Routing.Validation.IntegerReplicator

Information

Validation test for the block Buildings.Controls.OBC.CDL.Routing.IntegerReplicator.

Modelica definition

model IntegerReplicator "Validation model for the IntegerReplicator block" Buildings.Controls.OBC.CDL.Routing.IntegerReplicator intRep( nout=3) "Block that outputs the array replicating input value"; Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp ram( height=5, duration=1, offset=-2) "Block that outputs ramp signal"; Buildings.Controls.OBC.CDL.Conversions.RealToInteger reaToInt "Convert Real input to Integer output"; equation connect(ram.y, reaToInt.u); connect(reaToInt.y, intRep.u); end IntegerReplicator;

Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator

Validation model for the RealReplicator block

Buildings.Controls.OBC.CDL.Routing.Validation.RealReplicator

Information

Validation test for the block Buildings.Controls.OBC.CDL.Routing.RealReplicator.

Modelica definition

model RealReplicator "Validation model for the RealReplicator block" Buildings.Controls.OBC.CDL.Routing.RealReplicator reaRep( nout=3) "Block that outputs the array replicating input value"; Buildings.Controls.OBC.CDL.Continuous.Sources.Ramp ram( height=5, duration=1, offset=-2) "Block that outputs ramp signal"; equation connect(ram.y, reaRep.u); end RealReplicator;