OpenWorldLab

Loading interactive view…

Gravity simulator

A spiral galaxy you can collide

A barred spiral galaxy about as luminous as the Milky Way, drawn from the light of its own simulated stars: an old disc, gas, a central bulge and a black hole, inside a halo of dark matter. The graphics card moves them, gas lights up as young stars where it crosses the arms, and what you see is where they have got to. Use the tools at the side to fire another galaxy or a black hole into it. It is a galaxy like ours, not a map of ours.

What the stars orbit

At the centre sits a supermassive black hole. It is tiny beside the galaxy, which holds about a trillion Suns’ worth of mass, and it rules the stars’ motion only close in. Everywhere else the stars orbit the galaxy as a whole: what pulls on a star is all the mass inside its orbit, and most of that is not in the black hole.

A rotation curve that stays flat

If a galaxy’s mass were only its stars and gas, which thin out with distance from the centre, stars far out would move more slowly, as the outer planets do. They do not. From a few thousand light-years out to the edge, the Milky Way turns at about 220 km/s, and so do other spiral galaxies. The extra pull comes from a halo of dark matter that outweighs the stars many times over. The galaxy here has such a halo, and turns at between 220 and 260 km/s from 3 to 30 kiloparsecs (about 10,000 to 100,000 light-years) out.

Where the spiral arms come from

A spiral arm is not a fixed band of stars. Stars pass through the arms as they go round, the way cars pass through a traffic jam, and the arms are where they crowd. Here the simulator adds a rotating spiral and a bar to the disc’s pull, changing it by a few per cent, as in the test-particle models astronomers use.

What makes the arms bright is young stars. Gas piling into an arm forms new stars, and the brightest, blue ones live only tens of millions of years, too short to wander far from where they were born. Here gas that crosses an arm flares up and fades over much the same time.

When something falls in

A heavy body moving through a galaxy draws the stars and dark matter behind it into a wake, and the wake pulls it back. This dynamical friction, worked out by Chandrasekhar in 1943, is why a black hole fired into a galaxy spirals to the centre over about a billion years and joins the one already there, and why two bound galaxies merge at all.

A small galaxy has it harder. Tides from the larger one strip the dark matter from its outside, so its wake weakens and it stalls well away from the centre, while its stars spread along its orbit. Two galaxies of similar size instead fall together within a few hundred million years, on the second or third pass, and their stars settle into one rounder galaxy.

How it is simulated

Pulling every star on every other would take far too long. In a galaxy it is also unnecessary: a star moves in the smooth pull of everything else, and hardly feels any one neighbour. So the stars here are test particles stepped by the graphics card in the pull of each galaxy’s centre. The centres pull on each other, feel the friction and lose mass to the tides, and those rules were checked against full simulations of the same galaxies with every particle pulling on every other. For stars that do pull on each other, open the Star swarm.

What’s on screen

The ideas behind what the scene shows, each with what the simulator does and leaves out, and where to read more.

Galaxies

Systems of stars held together by gravity, ranging from faint dwarfs to giant ellipticals.

A galaxy like the Milky Way is a flat, slowly turning disk of a few hundred billion stars and gas, with spiral arms and a central bulge, inside a far larger, round halo of dark matter. The arms are not fixed rows of stars: they are waves of crowding that stars pass through, where gas is squeezed into new stars, which is why they glow blue. Other galaxies are ellipticals, round or egg-shaped swarms of older stars on every kind of orbit.

Stars far out in a disk go round about as fast as those further in, where the visible matter alone would let them slow. So galaxies hold several times more mass than we see, the dark matter, whose nature is still unknown.

The Explorer models spiral, barred spiral, elliptical, lenticular, irregular and dwarf galaxies. Lenticulars have a disk and bulge with little or no spiral structure. Dwarf describes a galaxy’s size or mass and can overlap with several shapes.

In the simulator. The simulator builds a galaxy from its type, size, age and arms. How it changes slowly when left alone is set by rule, not worked out from gravity. Launch another galaxy or a black hole at it and their cores and dark matter haloes move under gravity, with the drag of each halo on the other, while their stars follow the cores’ pull as test particles; a merger relaxes into one round galaxy. Zoom far out of a preset and you reach the galaxy it lives in: the Solar System and the scenes at Sagittarius A* are in the Milky Way, where they are in the real one, but the Playground, which holds the made-up scenes, and the galaxies that host the heaviest black holes are invented. The Milky Way’s nearest neighbours are the real ones, where they are seen from the Sun: Andromeda with M32 and M110, Triangulum, and the Magellanic Clouds with the gas of the Magellanic Stream, drawn as they are today and not moving. M87, at the heart of the Virgo cluster 54 million light-years away, is real too, laid over the web there. The rest of the cosmic web is invented, and so are the names. Apart from these, the Antennae, the Mice and the other famous pairs, every galaxy’s name and catalogue number, such as OGC 848182, comes from its address, as do the names of its stars, planets, clusters and regions. In the Milky Way only the Sun and the real systems the presets show carry real names. In the cosmic web, once it is a few pixels across, the galaxy you close in on and the largest few around it are drawn from the light of their own simulated stars. That is the same picture you see on entering one, at its true size and its true surface brightness. What in that picture is simulated and what is drawn by rule, its arms, dust and star-forming regions among them, is set out under Spiral arms, dust and young stars. Smaller galaxies are drawn as painted portraits with their own kind of arms, bar and bulge, and the faintest as specks enlarged so you can see them.

Read more

Places to visit

Zoom out of any scene to reach the galaxy it lives in and the cosmic web beyond it, or go straight there.

Things to try

  • Fire a black hole in slowly and follow it down: it takes a billion years to reach the centre, so speed up the clock.
  • Launch a galaxy of the same size at a shallow angle and watch the tidal tails unwind on its first pass.
  • Zoom in on a single star and enter it to see its planets, or click the central black hole and enter the galactic centre.

More scenarios