WOLFRAM SYSTEM MODELER

'terminate()'

terminate()

Wolfram Language

In[1]:=
SystemModel["ModelicaReference.Operators.'terminate()'"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Successfully terminate current analysis

Syntax

terminate(message)

Description

The terminate function successfully terminates the analysis which was carried out. The function has a string argument indicating the reason for the success. [The intention is to give more complex stopping criteria than a fixed point in time.]

Examples

model ThrowingBall
  Real x(start=0);
  Real y(start=1);
equation
  der(x)= ... ;
  der(y)= ... ;
algorithm
  when y < 0 then
    terminate("The ball touches the ground");
  end when;
end ThrowingBall;