236 species0->setDensity(1.0);
238 species0->setSlidingFrictionCoefficient(0.0);
239 species0->setSlidingStiffness(5e5);
240 species0->setRollingFrictionCoefficient(0.0);
241 species0->setRollingStiffness(5e5);
242 species0->setDissipation(1.0);
243 species0->setStiffness(1e6);
244 const Mdouble collisionTime = species0->getCollisionTime(
D.
mass);
246 species01->setSlidingFrictionCoefficient(0.2);
247 species01->setSlidingStiffness(5e5);
248 species01->setRollingFrictionCoefficient(0.1);
249 species01->setDissipation(1.0);
250 species01->setRollingStiffness(5e5);
251 species01->setStiffness(1e6);
272 std::cout<<
"DOMINO VELOCITY: "<<
D.
velocity<<std::endl;
273 std::cout<<
"N_ini: "<<
D.
N_ini<<std::endl;
274 std::cout<<
"N_fin: "<<
D.
N_fin<<std::endl;
275 std::cout<<
"T1: "<<
D.
T1<<std::endl;
276 std::cout<<
"T2: "<<
D.
T2<<std::endl;
279 std::ofstream funct(
"velocity.txt", std::ios_base::app | std::ios_base::out);
dominoes D
Definition: Domino.cpp:76
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
std::enable_if<!std::is_pointer< typename U::MixedSpeciesType >::value, typename U::MixedSpeciesType * >::type getMixedObject(const U *S, const U *T)
Definition: SpeciesHandler.h:74
Definition: Domino.cpp:80
void setClumpDamping(Mdouble damp)
Definition: Domino.cpp:95
bool finished
Definition: Domino.cpp:67
Mdouble T2
Definition: Domino.cpp:69
int N_ini
Definition: Domino.cpp:64
bool started
Definition: Domino.cpp:66
Mdouble T1
Definition: Domino.cpp:68
Mdouble S_peb
Definition: Domino.cpp:44
Mdouble velocity
Definition: Domino.cpp:70
Mdouble mass
Definition: Domino.cpp:58
int N_fin
Definition: Domino.cpp:65