Thanks in advance

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: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.