What Causes the Sun's Unusual Orbital Path in a Java Solar System Model?

AI Thread Summary
The Java solar system model demonstrates stable orbits for all planets, but the sun exhibits an unusual, wobbly orbital path. The model treats all celestial bodies as point masses with circular orbits around a common center of mass. The unexpected behavior of the sun's orbit raises questions about the underlying physics. Adding Jupiter to the model resolved some issues, suggesting its gravitational influence may stabilize the system. Further investigation is needed to fully understand the sun's erratic movement.
whatisreality
Messages
286
Reaction score
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.
 

Attachments

  • sun orbit3.jpg
    sun orbit3.jpg
    42.8 KB · Views: 477
  • sun orbit.jpg
    sun orbit.jpg
    29.5 KB · Views: 455
Astronomy news on Phys.org
All good! Adding Jupiter fixed it.
 
Is a homemade radio telescope realistic? There seems to be a confluence of multiple technologies that makes the situation better than when I was a wee lad: software-defined radio (SDR), the easy availability of satellite dishes, surveillance drives, and fast CPUs. Let's take a step back - it is trivial to see the sun in radio. An old analog TV, a set of "rabbit ears" antenna, and you're good to go. Point the antenna at the sun (i.e. the ears are perpendicular to it) and there is...
This thread is dedicated to the beauty and awesomeness of our Universe. If you feel like it, please share video clips and photos (or nice animations) of space and objects in space in this thread. Your posts, clips and photos may by all means include scientific information; that does not make it less beautiful to me (n.b. the posts must of course comply with the PF guidelines, i.e. regarding science, only mainstream science is allowed, fringe/pseudoscience is not allowed). n.b. I start this...
How does light maintain enough energy in the visible part of the spectrum for the naked eye to see in the night sky. Also, how did it start of in the visible frequency part of the spectrum. Was it, for example, photons being ejected at that frequency after high energy particle interaction. Or does the light become visible (spectrum) after hitting our atmosphere or space dust or something? EDIT: Actually I just thought. Maybe the EM starts off as very high energy (outside the visible...
Back
Top