A three-dimensional hopper inflow.
19 logger(
INFO,
"Description: A three-dimensional hopper inflow.\n\n");
23 problem.setName(
"hopper_3d_demo");
29 species.setCollisionTimeAndRestitutionCoefficient(4
e-3, 0.6, 2400);
30 species.setSlidingDissipation(species.getDissipation());
31 species.setSlidingFrictionCoefficient(0.8);
32 problem.speciesHandler.copyAndAddObject(species);
39 problem.setInflowParticleRadius(0.5, 0.5);
40 problem.setFixedParticleRadius(0.0);
50 Mdouble ExitHeight = 4.0, ExitLength = 1.0 * ExitHeight, hopperAngle_ = 45.0, hopperLength_ = 3.0 * ExitLength;
51 Mdouble hopperLowestPoint_ = ExitHeight - ExitLength *
tan(
problem.getChuteAngle());
53 hopperLowestPoint_ + 1.1 * 0.5 * (hopperLength_ + ExitLength) /
tan(hopperAngle_ *
constants::pi / 180.0);
55 hopperHeight_ - 0.5 * (hopperLength_ - ExitLength) /
tan(hopperAngle_ *
constants::pi / 180.0);
56 if (HopperCornerHeight <= 0.0)
58 hopperHeight_ += -HopperCornerHeight +
problem.getInflowParticleRadius();
59 HopperCornerHeight =
problem.getInflowParticleRadius();
61 problem.setHopper(ExitLength, ExitHeight, hopperAngle_, hopperLength_, hopperHeight_);
67 problem.setXBallsAdditionalArguments(
"-sort -v0 -solidf -drotphi 0.05 -v0 -oh -200 -p 20 -noborder 3");
68 problem.setParticlesWriteVTK(
true);
@ MONOLAYER_ORDERED
Definition: Chute.h:32
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
ChuteWithHopper has a hopper as inflow.
Definition: ChuteWithHopper.h:18
void setDensity(Mdouble density)
Definition: ParticleSpecies.cc:88
Contains material and contact force properties.
Definition: Species.h:14
#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