Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different integrators obtain different orbits #761

Open
ntsimon opened this issue Mar 21, 2024 · 2 comments
Open

Different integrators obtain different orbits #761

ntsimon opened this issue Mar 21, 2024 · 2 comments
Labels

Comments

@ntsimon
Copy link

ntsimon commented Mar 21, 2024

I try to use two integrators (whfast and ias15), to simulate a solar system with several planets and one comet for their orbits. However, the result shows that for whfast, the comet leaves the system while for ias15, it moves around the Sun. why? The other parameters such as time step remain unchanged
Any comments are welcome.
thanks.

Simon

@hannorein
Copy link
Owner

The two integrators are very different and are expected to give different results, especially if your system is chaotic and sensitive to initial conditions. A few things:

  • Note that IAS15 is an adaptive method. You say you set the timestep. But the timestep will change unless you make it especially a non-adaptive method (which is of limited use).
  • I assume your comet had orbit crossings with other planets. If you, you should either use IAS15, or WHFast with democratic heliocentric coordinates. The default WHFast setting is using Jacobi coordinates which is nor ideal for your setup.
  • Regardless of what integrator you use, you should make sure your results are converged and do not depend on numerical fudge factors.

@ntsimon
Copy link
Author

ntsimon commented Mar 23, 2024

Thanks,

If all interested solar planets with a comet àre added onto the system, and just do the following two codes for changing to the center-of-mass frame and plotting the orbits without selecting integrators.

sim. move_to_com()
op=rebound. OrbitPlot(sim).

then the status shows IAS15 integrator and the orbits are displayed.

How do I know then whether the resulting orbits are accurate?

Is there any parameter setup in order to simulate much more periods?

Can the resulting raw data be extracted for references? If yes, how to get them?

Further advice are welcome, thank.

Simon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants