FreeCooling2DinWalls.cpp File Reference
#include <iostream>
#include <Species/LinearViscoelasticSpecies.h>
#include "Mercury2D.h"
#include "Walls/InfiniteWall.h"
#include <ctime>
#include <Boundaries/PeriodicBoundary.h>
#include <Boundaries/CubeInsertionBoundary.h>

Classes

class  FreeCooling2DinWalls
 todo{This code is not working as is wanted} More...
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
93 {
94 
95  logger(INFO, "In this file 32^2 particles with the same velocity are placed "
96  "in a bi-axial box. This makes them collide with the walls and eachother. "
97  "Afterwards the same run is performed with hgrid on. It tests the working "
98  "(and speedup) of the hgrid.");
99 
100  FreeCooling2DinWalls problem;
101  problem.setName("FreeCooling2DinWalls");
102 
103  problem.N = 100;
104 
105  problem.setGravity(Vec3D(0.0, 0.0, 0.0));
106  problem.setTimeStep(5e-5);
107  problem.setSaveCount(2000);
108  problem.setTimeMax(1000.0);
109  problem.setMax({0.01, 0.01, 0.0});
110 
111 
112  problem.setHGridMaxLevels(1);
113  problem.setHGridCellOverSizeRatio(1.2);
114  problem.setHGridUpdateEachTimeStep(false);
116  //problem.setParticlesWriteVTK(true);
117  //problem.wallHandler.setWriteVTK(true);
118 
119  problem.solve();
120  return 0;
121 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
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.
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
void setFileType(FileType fileType)
Sets File::fileType_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:459
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 setMax(const Vec3D &max)
Sets the maximum coordinates of the problem domain.
Definition: DPMBase.cc:1082
void setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1383
todo{This code is not working as is wanted}
Definition: FreeCooling2DinWalls.cpp:43
int N
Definition: FreeCooling2DinWalls.cpp:89
void setHGridUpdateEachTimeStep(bool updateEachTimeStep)
Sets whether or not the HGrid must be updated every time step.
Definition: MercuryBase.cc:176
void setHGridMaxLevels(unsigned int HGridMaxLevels)
Sets the maximum number of levels of the HGrid in this MercuryBase.
Definition: MercuryBase.cc:476
void setHGridCellOverSizeRatio(Mdouble cellOverSizeRatio)
Sets the ratio of the smallest cell over the smallest particle.
Definition: MercuryBase.cc:463
Definition: Vector.h:51

References INFO, logger, FreeCooling2DinWalls::N, ONE_FILE, DPMBase::setFileType(), DPMBase::setGravity(), MercuryBase::setHGridCellOverSizeRatio(), MercuryBase::setHGridMaxLevels(), MercuryBase::setHGridUpdateEachTimeStep(), DPMBase::setMax(), DPMBase::setName(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), and DPMBase::solve().