blockVerifyDifferenceThreePeriods
Assert when condition is violated
Extends from IBPSA.Utilities.Diagnostics.BaseClasses.PartialInputCheck.
Information
Block that outputs satisfied = false if
abs(u1-u2) > threShold within the prescribed time intervals,
or satisfied = true otherwise.
Implementation
The test uses a hysteresis of plus/minus 1% in order to avoid
chattering if abs(u1-u2) is near threShold.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Time | endTime | 0 | Start time for deactivating the assert (period one) |
| Modelica.SIunits.Time | startTime2 | 0 | Start time for activating the assert (period two) |
| Modelica.SIunits.Time | endTime2 | 0 | Start time for deactivating the assert (period two) |
| Modelica.SIunits.Time | startTime3 | 0 | Start time for activating the assert (period three) |
| Modelica.SIunits.Time | endTime3 | 0 | Start time for deactivating the assert (period three) |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanOutput | satisfied | ||
| Modelica.Blocks.Interfaces.RealOutput | diff | Difference u1-u2 |
Revisions
-
September 7, 2018, by Michael Wetter:
Rewrote inequality to turn a state into a time event for Dymola 2019FD01. -
December 16, 2016, by Michael Wetter:
Reformulated model for https://github.com/ibpsa/modelica-ibpsa/issues/623. -
October 10, 2013, by Michael Wetter:
Reformulated model to allow scheduling of time events as opposed to state events, and removednoEventoperator which is not needed as these are only time events. -
June 29, 2016, by Moritz Lauster:
First implementation.