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 
)
94 {
95  logger(INFO,"Inserting multi-particles.");
96 
97  MultiParticlesInsertion insertion;
98 
99  insertion.setTimeStep(1e-4);
100  insertion.setTimeMax(0.5);
101  insertion.solve();
102 
103  helpers::check(4, insertion.particleHandler.getSize(), 0.1, "Number of particles check");
104 // helpers::check(0, insertion.interactionHandler.getSize(), 0.1, "Number of interactions check");
105 
106 }
Array< double, 1, 3 > e(1./3., 0.5, 2.)
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:663
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1443
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1225
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:864
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
Definition: Multiparticle_InsertionUnitTest.cpp:17
#define INFO(i)
Definition: mumps_solver.h:54
void check(double real, double ideal, double error, std::string errorMessage)
Definition: TestHelpers.cc:16

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