CATEGORII DOCUMENTE |
Asp | Autocad | C | Dot net | Excel | Fox pro | Html | Java |
Linux | Mathcad | Photoshop | Php | Sql | Visual studio | Windows | Xml |
Table 11 lists the event output functions. These functions allow you to retrieve the events after they occur. Note that event handling requires a Butcher Table that has dense output.
Table 11 Event Output Functions.
Function |
Description |
GetEventTimes |
Returns the times at which each event occurred. |
GetEventStates |
Returns the state vector for each event. |
GetEventIndex |
Returns the index value which lists which event occurred at each time. |
cvTE = pInteg->GetEventTimes();
None.
Type |
Description |
colvec |
All of the times at which events have occurred. |
This function returns a list of all the event times that have been logged by the integrator. There should be one corresponding event state vector for each of these times. These values will be repeated in the output returned by GetTOut( if OutputEventsInYOut() has been called.
mxYE = pInteg->GetEventStates();
None.
Type |
Description |
matrix |
Values of the state vector at each of the event times processed so far. |
This function returns a matrix with all of the logged event values of the state vector. Each column of the matrix is a column vector with the computed state values at each event that has been logged so far. These values will be repeated in the output returned by GetYOut( if OutputEventsInYOut() has been called.
cvIE = pInteg->GetEventIndex();
None.
Type |
Description |
CColumnVector<int,int> |
Index of which event has occurred at each event time. |
This function returns a list of all the event indices for the event times that have been logged by the integrator. Each element of the vector is an integer corresponding to which event has occurred (see Section for a discussion of event states). This allows you to track which events occurred at which time, and what those events were.
Politica de confidentialitate | Termeni si conditii de utilizare |
Vizualizari: 604
Importanta:
Termeni si conditii de utilizare | Contact
© SCRIGROUP 2024 . All rights reserved