yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #02774
[Bug 498089] Re: Cannot modify material properties to some identified elements
Luc, if you update to 1908, have a look at
file:///home/vaclav/yade/ydoc/_build/html/modules.html#yade.utils.sphere
Passing a function as material will help you to get independent material
instances from randomSpherePack; something like:
def makeMat(): return ElasticMat(young=30e6,poisson=.3,density=2e3)
pack.randomDensePack(....,material=makeMat)
makeMat will be called for each sphere created; it always returns the
"same" material, but they are independent objects and you will be able
therefore to change their parameters independently.
--
Cannot modify material properties to some identified elements
https://bugs.launchpad.net/bugs/498089
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
Status in Yet Another Dynamic Engine: Invalid
Bug description:
ubuntu Karmic
yade 1899
All the elements are concerned when I try to change some material properties of some of them. Quite strange because I do not have the problem when it is about their color. I attached the python script as an example.
References