ChuteWithPeriodicInflow.cpp File Reference

Classes

class  ContractionWithPeriodicInflow
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
127 {
128  //x-coordinate where the contraction begins (in particle diameters)
129  double xContractionStart = 60;
130  //x-coordinate where the contraction ends,
131  //(in particle diameters, will be rounded to multiples of 20)
132  double xContractionEnd = 1000;
133  //width of the chute (in particle diameters, will be rounded to multiples of 10)
134  double yContractionStart = 10;
135  //width of the chute at end of contraction (in particle diameters)
136  double yContractionEnd = 10;
137  //creates chute with contraction
138  std::string name("../ini/H10A21L2M0.5B0.5");
139  if (argc>1&&argv[1][0]!='-') { name=argv[1]; argc--; argv++;}
141  xContractionStart, xContractionEnd, yContractionStart, yContractionEnd);
142  //optional: use auto-numbering
143  problem.autoNumber();
144  //set end time of simulation
145  problem.setTimeMax(1e4);
146  //set after how many time steps data is saved
147  problem.setSaveCount(5e3);
148  //for better output
149  problem.setXBallsAdditionalArguments("-v0 -solidf -h 600 -w 1400 ");
150  //determines which data are created
151  problem.dataFile.setFileType(FileType::ONE_FILE);
152  problem.eneFile.setFileType(FileType::ONE_FILE);
153  problem.restartFile.setFileType(FileType::ONE_FILE);
154  problem.fStatFile.setFileType(FileType::ONE_FILE);
155  // previously
156  //problem.restartFile.setFileType(FileType::ONE_FILE);
157  //problem.dataFile.setFileType(FileType::ONE_FILE);
158  //problem.fStatFile.setFileType(FileType::NO_FILE);
159  //problem.eneFile.setFileType(FileType::ONE_FILE);
160 
161  //run the simulation
162  problem.solve(argc, argv);
163 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
Definition: ChuteWithPeriodicInflow.cpp:30
std::string name
Definition: MercuryProb.h:48

References DPMBase::autoNumber(), DPMBase::dataFile, DPMBase::eneFile, DPMBase::fStatFile, units::name, ONE_FILE, DPMBase::restartFile, File::setFileType(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setXBallsAdditionalArguments(), and DPMBase::solve().