Labs · Forces

Colliding Galaxies

Colliding Galaxies simulation

A full n-body simulation of a galaxy is far too slow, but a classic trick from 1972 (the Toomre brothers) captures the essentials. Treat each galaxy as one massive core plus thousands of massless stars. Stars feel the cores but not each other, so the cost grows only linearly.

When the two cores swing past each other, tidal forces fling stars into long tails and bridges, just like real interacting galaxies such as "The Antennae".

Make galaxy B counter-rotating and compare the tails. Prograde encounters make far longer ones.

Controls

Evolved from Gravitational Attraction.