75 void read(std::istream& is);
78 void write(std::ostream& os);
81 void print(std::ostream& os,
bool print_all);
110 #ifdef ContactListHgrid
HGridMethod getHGridMethod()
void HGRID_actions_after_integration()
This is the base class for both HGRID_2D and HGRID_3D.
Mdouble getHGridCellOverSizeRatio()
void setHGridCellOverSizeRatio(Mdouble cellOverSizeRatio)
void setHGridUpdateEachTimeStep(bool updateEachTimeStep)
void broad_phase(BaseParticle *i)
This makes the board_phase of contact point at the HGRID code.
void set_HGRID_num_buckets_to_power()
set number of buckets to the smallest power of two bigger than the number of particles ...
virtual void CheckObjAgainstGrid(HGrid *grid, BaseParticle *obj)=0
This is a purly virtual function that checks if an object is in the grid, this code is again dim depe...
void set_HGRID_num_buckets(unsigned int new_num_buckets)
This sets the number of buckets for the HGRID.
void setHGridMethod(HGridMethod hGridMethod)
void InitBroadPhase()
This sets up the parameters required for the contact model.
void setHGridMaxLevels(int HGridMaxLevels)
void print(std::ostream &os, bool print_all)
This function outputs all HGRID data.
Mdouble currentMaxRelativeDisplacement_
Mdouble getHGridCurrentMaxRelativeDisplacement()
void constructor()
This is the actually constructor it is called do both constructors above.
HGRID_base()
This is the default constructor. All it does is set senible defaults.
void write(std::ostream &os)
This function writes all HGRID data.
Mdouble cellOverSizeRatio_
This is the HGRID class - This is the actually HGRID code.
void HGRID_actions_before_integration()
virtual bool TestObject(BaseParticle *pI, BaseParticle *pJ)
criterium for inserting a particle (returns false, if particles overlap;)
~HGRID_base()
This is the default destructor.
void setHGridDistribution(HGridDistribution hGridDistribution)
int readNextArgument(unsigned int &i, unsigned int argc, char *argv[])
A class that defines and solves a MD problem.
HGridDistribution hGridDistribution_
bool getHGridUpdateEachTimeStep()
void HGRID_InsertParticleToHgrid(BaseParticle *obj)
Inserts a single Particle to current grid.
void read(std::istream &is)
This function reads all HGRID data.
Mdouble getHGridTotalCurrentMaxRelativeDisplacement()
void HGRID_actions_before_time_step()
This resets all the bucket information.
void HGRID_actions_before_time_loop()
This sets up the broad phase information, has to be done at this stage becuase it requires the partcl...
Mdouble totalCurrentMaxRelativeDisplacement_
HGridDistribution getHGridDistribution()
void HGRID_update_move(BaseParticle *iP, Mdouble move)