flowRule_studyHeightAngle.cpp File Reference
#include "SilbertPeriodic.h"

Classes

class  FlowRule
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
106 {
107  FlowRule problem;
109  problem.setSaveCount(1e4);
110  problem.setTimeMax(2000);
111  //~ problem.setRoughBottomType(MONOLAYER_DISORDERED);
112 
113  //set case, height, angle to given or default values
114  vector<Mdouble> study_num;
115  study_num.resize(3);
116  if (argc>1) study_num[0]=atof(argv[1]);
117  else { study_num[0]=4; cout << "No study number given; using lambda=1" << endl;}
118  if (argc>2) study_num[1]=atof(argv[2]);
119  else { study_num[1]=10; cout << "No height given; using h=10 d" << endl;}
120  if (argc>3) study_num[2]=atof(argv[3]);
121  else { study_num[2]=24; cout << "No angle given; using theta=24 deg" << endl;}
122 
123  //call run
124  if (argc>3) problem.run(study_num,argc-3,argv+3);
125  else problem.run(study_num,1,argv);
126 }
@ MULTIPLE_FILES_PADDED
each time-step will be written into/read from separate files numbered consecutively,...
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
File restartFile
An instance of class File to handle in- and output into a .restart file.
Definition: DPMBase.h:1493
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 run(std::vector< Mdouble > study_num, int argc, char *argv[])
Definition: PeriodicInflow2D_Initiation.cpp:48

References MULTIPLE_FILES_PADDED, DPMBase::restartFile, FlowRule::run(), File::setFileType(), DPMBase::setSaveCount(), and DPMBase::setTimeMax().