79 species->setDensity(2400.0);
81 problem.setInflowParticleRadius(0.3e-3,0.60e-3);
82 double mass = 0.5*species->getMassFromRadius(0.5*(
problem.getMinInflowParticleRadius() +
problem.getMaxInflowParticleRadius()));
83 species->setCollisionTimeAndRestitutionCoefficient(4
e-4,0.6,mass);
84 species->setSlidingDissipation(species->getDissipation());
85 species->setSlidingFrictionCoefficient(0.8);
86 problem.setFixedParticleRadius(0.3e-3);
91 problem.setChuteLength(600.0e-3);
95 double ExitHeight = 12.0e-3, ExitLength = 1.0 * ExitHeight, hopperAngle_ = 60.0, hopperLength_ = 6.0 * ExitLength;
96 Mdouble hopperLowestPoint_ = ExitHeight - ExitLength *
tan(
problem.getChuteAngle());
98 hopperLowestPoint_ + 1.1 * 0.5 * (hopperLength_ + ExitLength) /
tan(hopperAngle_ *
constants::pi / 180.0);
100 hopperHeight_ - 0.5 * (hopperLength_ - ExitLength) /
tan(hopperAngle_ *
constants::pi / 180.0);
101 if (HopperCornerHeight <= 0.0)
103 hopperHeight_ += -HopperCornerHeight +
problem.getMaxInflowParticleRadius();
104 HopperCornerHeight =
problem.getMaxInflowParticleRadius();
106 problem.setHopper(ExitLength, ExitHeight, hopperAngle_, hopperLength_, hopperHeight_);
110 problem.setTimeStep(0.02 * species->getCollisionTime(mass));
117 problem.write(std::cout,
false);
121 problem.setXBallsColourMode(7);
122 problem.setXBallsVectorScale(1);
124 problem.setXBallsAdditionalArguments(
"-v0 -solidf");
@ MONOLAYER_DISORDERED
Definition: Chute.h:32
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Species< LinearViscoelasticNormalSpecies, FrictionSpecies > LinearViscoelasticFrictionSpecies
Definition: LinearViscoelasticFrictionSpecies.h:12
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Definition: Chute/segregation_with_hopper.cpp:17
#define INFO(i)
Definition: mumps_solver.h:54
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 tan(const bfloat16 &a)
Definition: BFloat16.h:633
const Mdouble pi
Definition: ExtendedMath.h:23
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
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213