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.
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
Reinit variables and
Reinit 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.