Use an Explicit Device Events node (

) to create solver events at certain predefined start times and periods. Each solver event can reinitialize variables to a new value as long as the variable is a degree of freedom or discrete state. To ensure that an ordinary device variable is a degree of freedom, use an
Elimination Weight of
−1. See the
Device Variables node for more details.
To add an Explicit Device Events node to a physics feature or physics property node, right-click the node and choose
Explicit Device Events from the
Devices submenu. If added under any of these nodes or a
Component node, the explicit device events node belongs to the device models closest in the hierarchy. For most cases this will be the device model added by the physics interface.
Enter a scalar start time in the Start time column and a scalar period in the
Period column. The period time accepts
inf to only trigger an event once. The
Re-init variables and
Re-init expressions columns contain an array of variables names and their corresponding reinitialization expressions. It is an array to support reinitialization of multiple variables. For example,
{a, b} and
{a+1,b*2} to add one to
a and multiply
b with 2 for each triggered event.