ContractionWithPeriodicInflow.cpp File Reference

Classes

class  ContractionWithPeriodicInflow
 

Functions

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

Function Documentation

◆ main()

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

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