![]() ![]() The crudest methods are appropriate for when the exact position of the event location does not really matter or does not reflect anything with precision in the underlying calculation. ![]() However, when an event is detected multiple times, the location refinement method can have a substantial effect. Location of a single event is usually fast enough so that the method used will not significantly influence the overall computation time. If the event action is to stop the integration then the particular value at which the integration is stopped depends on the value obtained from the "EventLocationMethod" option of "EventLocator". The appropriate method to use depends on a trade off between execution speed and location accuracy. These include simply taking the solution at the beginning or the end of the integration interval, a linear interpolation of the event value, and using bracketed root-finding methods. There are several different methods which can be used to refine the position. For each event function which has an event occurrence in a step, a refinement procedure is carried out to locate the position of the event within the interval. Event functions are expected to be real- or Boolean-valued, so if there is a change, there must be an event in the step interval. The "EventLocator" method works by taking a step of the underlying method and checking to see if the sign (or parity) of any of the event functions is different at the step endpoints. The Method option of "EventLocator" allows the specification of the numerical method to use in the integration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |