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[] 
)
71 {
73  dpm.solve(argc, argv);
74 
75  helpers::writeToFile("ChargedBondedInteractionSelfTestEne.gnu",
76  "set xlabel 'time [s]'\n"
77  "set ylabel 'Energy [J]'\n"
78  "p 'ChargedBondedInteractionSelfTest.ene' u 1:3 w l t 'kinetic', '' u 1:5 w l t 'potential'\n"
79  );
80  logger(INFO, "Run gnuplot ChargedBondedInteractionSelfTestTestEne.gnu --persist to view energy statistics");
81 
82  helpers::writeToFile("ChargedBondedInteractionSelfTestForces.gnu",
83  "set xlabel 'time [s]'\n"
84  "set ylabel 'forces [J]'\n"
85  "p 'ChargedBondedInteractionSelfTest.fstat' u 1:7\n"
86 // "p 'ChargedBondedInteractionSelfTest.fstat' u 1:(($2==0)&($3==1)?$9:(1/0))\n"
87  );
88  logger(INFO, "Run gnuplot ChargedBondedInteractionSelfTestTestForces.gnu --persist to view force statistics");
89 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Definition: ChargedBondedInteractionSelfTest.cpp:14
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
#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 INFO, logger, DPMBase::solve(), and helpers::writeToFile().