95 std::cout<<
"Hourglass Simulation" <<std::endl;
108 species->setDensity(2000);
115 Mdouble ContractionWidth = 2.5e-2;
116 Mdouble ContractionHeight = 5e-2;
129 species->setDensity(2000.0);
139 species->setStiffness(1e5);
140 species->setDissipation(0.63);
142 species->setSlidingFrictionCoefficient(0.5);
143 species->setSlidingStiffness(1.2e4);
144 species->setSlidingDissipation(0.16);
146 species->setRollingFrictionCoefficient(0.2);
147 species->setRollingStiffness(1.2e4);
148 species->setRollingDissipation(6.3e-2);
150 species->setTorsionFrictionCoefficient(0.1);
151 species->setTorsionStiffness(1.2e4);
152 species->setSlidingDissipation(6.3e-2);
157 std::cout <<
"MinParticleMass =" << MinParticleMass << std::endl;
159 Mdouble tc = species->getCollisionTime(MinParticleMass);
160 std::cout <<
"tc =" << tc << std::endl;
162 Mdouble r = species->getRestitutionCoefficient(MinParticleMass);
163 std::cout <<
"r =" << r << std::endl;
174 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.
void setYMin(Mdouble newYMin)
If the length of the problem domain in y-direction is YMax - YMin, this method sets YMin...
Mdouble MinParticleRadius
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...
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.
Mdouble MaxParticleRadius
void setTimeStep(Mdouble newDt)
Allows the time step dt to be changed.
Implementation of a 3D vector (by Vitaliy).
Mdouble ContractionHeight