Spheres don't move in periodicsandpile example if using wall
Hello,
I have run the periodicSandPile.py example in https:/
The code after changing box to wall is shown as follows:
#------
from __future__ import print_function
from yade import pack
from pylab import rand
from yade import qt
O.periodic=True
length=0.4
height=0.6
width=0.2
thickness=0.01
O.cell.
0 ,3.*height, 0,
0, 0, width)
O.materials.
#lowBox = box( center=
#O.bodies.
wallid=
O.bodies[
O.bodies[
radius=0.01
O.materials.
sp=pack.
sp.makeCloud(
O.bodies.
O.dt=0.
O.usesTimeStepp
newton=
O.engines=[
ForceResetter(),
InsertionSortC
InteractionLoop(
[Ig2_
[Ip2_
[Law2_
),
GlobalStiffnes
newton
]
Gl1_Sphere.
from yade import qt
qt.View()
print('Press PLAY button')
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- 2020-11-20
- Last query:
- 2020-11-20
- Last reply:
- 2020-08-10
|
#1 |
Hello,
the reason of particles not moving is that after the first iteration, the simulation freezes. You can try:
O.step() # OK, now O.iter = 1
O.step() # freezes...
What is the reason of freezing I have no idea..
cheers
Jan
Yuxuan Wen (wenyuxuan) said : | #2 |
Thanks Jan Stránský, that solved my question.