RotatingDrumClumps.cpp File Reference

Classes

class  multiParticleT1
 

Functions

int main (int argc, char *argv[])
 

Variables

Mdouble f_min = -4
 
Mdouble f_max = 4
 
Mdouble z_shift = 2
 
Mdouble margin = 2
 
Mdouble z_margin = 2.8
 
Mdouble av_min = 0
 
Mdouble av_max = 0
 
Mdouble tv_min = 0
 
Mdouble tv_max = 0
 
int N_att = 1000
 
int SAVECOUNT = 400
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
169 {
170  multiParticleT1 problem;
172  species->setDensity(1.0); // sets the species type-0 density
173  species->setDissipation(50.0);
174  species->setStiffness(1e6);
175 
176  species->setSlidingFrictionCoefficient(0.6);
177  species->setSlidingStiffness(5e5);
178  species->setRollingFrictionCoefficient(0.0);
179  species->setRollingStiffness(5e5);
180 
181  const Mdouble collisionTime = species->getCollisionTime(problem.getClumpMass());
182  problem.setClumpDamping(0);
183  problem.setTimeStep(collisionTime / 50.0);
184  problem.setSaveCount(SAVECOUNT);
185  //problem.setHGridMaxLevels(1);
186  //problem.setTimeMax(48.0);
187  problem.setTimeMax(0.1);
188 
189  problem.removeOldFiles();
190  problem.solve();
191  return 0;
192 }
Species< LinearViscoelasticNormalSpecies, FrictionSpecies > LinearViscoelasticFrictionSpecies
Definition: LinearViscoelasticFrictionSpecies.h:34
int SAVECOUNT
Definition: RotatingDrumClumps.cpp:48
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:379
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
void removeOldFiles() const
Definition: DPMBase.cc:4422
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
Definition: Domino.cpp:80
Mdouble getClumpMass()
Definition: Domino.cpp:99
void setClumpDamping(Mdouble damp)
Definition: Domino.cpp:95

References BaseHandler< T >::copyAndAddObject(), multiParticleT1::getClumpMass(), DPMBase::removeOldFiles(), SAVECOUNT, multiParticleT1::setClumpDamping(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), DPMBase::solve(), and DPMBase::speciesHandler.

Variable Documentation

◆ av_max

◆ av_min

◆ f_max

◆ f_min

◆ margin

◆ N_att

int N_att = 1000

◆ SAVECOUNT

int SAVECOUNT = 400

Referenced by main().

◆ tv_max

◆ tv_min

◆ z_margin

Mdouble z_margin = 2.8

◆ z_shift