68 q.
setName(
"QuaternionWallUnitTest");
82 s->setCollisionTimeAndNormalAndTangentialRestitutionCoefficient(1,0.5,0.5,1);
83 s->setBondForceMax(.5);
84 s->setSlidingFrictionCoefficient(0.5);
85 s->setRollingStiffness(.2*s->getStiffness());
86 s->setRollingDissipation(.2*s->getDissipation());
87 s->setRollingFrictionCoefficient(0.2);
89 Mdouble angularVelocity = 0.025;
91 logger(
INFO,
"Create cylindrical wall rotating around its axis");
108 p.setRadius(0.50001);
109 p.setVelocity(
Vec3D(0, 0, 0));
110 p.setPosition(position +
Vec3D(0, 0, 1));
112 p.setPosition(position +
Vec3D(0, 0, -1));
114 p.setPosition(position +
Vec3D(1, 0, 0));
116 p.setPosition(position +
Vec3D(-1, 0, 0));
120 logger(
INFO,
"Create cubic wall rotating around its axis");
139 p.setRadius(0.50001);
140 p.setVelocity(
Vec3D(0, 0, 0));
141 p.setPosition(position +
Vec3D(0, 0, 1));
143 p.setPosition(position +
Vec3D(0, 0, -1));
145 p.setPosition(position +
Vec3D(1, 0, 0));
147 p.setPosition(position +
Vec3D(-1, 0, 0));
151 logger(
INFO,
"Create square outer wall rotating around the other walls");
160 [angularVelocity] (
Mdouble time)
161 {
return 5.0*
Vec3D(
sin(angularVelocity*time),0.0,
cos(angularVelocity*time)); });
168 [angularVelocity] (
Mdouble time)
169 {
return 5.0*
Vec3D(
sin(angularVelocity*time+0.5*
pi),0.0,
cos(angularVelocity*time+0.5*
pi)); });
175 [angularVelocity] (
Mdouble time)
176 {
return 5.0*
Vec3D(
sin(angularVelocity*time+
pi),0.0,
cos(angularVelocity*time+
pi)); });
182 [angularVelocity] (
Mdouble time)
183 {
return 5.0*
Vec3D(
sin(angularVelocity*time+1.5*
pi),0.0,
cos(angularVelocity*time+1.5*
pi)); });
188 p.setRadius(0.50001);
189 p.setVelocity(
Vec3D(0, 0, 0));
190 p.setPosition(
Vec3D( 0, 0,-4.5));
192 p.setPosition(
Vec3D(-4.5, 0, 0));
194 p.setPosition(
Vec3D( 0, 0, 4.5));
196 p.setPosition(
Vec3D( 4.5, 0, 0));
Species< LinearViscoelasticNormalSpecies, FrictionSpecies, BondedSpecies > LinearViscoelasticFrictionBondedSpecies
Definition: LinearViscoelasticFrictionBondedSpecies.h:35
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.
Use AxisymmetricIntersectionOfWalls to Screw Screw::read Screw::read Screw::read define axisymmetric ...
Definition: AxisymmetricIntersectionOfWalls.h:126
void setAxis(Vec3D a)
Definition: AxisymmetricIntersectionOfWalls.cc:152
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 setAngularVelocity(const Vec3D &angularVelocity)
set the angular velocity of the BaseInteractble.
Definition: BaseInteractable.cc:360
virtual void setPosition(const Vec3D &position)
Sets the position of this BaseInteractable.
Definition: BaseInteractable.h:239
void setPrescribedPosition(const std::function< Vec3D(double)> &prescribedPosition)
Allows the position of an infinite mass interactable to be prescribed.
Definition: BaseInteractable.cc:413
void setSpecies(const ParticleSpecies *species)
Defines the species of the current wall.
Definition: BaseWall.cc:169
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
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
void setDimension(unsigned int newDim)
Sets both the system dimensions and the particle dimensionality.
Definition: DPMBase.cc:1403
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
Definition: DPMBase.h:1447
void setMin(const Vec3D &min)
Sets the minimum coordinates of the problem domain.
Definition: DPMBase.cc:1118
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created.
Definition: DPMBase.h:1437
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
void setMax(const Vec3D &max)
Sets the maximum coordinates of the problem domain.
Definition: DPMBase.cc:1082
void setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1383
A infinite wall fills the half-space {point: (position_-point)*normal_<=0}.
Definition: InfiniteWall.h:48
void setNormal(Vec3D normal)
Changes the normal of the InfiniteWall.
Definition: InfiniteWall.cc:127
A IntersectionOfWalls is convex polygon defined as an intersection of InfiniteWall's.
Definition: IntersectionOfWalls.h:59
void addObject(Vec3D normal, Vec3D point)
Adds a wall to the set of infinite walls, given a normal vector pointing into the wall (i....
Definition: IntersectionOfWalls.cc:138
void setSpecies(const ParticleSpecies *species)
sets species of subwalls as well
Definition: IntersectionOfWalls.cc:72
Definition: QuaternionWallUnitTest.cpp:40
A spherical particle is the most simple particle used in MercuryDPM.
Definition: SphericalParticle.h:37
const Mdouble pi
Definition: ExtendedMath.h:45
Mdouble cos(Mdouble x)
Definition: ExtendedMath.cc:64
Mdouble sin(Mdouble x)
Definition: ExtendedMath.cc:44