Buildings.Obsolete.Controls.OBC.CDL.Integers.Validation

Collection of validation models

Information

This package contains validation models for the classes in Buildings.Obsolete.Controls.OBC.CDL.Integers.

Note that most validation models contain simple input data which may not be realistic, but for which the correct output can be obtained through an analytic solution. The examples plot various outputs, which have been verified against these solutions. These model outputs are stored as reference data and used for continuous validation whenever models in the library change.

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

Package Content

Name Description
Buildings.Obsolete.Controls.OBC.CDL.Integers.Validation.Add Add Validation model for the Add block

Buildings.Obsolete.Controls.OBC.CDL.Integers.Validation.Add Buildings.Obsolete.Controls.OBC.CDL.Integers.Validation.Add

Validation model for the Add block

Buildings.Obsolete.Controls.OBC.CDL.Integers.Validation.Add

Information

Validation test for the block Buildings.Obsolete.Controls.OBC.CDL.Integers.Add.

Modelica definition

model Add "Validation model for the Add block" Buildings.Obsolete.Controls.OBC.CDL.Integers.Add add1 "Block that outputs the sum of the two inputs"; Buildings.Controls.OBC.CDL.Reals.Sources.Ramp ramp1( duration=1, offset=-3.5, height=7.0) "Block that generates ramp signal"; Buildings.Controls.OBC.CDL.Reals.Sources.Ramp ramp2( duration=1, offset=-0.5, height=7.0) "Block that generates ramp signal"; Buildings.Controls.OBC.CDL.Reals.Round round1( n=0) "Round real number to given digits"; Buildings.Controls.OBC.CDL.Conversions.RealToInteger reaToInt "Convert real to integer"; Buildings.Controls.OBC.CDL.Reals.Round round2( n=0) "Round real number to given digits"; Buildings.Controls.OBC.CDL.Conversions.RealToInteger reaToInt1 "Convert real to integer"; equation connect(ramp1.y,round1.u); connect(ramp2.y,round2.u); connect(round2.y,reaToInt1.u); connect(round1.y,reaToInt.u); connect(reaToInt.y,add1.u1); connect(reaToInt1.y,add1.u2); end Add;