94 #ifdef CONTACT_LIST_HGRID
98 void InsertCell(
int x,
int y,
unsigned int l,
BaseParticle *obj);
The DPMBase header includes quite a few header files, defining all the handlers, which are essential...
bool hGridHasParticleContacts(const BaseParticle *obj) override
Test if a BaseParticle has any contacts in the HGrid.
virtual void hGridFindContactsWithTargetCell(int x, int y, unsigned int l, BaseParticle *obj)
Finds contacts between given BaseParticle and the BaseParticle in the target cell.
void hGridUpdateParticle(BaseParticle *obj) override
Updates the cell (not the level) of a BaseParticle.
virtual void hGridFindContactsWithinTargetCell(int x, int y, unsigned int l)
Finds contacts between particles the in the target cell.
void constructor()
Function that sets the ParticleDimensions and SystemDimensions to 2.
This is the base class for both Mercury2D and Mercury3D. Note the actually abstract grid is defined i...
bool hGridHasContactsInTargetCell(int x, int y, unsigned int l, const BaseParticle *obj) const
Tests if the BaseParticle has contacts with other Particles in the target cell.
Mercury2D()
This is the default constructor. All it does is set sensible defaults.
void hGridFindOneSidedContacts(BaseParticle *obj) override
Finds contacts with the BaseParticle; avoids multiple checks.
This adds on the hierarchical grid code for 2D problems.
void hGridRemoveParticle(BaseParticle *obj) override
Removes a BaseParticle to the HGrid.