3
# Testing sphere-sphere interaction in periodic case.
4
# Pass, if the spheres moves along the X axis, interacting through the period.
9
tc=0.001# collision time
10
en=1 # normal restitution coefficient
11
es=1 # tangential restitution coefficient
13
frictionAngle=radians(35)#
14
params=utils.getViscoelasticFromSpheresInteraction(tc,en,es)
15
sphereMat=O.materials.append(ViscElMat(density=density,frictionAngle=frictionAngle,**params))
19
sphId=O.bodies.append([
20
utils.sphere( (0.4,0.5,0.5), 0.1, material=sphereMat),
21
utils.sphere( (0.6,0.5,0.5), 0.1, material=sphereMat)
23
O.bodies[sphId[-1]].state.vel=(0.5,0,0)
24
O.bodies[sphId[0]].state.vel=(-0.5,0,0)
29
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]),
31
[Ig2_Sphere_Sphere_ScGeom()],
32
[Ip2_ViscElMat_ViscElMat_ViscElPhys()],
33
[Law2_ScGeom_ViscElPhys_Basic()],
35
NewtonIntegrator(damping=0),