modelChatteringEvents2

Exhibits chattering after t = 0.422, with generated events

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

Information

After t = 0.422, chattering takes place, due to the discontinuity in the right hand side of the second 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
Realw
Realy
Realz