yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #16217
[Question #660533]: dynamic change of gravity vector
New question #660533 on Yade:
https://answers.launchpad.net/yade/+question/660533
Good evening,
I wish to simulate a rotation and the easiest way though was to redefine the gravity vector.
However, i tried my hand by defining
a=(0,0,0)
O.engines=[
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb()]),
InteractionLoop(
# handle sphere+sphere and facet+sphere collisions
[Ig2_Sphere_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom()],
[Ip2_FrictMat_FrictMat_FrictPhys()],
[Law2_ScGeom_FrictPhys_CundallStrack()]
),
NewtonIntegrator(gravity=a,damping=0.4),
PyRunner(command='gravity()',iterPeriod=1)
]
def graviy():
a=(0,0,1)
return a
which doesnt really do anything, (and i think i have misunderstood the nature of the pyrunner functions alltogether)
Thanks for any help!
Cheers
--
You received this question notification because your team yade-users is
an answer contact for Yade.