vetletDist is set to 0 because no spheres were found

Asked by sunwei

i had installed yadedaily in my unbuntu 14.0 system. When i operates the example script-bouncing sphere, gravity deposition or oedometric test, the same error confuses me a lot.

in the terminal i input "yadedaily bouncing.py"
(bouncing sphere.py is
O.bodies.append([
    sphere(center=(0,0,0),radius=.5,fixed=True),
    sphere((0,0,2),.5)
])
O.engines=[
    ForceResetter(),
    InsertionSortCollider([Bo1_Sphere_Aabb()]),
    InteractionLoop(
        [Ig2_Sphere_Sphere_L3Geom()],
        [Ip2_FrictMat_FrictMat_FrictPhys()],
        [Law2_L3Geom_FrictPhys_ElPerfPl()]
    ),
    NewtonIntegrator(gravity=(0,0,-9.81),damping=0.1)
]
O.dt=.5e-4*PWaveTimeStep()
O.saveTmp()
)
the error is
"ERROR /data/trunk/pkg/common/InsertionSortCollider.cpp:240 action: verletDist is set to 0 because no spheres were found. It will result in suboptimal performances, consider setting a positive verletDist in your script.
WARN /data/trunk/pkg/dem/Shop_01.cpp:423 PWaveTimeStep: PWaveTimeStep has not found any suitable spherical body to calculate dt. dt is set to 1.0"

but when i type the same commands by hand, the error would be disappear.

so i don't know why the phenomena happen?

thank you.

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 just pasted your code in a file and ran it without problem. Why is it that you type "yadedaily bouncing.py" while the name you mention is "bouncing sphere.py" (with "_" between the two?).
Are you sure yade is really reading the scripts?
Bruno

Revision history for this message
sunwei (ttsunwei) said :
#2

oh sorry .i am sure that yade has read my scripts. i type "yadedaily bouncing sphere.py ", which has no problem.

but why in my computer the error remains?

Revision history for this message
sunwei (ttsunwei) said :
#3

when i modify the bouncing sphere.py to:

O.bodies.append([
    sphere(center=(0,0,0),radius=.5,fixed=True),
    sphere((0,0,2),.5)
])

the error is the same, so the problem is related to the O.bodies.append.

but what is the wrong?

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

Why are you sure the script is executed? How do you know?
Does the scene contain two spheres after the error?

Revision history for this message
sunwei (ttsunwei) said :
#5

it is my fault. i name the file as "bouncing sphere.py ". the space in the file name cannot be recoginized by yade. after i rename the file as "bouncing_sphere.py", it is ok!

Revision history for this message
sunwei (ttsunwei) said :
#6

Thanks Bruno Chareyre, that solved my question.

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

Please don't post here and there. Your question - though obscure - is obviously unrelated to this topic.
There was not mention of an undefined PWaveTimeStep() previously.
Better open a new question, yet please think twice to make it intelligible, and have a look at
https://yade-dem.org/wiki/Howtoask
Bruno