44 species->setSlidingFrictionCoefficient(0.5);
45 species->setDensity(1442.0);
46 species->setCollisionTimeAndRestitutionCoefficient(4e-4, 1.0 - (0.12 * (50.0 / 15.0)), species->getMassFromRadius(
48 species->setSlidingStiffness(species->getStiffness() * 2.0 / 7.0);
49 species->setSlidingDissipation(species->getDissipation() * 2.0 / 7.0);
51 logger(
INFO,
"Setting k to % and disp to % with radius: %",
81 logger(
INFO,
"Chute inflow height: % Chute inflow velocity: % Chute inflow velocity variance: %",
87 double mass = species->getMassFromRadius(
89 problem.
setTimeStep(0.02 * species->getCollisionTime(mass));
@ MONOLAYER_DISORDERED
Definition: Chute.h:53
Species< LinearViscoelasticNormalSpecies, SlidingFrictionSpecies > LinearViscoelasticSlidingFrictionSpecies
Definition: LinearViscoelasticSlidingFrictionSpecies.h:34
LL< Log::INFO > INFO
Info log level.
Definition: Logger.cc:55
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
std::enable_if<!std::is_pointer< U >::value, U * >::type copyAndAddObject(const U &object)
Creates a copy of a Object and adds it to the BaseHandler.
Definition: BaseHandler.h:379
void setChuteWidth(Mdouble chuteWidth)
Sets the chute width (Y-direction)
Definition: Chute.cc:1039
void setInflowParticleRadius(Mdouble inflowParticleRadius)
Sets the radius of the inflow particles to a single one (i.e. ensures a monodisperse inflow).
Definition: Chute.cc:848
void setRoughBottomType(RoughBottomType roughBottomType)
Sets the type of rough bottom of the chute.
Definition: Chute.cc:714
virtual void setChuteLength(Mdouble chuteLength)
Sets the chute length (X-direction)
Definition: Chute.cc:1059
void setInflowVelocityVariance(Mdouble inflowVelocityVariance)
Sets the inflow velocity variance.
Definition: Chute.cc:1010
Mdouble getMaxInflowParticleRadius() const
Returns the maximum radius of inflow particles.
Definition: Chute.cc:947
Mdouble getInflowHeight() const
Returns the maximum inflow height (Z-direction)
Definition: Chute.cc:974
void setMaxFailed(unsigned int maxFailed)
Sets the number of times a particle will be tried to be added to the insertion boundary.
Definition: Chute.cc:827
void setInflowVelocity(Mdouble inflowVelocity)
Sets the average inflow velocity.
Definition: Chute.cc:983
Mdouble getMinInflowParticleRadius() const
returns the minimum radius of inflow particles
Definition: Chute.cc:938
Mdouble getInflowParticleRadius() const
Returns the average radius of inflow particles.
Definition: Chute.cc:929
Mdouble getInflowVelocity() const
Returns the average inflow velocity.
Definition: Chute.cc:1000
void setChuteAngle(Mdouble chuteAngle)
Sets gravity vector according to chute angle (in degrees)
Definition: Chute.cc:768
Mdouble getInflowVelocityVariance() const
Returns the inflow velocity variance.
Definition: Chute.cc:1029
Mdouble getChuteAngle() const
Returns the chute angle (in radians)
Definition: Chute.cc:807
void setFixedParticleRadius(Mdouble fixedParticleRadius)
Sets the particle radius of the fixed particles which constitute the (rough) chute bottom.
Definition: Chute.cc:653
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1427
Mdouble getYMin() const
If the length of the problem domain in y-direction is YMax - YMin, then getYMin() returns YMin.
Definition: DPMBase.h:632
Mdouble getTimeStep() const
Returns the simulation time step.
Definition: DPMBase.cc:1250
bool readArguments(int argc, char *argv[])
Can interpret main function input arguments that are passed by the driver codes.
Definition: DPMBase.cc:4391
Mdouble getYMax() const
If the length of the problem domain in y-direction is YMax - YMin, then getYMax() returns XMax.
Definition: DPMBase.h:638
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1234
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
Mdouble getTimeMax() const
Returns the maximum simulation duration.
Definition: DPMBase.cc:888
void set_funa(double funa_)
Set funnel angle:
Definition: Funnel.h:101
void set_funO(double x, double y)
Set funnel origin of the funnel:
Definition: Funnel.h:86
void setName_()
Definition: Funnel.cc:424
void set_funD(double funD_)
Set minimum funnel diameter:
Definition: Funnel.h:116
double get_funHf() const
Get falling heigth:
Definition: Funnel.h:113
void set_funfr(double funfr_)
Set the filling ratio.
Definition: Funnel.h:68
void set_funHf(double funHf_)
Set falling heigth:
Definition: Funnel.h:110
void set_funnz(double funnz_)
Set funnel number of particles along the funnel heigth:
Definition: Funnel.h:62
Mdouble sin(Mdouble x)
Definition: ExtendedMath.cc:44