granthutchison wrote:Add the two masses together before inserting them in the equation for orbital period, and use the separation of the two masses as the orbital radius in the formula - this'll give you how long they take to revolve around the sytem's barycentre. Then use the radial distance of your mass from the barycentre to calculate the velocity that corresponds to that period.
In fact, you could streamline the above by going through the mean motion (
n) in radians per second, rather than the period. Mean motion is given by:
n^2 = G*(M+m)/(a^3)
where
M is the primary mass,
m is the secondary mass, and
a is their mean separation. Multiply
n by the body's radius of gyration around the barycentre, and you'll have its velocity.
The orbital radius of mass
M is:
R = a*m/(M+m)
and of mass
m is:
r = a*M/(M+m)
Multiplying (and remembering to square the radius term) gives you:
V^2 = (G*m^2)/(a * [M+m])
and
v^2 = (G*M^2)/(a * [M+m])
where
V is the primary velocity and
v is the secondary velocity.
Grant