yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #23811
[Question #692568]: Changing joint frictional properties for specific bodies later
New question #692568 on Yade:
https://answers.launchpad.net/yade/+question/692568
Hi,
I defined the material properties for the whole assembly and want to change the jointFrictionAngle for specific particles afterwards.
Looping through the spheres and changing the colour works great, but I cannot achieve it for the jointFrictionAngle.
Thanks
for o in O.bodies:
if isinstance(o.shape,Sphere):
## seperate assembly
if o.state.pos[1]>(dimModele/2) :
o.shape.color=(1,0,1)
o.JCFpmMat.jointFrictionAngle = radians(80)
else:
o.shape.color=(0,0,1)
o.JCFpmMat.jointFrictionAngle = radians(80)
--
You received this question notification because your team yade-users is
an answer contact for Yade.