WithinDomain model
Requirements.Examples.Elementary.ChecksInFixedWindow.WithinDomain
ยท source
Example for WithinDomain (in every true condition phase, point input must be within domain defined by polygon)
Extends Modelica.Icons.Example
Using check block WithinDomain as
displays the polygon and the point in the icon of the block. If the point is within the polygon, the point is displayed in green and the polygon area in grey (the grey point on the polygon marks the polygon point that is closest to the point). If the point is outside of the polygon, it is displayed in red and the polygon area in light red:
Simulating this examples results in
![]() | |
| simulation result |
Note, that the point is outside of the domain defined by the polygon if distance < 0.
Components and variables
| Name | Type | Description |
|---|---|---|
withinDomain | Requirements.ChecksInFixedWindow.WithinDomain | The point (x, y) must stay inside the polygon while the condition is true |
table | Modelica.Blocks.Sources.CombiTimeTable | Trajectory of the point: columns 2 and 3 are x and y over time |
const1 | Requirements.Sources.BooleanConstant | Condition, always true |


