LBL logo

Buildings.Utilities.Diagnostics.BaseClasses

Package with base classes for Buildings.Utilities.Diagnostics

Information

This package contains base classes that are used to construct the models in Buildings.Utilities.Diagnostics.

Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).

Package Content

Name Description
Buildings.Utilities.Diagnostics.BaseClasses.PartialInputCheck PartialInputCheck Assert when condition is violated

Buildings.Utilities.Diagnostics.BaseClasses.PartialInputCheck Buildings.Utilities.Diagnostics.BaseClasses.PartialInputCheck

Assert when condition is violated

Buildings.Utilities.Diagnostics.BaseClasses.PartialInputCheck

Information

Partial model that can be used to check whether its inputs satisfy a certain condition such as equality within a prescribed threshold.

Extends from Modelica.Blocks.Icons.Block (Basic graphical layout of input/output block).

Parameters

TypeNameDefaultDescription
TimestartTime0Start time for activating the assert [s]
RealthreShold1E-2Threshold for equality comparison
Stringmessage"Inputs differ by more than ... 

Connectors

TypeNameDescription
input RealInputu1Value to check
input RealInputu2Value to check

Modelica definition

block PartialInputCheck "Assert when condition is violated" extends Modelica.Blocks.Icons.Block; parameter Modelica.SIunits.Time startTime = 0 "Start time for activating the assert"; parameter Real threShold(min=0)=1E-2 "Threshold for equality comparison"; parameter String message = "Inputs differ by more than threShold"; protected parameter Modelica.SIunits.Time t0( fixed=false) "Simulation start time"; public Modelica.Blocks.Interfaces.RealInput u1 "Value to check"; Modelica.Blocks.Interfaces.RealInput u2 "Value to check"; initial equation t0 = time + startTime; end PartialInputCheck;

Automatically generated Mon May 4 10:27:16 2015.