ContractionWithPeriodicInflow.cpp File Reference

Classes

class  ContractionWithPeriodicInflow
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
105 {
106  //x-coordinate where the contraction begins (in particle diameters)
107  double xContractionStart = 60;
108  //x-coordinate where the contraction ends,
109  //(in particle diameters, will be rounded to multiples of 20)
110  double xContractionEnd = 106.5;
111  //width of the chute (in particle diameters, will be rounded to multiples of 10)
112  double yContractionStart = 10;
113  //width of the chute at end of contraction (in particle diameters)
114  double yContractionEnd = 4;
115  //creates chute with contraction
116  ContractionWithPeriodicInflow problem("../ini/H31A28L2M0.5B0.5",
117  xContractionStart, xContractionEnd, yContractionStart, yContractionEnd);
118  //optional: use auto-numbering
119  problem.autoNumber();
120  //set end time of simulation
121  problem.setTimeMax(1e4);
122  //set after how many time steps data is saved
123  problem.setSaveCount(5e3);
124  //for better output
125  problem.setXBallsAdditionalArguments("-v0 -solidf -h 600 -w 1400 ");
126  //determines which data are created
127  problem.dataFile.setFileType(FileType::ONE_FILE);
128  problem.eneFile.setFileType(FileType::ONE_FILE);
129  problem.restartFile.setFileType(FileType::ONE_FILE);
130  problem.fStatFile.setFileType(FileType::ONE_FILE);
131  //run the simulation
132  problem.solve(argc, argv);
133 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
Definition: ChuteWithPeriodicInflow.cpp:9
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References ONE_FILE, and problem.