Gomboc.cpp File Reference

Classes

class  multiParticleT1
 

Functions

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

Variables

Mdouble f_min = -2
 
Mdouble f_max = 2
 
int SAVECOUNT = 400
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
149 {
150  multiParticleT1 problem;
152  species->setDensity(1.0); // sets the species type-0 density
153  species->setDissipation(30.0);
154  species->setStiffness(1e6);
155 
156  species->setSlidingFrictionCoefficient(0.6);
157  species->setSlidingStiffness(5e5);
158  species->setRollingFrictionCoefficient(0.0);
159  species->setRollingStiffness(5e5);
160 
161  const Mdouble collisionTime = species->getCollisionTime(problem.getClumpMass());
162  problem.setClumpDamping(0.01);
163  problem.setTimeStep(collisionTime / 50.0);
164  problem.setSaveCount(SAVECOUNT);
165  problem.setHGridMaxLevels(1);
166  problem.setTimeMax(30.0);
167  problem.removeOldFiles();
168  problem.solve();
169  return 0;
170 }
double Mdouble
Definition: GeneralDefine.h:34
int SAVECOUNT
Definition: Gomboc.cpp:37
Species< LinearViscoelasticNormalSpecies, FrictionSpecies > LinearViscoelasticFrictionSpecies
Definition: LinearViscoelasticFrictionSpecies.h:34
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
void setHGridMaxLevels(unsigned int HGridMaxLevels)
Sets the maximum number of levels of the HGrid in this MercuryBase.
Definition: MercuryBase.cc:476
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(), MercuryBase::setHGridMaxLevels(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), DPMBase::solve(), and DPMBase::speciesHandler.

Variable Documentation

◆ f_max

Mdouble f_max = 2

◆ f_min

Mdouble f_min = -2

◆ SAVECOUNT

int SAVECOUNT = 400