Multiparticle_InsertionUnitTest.cpp File Reference

Classes

class  MultiParticlesInsertion
 

Functions

int main (int argc UNUSED, char *argv[] UNUSED)
 

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
115 {
116  logger(INFO,"Inserting multi-particles.");
117 
118  MultiParticlesInsertion insertion;
119 
120  insertion.setTimeStep(1e-4);
121  insertion.setTimeMax(0.5);
122  insertion.solve();
123 
124  helpers::check(4, insertion.particleHandler.getSize(), 0.1, "Number of particles check");
125 // helpers::check(0, insertion.interactionHandler.getSize(), 0.1, "Number of interactions check");
126 
127 }
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
unsigned int getSize() const
Gets the size of the particleHandler (including mpi and periodic particles)
Definition: BaseHandler.h:655
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1437
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1234
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
Definition: Multiparticle_InsertionUnitTest.cpp:38
void check(double real, double ideal, double error, std::string errorMessage)
Definition: TestHelpers.cc:37

References helpers::check(), BaseHandler< T >::getSize(), INFO, logger, DPMBase::particleHandler, DPMBase::setTimeMax(), DPMBase::setTimeStep(), and DPMBase::solve().