SingleParticleIndenter.cpp File Reference

Classes

class  SingleParticleIndenter
 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 
)
53 {
54  Mdouble timeMax = 2e-5;
55  Mdouble indenterDiameter = 127e-6;
56  Mdouble indentationDepth = 1e-6; //4mN, 1um
57  Mdouble indentationVelocity = indentationDepth / timeMax * 2.0;
58  Mdouble indentationForce = 4e-3;
59 
60  SingleParticleIndenter sp(indenterDiameter, indentationVelocity, indentationForce);
61  sp.setFileType(FileType::ONE_FILE);
62  sp.setXBallsAdditionalArguments(" -v0 -solidf ");
63  sp.setSaveCount(100);
64  sp.setTimeMax(2.0 * timeMax);
65  sp.solve();
66 
67  logger(INFO, "Execute 'gnuplot SingleParticleIndenter.gnu' to view output");
68  helpers::writeToFile("SingleParticleIndenter.gnu",
69  "set xlabel 'displacement [um]'\n"
70  "set ylabel 'force [mN]'\n"
71  "p 'SingleParticleIndenter.ene' u (-$2*1e6):($3*1e3) w lp\n"
72  );
73 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
double Mdouble
Definition: GeneralDefine.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.
Single particle, indented slowly by spherical indenter.
Definition: SingleParticleIndenter.cpp:35
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:58

References INFO, logger, ONE_FILE, DPMBase::setFileType(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setXBallsAdditionalArguments(), DPMBase::solve(), and helpers::writeToFile().