Struct EventApplication

Struct Documentation

struct EventApplication

Pre-/post-application state snapshot for a single event within a Discontinuity.

A Discontinuity can represent several events that trigger simultaneously (a single time point may satisfy more than one event’s trigger condition). Each such event is applied in turn (e.g., in order of priority), and – for adjoint sensitivities – deltaxB/deltaqB need this event’s own pre-/post-application state, not the pre-/post-state of the whole simultaneous-event group.

Public Members

int ie = {0}

Index of the applied event.

AmiVector x_pre

State immediately before this event’s own bolus was applied.

AmiVector xdot_pre

xdot evaluated at x_pre.

AmiVector x_post

State immediately after this event’s own bolus was applied.

AmiVector xdot_post

xdot evaluated at x_post.

AmiVector dx_post

State derivative after this event’s own bolus (DAE only).