blockTerminateSimulation
Terminate simulation if condition is fulfilled
Information
In the parameter menu, a time varying expression can be defined via variable condition, for example "condition = x < 0", where "x" is a variable that is declared in the model in which the "TerminateSimulation" block is present. If this expression becomes true, the simulation is (successfully) terminated. A termination message explaining the reason for the termination can be given via parameter "terminationText".
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| String | terminationText | "... End condition reached" | Text that will be displayed when simulation is terminated |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Interfaces.BooleanOutput | condition | false | Terminate simulation when condition becomes true |