MarbleRun.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 ( )
141  {
142 
143  // Set up a problem of type MarbleRun
144  MarbleRun dpm;
145  // Set name of output files
146  dpm.setName("MarbleRun");
147  // Set name of output files
148  dpm.loadSTLFile("MarbleRun_Concept_STL_DwarshuisScholten.STL");
149  // Set physical particle properties
150  dpm.setParticlePosition(Vec3D(0.03,1,0.9));
151  dpm.setParticleRadius(0.01);
152  // Set material particle properties
153  dpm.setParticleDensity(1000);
154  // Set contact properties
158  dpm.setRestitutionCoefficient(0.5);
159  // set gravity direction
160  dpm.setGravity(Vec3D(0,-9.8,0));
161  // Set simulation time
162  dpm.setTimeMax(1);
163  // start the solver
164  dpm.solve();
165 }
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 setRestitutionCoefficient(double coeff)
Definition: MarbleRun.cpp:79
void setSlidingFrictionCoefficient(double coeff)
Definition: MarbleRun.cpp:63
void setParticleRadius(double radius)
Definition: MarbleRun.cpp:55
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::loadSTLFile(), DPMBase::setGravity(), DPMBase::setName(), MarbleRun::setParticleDensity(), MarbleRun::setParticlePosition(), MarbleRun::setParticleRadius(), MarbleRun::setRestitutionCoefficient(), MarbleRun::setRollingFrictionCoefficient(), MarbleRun::setSlidingFrictionCoefficient(), DPMBase::setTimeMax(), MarbleRun::setTorsionFrictionCoefficient(), and DPMBase::solve().