Basic HTML version of Foils prepared
22 February 1998
Foil 26 Solving the N-body equations of motion
From
Fox Presentation Fall 1995 CPS615 Basic Simulation Track for Computational Science --
1998 Enhancements
.
by
Geoffrey C. Fox
1
Introduce 3 vectors X V A for position,velocity and acceleration of particles
2
Numerical techniques iterate equations over time using Runge Kutta (in our detailed example) or more simply:
Euler's Equation which gives:
X(t+dt) = X(t) + h * V(t)
V(t+dt) = V(t) + h * Grav(X(t))
3
Note i labels particles not time steps
in Table To:
©
Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu
If you have any comments about this server, send e-mail to
webmaster@npac.syr.edu
.
Page produced by
wwwfoil
on Sun Feb 22 1998