Types of N-body ODE Integration Methods
June 9, 1996
the correct slope because it is so far off the true path. Next,
is used to get a trial evalua-
tion at the end point of the interval. Finally, all four slopes are combined to get the final
Remember, it is not important for the Runge-Kutta method to have
, or for
to end up the most accurate. Nor can you just take the trial
points at random spots or increase the number of trials and have the results improve. The
purpose of using these particular spots is so that when all four evaluations of
together (with the right weightings), parts of the error terms of each step cancel each other
out and the final result has an error term of a higher order than the individual Euler steps.
The problem with Runge-Kutta methods is that they require several evaluations of
, which in our case is very expensive. To offset this expense the Runge-Kutta method
must be at least four times as accurate. For XStar, this turns out to not be the case when
compared to the Multistep methods.
Multi-step methods use the previous values of
to help determine the future
values. For XStar in particular, it seems a waste to just ignore the incredibly long history
of star locations.
The down side to all of the multi-step methods is that they require some sort of
one-step method to get them started. Worse, the "getting started" phase is not limited to
just the first time that the stars are created, but also when stars collide or bounce. So,
bouncing star systems that use multi-step methods are often using the one-step "starting"
method for a significant percentage of the time.
FIGURE 19. Graph of Runge-Kutta's method
This document is best viewed as n-body.pdf because the translation to html was buggy.