Avoiding Deep Collisions

Any tips for this situation, as I'm a bit stuck as to what to do

I'm simulating the flow of particles through a tube, with the physical controller. The particles have a radius of 1.8, and the tube has a radius of 4. Hence, you can squeeze about four particles alongside each other in the tube. I'm using periodic boundary conditions to recycle the particles, so that they are repositioned at the start of the tube after they pass out of the end. Each particle has a large force acting in the direction of the tube, and small random force perpendicular to the direction. The simulation will normally work ok, but occasionally a particle gets stuck at the start of the tube, i.e. it bounces around at the entrance without making any progress along the tube. Once other particles are repositioned at the start, they get caught up with the errant particle, and make no progress either. Breve prints loads of collision depth warnings, so a guess deep collisions are going on. Any suggestions on how to avoid this behaviour?

Avoiding Deep Collisions

Hmmm... it can be a bit difficult to know what the problem is without seeing the simulation. If you'd like to post the code, that would help.

How are you modelling the tube currently?

You might want to just hack the correct behavior slightly by detecting when the particle is at the entrance to the tube and offsetting the position slightly in the downward direction.

- jon

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.