Uploaded December 2021 | Updated September 2026, 2 weeks ago
An N-body simulation, inspired by many videos, much more visually appealing than this one, that recently has popped up in my feed.
A heavy object, a planet say, is located in the center, while a normally distributed stone cloud is initially fired off around it. All particles initially have the same velocity; hence the quite drastic spread over time. Two different initial conditions are shown. The stone cloud in the first half is associated with a small standard deviation of the stone cloud. In the second half a (50%) larger standard deviation is used resulting in a gravitational breakdown of the stone cloud while moving around the planet.
The code is home made in Python, as usual. Simply based on Newton's law, of course. Very computationally inefficient. It can barely handle 500-600 gravitationally attracting objects. Further, the accuracy of the simulation may be questioned. This video is done with 300-400 objects.
The super cool music is made by @gpcbass, also as usual. The song is a reproduction of an unfinished project of 1994. It's called SEQ2.
An N-body simulation, inspired by many videos, much more visually appealing than this one, that recently has popped up in my feed.
A heavy object, a planet say, is located in the center, while a normally distributed stone cloud is initially fired off around it. All particles initially have the same velocity; hence the quite drastic spread over time. Two different initial conditions are shown. The stone cloud in the first half is associated with a small standard deviation of the stone cloud. In the second half a (50%) larger standard deviation is used resulting in a gravitational breakdown of the stone cloud while moving around the planet.
The code is home made in Python, as usual. Simply based on Newton's law, of course. Very computationally inefficient. It can barely handle 500-600 gravitationally attracting objects. Further, the accuracy of the simulation may be questioned. This video is done with 300-400 objects.
The super cool music is made by @gpcbass, also as usual. The song is a reproduction of an unfinished project of 1994. It's called SEQ2.










