55 std::cout <<
"X" << std::endl;
57 std::cout <<
"X" << std::endl;
59 std::cout <<
"X" << std::endl;
61 std::cout <<
"X" << std::endl;
63 std::cout <<
"Y" << std::endl;
64 species0->setCollisionTimeAndRestitutionCoefficient(0.01,0.25,2);
65 std::cout <<
"Z" << std::endl;
66 write(std::cout,
false);
67 species01->setCollisionTimeAndRestitutionCoefficient(0.01,0.5,2);
68 std::cout <<
"Y" << std::endl;
87 std::cout <<
"X" << std::endl;
101 std::cout << std::endl <<
"Simulation of one particle, d=0.1, interacting with walls with different coefficeient of resitution" << std::endl;
102 std::cout << std::endl <<
"The purpose of the test is to check walls species information is correctly picked up" << std::endl;
104 problem.
setName(
"wallSpecies");
virtual void write(std::ostream &os, bool writeAllParticles=true) const
Loads all MD data and plots statistics for all timesteps in the .data file.
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...
Mdouble X
the vector components
void setVelocity(const Vec3D &velocity)
set the velocity of the BaseInteractable.
void setTimeMax(Mdouble newTMax)
Allows the upper time limit to be changed.
void setIndSpecies(unsigned int indSpecies)
Define the species of this wall using the index of the species in the SpeciesHandler in this DPMBase...
int main(int argc UNUSED, char *argv[] UNUSED)
void setParticleDimensions(unsigned int particleDimensions)
Allows the dimension of the particle (f.e. for mass) to be changed. e.g. discs or spheres...
void setZMax(Mdouble newZMax)
If the length of the problem domain in z-direction is XMax - XMin, this method sets ZMax...
void setSystemDimensions(unsigned int newDim)
Allows for the dimension of the simulation to be changed.
void setGravity(Vec3D newGravity)
Allows to modify the gravity vector.
T square(T val)
squares a number
void setRadius(const Mdouble radius)
Sets the particle's radius_ (and adjusts the mass_ accordingly, based on the particle's species) ...
this tests if moving the wall works with CWall::move(Vec3D velocity,Vec3D dt).
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.
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 setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Species< LinearViscoelasticNormalSpecies > LinearViscoelasticSpecies
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. elastic, linear visco-elastic... et cetera...
U::MixedSpeciesType * getMixedObject(const U *S, const U *T)
WallHandler wallHandler
An object of the class WallHandler. Contains pointers to all the walls created.
void setPosition(const Vec3D &position)
Sets the position of this BaseInteractable.
void set(Vec3D normal, Vec3D point)
Defines a standard wall, given an outward normal vector s.t. normal*x=normal*point for all x of the w...
Contains contact force properties for contacts between particles with two different species...
Mdouble getZMin() const
If the length of the problem domain in z-direction is ZMax - ZMin, then getZMin() returns ZMin...
double getInfo(const BaseParticle &P0) const
A virtual method that allows the user to overrride and set what is written into the info column in th...
void setTimeStep(Mdouble newDt)
Allows the time step dt to be changed.
This is a class defining walls.
Contains material and contact force properties.
virtual const Vec3D & getVelocity() const
Returns the velocity of this interactable.
Implementation of a 3D vector (by Vitaliy).
void setupInitialConditions()
This function allows to set the initial conditions for our problem to be solved, by default particle ...