How to use Epoch ?

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

How to use Epoch ?

Post #1by Cham » 14.03.2004, 00:21

I need to place two spaceships on the same orbit, close from each other (about 50 meters).

Is there a way to do this without using the Epoch command in an orbit definition ?

If not, how can I set an Epoch number (in which units, anyway ?) to make two ships very close ?
"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!"

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

Post #2by granthutchison » 14.03.2004, 00:32

You don't need to use Epoch. Just make the MeanAnomaly slightly different for the two ships. If you want them 50m (=0.05km) apart, then you need to divide 0.05 by (SemiMajorAxis*2*pi), and multiply by 360 ... that should give you the fraction of a degree difference required in MeanAnomaly. If your orbit is circular they should stay exactly 50m apart, if it's elliptical, they'll move back and forth relative to each other as they orbit.
(This assumes you're in orbit round a planet - if your ships are orbiting a star the SemiMajorAxis will be in AU, and you'll need to convert to kilometres before doing the sum.)

Grant

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 3 months
Location: Montreal

Post #3by Cham » 14.03.2004, 00:36

Thanks a lot for the fast reply !

Ok, I'll use that trick (my orbit is circular). But what if I want my ships to be at a constant distance on the same elliptical orbit ?
"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!"

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

Post #4by granthutchison » 14.03.2004, 00:57

Cham wrote:But what if I want my ships to be at a constant distance on the same elliptical orbit ?
They couldn't do that in the real world without constantly firing manoeuvring jets.
You could place one ship in a 50m-radius orbit around the other with the same period as they orbit the planet ... the distance will remain the same, but now their orientation relative to the planet will shift back and forth a little, since the constant motion in the small circular orbit won't match the varying speed in the large elliptical orbit.

Grant

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 21 years 3 months
Location: Montreal

Post #5by Cham » 14.03.2004, 01:05

This reminds me the epicycles of Ptolemea ! LOL
"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!"


Return to “Celestia Users”