← Back to team overview

yade-users team mailing list archive

Re: [Question #293955]: How to generate dense packing of aggregates

 

Question #293955 on Yade changed:
https://answers.launchpad.net/yade/+question/293955

VG posted a new comment:
Thanks a lot, Jan!

A combination of unloading the sample in compress.py and the use of
following in main simulation gets the desired packing and initial
conditions:

for b in O.bodies:
  if not isinstance(b.shape,Sphere):
	continue
  b.dynamic = False

O.step()


for i in O.interactions:
	i.phys.unp = i.geom.penetrationDepth

for b in O.bodies:
  if not isinstance(b.shape,Sphere):
	continue
  b.dynamic = True

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.