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 
)
72 {
73  Mdouble timeMax = 200;
74  Mdouble indenterDiameter = 127e-6;
75  Mdouble indentationForce = 4e-3; //4mN
76  Mdouble indentationVelocity = readFromFile<Mdouble>("in","indentationVelocity",2e-6);
77 
78  //Ered 2e8
79  //F=4e-3 = 4/3 E c del
80  //F=4e-3 = 4/3 0.2e9 1e-6 1e-6 * 15
81  //k=267
82  Indenter i(indenterDiameter, indentationVelocity, indentationForce);
83  if (i.getSystemDimensions()==2) {
84  i.setIndentationForce(i.getIndentationForce()/3.0);
85  }
86  Mdouble frictionCoefficient = readFromFile<Mdouble>("in","frictionCoefficient",10);
87  i.species->setSlidingFrictionCoefficient(frictionCoefficient);
88  i.species->setRollingFrictionCoefficient(.1*frictionCoefficient);
89  i.setTimeMax(timeMax);
90 
91  writeToFile("SinterBed2.gnu",
92  "set xlabel 'displacement [um]'\n"
93  "set ylabel 'force [mN]'\n"
94  "p 'SinterBed2.ene' u (-$2*1e6):($3*1e3) w lp\n"
95  );
96 
97  i.setSaveCount(50);
98  i.fStatFile.setFileType(FileType::NO_FILE);
99  i.restartFile.setFileType(FileType::ONE_FILE);
100  //i.setParticlesWriteVTK(true);
101  i.solve();
102 
103  logger(INFO, "Execute 'gnuplot SinterBed2.gnu' to view output");
104 
105  return 0;
106 }
@ NO_FILE
file will not be created/read
@ 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.
Single particle, indented slowly by spherical indenter.
Definition: SinterBed2SelfTest.cpp:40
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:58

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