N-body simulation 2026-10-06
An N-body simulation approximates a dynamical system by evolving interacting particles. In a collisionless galaxy calculation these particles sample a smooth mass distribution rather than represent individual physical stars. Their larger individual masses enhance artificial two-body relaxation; softening, force accuracy and convergence with particle number must be checked over the intended duration.
The stellar relaxation time is the time on which accumulated discrete gravitational encounters change a typical star's velocity by an amount comparable to its original velocity. It concerns two-body relaxation, rather than the much faster orbital evolution in a smooth gravitational potential. A collisionless stellar system requires this time to greatly exceed the duration being studied.
In the straight-line impulse approximation, an encounter at relative speed has transverse acceleration . Thus
A small-angle gravitational encounter needs . The transition to order-one deflections is therefore , ignoring factors such as the equal-mass relative deflection. For the spherical estimate ,
This is the lower cutoff of the weak-scattering estimate; closer encounters actually occur and require strong-scattering treatment.
The number of encounters in time with impact parameters in is . Independent random transverse directions make mean kicks cancel while their variances add. Consequently
Each logarithmic interval contributes equally, giving the Coulomb logarithm in stellar dynamics. Defining a deflection time by variance and setting gives . The paper instead uses an order-one normalization three quarters of this estimate:
Both have the same physical scaling. The specified characteristic speed, the word “comparable”, the velocity-distribution average and strong-encounter cutoff do not fix that numerical coefficient uniquely. The crude equal-speed impulse calculation must not be claimed to determine exactly.
For a self-gravitating, approximately virialized system, the virial theorem gives . With , and the stellar crossing time , substitution into the paper's convention gives
An externally dominated gravitational potential or a different structural constant changes this substitution. For an N-body simulation lasting , a tolerable fractional velocity-squared diffusion requires , hence
There is no unique smallest without , the error tolerance and the force prescription. For scale, equality at occurs near ; gives about crossing times. A calculation lasting 100 crossing times therefore needs substantially more than the first threshold to have negligible relaxation. Gravitational softening can raise the effective cutoff and reduce artificial scattering, but it also sets the spatial force resolution.