problems with a example: chained-cylinder-spring.py

Asked by Zixuan Xu

Hi all,

I'm new to yade. I tried to run a example showed in the link below.

https://github.com/yade/trunk/blob/master/examples/chained-cylinders/chained-cylinder-spring.py

it successfully generated a spiral, but when i tried to run it, the spiral just stayed still and didn't change at all. it seems there was no gravity applying on the sprial, even though there was a line in the script:

NewtonIntegrator(damping=0.15,gravity=[0,-9.81,0]),

Somebody help me plz...thx :)

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Bruno Chareyre
Solved:
Last query:
Last reply:
Revision history for this message
Bruno Chareyre (bruno-chareyre) said :
#1

Hi,
I can't reproduce what you report.
What version of yade are you using? And does the script come from the
same version?

Revision history for this message
Zixuan Xu (xuzixuanatsjtu) said :
#2

the version of my yade is 0.70.0-5, and i have no idea what version the script comes from.

hmmm...it seems a little out of date..i'll try out a new version...

Revision history for this message
Best Bruno Chareyre (bruno-chareyre) said :
#3

If you install the documentation package for 0.70.0-5 you will find the example scripts on your HD.
Copy/paste of scripts from a web page is not supposed to work since yade is not forward-compatible (if this ever existed for a computer program).

Revision history for this message
Zixuan Xu (xuzixuanatsjtu) said :
#4

Thanks so much~i just installed the newest version of yade and managed to run the script without a problem :)

Revision history for this message
Zixuan Xu (xuzixuanatsjtu) said :
#5

Thanks Bruno Chareyre, that solved my question.