yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #26968
Re: [Question #679387]: packing of spheres with different properties
Question #679387 on Yade changed:
https://answers.launchpad.net/yade/+question/679387
Jan Stránský posted a new comment:
Hello,
> I tried what you said
with differences however, which lead to the error
The error (being a bit cryptic, yes) says that at b.mat=mat1 it expects Material instead of int.
You can easily check that mat1 is a number, returned by O.materials.append.
You can either use the material ID
b.mat = O.materials[mat1]
or (as in my answer) us material itself:
mat1 = FrictMat(...) # mat is actual material
mat1id = O.materials.append(mat) # O.materials.append returns material ID
b.mat = mat1 # should be OK
Cheers
Jan
--
You received this question notification because your team yade-users is
an answer contact for Yade.