PeriodicInflow2D.cpp File Reference

Classes

class  ContractionWithPeriodicInflow
 

Functions

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

Function Documentation

◆ main()

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

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