ChuteWithPeriodicInflow.cpp File Reference

Classes

class  ContractionWithPeriodicInflow
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
106 {
107  //x-coordinate where the contraction begins (in particle diameters)
108  double xContractionStart = 60;
109  //x-coordinate where the contraction ends,
110  //(in particle diameters, will be rounded to multiples of 20)
111  double xContractionEnd = 1000;
112  //width of the chute (in particle diameters, will be rounded to multiples of 10)
113  double yContractionStart = 10;
114  //width of the chute at end of contraction (in particle diameters)
115  double yContractionEnd = 10;
116  //creates chute with contraction
117  std::string name("../ini/H10A21L2M0.5B0.5");
118  if (argc>1&&argv[1][0]!='-') { name=argv[1]; argc--; argv++;}
120  xContractionStart, xContractionEnd, yContractionStart, yContractionEnd);
121  //optional: use auto-numbering
122  problem.autoNumber();
123  //set end time of simulation
124  problem.setTimeMax(1e4);
125  //set after how many time steps data is saved
126  problem.setSaveCount(5e3);
127  //for better output
128  problem.setXBallsAdditionalArguments("-v0 -solidf -h 600 -w 1400 ");
129  //determines which data are created
130  problem.dataFile.setFileType(FileType::ONE_FILE);
131  problem.eneFile.setFileType(FileType::ONE_FILE);
132  problem.restartFile.setFileType(FileType::ONE_FILE);
133  problem.fStatFile.setFileType(FileType::ONE_FILE);
134  // previously
135  //problem.restartFile.setFileType(FileType::ONE_FILE);
136  //problem.dataFile.setFileType(FileType::ONE_FILE);
137  //problem.fStatFile.setFileType(FileType::NO_FILE);
138  //problem.eneFile.setFileType(FileType::ONE_FILE);
139 
140  //run the simulation
141  problem.solve(argc, argv);
142 }
@ ONE_FILE
all data will be written into/ read from a single file called name_
Definition: ChuteWithPeriodicInflow.cpp:9
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
string name
Definition: plotDoE.py:33
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References plotDoE::name, ONE_FILE, problem, and oomph::Global_string_for_annotation::string().