Just a demonstration for euler vs runge-kutta integration (see thread
"But *how* to do the constant energy solution for particle physics?"
in povray.general).
This shows some orbits for one particle at a time (no interaction
between them). The blue orbits are calculated by 4th order Runge-Kutta,
while the red ones are calculated with Euler.
The time steps for euler are 4 times smaller to make the comparison fair,
since RK4 needs about 3 times more computations per time step.
Lutz-Peter
Post a reply to this message
Attachments:
Download 'euler_vs_rungekutta4.jpg' (34 KB)
Preview of image 'euler_vs_rungekutta4.jpg'
|