Click here to get back home

Orbital Mechanics - Solar System Simulator

 HomeNewsGroups | Search | About
 alt.sci.planetary    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Orbital Mechanics - Solar System Simulator rob 11-16-2006
Posted by rob on November 16, 2006, 4:19 am
Please log in for more thread options
Hi

I created a program for calucalting the orbits of planets in any solar
system. You can define your own solar system and the program calculates and
displays the orbits of the planets. The problem is that I dont know if I
have got it right. Fundamentally, the program is based upon the universal
law of gravitation, but I would very much appreciate a second opinion as to
whether or nor it is correctly calculating the orbits of the planets.

The program can be downloaded from the following web site:

http://members.optusnet.com.au/rob_tink/

Any comments would be greatly appreciated.

I have tested this by putting in data for our solar system. I have
calculated the planets starting position and velocity as if the planets
travel in a circle around the sun. They do seem to do the right thing ie.
the earth travels around in approx 365 days and follows a circular path.

What I really need is a way to calculate the planet's starting position and
velocity for the eliptical path that they actually follow. So what I need
to do (and have not yet worked out how to do) is determine the planets
velocity at the apogee and their distance from the sun at this point. Dont
suppose anyone has a simple formula to work that out?

Cheers
Rob



Posted by robert casey on November 17, 2006, 7:13 pm
Please log in for more thread options
rob wrote:

> Hi
>
> I created a program for calucalting the orbits of planets in any solar
> system. You can define your own solar system and the program calculates and
> displays the orbits of the planets. The problem is that I dont know if I
> have got it right. Fundamentally, the program is based upon the universal
> law of gravitation, but I would very much appreciate a second opinion as to
> whether or nor it is correctly calculating the orbits of the planets.
>

DO the planets interact with each other? Or is it just a planet and
only the Sun?

Posted by rob on November 22, 2006, 3:58 am
Please log in for more thread options
The planets interact with each other. You can define your own solar system
with planets of whatever position, speed and mass that you like and the
program computes their gravitational interaction.

I have had fun defining our solar ssyetm and then adding a large star to the
simulation to see what happens (normally chaos). Have also created binary
star systems and other odd combinations though its harder (to impossible) to
create a stable system with more than three stars.


> rob wrote:
>
>> Hi
>>
>> I created a program for calucalting the orbits of planets in any solar
>> system. You can define your own solar system and the program calculates
>> and
>> displays the orbits of the planets. The problem is that I dont know if I
>> have got it right. Fundamentally, the program is based upon the
>> universal
>> law of gravitation, but I would very much appreciate a second opinion as
>> to
>> whether or nor it is correctly calculating the orbits of the planets.
>>
>
> DO the planets interact with each other? Or is it just a planet and only
> the Sun?



Posted by rob on November 22, 2006, 5:05 am
Please log in for more thread options
The planets interact with each other. You can define your own solar system
with planets of whatever position, speed and mass that you like and the
program computes their gravitational interaction.

I have had fun defining our solar ssyetm and then adding a large star to the
simulation to see what happens (normally chaos). Have also created binary
star systems and other odd combinations though its harder (to impossible) to
create a stable system with more than three stars.

> rob wrote:
>
>> Hi
>>
>> I created a program for calucalting the orbits of planets in any solar
>> system. You can define your own solar system and the program calculates
>> and
>> displays the orbits of the planets. The problem is that I dont know if I
>> have got it right. Fundamentally, the program is based upon the
>> universal
>> law of gravitation, but I would very much appreciate a second opinion as
>> to
>> whether or nor it is correctly calculating the orbits of the planets.
>>
>
> DO the planets interact with each other? Or is it just a planet and only
> the Sun?



Posted by rob on December 5, 2006, 9:56 pm
Please log in for more thread options
I still have a couple of dumb questions to ask (not being a scientist) with
regards to how to calculate the initial positions of the planets in the
solar system in order to "kick start" the simulation.

What I am trying to do is place each planet at either it's perihelion or
aphelion as the initial position.

I know the planet's semi-major axis and its eccentricity and want to use
this to calculate the X and Y position (2d simulation), its velocity and
angle of motion.

I have calculated the distance of the perihelion / aphelion from the centre
of the ellipse using the following:
distPeri = SemiMajor * (1 - eccentricity)

distAphelion = SemiMajor * (1 + eccentricity)

I have calculated the velocity at the perihelion / aphelion using the
following:
velPeri = Sqrt(G * SunMass * (2 / distPeri - 1 / SemiMajor))
velAphelion = Sqrt(G * SunMass * (2 / distAphelion - 1 / SemiMajor))

The part that I am not sure about is where to place the planet relative to
the sun. I assume the sun is not at the centre of the ellipse but rather at
one of the ellipse's foci. If so, which foci do I use - the one furthest
from the aphelion or the one closest?

If furthest from the Aphelion then the initial distance from the sun (when
at the aphelion) is intialDistance = distAphelion + distFoci



Other formula I have used are as follows:

distance to focus from centre of ellipse is distFoci = semiMinor *
eccentricity

lenght of semiminor axis is semiMinor = SemiMajor * Sqrt(1 - eccentricity
^2)



Can anyone help me with this - have I got it right and which foci should the
sun be position at?



Cheers

Rob

> Hi
>
> I created a program for calucalting the orbits of planets in any solar
> system. You can define your own solar system and the program calculates
> and
> displays the orbits of the planets. The problem is that I dont know if I
> have got it right. Fundamentally, the program is based upon the universal
> law of gravitation, but I would very much appreciate a second opinion as
> to
> whether or nor it is correctly calculating the orbits of the planets.
>
> The program can be downloaded from the following web site:
>
> http://members.optusnet.com.au/rob_tink/
>
> Any comments would be greatly appreciated.
>
> I have tested this by putting in data for our solar system. I have
> calculated the planets starting position and velocity as if the planets
> travel in a circle around the sun. They do seem to do the right thing ie.
> the earth travels around in approx 365 days and follows a circular path.
>
> What I really need is a way to calculate the planet's starting position
> and velocity for the eliptical path that they actually follow. So what I
> need to do (and have not yet worked out how to do) is determine the
> planets velocity at the apogee and their distance from the sun at this
> point. Dont suppose anyone has a simple formula to work that out?
>
> Cheers
> Rob
>
>



Similar ThreadsPosted
Orbital Mechanics - Solar System Simulator November 16, 2006, 5:10 pm
Re: Orbital Mechanics - Solar System Simulator November 22, 2006, 10:27 am
Re: Orbital Mechanics - Solar System Simulator November 24, 2006, 10:52 am
Re: Orbital Mechanics - Solar System Simulator November 24, 2006, 10:18 pm
Re: Orbital Mechanics - Solar System Simulator November 26, 2006, 11:15 am
Re: Orbital Mechanics - Solar System Simulator November 26, 2006, 9:38 pm
Re: Orbital Mechanics - Solar System Simulator November 29, 2006, 10:22 pm
Re: Orbital Mechanics - Solar System Simulator November 30, 2006, 11:00 am
Re: Orbital Mechanics - Solar System Simulator November 30, 2006, 11:08 am
Re: Orbital Mechanics - Solar System Simulator November 30, 2006, 10:34 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap