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]

195 {
196  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;
197 
199  int Nump = helpers::readFromCommandLine(argc,argv,"-Np",500); //100 partilces inserted by default
200  Mdouble pRadius = helpers::readFromCommandLine(argc,argv,"-r",0.01); //by default is 2.0
201  Mdouble height = helpers::readFromCommandLine(argc,argv,"-h",0.1); //by default is 2.0
202  Mdouble width = helpers::readFromCommandLine(argc,argv,"-w",0.25); //by default is 1.0
203  Mdouble length = helpers::readFromCommandLine(argc,argv,"-l",1.0); //by default is 4.0
204  Mdouble slopeAngle = helpers::readFromCommandLine(argc,argv,"-s",15.0); //by default is 20 degrees
205 
206  T_protectiveWall problem(Nump,pRadius,height,width,length,slopeAngle);
207 
208  Mdouble simTime = helpers::readFromCommandLine(argc,argv,"-t",20.0); //by default is 5.0
209  problem.setTimeMax(simTime);
211 
212  problem.removeOldFiles();
213  problem.solve();
214 
215  return 0;
216 }
[AT_PW:headers]
Definition: T_protectiveWall.cpp:23
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
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References Global_Physical_Variables::height(), problem, and helpers::readFromCommandLine().

Referenced by oomph::AddedMainNumberingLookup::main_to_added(), and oomph::AddedMainNumberingLookup::unsafe_main_to_added().