AstroNbodySim.jl icon indicating copy to clipboard operation
AstroNbodySim.jl copied to clipboard

Collision Feature ?

Open gacarita opened this issue 1 year ago • 1 comments

Hi there,

I would like to know if this package is capable of solving collision events between particles. For example, in rubble piles and asteroid formation.

gacarita avatar Feb 14 '24 11:02 gacarita

Sorry that rigid body collision event is not supported by now.

However, you can hack the code by inserting the collision detection algorithm as a background force. In more detail, the "background force field" function can do the following things:

  • find particles that close enough to this particle
  • determine the collisional acceleration
  • assign the particle acceleration

islent avatar Feb 15 '24 13:02 islent