I'm trying to run some simulations by adding the entire spherical harmonics simulations, but I'm encountering some problems with the program using REBOUND. I have tested my code with a simple RK45, and it works fine. However, now I'm trying to implement this using REBOUND, and I'm sure that I'm doing something wrong so far.
I've integrated this orbit around Earth for 1 day, but it escapes and at the end 1e6 meters distance from the Earth. I suspect that the acceleration is updating in every single step of the integrator, but I only want it to update in the successful steps.
Hello,
I'm trying to run some simulations by adding the entire spherical harmonics simulations, but I'm encountering some problems with the program using REBOUND. I have tested my code with a simple RK45, and it works fine. However, now I'm trying to implement this using REBOUND, and I'm sure that I'm doing something wrong so far.
I've integrated this orbit around Earth for 1 day, but it escapes and at the end 1e6 meters distance from the Earth. I suspect that the acceleration is updating in every single step of the integrator, but I only want it to update in the successful steps.
I appreciate any help.