modelChatteringEvents1

Exhibits chattering after t = 0.5, with generated events

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

After t = 0.5, chattering takes place, due to the discontinuity in the right hand side of the first equation.

Chattering can be detected because lots of tightly spaced events are generated. The feedback to the user should allow to identify the equation from which the zero crossing function that generates the events originates, z = if x > 0 then -1 else 1;

Components

TypeNameDefaultDescription
Realx
Realy
Realz