-
Notifications
You must be signed in to change notification settings - Fork 221
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
test particles influencing active particles during integration #548
Comments
Hi Raina, I need a bit more information to give you an answer (either a short piece of code which reproduces the effect, or details about the integrator you use, collision model, etc). There can be various small differences at the floating point level. They should not have an effect on the physical outcomes, but if the system is chaotic then an individual trajectory might be significantly altered. Of course, there is always the possibility that this could be a bug, or something might be configured incorrectly. Hanno |
Hi Hanno, Thanks for the quick reply. I am setting up my system like so:
I then added my star and 7 planets by orbital elements:
Then I finish setting up the system with
I then added in one randomly generated massless test particle with the following, which adds a particle 1km above the surface of TRAPPIST1-d with a radially outwards initial velocity:
I first integrated the system without the particle for 100 years, then restarted the simulation with one particle added in and integrated for 100 years. I would expect the planet configurations to be basically the same across these two tests, but as you can see in the attached graphs, the planets have reached extremely different final configurations after 100 years. Thanks, |
Thanks! I think this is because IAS15's timestep changes as soon as you add another particles. Even if it is a test particle, it needs to reduce the timestep if there is a close encounter. That will change the planets' coordinates at the 16th digits because of floating point roundoff errors. Over time, the difference will grow exponentially. There is no way to avoid this with IAS15. This shouldn't make a difference when it comes to interpreting your results. But the non-reproducibility can be a bit annoying to work with. We've had a similar discussion recently, but with the MERCURIUS integrator (#494). Have a look ,maybe this is helpful for your case too. |
Ah, I see now, thanks for the explanation - I've been pulling my hair out over this for a couple days now, hah! |
Yes, that has been added to the main branch. I think it should be working fine. But I haven't used this feature much myself. So I'd be keen to hear if this works for your problem. |
Dear all, Noting that this discussion has been over for a while. I just wanted to report that we have run into this problem as well in 2024, trying to compare two simulations with the same system but with different realisations of test particles. In retrospect, it is clear why the adaptive time-step feature of REBOUND would cause this, but we didn't manage to 'debug' it until we stumbled over this open issue. Maybe it's valuable to add a mention about this in the documentation? That's where we looked long before scrolling through the github issues (and thanks for not closing it!) |
Whenever you encounter something and it takes a long time to figure out, feel free to just open a new issue... Sure, we can add a comment in the documentation. Where in the documentation would you have found it? |
Hi Hanno,
I'm running into a strange issue while simulating test particle-active particle collisions in the TRAPPIST-1 system. If I integrate the planets without any test particles, I get a reproducible final planet configuration after 1000 years, no problem. When I put massless test particles into the system, they somehow influence the orbit of the planets enough to reach a very different (but also reproducible) final planet configuration after 1000 years. I've checked my sim's parameters for N_active = num_planets+1, test_particle_type = 0, and all the masses of the test particles = 0, and I've run multiple tests with varying collision resolution types, and I keep getting very different final planet configurations after integrating for 1000 years. Is there any reason why test particles might influence the behavior of active particles like this?
Thanks,
Raina
The text was updated successfully, but these errors were encountered: