Mass ratios?

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Mass ratios?

Post #1by PlutonianEmpire » 19.11.2011, 06:22

I notice that in the STC data for binary stars, I see the line "# Mass Ratio x:y", with the x and y being numbers, of course.

What is the mass ratio, and how do I use it to calculate the orbits of the stars from the barycenter, considering I always see the mass ratio line right after the "SemiMajorAxis" numbers?
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Mass ratios?

Post #2by selden » 19.11.2011, 17:35

It's the ratio of the masses of the two stars. A higher mass star orbits closer to the barycenter than does the lower mass star. Their orbital SMAs are inversely proportional to their masses. See my previous postings about this, which are included in the thread which starts a viewtopic.php?f=6&t=16589&start=30
Selden

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Re: Mass ratios?

Post #3by PlutonianEmpire » 20.11.2011, 02:18

Thanks. :)
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Re: Mass ratios?

Post #4by PlutonianEmpire » 12.12.2011, 06:15

New question: The easiest formula I got was the one in this post.

If I wanted to do calculations for binary planets instead of stars, using kilometers and earth masses, how would that formula need to be changed?
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Mass ratios?

Post #5by selden » 12.12.2011, 12:38

You can use the same formulas if you convert the units to AU and years before applying the formulas, and then back to km and days afterward.

Celestia wants values for objects orbiting around planets (ReferencePoints) to be in km and days, while values for objects orbiting around Stars (Barycenters) in the formulas have to be in AU and years.
Selden

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Re: Mass ratios?

Post #6by t00fri » 12.12.2011, 17:26

selden wrote:You can use the same formulas if you convert the units to AU and years before applying the formulas, and then back to km and days afterward.

Celestia wants values for objects orbiting around planets (ReferencePoints) to be in km and days, while values for objects orbiting around Stars (Barycenters) in the formulas have to be in AU and years.

Didn't Andrew implement the option to use more general units deviating from the historical defaults? I have never tested this personally, but when working with the C++ code, I keep stumbling over such mods...Of course the preferred units need to be declared appropriately in the config files.

Fridger
Image

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Re: Mass ratios?

Post #7by PlutonianEmpire » 26.02.2012, 04:13

For future readers of this thread, here's something that may be of help:

In the formula I linked to, which is this:

a1 = (a1+a2) * m2/(m1+m2)

a2 = (a1+a2) * m1/(m1+m2)

I realized the formula could actually be kinda simplified (maybe?), for faster calculations:

(a1 + a2) Is really the total orbital separation between the two bodies, so just simply type in the desired distance from the primary object much as you would a planet orbiting a star.

(m1+m2) is the combined total mass of the two objects. You'll still need to do two separate calculations though, which is to multiply the distance by the mass of one of the individual bodies divided by the total mass of the two bodies, so really, the formulas could be simplified into these:

a1 = (d) * m2/(t)
a2 = (d) * m1/(t)

where "d" is the distance between the two objects, "t" is the total mass of both objects combined, "a1" is the SemiMajorAxis of the primary (more massive) object around the barycenter, "a2" is the SemiMajorAxis of the secondary (less massive) object around the barycenter, "m1" is the mass of the primary object, and "m2" is the mass of the secondary object.

Hope this helps. :)
Terraformed Pluto: Now with New Horizons maps! :D

ajtribick
Developer
Posts: 1855
Joined: 11.08.2003
With us: 21 years 3 months

Re: Mass ratios?

Post #8by ajtribick » 26.02.2012, 13:13

t00fri wrote:Didn't Andrew implement the option to use more general units deviating from the historical defaults? I have never tested this personally, but when working with the C++ code, I keep stumbling over such mods...Of course the preferred units need to be declared appropriately in the config files.

Fridger
This is implemented in the trunk, for when we get round to releasing 1.7.0.

Avatar
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 8 months
Location: Hamburg, Germany

Re: Mass ratios?

Post #9by t00fri » 26.02.2012, 13:26

ajtribick wrote:
t00fri wrote:Didn't Andrew implement the option to use more general units deviating from the historical defaults? I have never tested this personally, but when working with the C++ code, I keep stumbling over such mods...Of course the preferred units need to be declared appropriately in the config files.

Fridger
This is implemented in the trunk, for when we get round to releasing 1.7.0.

I have never used much anything else than that ;-) . Sorry.

Fridger
Image

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Re: Mass ratios?

Post #10by PlutonianEmpire » 27.02.2012, 00:35

selden wrote:You can use the same formulas if you convert the units to AU and years before applying the formulas, and then back to km and days afterward.
I did this, and the numbers I got were the exact same from not converting, so I guess this is moot.
Terraformed Pluto: Now with New Horizons maps! :D


Return to “Help Central”