PeriodicInflow2D.cpp File Reference

Classes

class  ContractionWithPeriodicInflow
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
108 {
109  //x-coordinate where the contraction begins (in particle diameters)
110  double xContractionStart = 20;
111  //x-coordinate where the contraction ends,
112  //(in particle diameters, will be rounded to multiples of 20)
113  double xContractionEnd = xContractionStart;
114  //width of the chute (in particle diameters, will be rounded to multiples of 10)
115  double yContractionStart = 2;
116  //width of the chute at end of contraction (in particle diameters)
117  double yContractionEnd = yContractionStart;
118  //creates chute with contraction
119  ContractionWithPeriodicInflow problem("../PeriodicInflow2D_Initiation/H5A28L1M0.5B0.5",
120  xContractionStart, xContractionEnd, yContractionStart, yContractionEnd);
121  //optional: use auto-numbering
122  //problem.auto_number();
123  //set end time of simulation
124  problem.setTimeMax(30);
125  //set after how many time steps data is saved
126  problem.setSaveCount(2e3);
127  //for better output
128  problem.setXBallsAdditionalArguments("-v0 -solidf -h 600 -w 1400 ");
129  //determines which data are created
130  problem.restartFile.setFileType(FileType::ONE_FILE);
131  problem.dataFile.setFileType(FileType::ONE_FILE);
132  problem.fStatFile.setFileType(FileType::ONE_FILE);
133  problem.eneFile.setFileType(FileType::ONE_FILE);
134  //run the simulation
135  problem.solve(argc, argv);
136 }
@ 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.