Trouble with a Solar System simulation

In summary, the person is trying to reproduce an accurate model of planetary motions, but is having trouble with applying the equations correctly. They have tried two different versions of the equations and found that they give the same incorrect result. They are now trying to resolve 4 {v^{2} \over c^{2}} (\vec{r} . \vec{v}) .
  • #1
tfr000
205
21
Hi all.
I have been working, off and on, on a Solar System simulator (in MS Excel) for many months. I am using the Runge-Kutta-Fehlberg 8/9 8th-order integrator and JPL's initial conditions to try to reproduce an accurate model of planetary motions.
This, of course, involves modeling the relativistic effects of gravity. And therein lies my problem... using a couple of different post-Newtonian models of relativity, I seem to be getting exactly twice the effect I should be. In other words, Mercury's perihelion apparently advances by exactly twice the famous 43 arcsecond per century rate.
I have done a lot of checking... Newtonian-only effects are modeled perfectly vs analytical. I ran some test cases of two-body motion and compared the perihelion advance to analytical... exactly 2x.
Obviously, I seem to be applying these models incorrectly. And the fact that a couple of different post-Newtonian models give me exactly the same result points to something I am doing wrong, rather than the models themselves.
I am, however, baffled about what that something might be. Help?
 
Physics news on Phys.org
  • #2
Wow, so I'm the only one in the whole world who's doing this kind of thing? I feel so... special.
 
  • #3
Presumably the error is either in the equations or in the implementation of them. Without seeing either it's rather hard to comment. (I'm not saying I would comment if you were to post them... but somebody else might.)
 
  • #4
As Haruspex said you haven't given us anything much to work with.

Assuming there is only one error, either your differential equations are wrong or your integration scheme is wrong. You said you tried two different versions of the equations and got the same wrong answer, so that sugggests it's your integration scheme.

I would try the "standard" 4/5 order RK and see what you get. It's not impossible there was a typo in the source of your data for the 8/9 order scheme!
 
  • #5
I would be surprised by an integration scheme error which exactly doubles relativistic corrections, but does not influence Newtonian motion. Do you get the correct precession rate from other planets (531+-1 arcsec/century according to Wikipedia)?

The factor 2 reminds me of the bending of light, where a naive calculation gives 1/2 the true value because it neglects the modified time coordinate. Maybe you have a similar effect here?
 
  • #6
Oops, never mind... I wrote a new spreadsheet which calculates the Newtonian forces around an orbit analytically, and then plugged in the different relativity approximations for direct comparison with each other. This showed me that I mis-interpreted the notation of the relativity equations, I think. Also, one of the three methods gives very strange results, while the other two agree. I have references for all of the methods, if you'd like to look at them.

So my new question...
How would you resolve 4 [itex]{v^{2} \over c^{2}}[/itex] ([itex]\vec{r}[/itex] . [itex]\vec{v}[/itex]) [itex]\vec{v}[/itex] ? (which I need to do to calculate forces in 3 dimensions)
I am now interpreting it as 4 [itex]{v^{2} \over c^{2}}[/itex] (rv cos ∅) [x, y, or z of [itex]\vec{v}[/itex]], where
∅ is, of course, the angle between [itex]\vec{r}[/itex] and [itex]\vec{v}[/itex]

My errors in the numerical integration must have been an odd coincidence.
BTW, I trust the integrator, because it gives nearly perfect results vs analytical for Newtonian-only forces, even after 100 or more orbits.
 
Last edited:
  • #7
$$(\vec{r} \cdot \vec{v})\vec{v} = (r_1 v_1 + r_2 v_2 + r_3 v_3)\left( \begin{array}{c} v_1\\ v_2 \\ v_3\end{array}\right) = \left(|r|\, |v| cos(\theta)\right) \,\left( \begin{array}{c} v_1\\ v_2 \\ v_3\end{array}\right) $$

I don't know what you mean with "or", but I think your conversion is correct.
 
  • #8
mfb - just how my brain works. What you wrote is what I meant. Not sure what I had read into that notation before - something with [itex]\vec{v}^{2}[/itex], which doesn't even make sense. Thanks! I will report back when/if I get this running.
 
Last edited:

1. How accurate is the solar system simulation?

The accuracy of a solar system simulation depends on the data and algorithms used in its creation. Most simulations strive for high accuracy, but there may be small discrepancies due to limitations in our understanding of the solar system.

2. Can I change the settings in the simulation?

Yes, many solar system simulations allow you to change the settings, such as the time scale, planet positions, and other variables. This can help you explore different scenarios and better understand the dynamics of our solar system.

3. Are all the planets and moons included in the simulation?

Most solar system simulations include all the major planets and their moons, but some may not include smaller or less well-known objects. It's important to check the details of the simulation you are using to see which objects are included.

4. How can I use the simulation for educational purposes?

Solar system simulations can be a great tool for learning about the dynamics of our solar system. You can use them to visualize orbits, planetary alignments, and other astronomical phenomena. Many simulations also have educational resources and lesson plans available.

5. Is there a way to speed up or slow down the simulation?

Yes, most solar system simulations allow you to adjust the speed of the simulation to your liking. This can be helpful for studying faster or slower-moving objects or for better visualizing the changes over time in the solar system.

Similar threads

Replies
12
Views
2K
  • Classical Physics
Replies
15
Views
2K
  • Astronomy and Astrophysics
Replies
12
Views
5K
Replies
12
Views
2K
  • Astronomy and Astrophysics
Replies
4
Views
1K
Replies
2
Views
1K
  • STEM Academic Advising
Replies
4
Views
806
  • Astronomy and Astrophysics
Replies
4
Views
2K
  • Sci-Fi Writing and World Building
Replies
21
Views
1K
  • Programming and Computer Science
Replies
4
Views
1K
Back
Top