Two-body problem in orbiting frame

  • Context: Undergrad 
  • Thread starter Thread starter Tetrapoil
  • Start date Start date
  • Tags Tags
    Frame
Click For Summary
SUMMARY

The discussion focuses on computing the trajectory of two point mass objects in an orbiting frame centered on one of the masses. The acceleration of object 2 is derived from gravitational interactions, but confusion arises regarding the non-inertial nature of the chosen frame. The participants clarify that using a leapfrog integrator for numerical solutions requires careful consideration of the acceleration vector over time intervals. Ultimately, the center-of-mass frame is recommended for simplicity, although the original poster needs to work in a non-inertial frame for specific numerical reasons related to gas dynamics.

PREREQUISITES
  • Understanding of Newtonian mechanics and gravitational interactions
  • Familiarity with numerical integration techniques, specifically leapfrog integrators
  • Knowledge of non-inertial reference frames and their implications
  • Basic principles of gas dynamics in stratified media
NEXT STEPS
  • Study the principles of the two-body problem in celestial mechanics
  • Learn about the center-of-mass frame and its advantages in orbital mechanics
  • Explore advanced numerical methods for solving differential equations in physics
  • Investigate the effects of mass distribution on trajectories in fluid dynamics
USEFUL FOR

Researchers and students in astrophysics, computational physics, and fluid dynamics, particularly those interested in orbital mechanics and numerical simulations of gravitational systems.

Tetrapoil
Messages
7
Reaction score
3
TL;DR
What is the acceleration acting on object 2 in the orbiting frame centered on object 1?
Hi,

I am interested in a system where two point mass objects 1 & 2 are orbiting each other. I want to compute the trajectory of object 2 in the orbiting but non-rotating frame centered on object 1. For some reason this confuses me...

Let r2 be the position of object 2 in such orbiting frame centered on object 1. The acceleration of object 2, in the orbiting frame, is

a2 = - (GM1/|r2|3) r2 - (GM2/|r2|3 )r2 .

The first term being the acceleration of object 2 from object 1, and the second term being the acceleration of object 1 relative to the inertial
frame. Of course, something is wrong as in this case object 2 will necessarily fall on object 1. Am I missing something?
Thanks!
 
Physics news on Phys.org
Why do you think the objects must collide? The gravitational force is always in the direction between the two masses, so the acceleration of each object is always in this direction. e.g. the Earth is always accelerating towards the Sun.
 
Thanks for your reply. I agree, and this is what confuses me...
Let's say that I want to compute the trajectory of object 2 in such frame, I would have something roughly like that:

r2(t+1) = r2(t) + vr2*dt
where
vr2(t+1)= vr2(t) + ar2(t)*dt .

As vr(t=0) = 0 and ar2 < 0, r2 decreases, whatever the initial orbital velocity of object 2... Right?
 
Tetrapoil said:
Thanks for your reply. I agree, and this is what confuses me...
Let's say that I want to compute the trajectory of object 2 in such frame, I would have something roughly like that:

r2(t+1) = r2(t) + vr2*dt
where
vr2(t+1)= vr2(t) + ar2(t)*dt .

As vr(t=0) = 0 and ar2 < 0, r2 decreases, whatever the initial orbital velocity of object 2... Right?
In principle what you have is not that different from uniform circular motion. It's clearly not necessary that the radius decreases.

You may be making a common mistake of taking ##dt## to be some finite interval over which the acceleration vector is constant. That does make a mess of circular motion!

Instead, circular motion requires calculus to be done properly, with ##dt## as a differential and not a finite time interval.
 
It's of course not a good idea to try to describe the motion of one object in the rest frame of the other, which is a non-inertial frame to begin with. The most simple frame is the center-of-mass frame. The equation of motion for the relative vector ##\vec{r}=\vec{r}_1-\vec{r}_2## is
$$\mu \ddot{\vec{r}}=-\frac{G m_1 m_2}{r^3} \vec{r}$$
and not the strange formula you wrote in#1, where ##\mu=m_1 m_2/(m_1+m_2)## denotes the "reduced mass".

The solution of this "Kepler problem" is that either (a) the trajectory of ##r## is a conic section with one of its foci in the origin (i.e., the center of mass of the two-body system) or (b) straight lines.
 
  • Like
Likes   Reactions: Leo Liu
PeroK said:
In principle what you have is not that different from uniform circular motion. It's clearly not necessary that the radius decreases.

You may be making a common mistake of taking ##dt## to be some finite interval over which the acceleration vector is constant. That does make a mess of circular motion!

Instead, circular motion requires calculus to be done properly, with ##dt## as a differential and not a finite time interval.
I see what you mean. I am in fact using a leapfrog integrator to numerically compute the position of object 2, with dt << 1, so in theory it should work (but it doesn't..).
 
  • Like
Likes   Reactions: PeroK
vanhees71 said:
It's of course not a good idea to try to describe the motion of one object in the rest frame of the other, which is a non-inertial frame to begin with. The most simple frame is the center-of-mass frame. The equation of motion for the relative vector ##\vec{r}=\vec{r}_1-\vec{r}_2## is
$$\mu \ddot{\vec{r}}=-\frac{G m_1 m_2}{r^3} \vec{r}$$
and not the strange formula you wrote in#1, where ##\mu=m_1 m_2/(m_1+m_2)## denotes the "reduced mass".

The solution of this "Kepler problem" is that either (a) the trajectory of ##r## is a conic section with one of its foci in the origin (i.e., the center of mass of the two-body system) or (b) straight lines.
Thanks. Unfortunately, I have to consider the problem in the non-inertial frame orbiting with M1, for technical numerical reasons. I believe that your equation is the same as the one I wrote in #1. My problem may thus be mostly related to my numerical resolution of the equation...
 
The acceleration vector is continuously changing, so you would need to take its average over a small time interval ##dt##, not simply its value at the start of the interval.

That is probably your error and what is causing the iteration to go wrong.
 
Last edited:
  • Like
Likes   Reactions: Tetrapoil
PeroK said:
The acceleration vector is continuously changing, so you would need to take its average over a small time interval ##dt##, not simply its value at the start of the interval.

That is probably your error and what is causing the interaction to go wrong.
That makes sense, indeed. Thanks a lot!
 
  • #10
Again: I'd not choose the rest frame of one particle as the computational frame. It's much more simple to work in the center-of-mass frame, which is an inertial frame. That holds also true for numerical solutions of the equations of motion.
 
  • #11
vanhees71 said:
Again: I'd not choose the rest frame of one particle as the computational frame. It's much more simple to work in the center-of-mass frame, which is an inertial frame. That holds also true for numerical solutions of the equations of motion.
The thing is that I am actually interested in the gas dynamics, assuming that these two objects orbit in some stratified medium. So I also account for the effect of the mass distribution on the trajectories of both particles (i.e. of particle 2 and of the non-inertial orbiting frame) as well as the fluid's self-gravity.
For numerical reasons, the (spherical) computational domain must be bounded by fixed (in the considered frame) and non-zero minimum and maximum radius. If I were to work in the center of mass frame, the latter would be inside an empty sphere of radius rmin, on which I would have to impose arbitrary unrealistic boundary conditions, impacting the fluid flow. In the rest frame of a particle, on the other hand, one can imagine that such a sphere of radius rmin is the actual physical object (e.g. star or planet), and somewhat realistic boundary conditions can be imposed.
 
Last edited:
  • Like
Likes   Reactions: vanhees71
  • #12
Tetrapoil said:
The thing is that I am actually interested in the gas dynamics, assuming that these two objects orbit in some stratified medium. The code I use requires a domain that is bounded by fixed minimum and maximum radius. If I were to work in the center of mass frame, the latter would be inside an empty sphere of radius rmin, on which I would have to impose arbitrary unrealistic boundary conditions. In the rest frame of a particle, on the other hand, one can imagine that such a sphere of radius rmin is the actual physical object (e.g. star or planet), and somewhat realistic boundary conditions can be imposed.

Tetrapoil said:
The thing is that I am actually interested in the gas dynamics, assuming that these two objects orbit in some stratified medium. So I also account for the effect of the mass distribution on the trajectories of both particles (i.e. of particle 2 and of the non-inertial orbiting frame) as well as the fluid's self-gravity.
For numerical reasons, the (spherical) computational domain must be bounded by fixed (in the considered frame) and non-zero minimum and maximum radius. If I were to work in the center of mass frame, the latter would be inside an empty sphere of radius rmin, on which I would have to impose arbitrary unrealistic boundary conditions, impacting the fluid flow. In the rest frame of a particle, on the other hand, one can imagine that such a sphere of radius rmin is the actual physical object (e.g. star or planet), and somewhat realistic boundary conditions can be imposed.
On a side note, I have rewritten my leapfrog "kick-drift-kick" integrator, and everything seem to be working as intended.
 
  • Like
Likes   Reactions: vanhees71

Similar threads

  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 11 ·
Replies
11
Views
4K