ChargedBondedInteractionSelfTest.cpp File Reference
#include <iostream>
#include "Species/LinearViscoelasticFrictionChargedBondedSpecies.h"
#include "DPMBase.h"

Classes

class  ChargedBondedInteractionSelfTest
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
92 {
94  dpm.solve(argc, argv);
95 
96  helpers::writeToFile("ChargedBondedInteractionSelfTestEne.gnu",
97  "set xlabel 'time [s]'\n"
98  "set ylabel 'Energy [J]'\n"
99  "p 'ChargedBondedInteractionSelfTest.ene' u 1:3 w l t 'kinetic', '' u 1:5 w l t 'potential'\n"
100  );
101  logger(INFO, "Run gnuplot ChargedBondedInteractionSelfTestTestEne.gnu --persist to view energy statistics");
102 
103  helpers::writeToFile("ChargedBondedInteractionSelfTestForces.gnu",
104  "set xlabel 'time [s]'\n"
105  "set ylabel 'forces [J]'\n"
106  "p 'ChargedBondedInteractionSelfTest.fstat' u 1:7\n"
107 // "p 'ChargedBondedInteractionSelfTest.fstat' u 1:(($2==0)&($3==1)?$9:(1/0))\n"
108  );
109  logger(INFO, "Run gnuplot ChargedBondedInteractionSelfTestTestForces.gnu --persist to view force statistics");
110 }
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.
Definition: ChargedBondedInteractionSelfTest.cpp:35
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
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().