← Back to team overview

yade-users team mailing list archive

Re: [Question #659177]: NewtonIntegrator won't work

 

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

Robert Caulk proposed the following answer:
Hello,

Welcome to Yade!

I should introduce you to some resources that will help you along.

First, the class reference [1] is your best friend. There you will find
all the different functionalities available to you through Yade's huge
class library. You might also notice how certain engines are
"Deprecated" (GravityEngine being one of them), and links to the proper
engine.

Second, the examples folder [2]. These are great working templates to
start from. For example, funnel.py uses gravity to funnel particles. We
know the script is working, it is a matter of tweaking it to your needs
slowly but surely.

Finally, to answer the question. Try removing GravityEngine and editing
NewtonIntegrator to:

NewtonIntegrator(gravity=(0,0,-9.81)

Cheers,

Robert

[1]https://yade-dem.org/doc/yade.wrapper.html#yade.wrapper.GravityEngine
[2]https://github.com/yade/trunk/blob/master/examples/funnel.py

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