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

Jan Stránský proposed the following answer:
Hello,

do not change the material of spheres, i.e. delete these lines
###
for i in xrange(0,Nb1):
  O.bodies[i].material=O.materials[dao]
for i in xrange(Nb1,Nb2):
  O.bodies[i].material=O.materials[qiu]
###

Instead, specify the material when particles are created:
###
# material=dao not needed as lastly appended material is used by default
O.bodies.append(geom.facetBox((.5,.5,.5),(.5,.5,.5),wallMask=15,material=dao)) 
O.bodies.append(facet([(0,0,0),(1,1,0),(1,0,0)],material=dao))
...
sp.toSimulation(material=qiu)
###

cheers
Jan

PS: change of particle material is of course possible, but might need
something more, as you experienced

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

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to