adevs
|
#include <adevs_event_locators.h>
Public Member Functions | |
bool | find_events (bool *, const double *, double *, ode_solver< X > *, double &) |
![]() | |
event_locator (ode_system< X > *sys) | |
virtual | ~event_locator () |
Destructor. | |
Additional Inherited Members | |
![]() | |
ode_system< X > * | sys |
This event locator is for models that have no state events. Its find_events method simply returns false.
|
inlinevirtual |
Find the first state event in the interval [0,h] starting from state qstart. The method returns true if an event is found, setting the events flags to true if the corresponding z entry in the state_event_func above triggered the event. The value of h is overwritten with the event time, and the state of the model at that time is copied to qend. The event finding method should select an instant of time when the zero crossing function is zero or has changed sign to trigger an event.
Implements adevs::event_locator< X >.