43 #ifdef CONSTUCTOR_OUTPUT
44 std::cerr <<
"HGRID_3D() finished"<<std::endl;
56 #ifdef CONSTUCTOR_OUTPUT
57 std::cerr <<
"HGRID_3D(MD& other) finished"<<std::endl;
63 #ifdef CONSTUCTOR_OUTPUT
64 std::cerr <<
"HGRID_3D(HGRID_base& other) finished"<<std::endl;
100 #ifdef ContactListHgrid
101 void InsertCell(
int x,
int y,
int z,
int l, Particle *obj,
HGrid *
grid);
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.
void HGRID_UpdateParticleInHgrid(BaseParticle *obj)
This adds a partcile to the Grid, called in the grid setup routies.
HGRID_3D(MD &other)
Copy-constructor for creates an HGRID problem from an existing MD problem.
virtual void CheckCell(int x, int y, int z, int l, BaseParticle *obj, HGrid *grid)
Check collisions for a general cell.
void HGRID_RemoveParticleFromHgrid(BaseParticle *obj)
void constructor()
This is the actually constructor it is called do both constructors above.
This adds on the hierarchical grid code for 3D problems.
bool TestCell(int x, int y, int z, 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...
This is the HGRID class - This is the actually HGRID code.
void set_dim_particle(int new_, unsigned int indSpecies=0)
Allows the dimension of the particle (f.e. for mass) to be changed.
void CheckObjAgainstGrid(HGrid *grid, BaseParticle *obj)
Check if an Particle has a collision in the grid; avoids multiple checks.
A class that defines and solves a MD problem.
void set_dim(int new_dim)
Allows the dimension of the simulation to be changed.
HGRID_3D()
This is the default constructor. All it does is set senible defaults.
virtual void CheckCell_current(int x, int y, int z, int l, HGrid *grid)
Checks for a collision in the particles own cell.
HGRID_3D(HGRID_base &other)