SPH
|
Overlap handler performing a bounce of particles. More...
#include <Collision.h>
Public Member Functions | |
InternalBounceHandler (const RunSettings &settings) | |
virtual void | initialize (Storage &storage) override |
virtual bool | overlaps (const Size i, const Size j) const override |
Returns true if two particles overlaps. More... | |
virtual void | handle (const Size i, const Size j, FlatSet< Size > &toRemove) override |
Handles the overlap of two particles. More... | |
Public Member Functions inherited from Polymorphic | |
virtual | ~Polymorphic () |
Overlap handler performing a bounce of particles.
Particles only bounce if their centers are moving towards each other. This way we prevent particles bouncing infinitely - after the first bounce, the particle move away from each other and they are not classified as overlaps by the handler.
Definition at line 472 of file Collision.h.
|
inlineexplicit |
Definition at line 479 of file Collision.h.
|
inlineoverridevirtual |
Handles the overlap of two particles.
When called, the particles must actually overlap (overlaps must return true). This is checked by assert.
Implements IOverlapHandler.
Definition at line 501 of file Collision.h.
|
inlineoverridevirtual |
Implements IOverlapHandler.
Definition at line 487 of file Collision.h.
|
inlineoverridevirtual |
Returns true if two particles overlaps.
If so, the overlap is then resolved using handle.
i,j | Indices of particles in the storage. |
Implements IOverlapHandler.
Definition at line 494 of file Collision.h.