85 twoParticleElasticCollisionProblem.
setName(
"TwoBondedParticleElasticCollisionSelfTest");
90 species->setDensity(2000);
92 Mdouble mass = species->getMassFromRadius(radius);
95 species->setCollisionTimeAndNormalAndTangentialRestitutionCoefficient(tc,restitution,restitution,mass);
96 species->setSlidingFrictionCoefficient(0.05);
98 species->setBondForceMax(species->getStiffness()*radius*0.5);
101 twoParticleElasticCollisionProblem.
setTimeMax(0.3);
103 twoParticleElasticCollisionProblem.
setTimeStep(0.02*tc);
106 twoParticleElasticCollisionProblem.
solve();
@ NO_FILE
file will not be created/read
double Mdouble
Definition: GeneralDefine.h:34
Species< LinearViscoelasticNormalSpecies, SlidingFrictionSpecies, BondedSpecies > LinearViscoelasticSlidingFrictionBondedSpecies
Definition: LinearViscoelasticSlidingFrictionBondedSpecies.h:35
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:408
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1427
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
Definition: DPMBase.h:1483
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
void setXBallsAdditionalArguments(std::string newXBArgs)
Set the additional arguments for xballs.
Definition: DPMBase.cc:1347
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1234
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:873
void solve()
The work horse of the code.
Definition: DPMBase.cc:4270
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:215
void addObject(ParticleSpecies *S) override
Adds a new ParticleSpecies to the SpeciesHandler.
Definition: SpeciesHandler.cc:890
Definition: TwoBondedParticleElasticCollisionSelfTest.cpp:35