PeriodicInflow2D_Initiation.cpp File Reference

Classes

class  FlowRule
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
109 {
111  problem.restartFile.setFileType(FileType::MULTIPLE_FILES);//restartFile.setFileType(FileType::MULTIPLE_FILES_PADDED);
112  problem.setSaveCount(1e4);
113  problem.restartFile.setSaveCount(100.0*problem.restartFile.getSaveCount());
114  problem.setTimeMax(2000);
115  //~ problem.setRoughBottomType(MONOLAYER_DISORDERED);
116 
117  //set case, height, angle to given or default values
118  vector<Mdouble> study_num;
119  study_num.resize(3);
120 
121  //this line is needed for the code to work with demoparams
122  //if (argc<4) exit(-1);
123 
124  if (argc>1) study_num[0]=atof(argv[1]);
125  else { study_num[0]=4; std::cout << "No study number given; using lambda=1" << std::endl;}
126  if (argc>2) study_num[1]=atof(argv[2]);
127  else { study_num[1]=5; std::cout << "No height given; using h=10 d" << std::endl;}
128  if (argc>3) study_num[2]=atof(argv[3]);
129  else { study_num[2]=28; std::cout << "No angle given; using theta=24 deg" << std::endl;}
130 
131  //call run
132  if (argc>3) problem.run(study_num,argc-3,argv+3);
133  else problem.run(study_num,1,argv);
134 }
@ MULTIPLE_FILES
each time-step will be written into/read from separate files numbered consecutively: name_....
Definition: PeriodicInflow2D_Initiation.cpp:9
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References MULTIPLE_FILES, and problem.