OSMindlinSelfTest.cpp File Reference
#include "MercuryOS.h"
#include <Walls/InfiniteWall.h>

Classes

class  MindlinSelfTest
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
76 {
77  // create an instance of the class
78  MindlinSelfTest dpm;
79  // call the solve routine
80  dpm.solve();
81  // create analysis script
82  helpers::writeToFile("OSMindlinSelfTest.gnu",
83  "set xlabel 'time [s]'\n"
84  "set ylabel 'force [N]'\n"
85  "p 'OSMindlinSelfTest.fstat' u 1:9 t 'normal', '' u 1:10 t 'tangential'\n");
86  logger(INFO,"Run 'gnuplot OSMindlinSelfTest.gnu --persist' to show resulting forces");
87  return 0;
88 }
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.
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
Definition: OSMindlinSelfTest.cpp:31
bool writeToFile(std::string filename, std::string filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:58

References INFO, logger, DPMBase::solve(), and helpers::writeToFile().