TorsionFrictionSelfTest.cpp File Reference

Classes

class  DPM
 In this file a cubic packing of 5^3 particles in a tri-axial box is created and allowed to settle under small gravity. After that Z statistics are calculated. More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
72 {
73  DPM dpm;
74  dpm.solve();
75 
76  logger(INFO,"Run gnuplot %.gnu --persist to view output; you should see that the torque is capped at torsionfriction*radius*normalForce, then oscillates and decays",dpm.getName());
77  helpers::writeToFile(dpm.getName()+".gnu",
78  "set xlabel 'time'\n"
79  "set ylabel 'torque'\n"
80  "p 'TorsionFrictionSelfTest.torque' u 1:2 w l t 'torque', '' u 1:(0.1*0.5*$3) w l t 'torsionfriction*radius*normalForce'"
81  );
82 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
const std::string & getName() const
Returns the name of the file. Does not allow to change it though.
Definition: DPMBase.cc:377
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
In this file a cubic packing of 5^3 particles in a tri-axial box is created and allowed to settle und...
Definition: HGridUpdateUnitTest.cpp:9
#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 DPMBase::getName(), INFO, logger, DPMBase::solve(), and helpers::writeToFile().