Git Product home page Git Product logo

Comments (3)

hannorein avatar hannorein commented on August 30, 2024

Hi Gabriel,

I would not use a collision detection routine for this. I would just periodically check if the particles have swapped their position. You can do that while the simulation is running using a loop, or afterwards using the snapshots saved in the simulationarchive. Unless you check for this condition very often, it should not be a limiting factor for the runtime. You only get the time right approximately, but maybe that's good enough. You can always go back and check more often.

As a side note, when you calculate the semi-major axes of all particles, you probably want to use heliocentric coordinates rather than Jacobi coordinates.

I hope this helps.
Hanno

from rebound.

gabrieltxg avatar gabrieltxg commented on August 30, 2024

Hi, Hanno,

Thanks for the suggestions! I think that checking for around 50.000 output points (worst case scenario, since collisions can be detected earlier) won't be much a of a problem.

For larger integration times, the resolution at the lower end might be a little poor (on the order of 1e3 years, which is around 1e4 orbits of my innermost planet), but it's not an absolute problem for statistical purposes, I guess.

I will definitely pay more attention and make more use of the SimulationArchive, it's much better and easier than having to filter out which variables and analysis to make beforehand.

I will also keep in mind the change of coordinates and make some experiment with it! Thanks.

I will close it for now!

Kind regards,
Gabriel.

from rebound.

gabrieltxg avatar gabrieltxg commented on August 30, 2024

"Manually" check for collision condition after each timestep seems to be simpler for now. CLosing it!

from rebound.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.