Math Problem

General discussion about Celestia that doesn't fit into other forums.
Topic author
billybob884
Posts: 986
Joined: 16.08.2002
With us: 22 years 3 months
Location: USA, East Coast

Math Problem

Post #1by billybob884 » 08.03.2003, 03:21

I've got a little math problem for all you scholars out there. I've made a little space ship, and I want to make it orbit in a specific way around the planet. I want it to rotate around the planet, at the same speed of the planet, so that it will always be orbiting over the same place on the planet. I also want to make it so that one perticular side of hte ship is always facing the planet. Here is all the current orbital information for the planet:
"Planet3" "DefaultStar"
{
Texture "planet3.png"
Radius 3425
Atmosphere
{
Height 40
Lower [ 1.1 0.4 0.0 ]
Upper [ 1.1 0.4 0.0 ]
Sky [ 1.1 0.4 0.1 ]
}
EllipticalOrbit
{
Period 2.0889
SemiMajorAxis 1.8794
Eccentricity 0.2286
Inclination 0.0
AscendingNode 0.0
LongOfPericenter 90.0
MeanLongitude 0.0
}
RotationPeriod 14.5
Obliquity 0.0
}
And here is the orbital information for the ship:
"Ship" "DefaultStar/Planet3"
{
Mesh "ship.3ds"
Class "spacecraft"
Radius 5.0
EllipticalOrbit {
Period 10.0
SemiMajorAxis 5000.0
Eccentricity 0.0
Inclination 5.0
AscendingNode 0.0
ArgOfPericenter 0.0
MeanAnomaly 0.0
}

Albedo 1.0
}

Thanks!
Mike M.

TacoTopia!

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

Post #2by selden » 08.03.2003, 05:30

Mike,

I can help a little.

From what you say you want, the three things have to be the same: rotational period of the planet, period of the orbit, and rotational period of the spaceship. You just have to put them in the right units.

A synchronous orbit like you want means that the orbital period of the satellite is the same as the rotational period of the primary.

For a satellite always to have the same side toward its primary, its own rotational period has to be the same as its orbital period.

In Celestia, the period of the orbit of a satellite is measured in Earth days, while the rotational period of a planet or satellite is measured in hours. So the value of the two rotational periods (of the planet and of the spaceship) have to be set to be 24x the orbital period of the spaceship.

To be "realistic" you'll have to decide on the mass of your planet. From that you can calculate what the orbital period of a free-falling satellite has to be for a particular semi-major-axis. Of course, for a spaceship, you can just say "it's flying under power" and not worry about it :)

Don't forget that an inclined orbit is north of the equator on one side of the planet and south of the equator when the satellite gets to the other side. Orbits can't be all north or all south of the equator. A satellite can only seem to be perfectly stationary if the inclination of its orbit is the same as the obliquity of the planet's axis, and that'll put the satellite over a point on the equator.

Does this help?
Selden

julesstoop
Posts: 408
Joined: 27.03.2002
With us: 22 years 8 months
Location: Leiden, The Netherlands

Post #3by julesstoop » 08.03.2003, 20:12

Are you trying to make a space-elevator, because in that case you'd want exactly this behaviour.
Lapinism matters!
http://settuno.com/

Topic author
billybob884
Posts: 986
Joined: 16.08.2002
With us: 22 years 3 months
Location: USA, East Coast

Post #4by billybob884 » 09.03.2003, 03:42

no, im not trying to make a space elevator, i was just playing with some model editor and made a little "space laser", if you will, and was wondering if there was a way to make one side of it face the planet at all times, while orbiting above the same place on the surface.
Mike M.



TacoTopia!

Topic author
billybob884
Posts: 986
Joined: 16.08.2002
With us: 22 years 3 months
Location: USA, East Coast

Post #5by billybob884 » 09.03.2003, 04:20

well, i'm getting closer. thanks to selden, i've got it so the same side will be facing the planet at all times, but i still havent gotten it to stay "exactly" synchronised with the planet's orbit. i guess 5 doesn't work too well. i guess i can just change it. thatks for all your help! one more thing i need to know, how do i determine WHICH side is facing the planet? its staying so that it wont change, but its facing it backwards, just needs to do a 180, but i dont really feel like remaking it facing backwards.
Mike M.



TacoTopia!

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

Post #6by granthutchison » 09.03.2003, 14:23

billybob884 wrote:one more thing i need to know, how do i determine WHICH side is facing the planet? its staying so that it wont change, but its facing it backwards, just needs to do a 180, but i dont really feel like remaking it facing backwards.
If it's out by exactly 180 degrees, try adding:

Code: Select all

RotationOffset 180
to your definition.

Grant

Topic author
billybob884
Posts: 986
Joined: 16.08.2002
With us: 22 years 3 months
Location: USA, East Coast

Post #7by billybob884 » 09.03.2003, 17:14

i jsut changed the MeanAnomaly instead and now it looks fine.
Mike M.



TacoTopia!

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

Post #8by selden » 09.03.2003, 17:20

Mike,

Changing the mean anomoly by 180 degrees puts it on the opposite side of the planet from where it was, but that probably doesn't matter in this case.
Selden

Topic author
billybob884
Posts: 986
Joined: 16.08.2002
With us: 22 years 3 months
Location: USA, East Coast

Post #9by billybob884 » 09.03.2003, 17:27

oh, well, whatever. it fixed it and now it stays where i want it
Mike M.



TacoTopia!


Return to “Celestia Users”