TBar.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[] 
)
134 {
135  multiParticleT1 problem;
137  species->setDensity(1.0); // sets the species type-0 density
138  //species->setConstantRestitution(0);
139  std::cout<<species->getConstantRestitution()<<std::endl;
140  species->setDissipation(0.0);
141  species->setStiffness(1e6);
142  const Mdouble collisionTime = species->getCollisionTime(problem.getClumpMass());
143  problem.setClumpDamping(0);
144  problem.setTimeStep(collisionTime / 50.0);
145 
146  // Quick demonstration
147  problem.setSaveCount(5000);
148  problem.setTimeMax(100);
149 
150 
151  // For time averaging featuring equipartition - takes a while
152  // problem.setSaveCount(50000);
153  // problem.setTimeMax(100000);
154 
155  problem.removeOldFiles();
156  problem.solve();
157  return 0;
158 }
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