running sample made of clumps

Asked by wangxiaoliang on 2012-03-20

Hi all,

In the yade-school fold ,there is one script with clump option, when I turned the clump clump flag to true, it doesn't run.

then I have made some modification, however it will run, but it seems coming into a dead loop.

Anybody tells me why? Need I modify the BCs or the interaction type or others?

and anyone could unload a script running with clump sample?

thanks all

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2012-03-20
Last reply:
2012-03-21
Christian Jakob (jakob-ifgt) said : #1

Try this for clumps, it should work. If not, let me know!

# create a few clump configurations by hand
from yade import pack
c1=pack.SpherePack([((0,0,0),.5),((.5,0,0),.5),((0,.5,0),.3)])
c2=pack.SpherePack([((0,0,0),.5),((.7,0,0),.3),((.9,0,0),.2)])
sp=pack.SpherePack()
print 'Generated # of clumps:',sp.makeClumpCloud((0,0,0),(15,15,15),[c1,c2],periodic=False)
sp.toSimulation()

O.bodies.append(utils.wall(position=0,axis=2))

O.engines=[
 #SubdomainBalancer(),
 ForceResetter(),
 InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Wall_Aabb()]),
 InteractionLoop(
  [Ig2_Sphere_Sphere_ScGeom(),Ig2_Wall_Sphere_ScGeom()],
  [Ip2_FrictMat_FrictMat_FrictPhys()],
  [Law2_ScGeom_FrictPhys_CundallStrack()]
 ),
 NewtonIntegrator(damping=.4,gravity=(0,0,-100))
]
O.dt=.7*utils.PWaveTimeStep()
O.saveTmp()
O.step()

Anton Gladky (gladky-anton) said : #2

https://github.com/yade/trunk/tree/master/examples/clumps

There are some examples with clumps.

Anton

2012/3/20 wangxiaoliang <email address hidden>:
> New question #191156 on Yade:
> https://answers.launchpad.net/yade/+question/191156
>
> Hi all,
>
> In the yade-school fold ,there is one script with clump option, when I turned the clump clump flag to true, it doesn't run.
>
> then I  have made some modification, however it will run, but it seems coming into a dead loop.
>
> Anybody tells me why? Need I modify the BCs or the interaction type or others?
>
> and anyone could unload a script running with clump sample?
>
> thanks all
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp

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.