Visualizing the beauty in physics and mathematics
In roughly four and a half billion years, our Milky Way galaxy will collide with our nearest neighbour, the Andromeda galaxy.
The demo below simulates this future collision. It is based on a very simple model:
π No star-star interaction, only gravitational forces from the galaxy cores (= sum of all masses)
π Very limited amount of stars compared
to the real amounts in both galaxyβs (1400 for Milky way, 2800 for Andromeda)
π No super-massive black holes at the center of either galaxy
π Masses and positions of stars are randomly picked from a normal distribution
(with a Box-MΓΌller transform),
circular velocities are $v=\sqrt{GM/r}$
In this model we use:
\[\begin{equation} a = \frac{GM}{r^2} \end{equation}\]As a consequence
The bonding energy of a star in a point mass potentiaal is:
\[\begin{equation} E = -\frac{GMm}{2r} \end{equation}\]So as $r$ increases, the energy becomes less negative β stars are less tightly bound and easier to be slurred away.
When to two cores approach:
This causes:
And since this simulation is based on a
We observe this effect even stronger than in realistic simulations.
In reality a dark matter halo leads to $v(r) \approx \text{constant}$. Instead, in this model we have $v(r) \sim \frac{1}{\sqrt{r}}$. As a consequence, the outer stars are relatively even weaker bound.
Even more spectacular and realistic pictures and animations can be found on nasa.gov.

On this site, you can also find a live demo of a way more advanced 2D spiral galaxy simulator that is based on the density wave theory (on GitHub β Galaxy renderer). It is written by Ingo Berg in TypeScript. Click on the image below to activate this demo!
Share on: