A simulation of the n-body problem with 48 masses around a single, much larger mass. The initial positions of the smaller masses are random within a circle of a certain radius. The initial velocities of the smaller masses are random, with a slight net angular momentum given to the system. The forces between the masses are proportional to (1/r²)(2/(1 + e^(-3 * (r/20)^(4))) - 1) (a smoothed 1/r² function).
single large central mass, all other masses equal
random start
chaos / chaotic motion
velocities and positions calculated using Runge-Kutta methods
25fps, 90s
programmed in C#
#Physics #PhysicsSimulations #ThreeBodyProblem #Gravity