Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Orbital path of the sun

  1. Dec 11, 2015 #1
    I've written a java program to model the solar system. All my planets move in very well defined, stable orbits. The sun, on the other hand, is doing some very weird stuff. I've attached a plot of its path, a very zoomed in and a very zoomed out one. It isn't spiralling gradually inwards or outwards, as far as I can tell it's going in weird, wobbly loops. How do I explain that?! Especially as the rest of the planets work so well??

    In my model, all bodies are point masses and have circular orbits, and they orbit around their common centre of mass.

    Attached Files:

  2. jcsd
  3. Dec 11, 2015 #2
    All good! Adding jupiter fixed it.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook