ParticleAnalytics2Mercury.cpp File Reference
#include <iostream>
#include <fstream>
#include <Logger.h>
#include <Species/LinearViscoelasticSpecies.h>
#include <Species/LinearViscoelasticReversibleAdhesiveSpecies.h>
#include <Walls/InfiniteWall.h>
#include "Mercury3D.h"

Classes

class  FileReader
 This gives functionality to read information from binary formats like STL etc. This class is complete stand-alone and is tested with one any reference to other MecuryDPM code except Vections and Logger. More...
 

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int argc  ,
char **  argv 
)
230 {
231  helpers::writeToFile("XRT","xrt");
232 
233  //Check to see if we actually received two arguments
234  if (argc < 2) {
235  //We didn't. Print a usage and exit the program.
236  logger(FATAL,"This program converts Particle Analytics (.p3* or p4*) to MercuryDPM files.\n"
237  //"These file can then be used in MercuryCG to analyse your data.\n"
238  "Usage: Call the executable with the base name as argument.\n"
239  "E.g. to convert name.p* call\n"
240  " ./ParticleAnalytics2Mercury name\n", argv[0]);
241  }
242  FileReader fileReader(argv[1]);
243  while (fileReader.read());
244 
245 }
LL< Log::FATAL > FATAL
Definition of the different loglevels by its wrapper class LL. These are used as tags in template met...
Definition: Logger.cc:31
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
This gives functionality to read information from binary formats like STL etc. This class is complete...
Definition: ParticleAnalytics2Mercury.cpp:19
bool writeToFile(const std::string &filename, const std::string &filecontent)
Writes a string to a file.
Definition: FileIOHelpers.cc:29

References FATAL, logger, FileReader::read(), and helpers::writeToFile().