ProtectiveWall.cpp File Reference

Classes

class  protectiveWall
 [AT_PW:headers] More...
 

Functions

int main (int argc, char *argv[])
 [AT_PW:MainClass] More...
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

[AT_PW:MainClass]

[AT_PW:Mainfunction]

[AT_PW:setUp]

[AT_PW:setUp]

211 {
212  //Helper
213  logger(INFO,
214  "Write in the terminal after the compilation'./ProtectiveWall -Np 500 -r 0.01 -h 0.1 -w 0.25 -l 1.0 -s 15.0 -t "
215  "20.0' to run the program");
216 
218  int Nump = helpers::readFromCommandLine(argc, argv, "-Np", 50); //50 particles
219  Mdouble pRadius = helpers::readFromCommandLine(argc, argv, "-r", 0.01); //0.01 [m]
220  Mdouble height = helpers::readFromCommandLine(argc, argv, "-h", 0.1); //0.1 [m]
221  Mdouble width = helpers::readFromCommandLine(argc, argv, "-w", 0.25); //0.25 [m]
222  Mdouble length = helpers::readFromCommandLine(argc, argv, "-l", 1.0); //1.0 [m]
223  Mdouble slopeAngle = helpers::readFromCommandLine(argc, argv, "-s", 15.0); //15 grades
224 
225  protectiveWall problem(Nump, pRadius, height, width, length, slopeAngle); //Object
226 
227  Mdouble simTime = helpers::readFromCommandLine(argc, argv, "-t", 5.0); // 5.0 [s]
228  problem.setTimeMax(simTime);
229  std::string simName = helpers::readFromCommandLine(argc,argv,"-name",std::string("protectiveWall"));
230  problem.setName(simName);
232 
233  problem.setSaveCount(400);
234  problem.setTimeStep(0.005 / 50.0); // (collision time)/50.0
235  problem.removeOldFiles();
236  problem.solve();
237  return 0;
238 }
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
[AT_PW:headers]
Definition: ProtectiveWall.cpp:19
#define INFO(i)
Definition: mumps_solver.h:54
double height(const double &x)
Height of domain.
Definition: simple_spine_channel.cc:429
bool readFromCommandLine(int argc, char *argv[], const std::string &varName)
Returns true if command line arguments contain varName, false else.
Definition: CommandLineHelpers.cc:99
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References Global_Physical_Variables::height(), INFO, logger, problem, helpers::readFromCommandLine(), and oomph::Global_string_for_annotation::string().