Inter-Planetary Modeling: Our Solar System Simulation

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
Messages
959
Reaction score
0
We had a project in PHYC 2050 to write an applet simulating a scientific model. Me and my partner chose the solar system, which was a step up from the other projects (ideal gas law, refraction :biggrin: ).

We took into account inter-planetary actions and used a simple "assume force is contant for time t and advance the system" algorithm. It appears to overestimate on average, but it had the best usefulness to "we can do this" ratio.

In any case, check it out at:
myweb.dal.ca/cr376499

The 2d version is the project we submitted and the 3d version is just me wanting to make it 3d. It already did all the z coordinate calculations so it was just a matter of drawing them.

Special thanks goes to tony873004 (from here) who told me about the JPL horizons system so we could get our hands on the position and velocities of planets.
 
Physics news on Phys.org
One of the planets shot out of space!

Here is an image:

http://img447.imageshack.us/img447/6930/planetgone7jx.th.png

I don't know if mercury is coming back :cry:

http://img75.imageshack.us/img75/1850/mercurycomingback3li.png

No more problems with the moon
And years are now a lot longer! :smile:

http://img293.imageshack.us/img293/1102/nomoremoonprobs4al.th.png
The program stopped at 14129 years and 308 days :cry:

I am not sure what happened with some of the planets in long periods of time, but the program is still pretty cool! :approve:
 
Last edited by a moderator:
That's because of the inaccuracy involved when the time-step has to be increased to go at 10 simulated years per second. The only reason I let it go that high is because you need 10 yr/s to see pluto move at a decent pace.