yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08185
Re: [Question #235665]: changing gravity in NewtonIntegrator
Question #235665 on Yade changed:
https://answers.launchpad.net/yade/+question/235665
Status: Open => Answered
Anton Gladky proposed the following answer:
Your NewtonIntegrator should have a "label" first to be accessible "by
name".
...
NewtonIntegrator(damping=.1,gravity=(0.0,0.0,-9.8), label="NI"),
...
then you can change the gravity during the run:
NI.gravity = Vector3(0,0,-20.0)
Anton
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.