364 logger(
ERROR,
"Wrong amount of command line inputs; Use ./fileName -sr ... -dr ...");
369 problem.setSizeRatio(sizeRatio);
370 problem.setDensityRatio(densityRatio);
372 std::stringstream dirNameBase;
374 dirNameBase << directoryName <<
"sizeRatio_" <<
problem.getSizeRatio() <<
"_densityRatio_" <<
problem.getDensityRatio();
376 std::stringstream fileNameStream;
378 fileNameStream << nameBase <<
"sizeRatio_" <<
problem.getSizeRatio() <<
"_densityRatio_" <<
problem.getDensityRatio();
379 std::stringstream saveTo;
380 saveTo << dirNameBase.str() <<
"/" << fileNameStream.str();
382 std::stringstream com;
383 com <<
"mkdir " << dirNameBase.str();
384 int status = system(com.str().c_str());
397 problem.setFixedParticleRadius(0.5);
399 problem.setChuteAngleAndMagnitudeOfGravity(26.0, 1.0);
409 problem.setTimeStep(5.e-3 / 50.0);
420 problem.setXBallsColourMode(7);
421 problem.setXBallsVectorScale(1);
422 problem.setXBallsAdditionalArguments(
"-v0 -solidf");
@ MULTILAYER
Definition: Chute.h:32
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
LL< Log::ERROR > ERROR
Error log level.
Definition: Logger.cc:32
This class does segregation problems in a periodic chute.
Definition: Chute/segregation.cpp:18
#define INFO(i)
Definition: mumps_solver.h:54
unsigned int getSaveCountFromNumberOfSavesAndTimeMaxAndTimeStep(unsigned int numberOfSaves, Mdouble timeMax, Mdouble timeStep)
Returns the correct saveCount if the total number of saves, the final time and the time step is known...
Definition: FormulaHelpers.cc:75
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