Two body problem, velocities of two bodies, relative velocity given

In summary, when the only force acting on a body is a central force, the angular momentum is constant and given by L = mr^2 * w, where r is the distance from the origin and w is the angular velocity. It can also be written as L = r x mv = rmv * sin(theta) where v is the tangential velocity. By equating the two expressions for angular momentum, we can derive the relationship w = v * sin(theta) / r. This can be applied to two bodies with the same orbital velocity, t1 for the first body and t2 for the second body. The relative velocity between the two bodies can then be used to calculate the orbital velocities of each body at a given point. However
  • #1
pobro44
11
0
Homework Statement
I want to program a two body problem and wish to calculate velocities of bodies when relative velocity is known. Please let me know whether my derivation makes sense.
Relevant Equations
Angular momentum of system body acted upon with central force
When only force acting on body is a central force, angular momentum is constant and given by:

L = mr^2 * w

where r is distance from origin, and w is angular velocity.

Angular momentum can also be written as following:

L = r x mv = rmv * sin(theta) where v is tangential velocity, which is orbital velocity

so we can equate the two expressions above and

w = v * sin(theta) / r

since angular velocities of two bodies are the same, we can write

245343
where t1 stands for first body, and t2 for second

I suppose that angles that position vectors make with velocity vector are the same, so sines are equal and

245340


if we define relative velocity between two bodies as

245344


and plug that back into previous equation we get orbital velocities of each body from their relative velocity at that point

245345


Is this correct? I derived it by myself so any feedback would be appreciated :)
 
Last edited:
Physics news on Phys.org
  • #2
pobro44 said:
L = r x mv = rmv * sin(theta) where v is tangential velocity
I assume you mean where v * sin(theta) is tangential velocity.
Did you mean to assume the masses are the same?
 
  • #3
haruspex said:
I assume you mean where v * sin(theta) is tangential velocity.
Did you mean to assume the masses are the same?

Thank you for you reply, yes I assume the masses are the same because I equate two expressions for angular momentum for the same body at the same position. That way I get how angular velocity is related to tangential velocity and distance from origin.
 
  • #4
pobro44 said:
because I equate two expressions for angular momentum for the same body at the same position
It sounds like you are saying that the masses came out to be the same as a result of the algebra. There is no reason they should be the same. If you want to make them the same, fine, but you will not then be able to model the more general behaviour.
 
  • #5
haruspex said:
It sounds like you are saying that the masses came out to be the same as a result of the algebra. There is no reason they should be the same. If you want to make them the same, fine, but you will not then be able to model the more general behaviour.

I believe you think that I equate expressions for two different bodies of the same mass which orbit each other, but in derivation I was referring only to one of two bodies, with it's momentum expressed in two different ways, and then by equating the expressions for momentum masses cancel out.
 
  • #6
pobro44 said:
I believe you think that I equate expressions for two different bodies of the same mass which orbit each other, but in derivation I was referring only to one of two bodies, with it's momentum expressed in two different ways, and then by equating the expressions for momentum masses cancel out.
Apologies - I see now what you are doing.
You refer to velocities but your equations are scalar, so you mean speeds. In particular, relative speed.
On that understanding your derivation is fine, but it might be awkward to use. When the masses happen to be the same you will get 0/0.
 
  • Like
Likes pobro44
  • #7
haruspex said:
Apologies - I see now what you are doing.
You refer to velocities but your equations are scalar, so you mean speeds. In particular, relative speed.
On that understanding your derivation is fine, but it might be awkward to use. When the masses happen to be the same you will get 0/0.

yes, sorry, speeds as I use vis viva equation to calculate relative speeds at every point, and with those equations I derived at the end I calculate velocities of single bodies. However, I do not have any such problems in my simulation, this is what I get for relative speed in perihellion of 1, and eccentricity of 0:

245348


Bodies are on the same trajectory, a diameter of a circle apart, and their speeds are half of the initial relative speed on every point of trajectory.
 
  • #8
I get it, in my sim I use vectors, and in the denominator I subtract vectors then calculate the magnitude. In final result of my derivation, magnitudes of r1 i r2 would be equal if masses were equal so that would yield 0 in the denominator.

If I argued that velocity vectors were in opposite directions, because cross product of their angular velocity and position vector is in opposite direction, so relative speed between two bodies must be equal to sum of their magnitudes instead of difference, I would get r1+r2 in the denominator and valid result, right?
 
Last edited:
  • #9
pobro44 said:
I get it, in my sim I use vectors, and in the denominator I subtract vectors than calculate the magnitude. In final result of my derivation, magnitudes of r1 i r2 would be equal if masses were equal so that would yield 0 in the denominator.

If I argued that velocity vectors were in opposite directions, because cross product of their angular velocity and position vector is in opposite direction, so relative speed between two bodies must be equal to sum of their magnitudes instead of difference, I would get r1+r2 in the denominator and valid result, right?
Yes, ##\frac{v_1}{r_1}=\frac{v_2}{r_2}=\frac{v_1+v_2}{r_1+r_2}##.
 
  • Like
Likes pobro44
  • #10
Thank you Haruspex for taking the time to respond and assist, it is much appreciated:smile:
 

1. What is the Two Body Problem?

The Two Body Problem is a mathematical concept in physics that deals with predicting the motion of two objects under the influence of their mutual gravitational attraction.

2. How do you calculate the velocities of two bodies in the Two Body Problem?

The velocities of two bodies in the Two Body Problem can be calculated using the laws of motion and Newton's law of gravitation. By considering the masses and the distance between the two bodies, the velocities can be determined using equations such as the conservation of momentum and energy.

3. Can the velocities of two bodies in the Two Body Problem be equal?

Yes, it is possible for the velocities of two bodies in the Two Body Problem to be equal. This can occur if the two bodies have the same mass and are moving in opposite directions with equal speeds.

4. What is relative velocity in the context of the Two Body Problem?

Relative velocity in the Two Body Problem refers to the velocity of one body with respect to the other. It takes into account the motion of both bodies and their positions in relation to each other.

5. How is relative velocity calculated in the Two Body Problem?

Relative velocity in the Two Body Problem can be calculated by subtracting the velocity of one body from the velocity of the other. This gives the relative velocity between the two bodies, taking into account their positions and motions.

Similar threads

  • Introductory Physics Homework Help
10
Replies
335
Views
8K
  • Introductory Physics Homework Help
Replies
25
Views
1K
  • Introductory Physics Homework Help
Replies
5
Views
923
  • Introductory Physics Homework Help
Replies
6
Views
696
  • Introductory Physics Homework Help
Replies
2
Views
888
  • Introductory Physics Homework Help
Replies
30
Views
2K
  • Introductory Physics Homework Help
Replies
3
Views
790
  • Introductory Physics Homework Help
Replies
18
Views
3K
Replies
20
Views
902
  • Introductory Physics Homework Help
Replies
3
Views
225
Back
Top