Integrating gravitational acceleration of particles for simulation

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
caspernorth
Messages
27
Reaction score
0
I've tried out the two body problem and tried to work out the trajectories with respect to their center of mass frame(located at the origin) as follows (it worked!:smile:):

particles = m1 and m2
Fm1 = force of m2 on m1
Fm2 = force of m1 on m2

a = Gm2[itex]\hat{r}[/itex] / r2
[itex]\hat{r}[/itex] is the unit vector
[itex]\hat{r}[/itex] = r/|r|
a m1 = Gm2 r / |r|^3
r = √(x^2 + y^2)

and did this for both a1 and a2 but my doubt is this:
why is there a substitution for r vector only when the denominator term stays constant (magnitude).
Wouldn't this imply that particles slows down when r vector decrease?!

at each time intervals shouldn't the magnitude of vector connecting two particles change too? please help.
also why can't type in complex equation forms (am1 = [itex]\frac{Gm<sub>2</sub>[itex]\hat{r}[/itex] }{r<sup>2</sup>}[/itex]). it shows the syntax instead of formatted text.
 
Last edited:
Physics news on Phys.org
why is there a substitution for r vector only when the denominator term stays constant (magnitude).
What do you mean with that?
The denominator stays constant for circular orbits only.
at each time intervals shouldn't the magnitude of vector connecting two particles change too?
In general, it does.

also why can't type in complex equation forms (am1 = [itex]\frac{Gm^2\hat{r} }{r^2}[/itex]). it shows the syntax instead of formatted text.
Do not nest [itex] and BB-Code tags, that does not work.