Buildings.ThermalZones.ReducedOrder.Validation.VDI6007.BaseClasses
Base classes for VDI 6007 validation cases
Information
This package contains base classes that are used to construct the models in Buildings.ThermalZones.ReducedOrder.Validation.VDI6007.
Extends from Modelica.Icons.BasesPackage (Icon for packages containing base classes).
Package Content
| Name | Description |
|---|---|
| Assert when condition is violated |
Buildings.ThermalZones.ReducedOrder.Validation.VDI6007.BaseClasses.VerifyDifferenceThreePeriods
Assert when condition is violated
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.
The difference abs(u1-u2) is filtered with a first order filter with time constant tau.
This guards against rounding errors in event handling by upstream signal-generating blocks.
Extends from Buildings.Utilities.Diagnostics.BaseClasses.PartialInputCheck (Assert when condition is violated).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Time | startTime | 0 | Start time for activating the assert [s] |
| Real | threShold | 1E-2 | Threshold for equality comparison |
| String | message | "Inputs differ by more than ... | |
| Time | endTime | 0 | Start time for deactivating the assert (period one) [s] |
| Time | startTime2 | 0 | Start time for activating the assert (period two) [s] |
| Time | endTime2 | 0 | Start time for deactivating the assert (period two) [s] |
| Time | startTime3 | 0 | Start time for activating the assert (period three) [s] |
| Time | endTime3 | 0 | Start time for deactivating the assert (period three) [s] |
| Time | tau | 60 | Time constant for filtering signal [s] |
Connectors
| Type | Name | Description |
|---|---|---|
| input RealInput | u1 | Value to check |
| input RealInput | u2 | Value to check |
| output BooleanOutput | satisfied | |
| output RealOutput | diff | Difference abs(u1-u2) after filtering |