65 species->setCollisionTimeAndRestitutionCoefficient(tc, r, minMass);
71 [velocity] (
double time) {
return time*velocity; },
72 [velocity] (
double time
UNUSED) {
return velocity; },
116 leesEdwardsSelfTest.
solve();
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 set(std::function< double(double)> shift, std::function< double(double)> velocity, Mdouble left, Mdouble right, Mdouble down, Mdouble up)
Sets all boundary properties.
Class which creates a boundary with Lees-Edwards type periodic boundary conditions.
void setTimeMax(Mdouble newTMax)
Allows the upper time limit to be changed.
LinearViscoelasticSpecies * species
void setYMin(Mdouble newYMin)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMin...
Mdouble getXMin() const
If the length of the problem domain in x-direction is XMax - XMin, then getXMin() returns XMin...
LeesEdwardsBoundary * leesEdwardsBoundary
Mdouble getYMin() const
If the length of the problem domain in y-direction is YMax - YMin, then getYMin() returns YMin...
void setSystemDimensions(unsigned int newDim)
Allows for the dimension of the simulation to be changed.
int main(int argc UNUSED, char *argv[] UNUSED)
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) ...
Mdouble getXMax() const
If the length of the problem domain in x-direction is XMax - XMin, then getXMax() returns XMax...
void setYMax(Mdouble newYMax)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMax...
File eneFile
An instance of class File to handle in- and output into a .ene file.
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.
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...
void setDensity(Mdouble density)
Allows the density to be changed.
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
File dataFile
An instance of class File to handle in- and output into a .data file.
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_.
Species< LinearViscoelasticNormalSpecies > LinearViscoelasticSpecies
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...
Mdouble getYMax() const
If the length of the problem domain in y-direction is YMax - YMin, then getYMax() returns XMax...
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
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).
File statFile
An instance of class File to handle in- and output into a .stat file.
void setupInitialConditions()
This function allows to set the initial conditions for our problem to be solved, by default particle ...
This adds on the hierarchical grid code for 2D problems.