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


class  FlowRule


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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
117 {
118  FlowRule problem;
120  problem.setSaveCount(1e4);
121  //~ problem.setRoughBottomType(MONOLAYER_DISORDERED);
122  problem.setTimeMax(2000); //to create initial conditions
123  vector<Mdouble> study_num;
124  if (argc>3) {
125  study_num.resize(3);
126  study_num[0]=atof(argv[1]);
127  study_num[1]=atof(argv[2]);
128  study_num[2]=atof(argv[3]);
129  }
130  problem.run(study_num,argc-3,argv+3);
131 }
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().