Pair interaction
Force and potential use the same softening.
M078 · Every star pulls every star
Release a three-dimensional cloud of gravitating particles. Change its initial speed, mass spread and force softening; follow collapse, rebound and expansion while auditing energy and momentum.
Physics tutorial
BackgroundGravity changes the source cloud itself.
Why it mattersFollow all particles and test what the collective motion conserves.
Start with the essentials
Force and potential use the same softening.
With softening, the virial moment differs from the potential energy.
A turning radius is not a proof of equilibrium.
Track numerical drift independently of the apparent motion.
Typical misconceptionA bright particle is a resolved star.
Better mental modelMarkers encode particle mass; close stellar encounters require a different model.
Play the cold-collapse preset.
What to observe: The cloud contracts, then rebounds without an imposed restoring spring.Compare the warm and expanding clouds.
What to observe: The same initial geometry produces different outcomes.Halve the timestep with the same cloud seed.
What to observe: Compare energy drift before interpreting detailed encounters.