Commit Graph

5 Commits

Author SHA1 Message Date
Don Cross
32eac849da Minor tweaks to the gravsim_test program. 2021-11-12 19:32:09 -05:00
Don Cross
ae73f20788 Removed test code to create gravsim.log file. 2021-11-12 19:21:11 -05:00
Don Cross
cc6a32bb98 Include the gravsim check in the unit tests.
I have gravsim_test.c to the point where it calculates a
standard deviation of error between TOP2013 and Astronomy Engine
for calculating the position of Pluto over 10 worst-case samples.
My baseline is now 0.205303 arcminutes of heliocentric position error.

For Runge-Kutta (or some other method) to be an improvement, it
has to beat that score without incurring significant extra work
or larger memory consumption.
2021-11-10 21:00:38 -05:00
Don Cross
1bebad6602 Compare Pluto calculations against original TOP2013 model.
I updated gravsim_test.c to calculate the Pluto model
at every (exact) state table entry, and every halfway point.
I compare it against (exact) TOP2013 calculations.
As expected, the errors alternate between 0 and nonzero.
2021-11-10 20:21:44 -05:00
Don Cross
09d417bdee Added optional logging of Pluto state vectors and errors.
I'm trying to get a better feel for the amount of error
in my gravity simulator calculations for the movement of Pluto.
Added conditionally-compiled code to log state vectors calculated
in the forward and reverse time directions, along with the
exact endpoints that frame the interpolated values.
Also log errors measured between both directions.
There is a curious asymmetry in the first case I tried
(roughly the years 2000..2100), where the forward calculation
seems less accurate than the reverse calculation.
2021-11-10 05:56:54 -05:00