41 #ifdef CONSTUCTOR_OUTPUT
42 std::cerr <<
"HGRID_2D() finished"<<std::endl;
51 #ifdef CONSTUCTOR_OUTPUT
52 std::cerr <<
"HGRID_2D(MD& other) finished" << std::endl;
58 #ifdef CONSTUCTOR_OUTPUT
59 std::cerr <<
"HGRID_2D(HGRID_base& other) finished" << std::endl;
92 #ifdef ContactListHgrid
93 void InsertCell(
int x,
int y,
int l, Particle *obj,
HGrid *
grid);
94 void InsertObjAgainstGrid(
HGrid *
grid, Particle *obj);
This is the base class for both HGRID_2D and HGRID_3D.
void CheckObjAgainstWholeGrid(HGrid *grid, BaseParticle *obj)
Check if an Particle has a collision in the grid.
HGRID_2D()
This is the default constructor. All it does is set senible defaults.
void HGRID_UpdateParticleInHgrid(BaseParticle *obj)
This adds a partcile to the Grid, called in the grid setup routies.
This is the HGRID class - This is the actually HGRID code.
HGRID_2D(HGRID_base &other)
virtual void CheckCell_current(int x, int y, int l, HGrid *grid)
Checks for a collision in the particles own cell.
HGRID_2D(MD &other)
Copy-constructor for creates an HGRID problem from an existing MD problem.
A class that defines and solves a MD problem.
void CheckObjAgainstGrid(HGrid *grid, BaseParticle *obj)
Check if an Particle has a collision in the grid; avoids multiple checks.
void constructor()
This is the actually constructor it is called do both constructors above.
void HGRID_RemoveParticleFromHgrid(BaseParticle *obj)
This adds on the hierarchical grid code for 2D problems.
bool TestCell(int x, int y, int l, BaseParticle *obj, HGrid *grid)
Tests obj against all particles in cell similar to CheckCell, but links to TestObject instead of comp...
bool TestObjAgainstGrid(HGrid *grid, BaseParticle *obj)
Tests obj against all neighbouring particles similar to CheckObjAgainstGrid, but links to TestCell in...
virtual void CheckCell(int x, int y, int l, BaseParticle *obj, HGrid *grid)
Check collisions for a general cell.