flowRuleDiego_HeightAngle.cpp File Reference
#include <iomanip>
#include <cstring>
#include "Chute.h"
#include "Boundaries/PeriodicBoundary.h"
#include "Walls/InfiniteWall.h"
#include "Species/LinearViscoelasticSpecies.h"

Classes

class  SilbertPeriodic
 
class  FlowRule
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
319 {
320  FlowRule problem;
321  //set case, height, angle to given or default values
322  std::vector<Mdouble> studyNumber;
323  studyNumber.resize(3);
324 
325  //this line is needed for the code to work with demoparams
326  //if (argc<4) exit(-1);
327 
328  if (argc>2)
329  {
330  studyNumber[0]=0;
331  studyNumber[1]=atof(argv[1]);
332  studyNumber[2]=atof(argv[2]);
333  problem.run(studyNumber,argc-2,argv+2);
334  }
335  else
336  {
337  logger(WARN, "Not enough input arguments given (./flowRule_StudyHeightAngle $study $height $angle); \n"
338  "using demo values (equivalent to ./flowRule_StudyHeightAngle 5 10 24 -tmax 0.01)");
339  studyNumber[0] = 5;
340  studyNumber[1] = 2;
341  studyNumber[2] = 24;
342  problem.setTimeMax(0.01);
344  problem.setChuteLength(5);
345  problem.setChuteWidth(5);
346  //problem.setRoughBottomType(MULTILAYER);
347  problem.run(studyNumber, 1, argv);
348  problem.setName("flowRuleSelfTest");
349  problem.writeRestartFile();
350  }
351 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LL< Log::WARN > WARN
Warning log level.
Definition: Logger.cc:54
void setChuteWidth(Mdouble chuteWidth)
Sets the chute width (Y-direction)
Definition: Chute.cc:1039
virtual void setChuteLength(Mdouble chuteLength)
Sets the chute length (X-direction)
Definition: Chute.cc:1059
File dataFile
An instance of class File to handle in- and output into a .data file.
Definition: DPMBase.h:1478
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:215
Definition: PeriodicInflow2D_Initiation.cpp:30
void writeRestartFile()
Stores all the particle data for current save time step to a "restart" file, which is a file simply i...
Definition: obsolete_codes/bidisperse.cpp:33
void run(std::vector< Mdouble > study_num, int argc, char *argv[])
Definition: PeriodicInflow2D_Initiation.cpp:48
void setName()
Definition: bidisperse.cpp:44

References DPMBase::dataFile, logger, ONE_FILE, FlowRule::run(), Chute::setChuteLength(), Chute::setChuteWidth(), File::setFileType(), FlowRule::setName(), DPMBase::setTimeMax(), WARN, and FlowRule::writeRestartFile().