← Back to team overview

yade-users team mailing list archive

Re: [Question #229898]: Clumps for 2D simulaton

 

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

Christian Jakob posted a new comment:
Hi,

1.) You do not need SpherePack() command in your simulation, because you
already have your packing in sphere.txt file.

sp=pack.SpherePack()
O.bodies.append(ymport.text('sphere.txt'))
sp.toSimulation(material=spheremat)

2.) You did not set material for your spheres. Try

for b in O.bodies:
 if isinstance(b.shape,Sphere):
   b.material = spheremat

Hope it helps.

Wet regards from rainy Freiberg,

Christian

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.