75 std::array<double, 3>
min;
76 std::array<double, 3>
max;
84 setDomain(minVec, maxVec);
87 species->setDensity(1000);
88 species->setStiffness(9.8*250.0);
89 const double mass = species->getMassFromRadius(
radius);
90 double tc = species->getCollisionTime(mass);
91 species->setCollisionTimeAndNormalAndTangentialRestitutionCoefficient(tc, 1, 1, mass);
92 species->setSlidingFrictionCoefficient(0.2);
98 double x = 0.5*
max[0],
y = 0.8*
max[1];
100 particleHandler.copyAndAddObject(
p);
102 particleHandler.copyAndAddObject(
p);
104 particleHandler.copyAndAddObject(
p);
106 particleHandler.copyAndAddObject(
p);
109 w.set({0,0,-1},{0,0,-2.0*
radius});
110 wallHandler.copyAndAddObject(
w);
112 setParticlesWriteVTK(
true);
113 wallHandler.setWriteVTK(
true);
116 restartFile.writeFirstAndLastTimeStep();
120 setGravity({0,0,-9.8});
Array< double, 1, 3 > e(1./3., 0.5, 2.)
@ NO_FILE
file will not be created/read
@ ONE_FILE
all data will be written into/ read from a single file called name_
Species< LinearViscoelasticNormalSpecies, SlidingFrictionSpecies > LinearViscoelasticSlidingFrictionSpecies
Definition: LinearViscoelasticSlidingFrictionSpecies.h:12
RowVector3d w
Definition: Matrix_resize_int.cpp:3
float * p
Definition: Tutorial_Map_using.cpp:9
A infinite wall fills the half-space {point: (position_-point)*normal_<=0}.
Definition: InfiniteWall.h:27
A spherical particle is the most simple particle used in MercuryDPM.
Definition: SphericalParticle.h:16
Definition: Kernel/Math/Vector.h:30
Scalar * y
Definition: level1_cplx_impl.h:128
string dataFile
Definition: calibrate.py:175
list x
Definition: plotDoE.py:28