114 std::chrono::time_point<std::chrono::system_clock> startClock, endClock;
115 startClock = std::chrono::system_clock::now();
138 Mdouble ContractionWidth = 2.5e-2;
139 Mdouble ContractionHeight = 5e-2;
162 species->setStiffness(1e5);
163 species->setDissipation(0.63);
165 species->setSlidingFrictionCoefficient(0.5);
166 species->setSlidingStiffness(1.2e4);
167 species->setSlidingDissipation(0.16);
169 species->setRollingFrictionCoefficient(0.2);
170 species->setRollingStiffness(1.2e4);
171 species->setRollingDissipation(6.3e-2);
173 species->setTorsionFrictionCoefficient(0.1);
174 species->setTorsionStiffness(1.2e4);
175 species->setSlidingDissipation(6.3e-2);
181 Mdouble tc = species->getCollisionTime(MinParticleMass);
185 tc, species->getRestitutionCoefficient(MinParticleMass),
200 HG.
solve(argc, argv);
203 endClock = std::chrono::system_clock::now();
204 std::chrono::duration<double> elapsed_seconds = endClock - startClock;
205 logger(
INFO,
"Elapsed time for solving the PDE: % s", elapsed_seconds.count());
@ ONE_FILE
all data will be written into/ read from a single file called name_
double Mdouble
Definition: GeneralDefine.h:34
Species< LinearViscoelasticNormalSpecies, FrictionSpecies > LinearViscoelasticFrictionSpecies
Definition: LinearViscoelasticFrictionSpecies.h:34
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.
std::enable_if<!std::is_pointer< U >::value, U * >::type copyAndAddObject(const U &object)
Creates a copy of a Object and adds it to the BaseHandler.
Definition: BaseHandler.h:379
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1427
void setYMin(Mdouble newYMin)
Sets the value of YMin, the lower bound of the problem domain in the y-direction.
Definition: DPMBase.cc:1034
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
Definition: DPMBase.h:1447
void setYMax(Mdouble newYMax)
Sets the value of YMax, the upper bound of the problem domain in the y-direction.
Definition: DPMBase.cc:1191
void setZMin(Mdouble newZMin)
Sets the value of ZMin, the lower bound of the problem domain in the z-direction.
Definition: DPMBase.cc:1058
void setXBallsAdditionalArguments(std::string newXBArgs)
Set the additional arguments for xballs.
Definition: DPMBase.cc:1347
void setXMax(Mdouble newXMax)
Sets the value of XMax, the upper bound of the problem domain in the x-direction.
Definition: DPMBase.cc:1165
void setZMax(Mdouble newZMax)
Sets the value of ZMax, the upper bound of the problem domain in the z-direction.
Definition: DPMBase.cc:1217
void setParticlesWriteVTK(bool writeParticlesVTK)
Sets whether particles are written in a VTK file.
Definition: DPMBase.cc:942
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
void setXMin(Mdouble newXMin)
Sets the value of XMin, the lower bound of the problem domain in the x-direction.
Definition: DPMBase.cc:1010
void setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1383
Definition: HourGlass2DDemo.cpp:43
Mdouble MinParticleRadius
Definition: HourGlass2DDemo.cpp:106
Mdouble ContractionWidth
Definition: HourGlass2DDemo.cpp:104
Mdouble MaxParticleRadius
Definition: HourGlass2DDemo.cpp:107
Mdouble ContractionHeight
Definition: HourGlass2DDemo.cpp:105
unsigned int N
Definition: HourGlass2DDemo.cpp:108
void setDensity(Mdouble density)
Definition: ParticleSpecies.cc:108
Mdouble getDensity() const
Allows density_ to be accessed.
Definition: ParticleSpecies.cc:118
Contains material and contact force properties.
Definition: Species.h:35
void setWriteVTK(FileType)
Sets whether walls are written into a VTK file.
Definition: WallHandler.cc:467
const Mdouble pi
Definition: ExtendedMath.h:45
T cubic(const T val)
calculates the cube of a number
Definition: ExtendedMath.h:115