flowRule_StudyHeightAngle.cpp File Reference
#include <iomanip>
#include "SilbertPeriodic.h"

Classes

class  FlowRule
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
Todo:
make selftest smaller (currently 8 sec)); also CoilSelfTest (8s), LeesEdwardsSelfTest (13s), MaserSelfTest (14s)
90 {
91  FlowRule problem;
92  //set case, height, angle to given or default values
93  std::vector<Mdouble> studyNumber;
94  studyNumber.resize(3);
95 
96  //this line is needed for the code to work with demoparams
97  //if (argc<4) exit(-1);
98 
99  if (argc>3)
100  {
101  studyNumber[0]=atof(argv[1]);
102  studyNumber[1]=atof(argv[2]);
103  studyNumber[2]=atof(argv[3]);
104  problem.run(studyNumber,argc-3,argv+3);
105  }
106  else
107  {
108  logger(WARN, "Not enough input arguments given (./flowRule_StudyHeightAngle $study $height $angle); \n"
109  "using demo values (equivalent to ./flowRule_StudyHeightAngle 5 10 24 -tmax 0.01)");
110  studyNumber[0] = 5;
111  studyNumber[1] = 2;
112  studyNumber[2] = 24;
113  problem.setTimeMax(0.01);
115  problem.setChuteLength(
116  5);
117  problem.setChuteWidth(5);
118  //problem.setRoughBottomType(MULTILAYER);
120  //problem.setTimeMax(10);
121  problem.run(studyNumber, 1, argv);
122  problem.setName("flowRuleSelfTest");
123  problem.writeRestartFile();
124  }
125 }
@ MONOLAYER_DISORDERED
Definition: Chute.h:53
@ 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
void setRoughBottomType(RoughBottomType roughBottomType)
Sets the type of rough bottom of the chute.
Definition: Chute.cc:714
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, MONOLAYER_DISORDERED, ONE_FILE, FlowRule::run(), Chute::setChuteLength(), Chute::setChuteWidth(), File::setFileType(), FlowRule::setName(), Chute::setRoughBottomType(), DPMBase::setTimeMax(), WARN, and FlowRule::writeRestartFile().