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)
69 {
71  //set case, height, angle to given or default values
72  std::vector<Mdouble> studyNumber;
73  studyNumber.resize(3);
74 
75  //this line is needed for the code to work with demoparams
76  //if (argc<4) exit(-1);
77 
78  if (argc>3)
79  {
80  studyNumber[0]=atof(argv[1]);
81  studyNumber[1]=atof(argv[2]);
82  studyNumber[2]=atof(argv[3]);
83  problem.run(studyNumber,argc-3,argv+3);
84  }
85  else
86  {
87  logger(WARN, "Not enough input arguments given (./flowRule_StudyHeightAngle $study $height $angle); \n"
88  "using demo values (equivalent to ./flowRule_StudyHeightAngle 5 10 24 -tmax 0.01)");
89  studyNumber[0] = 5;
90  studyNumber[1] = 2;
91  studyNumber[2] = 24;
92  problem.setTimeMax(0.01);
93  problem.dataFile.setFileType(FileType::ONE_FILE);
94  problem.setChuteLength(
95  5);
96  problem.setChuteWidth(5);
97  //problem.setRoughBottomType(MULTILAYER);
98  problem.setRoughBottomType(MONOLAYER_DISORDERED);
99  //problem.setTimeMax(10);
100  problem.run(studyNumber, 1, argv);
101  problem.setName("flowRuleSelfTest");
102  problem.writeRestartFile();
103  }
104 }
@ MONOLAYER_DISORDERED
Definition: Chute.h:32
@ 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:33
Definition: PeriodicInflow2D_Initiation.cpp:9
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References logger, MONOLAYER_DISORDERED, ONE_FILE, problem, and WARN.