SinterBed2SelfTest.cpp File Reference

Classes

class  Indenter
 Single particle, indented slowly by spherical indenter. More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
51 {
52  Mdouble timeMax = 200;
53  Mdouble indenterDiameter = 127e-6;
54  Mdouble indentationForce = 4e-3; //4mN
55  Mdouble indentationVelocity = readFromFile<Mdouble>("in","indentationVelocity",2e-6);
56 
57  //Ered 2e8
58  //F=4e-3 = 4/3 E c del
59  //F=4e-3 = 4/3 0.2e9 1e-6 1e-6 * 15
60  //k=267
61  Indenter i(indenterDiameter, indentationVelocity, indentationForce);
62  if (i.getSystemDimensions()==2) {
63  i.setIndentationForce(i.getIndentationForce()/3.0);
64  }
65  Mdouble frictionCoefficient = readFromFile<Mdouble>("in","frictionCoefficient",10);
66  i.species->setSlidingFrictionCoefficient(frictionCoefficient);
67  i.species->setRollingFrictionCoefficient(.1*frictionCoefficient);
68  i.setTimeMax(timeMax);
69 
70  writeToFile("SinterBed2.gnu",
71  "set xlabel 'displacement [um]'\n"
72  "set ylabel 'force [mN]'\n"
73  "p 'SinterBed2.ene' u (-$2*1e6):($3*1e3) w lp\n"
74  );
75 
76  i.setSaveCount(50);
77  i.fStatFile.setFileType(FileType::NO_FILE);
78  i.restartFile.setFileType(FileType::ONE_FILE);
79  //i.setParticlesWriteVTK(true);
80  i.solve();
81 
82  logger(INFO, "Execute 'gnuplot SinterBed2.gnu' to view output");
83 
84  return 0;
85 }
int i
Definition: BiCGSTAB_step_by_step.cpp:9
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_
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Single particle, indented slowly by spherical indenter.
Definition: SinterBed2SelfTest.cpp:19
#define INFO(i)
Definition: mumps_solver.h:54
bool writeToFile(const std::string &filename, const std::string &filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:29

References e(), i, INFO, logger, NO_FILE, ONE_FILE, and helpers::writeToFile().