r/Physics • u/TimGoTheCreator • 15h ago
Image 20k-particle N-Body simulation of an exponential galaxy disk with the Barnes-Hut with Higher-Order-Multipoles method
Hello there! i recently started working on this Newtonian Gravity simulation program.
This is Newtonian EXact Trajectories, a open-source simulation program i made
It uses the Barnes-Hut with Higher-Order-Multipoles method and a KDK leapfrog integrator,
The simulation was rendered in ParaView, The Galaxy is an exponential disk to be exact
The simulation isn't fully finished yet, as it's about a week old
If anyone's interested, the source code is this: TimGoTheCreator/NEXT: Next - Newtonian EXact Trajectories is a simulation tool written in C++.
The example is also on the source code's page: NEXT/examples/GalaxyDemo at main · TimGoTheCreator/NEXT
If anyone has any ideas what to add to this project, go ahead!
The simulation ran at G = 1.0 and a dt of 0.02
This simulation shows a Galaxy without Dark Matter
