82 std::cout<<
"In this file 32^2 particles with the same velocity are placed "
83 "in a bi-axial box. This makes them collide with the walls and eachother. "
84 "Afterwards the same run is performed with hgrid on. It tests the working "
85 "(and speedup) of the hgrid."<<std::endl;
90 species->setDensity(2000);
91 species->setDissipation(0.01);
92 species->setStiffness(1e4);
93 species->setSlidingFrictionCoefficient(0.1);
94 species->setDensity(2000);
95 species->setAdhesionStiffness(0.05* species->getStiffness());
96 species->setAdhesionForceMax(1.1e-4*0.05* species->getStiffness());
99 problem.
setName(
"free_cooling_adhesive");
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.
void setTimeMax(Mdouble newTMax)
Allows the upper time limit to be changed.
void setHGridUpdateEachTimeStep(bool updateEachTimeStep)
Sets whether or not the HGrid must be updated every time step.
void setGravity(Vec3D newGravity)
Allows to modify the gravity vector.
void setYMax(Mdouble newYMax)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMax...
file will not be created/read
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...
all data will be written into/ read from a single file called name_
T * getObject(const unsigned int id)
Gets a pointer to the Object at the specified index in the BaseHandler.
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
File dataFile
An instance of class File to handle in- and output into a .data file.
Mdouble getRadius() const
Returns the particle's radius_.
void setHGridMaxLevels(unsigned int HGridMaxLevels)
Sets the maximum number of levels of the HGrid in this MercuryBase.
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. elastic, linear visco-elastic... et cetera...
todo{This code is not working as is wanted}
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
void setTimeStep(Mdouble newDt)
Allows the time step dt to be changed.
Species< LinearViscoelasticNormalSpecies, SlidingFrictionSpecies, ReversibleAdhesiveSpecies > LinearViscoelasticSlidingFrictionReversibleAdhesiveSpecies
Implementation of a 3D vector (by Vitaliy).
Mdouble getInteractionRadius() const
Returns the particle's interaction radius, which might be different from radius_ (e.g., when dealing with wet particles)