57 twoParticleClassicalWilletCollisionProblem.
setName(
"TwoParticleClassicalWilletCollisionSelfTest");
61 species.setDissipation(0.16);
62 species.setSlidingDissipation(0.16);
63 Mdouble particleElasticModulus = 5e6;
64 Mdouble particlePoissonRatio = 0.35;
65 Mdouble particleSlidingFrictionCoefficient = 0.50;
67 Mdouble particleShearModulus = particleElasticModulus/ 2 /(1+particlePoissonRatio);
68 Mdouble particleEffectiveShearModulus = particleShearModulus/(2-particlePoissonRatio);
69 Mdouble particleEffectiveElasticModulus = particleElasticModulus/(1-particlePoissonRatio*particlePoissonRatio);
70 species.setEffectiveElasticModulus(particleEffectiveElasticModulus/2);
71 species.setEffectiveShearModulus(particleEffectiveShearModulus/2);
72 species.setSlidingFrictionCoefficient(particleSlidingFrictionCoefficient);
73 species.setLiquidBridgeVolume(8
e-11);
74 species.setContactAngle(0);
75 species.setSurfaceTension(0.070);
80 twoParticleClassicalWilletCollisionProblem.
setTimeStep(rayleighTime*0.1);
83 twoParticleClassicalWilletCollisionProblem.
setTimeMax(0.25);
84 twoParticleClassicalWilletCollisionProblem.
setSaveCount(twoParticleClassicalWilletCollisionProblem.
getTimeMax()/twoParticleClassicalWilletCollisionProblem.
getTimeStep());
86 twoParticleClassicalWilletCollisionProblem.
solve();
Array< double, 1, 3 > e(1./3., 0.5, 2.)
@ MULTIPLE_FILES_PADDED
each time-step will be written into/read from separate files numbered consecutively,...
std::enable_if<!std::is_pointer< U >::value, U * >::type copyAndAddObject(const U &object)
Creates a copy of a Object and adds it to the BaseHandler.
Definition: BaseHandler.h:360
void setSaveCount(unsigned int saveCount)
Sets File::saveCount_ for all files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:386
SpeciesHandler speciesHandler
A handler to that stores the species type i.e. LinearViscoelasticSpecies, etc.
Definition: DPMBase.h:1433
File fStatFile
An instance of class File to handle in- and output into a .fstat file.
Definition: DPMBase.h:1489
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:400
Mdouble getTimeStep() const
Returns the simulation time step.
Definition: DPMBase.cc:1241
void setTimeStep(Mdouble newDt)
Sets a new value for the simulation time step.
Definition: DPMBase.cc:1225
void setTimeMax(Mdouble newTMax)
Sets a new value for the maximum simulation duration.
Definition: DPMBase.cc:864
void solve()
The work horse of the code.
Definition: DPMBase.cc:4334
Mdouble getTimeMax() const
Returns the maximum simulation duration.
Definition: DPMBase.cc:879
void setFileType(FileType fileType)
Sets the type of file needed to write into or read from. File::fileType_.
Definition: File.cc:193
void setDensity(Mdouble density)
Definition: ParticleSpecies.cc:88
Mdouble getDensity() const
Allows density_ to be accessed.
Definition: ParticleSpecies.cc:98
Contains material and contact force properties.
Definition: Species.h:14
In this file two particles are symmetrically placed in a bi-axial box are allowed to jump around unde...
Definition: TwoParticleClassicalWilletCollisionSelfTest.cpp:13
Mdouble getRayleighTime(Mdouble radius, Mdouble shearModulus, Mdouble poisson, Mdouble density)
Returns the Rayleigh time step for a Hertz contact law.
Definition: FormulaHelpers.cc:25