Terra's sorta Second moon (Cruithne)

General discussion about Celestia that doesn't fit into other forums.
Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Terra's sorta Second moon (Cruithne)

Post #21by Cham » 08.12.2008, 20:34

What is the relation between MeanLongitude and MeanAnomaly ? This is what's causing me some troubles. %$#@& astronomy conventions !

EDIT : Please, I need a confirmation that MeanLongitude := MeanAnomaly + AscendingNode + ArgOfPericenter in Celestia.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Terra's sorta Second moon (Cruithne)

Post #22by chris » 08.12.2008, 22:37

Cham wrote:What is the relation between MeanLongitude and MeanAnomaly ? This is what's causing me some troubles. %$#@& astronomy conventions !

EDIT : Please, I need a confirmation that MeanLongitude := MeanAnomaly + AscendingNode + ArgOfPericenter in Celestia.

Yes, this is exactly what MeanLongitude is (in Celestia and everywhere else.)

--Chris

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Re: Terra's sorta Second moon (Cruithne)

Post #23by granthutchison » 09.12.2008, 00:36

Martin:
Are you allowing for the fact that the velocity of both bodies is varying continuously during the course of an orbit?

Grant

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Terra's sorta Second moon (Cruithne)

Post #24by Cham » 09.12.2008, 03:32

granthutchison wrote:Martin:
Are you allowing for the fact that the velocity of both bodies is varying continuously during the course of an orbit?

Grant

Yes, and this is the tricky mathematical part. I have to parametrize the trajectory with an azimuthal angle ([tex]\phi_{Earth}[/tex]), defined for the Earth, say, and use [tex]\phi_{Cruithne}(t(\phi_{Earth}))[/tex] for the other body. So I need to numericaly solve an integral to define that function. I'm not sure I'll succeed with this analytical approach.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Terra's sorta Second moon (Cruithne)

Post #25by chris » 09.12.2008, 04:04

t00fri wrote:could it be that the anonymous author of the Wiki article
http://en.wikipedia.org/wiki/3753_Cruithne
used Celestia for displaying the orbits, without crediting Celestia?

The animations were created with Celestia, and this is noted in 'Source' section of the page that appears when you click on them. The author (of the images; multiple people have contributed to the text) is listed as 'Jecowa'.

To anyone interested in better understanding the motion of Cruithne:
Although there's no plotted, you can clearly see the kidney bean motion of Cruithne if you follow earth and phase-lock to the Sun:
- Select Earth
- Follow
- Select Sun
- Phase lock (press ':')

Now, what would be nice is if one could press a key in Celestia to start a plot of the currently selected object in the current observer frame.

--Chris

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Terra's sorta Second moon (Cruithne)

Post #26by Cham » 09.12.2008, 04:14

chris wrote:Now, what would be nice is if one could press a key in Celestia to start a plot of the currently selected object in the current observer frame.

--Chris

Absolutly ! Is this possible ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

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

Re: Terra's sorta Second moon (Cruithne)

Post #27by t00fri » 09.12.2008, 09:16

chris wrote:
t00fri wrote:could it be that the anonymous author of the Wiki article
http://en.wikipedia.org/wiki/3753_Cruithne
used Celestia for displaying the orbits, without crediting Celestia?

The animations were created with Celestia, and this is noted in 'Source' section of the page that appears when you click on them. The author (of the images; multiple people have contributed to the text) is listed as 'Jecowa'.

Aha, good. I am obviously not a heavy user of Wiki ;-) .

Now, what would be nice is if one could press a key in Celestia to start a plot of the currently selected object in the current observer frame.

--Chris
My saying since years...Last time a few posts up:
Fridger wrote:I thought that meanwhile I have convinced everybody that unlike present Celestia rendering, orbits are frame dependent. Therefore, I assumed that it is definitely on the todo list for after version 1.6 that we will at last implement frame dependent orbit rendering.

Fridger


We are all hoping that after version 1.6.0, Celestia will at last be able to display orbits correctly in various reference frames... ;-)

Fridger

Fridger
Last edited by t00fri on 09.12.2008, 10:45, edited 3 times in total.
Image

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

Re: Terra's sorta Second moon (Cruithne)

Post #28by t00fri » 09.12.2008, 09:25

Cham wrote:My idea was simply to substract both trajectories, as this :

[tex]{\bf r}_{Cruithne relative to Earth} = {\bf r}_{Cruithne relative to Sol} - {\bf r}_{Earth relative to Sol}[/tex]

However, to plot the trajectory, I need to define the time variable.
Fridger wrote:How about determining the Galilei transformation matrix [tex]\Lambda(t)[/tex] by the requirement
[tex]\vec{x}(t)^T_{Earth} \,\Lambda(t) =\{0,0,0\}[/tex]

and then transforming the positional vector of Cruithne as follows:
[tex]\vec{x}(t)_{bean\ shape} = \vec{x}(t)^T_{Cruithne} \, \Lambda(t)[/tex]

Plot it! That's all...

Obviously, applying my above frame transformation matrix [tex]\Lambda(t)[/tex] and the Galilei invariance to your vectorial difference
[tex]{\bf r}_{Cruithne relative to Sol} - {\bf r}_{Earth relative to Sol}[/tex]

gives
[tex]{\bf r}_{Cruithne relative to Earth} = \Lambda {\bf r}_{Cruithne relative to Sol} - \Lambda {\bf r}_{Earth relative to Sol}[/tex]
[tex]= {\bf r}_{Cruithne relative to Sol} - {\bf r}_{Earth relative to Sol}[/tex]

i.e. what you were using ;-) .

Fridger

PS:

as I noted I finally have edited this post 23 times ;-). This was due to a VERY odd bug in the LaTeX parser!
Last edited by t00fri on 09.12.2008, 14:20, edited 23 times in total.
Image

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Re: Terra's sorta Second moon (Cruithne)

Post #29by granthutchison » 09.12.2008, 10:16

Cham wrote:
granthutchison wrote:Martin:
Are you allowing for the fact that the velocity of both bodies is varying continuously during the course of an orbit?

Grant

Yes, and this is the tricky mathematical part. I have to parametrize the trajectory with an azimuthal angle ([tex]\phi_{Earth}[/tex]), defined for the Earth, say, and use [tex]\phi_{Cruithne}(t(\phi_{Earth}))[/tex] for the other body. So I need to numericaly solve an integral to define that function. I'm not sure I'll succeed with this analytical approach.
OK, good. I notice that Cruithne's orbit in the Wiki animation changes shape during one orbital cycle while it traces out the bean shape; this may well be a real periodic evolution which will further complicate your calculations. I also notice that the "bean" curve is closed in the animation: that's not realistic.

Grant

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: Terra's sorta Second moon (Cruithne)

Post #30by jogad » 09.12.2008, 12:41

Hello

Very interesting. I like very much even if I don’t understand all technical and mathematical details. :?

Here is something for those who are like me and just want to see it in Celestia. :mrgreen:

Just unzip these two files in Celestia. The first one is a ssc file and goes in the ‘extras’ folder and the second is a script file and goes to the ‘scripts’ folder.
Once unzipped run Celestia and launch ‘cruithne.celx’ from the File/Scripts submenu.

Data of the ssc file are from http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=3753
 

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

Re: Terra's sorta Second moon (Cruithne)

Post #31by t00fri » 09.12.2008, 13:32

Very nice, Jogad!

Fridger
Image

Avatar
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Re: Terra's sorta Second moon (Cruithne)

Post #32by Cham » 09.12.2008, 15:26

Indeed, this is a very good script, Jogad. :)

EDIT : Is there a way to simplify the first part of the script, to use CELX only ?

Code: Select all

function CEL(source)
   local script = celestia:createcelscript(source)
   while script:tick() do
      wait(0)
   end
end


CEL([[
{
  seturl { url "cel://PhaseLock/Sol:Earth/Sol/2008-12-09T11:43:52.18332?x=ADOsgcq2EDT7/////////w&y=iyy4V7/bjkFp&z=AI4Dp5qVeobw/////////w&ow=-0.053687&ox=-0.059524&oy=0.731694&oz=0.676904&select=Sol&fov=23.455702&ts=10000000.000000&ltd=0&p=0&rf=1693111&lm=2017986560&ver=2" }
}
]])


terre = celestia:find("Sol/Earth")
cruithne=celestia:find("Cruithne")
celestia:unmarkall()
cruithne:mark("yellow","diamond")
terre:mark("cyan","circle")
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

Avatar
jogad
Posts: 458
Joined: 17.09.2008
With us: 16 years 2 months
Location: Paris France

Re: Terra's sorta Second moon (Cruithne)

Post #33by jogad » 09.12.2008, 15:52

Hi,

Thank you very much. I am very happy if I can help a little.

To simplifiy the script, really I don't know. My knowledge of scripts is quite zero and I used this ugly (but helpful) URL just to avoid scripting. :oops:

Any improvement is welcome. Particulary if somebody knows how to display the track.

Cheers

chris
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Re: Terra's sorta Second moon (Cruithne)

Post #34by chris » 09.12.2008, 18:15

Cham wrote:
chris wrote:Now, what would be nice is if one could press a key in Celestia to start a plot of the currently selected object in the current observer frame.

--Chris

Absolutly ! Is this possible ?

Not yet, but you'll be able to do something like it in the next version of Celestia.

--Chris


Return to “Celestia Users”