Single.cpp File Reference

Classes

class  multiParticleT1
 

Functions

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

Variables

Mdouble f_min = -10
 
Mdouble f_max = 10
 

Function Documentation

◆ main()

int main ( int argc  ,
char argv[] 
)
122 {
123  multiParticleT1 problem;
125  species->setDensity(1.0); // sets the species type-0 density
126  //species->setConstantRestitution(0);
127  std::cout<<species->getConstantRestitution()<<std::endl;
128  species->setDissipation(0.0);
129  species->setStiffness(1e6);
130  const Mdouble collisionTime = species->getCollisionTime(problem.getClumpMass());
131  problem.setClumpDamping(0);
132  problem.setTimeStep(collisionTime / 50.0);
133 
134  // Quick demonstration
135  problem.setSaveCount(5000);
136  problem.setTimeMax(1000);
137 
138 
139  // For time averaging featuring equipartition - takes a while
140  // problem.setSaveCount(50000);
141  // problem.setTimeMax(100000);
142 
143  problem.removeOldFiles();
144  problem.solve();
145  return 0;
146 }
double Mdouble
Definition: GeneralDefine.h:34
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
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(), multiParticleT1::setClumpDamping(), DPMBase::setSaveCount(), DPMBase::setTimeMax(), DPMBase::setTimeStep(), DPMBase::solve(), and DPMBase::speciesHandler.

Variable Documentation

◆ f_max

Mdouble f_max = 10

◆ f_min

Mdouble f_min = -10