The Events Interface
The Events interface (), found under the Mathematics>ODE and DAE Interfaces branch () when adding a physics interface, is used to create solver events. An event can be explicit or implicit, and the difference is that for explicit events you must specify the exact time when the event occurs. When an event occurs, the solver stops and provides a possibility to reinitialize the values of states and dependent variables.
Settings
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics interface. Refer to such physics interface variables in expressions using the pattern <name>.<variable_name>. In order to distinguish between variables belonging to different physics interfaces, the name string must be unique. Only letters, numbers, and underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first Events interface in the model) is ev.
With the Batteries & Fuel Cells Module, see Capacity Fade of a Lithium-Ion Battery for the use of this interface and the Discrete States, Indicator States, and Implicit Event nodes (Application Library path Batteries_and_Fuel_Cells_Module/Batteries,_Lithium-Ion/capacity_fade).
Events Toolbar
The following nodes are available from the Events ribbon toolbar (Windows users), Events context menu (Mac or Linux users), or by right-clicking to access the context menu (all users).
The following event features are available: