T_protectiveWall.cpp File Reference

Classes

class  T_protectiveWall
 [AT_PW:headers] More...
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)

[AT_PW:setUp]

[AT_PW:setUp]

216 {
217  std::cout << "Write './T_protectiveWall -Np 100 -r 0.05 -h 0.5 -w 1.0 -l 5.0 -s 20.0 -t 2.0' to run the program" << std::endl;
218 
220  int Nump = helpers::readFromCommandLine(argc,argv,"-Np",500); //100 partilces inserted by default
221  Mdouble pRadius = helpers::readFromCommandLine(argc,argv,"-r",0.01); //by default is 2.0
222  Mdouble height = helpers::readFromCommandLine(argc,argv,"-h",0.1); //by default is 2.0
223  Mdouble width = helpers::readFromCommandLine(argc,argv,"-w",0.25); //by default is 1.0
224  Mdouble length = helpers::readFromCommandLine(argc,argv,"-l",1.0); //by default is 4.0
225  Mdouble slopeAngle = helpers::readFromCommandLine(argc,argv,"-s",15.0); //by default is 20 degrees
226 
227  T_protectiveWall problem(Nump,pRadius,height,width,length,slopeAngle);
228 
229  Mdouble simTime = helpers::readFromCommandLine(argc,argv,"-t",20.0); //by default is 5.0
230  problem.setTimeMax(simTime);
232 
233  problem.removeOldFiles();
234  problem.solve();
235 
236  return 0;
237 }
[AT_PW:headers]
Definition: T_protectiveWall.cpp:44
bool readFromCommandLine(int argc, char *argv[], std::string varName)
Returns true if command line arguments contain varName, false else.
Definition: CommandLineHelpers.cc:103

References helpers::readFromCommandLine(), DPMBase::removeOldFiles(), DPMBase::setTimeMax(), and DPMBase::solve().