47 species.setStiffness(1e2);
48 species.setAdhesionStiffness(1e2);
50 species.setAdhesionForceMax(1e-1 * species.getAdhesionStiffness());
51 species.setRollingFrictionCoefficient(1e20);
52 species.setRollingStiffness(1.0);
63 Vec3D normal_left(s,-c,0.0);
64 Vec3D normal_right(0.0,-1.0,0.0);
65 Vec3D origin(0.0,0.0,0.0);
66 b.
set(normal_left,normal_right,origin);
109 dpm.
setName(
"AngledPeriodicBoundaryUnitTest");
119 dpm.
solve(argc, argv);
void set(Vec3D normal, Mdouble distanceLeft, Mdouble distanceRight)
Defines a periodic wall.
void setXMax(Mdouble newXMax)
If the length of the problem domain in x-direction is XMax - XMin, this method sets XMax...
void solve()
The work horse of the code.
The DPMBase header includes quite a few header files, defining all the handlers, which are essential...
void setTimeMax(Mdouble newTMax)
Allows the upper time limit to be changed.
void setYMin(Mdouble newYMin)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMin...
int main(int argc UNUSED, char *argv[] UNUSED)
void setZMax(Mdouble newZMax)
If the length of the problem domain in z-direction is XMax - XMin, this method sets ZMax...
void setSpecies(const ParticleSpecies *species)
void setGravity(Vec3D newGravity)
Allows to modify the gravity vector.
void setRadius(const Mdouble radius)
Sets the particle's radius_ (and adjusts the mass_ accordingly, based on the particle's species) ...
AngledPeriodicBoundaryUnitTest()
Defines a pair of periodic walls. Inherits from BaseBoundary.
void setYMax(Mdouble newYMax)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMax...
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
U * copyAndAddObject(const U &O)
Creates a copy of a Object and adds it to the BaseHandler.
BoundaryHandler boundaryHandler
An object of the class BoundaryHandler which concerns insertion and deletion of particles into or fro...
void setXMin(Mdouble newXMin)
If the length of the problem domain in x-direction is XMax - XMin, this method sets XMin...
ParticleHandler particleHandler
An object of the class ParticleHandler, contains the pointers to all the particles created...
T * getObject(const unsigned int id)
Gets a pointer to the Object at the specified index in the BaseHandler.
void setDensity(Mdouble density)
Allows the density to be changed.
void set(Vec3D normalLeft, Vec3D normalRight, Vec3D origin)
Defines a periodic wall.
void setZMin(Mdouble newZMin)
If the length of the problem domain in z-direction is ZMax - ZMin, this method sets ZMin...
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. elastic, linear visco-elastic... et cetera...
void setupInitialConditions()
This function allows to set the initial conditions for our problem to be solved, by default particle ...
void setPosition(const Vec3D &position)
Sets the position of this BaseInteractable.
void setTimeStep(Mdouble newDt)
Allows the time step dt to be changed.
Contains material and contact force properties.
Implementation of a 3D vector (by Vitaliy).
Mdouble getTimeStep() const
Allows the time step dt to be accessed.
void setAngularVelocity(const Vec3D &angularVelocity)
set the angular velocity of the BaseInteractble.