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[] 
)
298 {
300  //set case, height, angle to given or default values
301  std::vector<Mdouble> studyNumber;
302  studyNumber.resize(3);
303 
304  //this line is needed for the code to work with demoparams
305  //if (argc<4) exit(-1);
306 
307  if (argc>2)
308  {
309  studyNumber[0]=0;
310  studyNumber[1]=atof(argv[1]);
311  studyNumber[2]=atof(argv[2]);
312  problem.run(studyNumber,argc-2,argv+2);
313  }
314  else
315  {
316  logger(WARN, "Not enough input arguments given (./flowRule_StudyHeightAngle $study $height $angle); \n"
317  "using demo values (equivalent to ./flowRule_StudyHeightAngle 5 10 24 -tmax 0.01)");
318  studyNumber[0] = 5;
319  studyNumber[1] = 2;
320  studyNumber[2] = 24;
321  problem.setTimeMax(0.01);
322  problem.dataFile.setFileType(FileType::ONE_FILE);
323  problem.setChuteLength(5);
324  problem.setChuteWidth(5);
325  //problem.setRoughBottomType(MULTILAYER);
326  problem.run(studyNumber, 1, argv);
327  problem.setName("flowRuleSelfTest");
328  problem.writeRestartFile();
329  }
330 }
@ 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, ONE_FILE, problem, and WARN.