FreeCoolingAdhesiveDemo.cpp File Reference

Classes

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

Functions

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

Function Documentation

◆ main()

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

Start off my solving the default problem

59 {
60  logger(INFO, "In this file 32^2 particles with the same velocity are placed "
61  "in a bi-axial box. This makes them collide with the walls and eachother. "
62  "Afterwards the same run is performed with hgrid on. It tests the working "
63  "(and speedup) of the hgrid.");
64 
67  auto species = problem.speciesHandler.copyAndAddObject(
69  species->setDensity(2000);
70  species->setDissipation(0.01);
71  species->setStiffness(1e4);
72  species->setSlidingFrictionCoefficient(0.1);
73  species->setDensity(2000);
74  species->setAdhesionStiffness(0.05 * species->getStiffness());
75  species->setAdhesionForceMax(1.1e-4 * 0.05 * species->getStiffness());
76 
77  problem.N = 25;
78  problem.setName("FreeCoolingAdhesiveDemo");
79  problem.setXMax(0.0018);
80  problem.setYMax(0.0018);
81  problem.setGravity(Vec3D(0.0, 0.0, 0.0));
82  problem.setTimeStep(3e-6);
83  problem.setSaveCount(50);
84  problem.setTimeMax(0.05);
85  problem.setHGridMaxLevels(1);
86  //problem.setHGridCellOverSizeRatio(1.2);
87  problem.setHGridUpdateEachTimeStep(true);
88 
89 
90  problem.dataFile.setFileType(FileType::ONE_FILE);
91  problem.fStatFile.setFileType(FileType::NO_FILE);
92  problem.solve();
93  logger(INFO, "%", problem.particleHandler.getObject(0)->getRadius());
94  logger(INFO, "%", problem.particleHandler.getObject(0)->getMaxInteractionRadius());
95  return 0;
96 }
Array< double, 1, 3 > e(1./3., 0.5, 2.)
@ NO_FILE
file will not be created/read
@ ONE_FILE
all data will be written into/ read from a single file called name_
Species< LinearViscoelasticNormalSpecies, SlidingFrictionSpecies, ReversibleAdhesiveSpecies > LinearViscoelasticSlidingFrictionReversibleAdhesiveSpecies
Definition: LinearViscoelasticSlidingFrictionReversibleAdhesiveSpecies.h:13
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Definition: Kernel/Math/Vector.h:30
todo{This code is not working as is wanted}
Definition: FreeCoolingAdhesiveDemo.cpp:16
#define INFO(i)
Definition: mumps_solver.h:54
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References e(), INFO, logger, NO_FILE, ONE_FILE, and problem.