General Question Why do Stars Need a Module

martins

Orbiter Founder
Orbiter Founder
Joined
Mar 31, 2008
Messages
2,448
Reaction score
462
Points
83
Website
orbit.medphys.ucl.ac.uk
Stars whose movement is computed by a module use that line. The same as planets. In the standard installation, the Sun, all major planets and most moons are controlled by modules that implement series expansions to perturbation solutions.
 

BruceJohnJennerLawso

Dread Lord of the Idiots
Addon Developer
Joined
Apr 14, 2012
Messages
2,585
Reaction score
0
Points
36
Stars whose movement is computed by a module use that line. The same as planets. In the standard installation, the Sun, all major planets and most moons are controlled by modules that implement series expansions to perturbation solutions.

So the difference being that a module coded star will orbit the systems center of mass, as opposed to just sitting at the origin of the Orbiter coordinate system?
 

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,287
Reaction score
3,255
Points
203
Location
Toulouse
So the difference being that a module coded star will orbit the systems center of mass, as opposed to just sitting at the origin of the Orbiter coordinate system?

I guess that the barycenter of the Solar System isn't exactly the center of the Sun. And while I'm not sure where science is about this, maybe there is an inequal mass distribution, like on Earth. Also the Sun spins on itself, which affects calculations (basically, you sort of slingshot the Sun when you travel from a planet to the other ?).
 

BruceJohnJennerLawso

Dread Lord of the Idiots
Addon Developer
Joined
Apr 14, 2012
Messages
2,585
Reaction score
0
Points
36
I guess that the barycenter of the Solar System isn't exactly the center of the Sun. And while I'm not sure where science is about this, maybe there is an inequal mass distribution, like on Earth. Also the Sun spins on itself, which affects calculations (basically, you sort of slingshot the Sun when you travel from a planet to the other ?).

Thats an interesting thought... :hmm:

But yes that is the general idea. Any basic two body system cant have the CG at the exact center of any one body if the masses are non zero. It may be really, really, close, but never quite perfectly at the center even if one of the masses is huge, as Sol most definitely is.

But does the Sun module scan the solar system config file for configs to use in its calculations, or is its strictly hardcoded to reflect the basic Orbiter distributions planets?
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,877
Reaction score
2,132
Points
203
Location
between the planets
basically, you sort of slingshot the Sun when you travel from a planet to the other ?

No, you slingshot it when you travel from one time to another :lol:

But does the Sun module scan the solar system config file for configs to use in its calculations, or is its strictly hardcoded to reflect the basic Orbiter distributions planets?

I would assume that it works in a similar way as the planet modules: algorithms that describe its movements as observed in reality, disregarding any other data (i.e. I would expect it to behave the same way even if you remove all the planets).
 

BruceJohnJennerLawso

Dread Lord of the Idiots
Addon Developer
Joined
Apr 14, 2012
Messages
2,585
Reaction score
0
Points
36
I would assume that it works in a similar way as the planet modules: algorithms that describe its movements as observed in reality, disregarding any other data (i.e. I would expect it to behave the same way even if you remove all the planets).

Yeah, but what does it base the algorithms on? The relative wiggle that our sun has, or is it adjusted for large bodies in a system (ie, does this create small, but real differences in extrasolar systems that use the Sun module?)
 

Interstellar Planet

Cosmic Voyager
Joined
Jul 6, 2013
Messages
74
Reaction score
0
Points
6
Location
0,0,0,0 in my reference frame
If the sun.dll module just contains info about the movement of a star, then why does orbiter crash if the line "module = sun" is not included in a star's config file? Planets work just fine without a module.:hmm:
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,877
Reaction score
2,132
Points
203
Location
between the planets
That, on the other hand, is a really good question... I didn't even know that this was the case (ironic, since I wrote a procedural system generator for orbiter that outputs config files... probably I have just forgotten about it since then).
 

N_Molson

Addon Developer
Addon Developer
Donator
Joined
Mar 5, 2010
Messages
9,287
Reaction score
3,255
Points
203
Location
Toulouse
No, you slingshot it when you travel from one time to another

Yes, too, I guess :hmm:

But seriously, if a there is an interaction between a spacecraft (or an object in general) that slingshots a planet (gaining velocity by "taking" a very tiny fraction of the rotation speed of the planet) and the planet itself, why that would not apply to the Sun ? :hmm: :hmm:

Or would it work only for a spacecraft/object that would come from another system, slingshots at our Sun, then escapes to another system ? :hmm: :hmm: :hmm:
 

martins

Orbiter Founder
Orbiter Founder
Joined
Mar 31, 2008
Messages
2,448
Reaction score
462
Points
83
Website
orbit.medphys.ucl.ac.uk
So the difference being that a module coded star will orbit the systems center of mass, as opposed to just sitting at the origin of the Orbiter coordinate system?
Well, the star _should_ orbit the system's centre of mass, otherwise you've got the physics wrong. (unless you are modelling a system without planets).
Thats an interesting thought... :hmm:

But yes that is the general idea. Any basic two body system cant have the CG at the exact center of any one body if the masses are non zero. It may be really, really, close, but never quite perfectly at the center even if one of the masses is huge, as Sol most definitely is.

But does the Sun module scan the solar system config file for configs to use in its calculations, or is its strictly hardcoded to reflect the basic Orbiter distributions planets?
It uses the VSOP87 solution, which contains power series expansions of the orbits, fitted over a couple of millenia. The same approach as the major planets. This is _not_ a dynamic state propagation, but hardcoded for our solar system and time. Trying to use the sun's dll for a different solar system will not work very well.
I would assume that it works in a similar way as the planet modules: algorithms that describe its movements as observed in reality, disregarding any other data (i.e. I would expect it to behave the same way even if you remove all the planets).
Yes.

If the sun.dll module just contains info about the movement of a star, then why does orbiter crash if the line "module = sun" is not included in a star's config file? Planets work just fine without a module.:hmm:
I don't know. I didn't realise that that was the case (The sun in Orbiter has been controlled by module for a long time). Of course, if you don't use a module, you must at least specify the two-body elements in the cfg file. What set of elements did you try?
 

Interstellar Planet

Cosmic Voyager
Joined
Jul 6, 2013
Messages
74
Reaction score
0
Points
6
Location
0,0,0,0 in my reference frame
Of course, if you don't use a module, you must at least specify the two-body elements in the cfg file. What set of elements did you try?

Sorry, I didn't know that two-body elements could be specified for a star! I just assumed stars didn't need those because the cfg file for the sun did not have any two-body elements. Thanks!

So, how would you write the two-body elements for a star? Is it different than for a planet?
 
Last edited:
Top