Question #660533 on Yade changed:
https://answers.launchpad.net/yade/+question/660533

    Status: Open => Answered

Robert Caulk proposed the following answer:
Hello,

If you want to redefine gravity, you need to use the gravity member of
the newtonintegrator object:

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, label='newtonInt'),
   PyRunner(command='gravity()',iterPeriod=1)

]

def graviy():
  newtonInt.gravity = (0,0,1)

-Robert

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to