/usr/share/doc/yade/examples/hdaps.py is in yade 2018.02b-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # With Thinkpad laptops, control the sphere's motion by tilting the
# laptop.
O.bodies.append(
geom.facetBox(center=(0,0,.1),extents=(.5,.5,.1),wallMask=31,color=(0,0,1))+
[sphere((0,0,.1),.04,color=(1,1,1))]
)
O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]),
InteractionLoop([Ig2_Facet_Sphere_ScGeom()],[Ip2_FrictMat_FrictMat_FrictPhys()],[Law2_ScGeom_FrictPhys_CundallStrack()]),
HdapsGravityEngine(calibrate=(-495,-495),calibrated=True,zeroGravity=(0,0,-1)),
NewtonIntegrator(damping=.3),
]
O.dt=PWaveTimeStep()
import yade.qt
yade.qt.View()
O.run()
|