108 std::cout<<
"Hourglass Simulation" <<std::endl;
128 Mdouble ContractionWidth = 2.5e-2;
129 Mdouble ContractionHeight = 5e-2;
152 species->setStiffness(1e5);
153 species->setDissipation(0.63);
155 species->setSlidingFrictionCoefficient(0.5);
156 species->setSlidingStiffness(1.2e4);
157 species->setSlidingDissipation(0.16);
159 species->setRollingFrictionCoefficient(0.2);
160 species->setRollingStiffness(1.2e4);
161 species->setRollingDissipation(6.3e-2);
163 species->setTorsionFrictionCoefficient(0.1);
164 species->setTorsionStiffness(1.2e4);
165 species->setSlidingDissipation(6.3e-2);
170 std::cout <<
"MinParticleMass =" << MinParticleMass << std::endl;
172 Mdouble tc = species->getCollisionTime(MinParticleMass);
173 std::cout <<
"tc =" << tc << std::endl;
175 Mdouble r = species->getRestitutionCoefficient(MinParticleMass);
176 std::cout <<
"r =" << r << std::endl;
186 std::cout <<
"N =" << HG.
N << std::endl;
188 HG.
solve(argc, argv);
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.
Mdouble MinParticleRadius
void setYMin(Mdouble newYMin)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMin...
void setZMax(Mdouble newZMax)
If the length of the problem domain in z-direction is XMax - XMin, this method sets ZMax...
Species< LinearViscoelasticNormalSpecies, FrictionSpecies > LinearViscoelasticFrictionSpecies
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...
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.
void setXMin(Mdouble newXMin)
If the length of the problem domain in x-direction is XMax - XMin, this method sets XMin...
void setDensity(Mdouble density)
Allows the density to be changed.
T cubic(T val)
calculates the cube of a number
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
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 setXBallsAdditionalArguments(std::string newXBArgs)
Set the additional arguments for xballs.
void setTimeStep(Mdouble newDt)
Allows the time step dt to be changed.
Mdouble MaxParticleRadius
Mdouble getDensity() const
Allows the density to be accessed.
Contains material and contact force properties.
Implementation of a 3D vector (by Vitaliy).
Mdouble ContractionHeight