MarbleRunWithSeesaw.cpp File Reference
#include <iostream>
#include <Species/LinearViscoelasticFrictionSpecies.h>
#include <Walls/TriangleWall.h>
#include "Mercury3D.h"
#include "Walls/InfiniteWall.h"

Classes

class  MarbleRun
 

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )
297  {
298 
299  // Set up a problem of type MarbleRun
300  MarbleRun dpm;
301  // Set name of output files
302  dpm.setName("MarbleRun");
303  // Set name of output files
304  dpm.loadSTLFile("KnikkerbaanV12_compleet_without_seasaw.STL");
305  dpm.loadBigSeesaw();
306  dpm.loadSmallSeesaw();
307  // Set physical particle properties
308  dpm.setParticlePosition(Vec3D(0.6,0.8,0.03));
309  //dpm.setParticlePosition(Vec3D(0.24,0.23,0.03)); //position above big seesaw
310  //dpm.setParticlePosition(Vec3D(0.52,0.25,0.03)); //position above small seesaw
311  dpm.setParticleRadius(0.01);
312  // Set material particle properties
313  dpm.setParticleDensity(1000);
314  // Set contact properties
318  dpm.setRestitutionCoefficient(0.5);
319  // set gravity direction
320  dpm.setGravity(Vec3D(0,-9.8,0));
321  // Set simulation time
322  dpm.setTimeMax(2.5);
323  // start the solver
324  dpm.solve();
325 }
void setName(const std::string &name)
Allows to set the name of all the files (ene, data, fstat, restart, stat)
Definition: DPMBase.cc:422
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 setGravity(Vec3D newGravity)
Sets a new value for the gravitational acceleration.
Definition: DPMBase.cc:1383
Definition: MarbleRun.cpp:35
void setTorsionFrictionCoefficient(double coeff)
Definition: MarbleRun.cpp:71
void loadSmallSeesaw()
Definition: MarbleRunWithSeesaw.cpp:153
void setRestitutionCoefficient(double coeff)
Definition: MarbleRun.cpp:79
void setSlidingFrictionCoefficient(double coeff)
Definition: MarbleRun.cpp:63
void setParticleRadius(double radius)
Definition: MarbleRun.cpp:55
void loadBigSeesaw()
Definition: MarbleRunWithSeesaw.cpp:114
void setRollingFrictionCoefficient(double coeff)
Definition: MarbleRun.cpp:67
void setParticleDensity(double density)
Definition: MarbleRun.cpp:59
void loadSTLFile(std::string stlFile)
Definition: MarbleRun.cpp:83
void setParticlePosition(Vec3D pos)
Definition: MarbleRun.cpp:51
Definition: Vector.h:51

References MarbleRun::loadBigSeesaw(), MarbleRun::loadSmallSeesaw(), MarbleRun::loadSTLFile(), DPMBase::setGravity(), DPMBase::setName(), MarbleRun::setParticleDensity(), MarbleRun::setParticlePosition(), MarbleRun::setParticleRadius(), MarbleRun::setRestitutionCoefficient(), MarbleRun::setRollingFrictionCoefficient(), MarbleRun::setSlidingFrictionCoefficient(), DPMBase::setTimeMax(), MarbleRun::setTorsionFrictionCoefficient(), and DPMBase::solve().