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

Classes

class  HertzSelfTest
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
75 {
76  // create an instance of the class
77  HertzSelfTest dpm;
78  // call the solve routine
79  dpm.solve();
80  // create analysis script
81  helpers::writeToFile("OSHertzSelfTest.gnu",
82  "set xlabel 'time [s]'\n"
83  "set ylabel 'kinetic energy [J]'\n"
84  "p 'OSHertzSelfTest.ene' u 1:3\n");
85  logger(INFO,"Run 'gnuplot OSHertzSelfTest.gnu --persist' to show resulting kinetic energy");
86  return 0;
87 }
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: OSHertzSelfTest.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().