SiegenRail.cpp File Reference
#include <iomanip>
#include "Siegen.h"

Classes

class  Slide
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  UNUSED,
char *argv[]  UNUSED 
)
145 {
146  FILE *counter_file=fopen("record", "w");
147  char buffer [50];
148  for (Mdouble a=0; a<71; a+=8) {
149  Slide md(a);
150  sprintf (buffer, "rail%fR", a); md.setName(buffer);
151  md.species->setTorsionFrictionCoefficient(0);
152  md.solve(argc, argv);
153  fprintf(counter_file, "%f %.10e %.10e\n",a,md.wallHandler.getObject(0)->getForce().X,md.wallHandler.getObject(0)->getForce().Y);
154  }
155  for (Mdouble a=0; a<71; a+=8)
156  {
157  Slide md(a);
158  sprintf(buffer, "rail%f", a);
159  md.setName(buffer);
160  logger(INFO, "%", buffer);
161  md.solve(argc, argv);
162  fprintf(counter_file, "%f %.10e %.10e\n", a, md.wallHandler.getObject(0)->getForce().X,
163  md.wallHandler.getObject(0)->getForce().Y);
164  }
165  fclose(counter_file);
166 }
double Mdouble
Definition: GeneralDefine.h:34
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: SiegenRail.cpp:31

References BaseInteractable::getForce(), BaseHandler< T >::getObject(), INFO, logger, DPMBase::setName(), DPMBase::solve(), Siegen::species, DPMBase::wallHandler, Vec3D::X, and Vec3D::Y.