AngleOfRepose.cpp File Reference
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cmath>
#include "ChuteWithHopper.h"
#include "Species/LinearViscoelasticSlidingFrictionSpecies.h"
#include "Walls/InfiniteWall.h"

Classes

class  AngleOfRepose
 

Functions

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

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
269 {
271 
272  //Problem parameters
273  //~ problem.setTimeMax(1000.0);
274  problem.setTimeMax(1.0);
275 
276  //Chute properties
277  problem.setChuteAngle(0.0);
278  //~ problem.setChuteLength(200.0);
279  problem.setChuteLength(20.0);
280  problem.setChuteWidth(problem.getChuteLength());
281  problem.Height = std::max(5.,problem.getChuteLength() * 0.5 * tan( 25.0 *constants::pi/180.0));
282  problem.setMaxFailed(1);
283 
284  int study_num;
285  if (argc>1) {
286  study_num=atoi(argv[1]);
287  } else
288  {
289  study_num = 0;
290  logger(ERROR, "Please enter study number");
291  }
292  problem.run(study_num);
293 }
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
Definition: AngleOfRepose.cpp:14
#define max(a, b)
Definition: datatypes.h:23
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 tan(const bfloat16 &a)
Definition: BFloat16.h:633
const Mdouble pi
Definition: ExtendedMath.h:23
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213

References ERROR, logger, max, constants::pi, problem, and Eigen::bfloat16_impl::tan().