On basic operation (Beginner)

Asked by wangxiaoliang on 2011-03-16

I am a beginner of yade!
When I try the sample in Tutorial, I foud the following error.
1 Yade [39]: s2=utils.sphere((-2,0,0),radius=1,fixed=True)>error
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)

/home/michael/YADE/lib/yade-cleanComp060/py/yade/__init__.pyc in <module>()
----> 1
      2
      3
      4
      5

TypeError: sphere() got an unexpected keyword argument 'fixed'

2 O.engins=[
    ForceResetter(),
    InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Wall_Aabb()]),
    InteractionLoop(
         [Ig2_Sphere_Sphere_L3Geom_Inc(),Ig2_Wall_Sphere_L3Geom()],
         [Ip2_FrictMat_FrictMat_FrictPhys()],
         [Law2_L3Geom_FrictPhys_ElPerfPl()]
     ),
      NewtonIntegrator(damping=.2,label='newton')
]
---------------------------------------------------------------------------
NameError Traceback (most recent call last)

/home/michael/YADE/lib/yade-cleanComp060/py/yade/__init__.pyc in <module>()
      3
      4
----> 5
      6
      7

NameError: name 'Ig2_Wall_Sphere_L3Geom' is not defined

3 and also I have tried the periodical Triaxial compression sample

  I met error below
  NameError:name 'Ip2_Sphere_Sphere_L3Geom' is not defined

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2011-03-16
Last reply:
2011-03-16
Anton Gladky (gladky-anton) said : #1

Hi,

you are, probably, using the 0.60 version of Yade, but some tutorials will not work with it.
Please, see, the third paragraph on this page [1]

You need to update to the latest trunk version to try tutorials [2], section 2

Anton

[1] https://www.yade-dem.org/doc/tutorial.html
[2] https://www.yade-dem.org/doc/installation.html#download

Can you help with this problem?

Provide an answer of your own, or ask wangxiaoliang for more information if necessary.

To post a message you must log in.