Mutual Interaction of $N$-Particles in a Cartesian Plane I am making a simulation of $N$-Particles in a cartesian plane and need help with understanding the basics.
At anytime, in my particle system, I will have $N$ number of particles. I am treating the particles as bodies with some radius $r \in (0, 20]$ and giving them properties constrained in a $X \times Y$ unit squared area of a finite plane. Following are the properties a particle can have:


*

*Mass (Initially supplied)

*Radius (Initially supplied)

*Position (Initially supplied)

*Velocity (Initially supplied)

*Accelaration (when one body attracts another, dynamically generated by the simulator)


Given all this info, I want to make the particle system autonomous, meaning at $t=0$, $N$ particles are laid out on the plane in random locations. At $t>0$, all these particles interact with each other because of the force they exert on each other. I need help understating their fundamental behaviors, especially when can one particle rotate around each other (just like moon does around the earth)? I do understand this concept a little, but what kind of physical and mathematical concepts can help me with this? If possible can you point me to the right web resource pertaining to this matter so I can read about it?
 A: If they're point masses, you can take out radius as that is already assumed to be 0 :)
This problem has been studied, and has the creative name of "the n body problem"... you can read about it at Wikipedia: http://en.wikipedia.org/wiki/N-body_problem (noting of course that Wikipedia is not a proper reference for scholarly or real-world engineering work, but it makes for a good read of the topic- a starting point).
Essentially I think the fundamental tools for this problem are vector calculus, classical mechanics (Newton's Laws) and numerical methods (it turns out its non-trivial to get good results out of a simulation like the one you describe, and it gets its own field of study!).
The issue of objects potentially orbiting each other should not require special treatment if you build the right mathematical model and implement it well... it should just "happen" as a natural consequence of the system you've set up.
The problem, on the surface, sounds simple and maybe even easy... but it's actually going to be difficult and likely very educational. Don't get discouraged when you find difficulties, that's how you learn.
edit: implicit in all of this is the assumption that you're only going to account for gravitational interactions (i.e. no electromagnetism, no nuclear forces). Also, you'll probably want to start out assuming all objects exist in a vacuum (as opposed to a fluid medium such as the atmosphere, as aerodynamics would add a whole bunch more complications).
