I'm working on a programming homework working with a system of point masses/particles. We are given the particles' initial positions (s_x, s_y, s_z), initial velocities (v_x, v_y, v_z) and masses. Using this information, we are supposed to create an output file that has the particles' positions after a set time delta_t as they orbit each other over a given time period (I'm assuming they would end up orbiting the system's center of mass, is this assumption correct?).
I've been stuck for hours trying to figure out the physics of my problem. I have written functions to find the system's center of mass and the net gravitational force experienced by each particle given all of the velocities, positions and masses in the system, but I don't know where to go from there :/.
I know I need to figure out how to get each particles position, velocity and force after a given delta_t time period. I have the force covered, but I don't know how the position would change and even less the velocity.
I figured I could first get the net gravitational force and then use that along with centripetal acceleration to find out the new velocity? or is this how I get the displacement of the particle? Ugh, I'm pretty clueless right now :(.