flowRuleGlass_studyHeightAngle.cpp File Reference
#include "GlasPeriodic.h"

Classes

class  FlowRule
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
85 {
87  problem.restartFile.setFileType(FileType::MULTIPLE_FILES_PADDED);
88  problem.setSaveCount(1e4);
89  problem.setTimeMax(2000);
90  //~ problem.setRoughBottomType(MONOLAYER_DISORDERED);
91 
92  //set case, height, angle to given or default values
93  vector<double> study_num;
94  study_num.resize(3);
95  if (argc>1) study_num[0]=atof(argv[1]);
96  else { study_num[0]=5; cout << "No study number given; using lambda=1" << endl;}
97  if (argc>2) study_num[1]=atof(argv[2]);
98  else { study_num[1]=10; cout << "No height given; using h=10 d" << endl;}
99  if (argc>3) study_num[2]=atof(argv[3]);
100  else { study_num[2]=24; cout << "No angle given; using theta=24 deg" << endl;}
101 
102  //call run
103  if (argc>3) problem.run(study_num,argc-3,argv+3);
104  else problem.run(study_num,1,argv);
105 }
@ MULTIPLE_FILES_PADDED
each time-step will be written into/read from separate files numbered consecutively,...
Definition: PeriodicInflow2D_Initiation.cpp:9
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References MULTIPLE_FILES_PADDED, and problem.